Hello kind sir, im new to this kind of android modding
but i want to know, what file make the rule like :
"Installed app go to /data/app"
"the system application is on the /system/app"
"framework is at /system/framework"
"library is at /system/lib"
Related
Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
It sounds like the directory containing the Android command line tools isn't in your path, so the mksdcard program isn't being found. You'll need to edit your PATH environment variable and add the "tools" directory location to it. The "tools" directory is in the Android SDK directory on your computer, at the same level as the "platforms", "docs", "add-ons", and other such directories.
More details can be found on this under the "Download and Install the SDK" section of the Android developers website at http://developer.android.com/sdk/installing.html
so this is my first attempt on creating adw theme from the directions given here but here is the problem:
ok so to start off i have downloaded the tools in the android-sdk
set up eclipse and have all the resources the need.
i start a new android project and choose to start from existing source and choose the adw template, but then in the window on the top it says : '! The API level for the selected SDK target does not match the min SDK version'
Ignoring that caution and go ahead starting the project choosing Android 2.2 Build target.
Now the problem starts here, when i go in file explorer and navigate to src/x.x.x to rename the package to what i want it in the anroid manifest, it gives me errors in the main.java (the file inside src/x/x/x)
When i open the java file it has 'x' on some strings in the right area and has errors in Mains/Icon Adapter on 4 strings.
I try to rename the folders the readme tells me to, i right click on x.x.x and refractor>rename, write the name i want it to be but errors errors errors and thats only step 2 of the process! ive been trying for 2 hours now and cant get it to work, ill go insane, im new to developing so help will be appreciated a lot
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Thanks I'll try that, and I love your sense launcher, using it right now
Might make a theme based on it
EDIT: ok i looked into the strings and all of them had 1 thing in common is that they all had @overide before it started while other strings didnt, so i removed the @overide and voila, no errors!
JAguirre1231 said:
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
import package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Click to expand...
Click to collapse
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
bump. im in the same boat, trying to get any theme example to work, and having same issues.
webstar1 said:
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
Click to expand...
Click to collapse
Having the same problems . Can someone please help us, I spent much effort drawing my custom icons, and I'm not going to just give up yet.
Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
frank-floripa said:
Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
Click to expand...
Click to collapse
I've not yet made the transition to Android Studio, but in Eclipse there's a folder called /assets in the project structure. That folder gets built into the root of the APK. You can then access files in the /assets folder with the AssetManager.
Android puts tight controls on your access to devices resources. Each application has a default location for files that it can manage. You can retrieve the default working directory through the app Context. Check out Context.getFilesDir(). The application has the necessary privileges to read and write files to that location.
The crucial thing about internet search is keywords. The one I didn't know is "assets". Together with "android studio" I found a wealth of valuable links. Thanks for the help!
Can't find package name in data\data
Hi!
im trying to create a database. im using android studio. after i run the app. i check in 'ANDROID DEVICE MONITOR" data\data but there is no package name there (com.android.****.****) the only folder i can see is "con" folders.
any ideas? i just followed this online instruction.
btw, i'm a beginner.
Thank you
Hi, I'm making an app that monitors a directory and makes a copy of any created files to another directory.
When trying on Android Studio I get a java.nio.file.AccessDeniedException because it's inside /data/user/0/.
Is there any way to make the app request root with magisk on startup or something??
All I've found is that you used to be able to use
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
with SuperSU around Android 5.[/ICODE]
Thanks.
If this what you're looking for?
https://github.com/topjohnwu/libsu
DaviidCou said:
Hi, I'm making an app that monitors a directory and makes a copy of any created files to another directory.
When trying on Android Studio I get a java.nio.file.AccessDeniedException because it's inside /data/user/0/.
Is there any way to make the app request root with magisk on startup or something??
All I've found is that you used to be able to use
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
with SuperSU around Android 5.[/ICODE]
Thanks.
Click to expand...
Click to collapse
I have also been trying to find a way to request and found the easy or maybe "the only way to do it" by
Java:
Runtime.getRuntime().exec("su")
this brings up the popup root request dialog from magisk and also magisk takes care of remembering the root permission. The method works on both java and kotlin
startup might be Phone startup or App startup. If it's on app startup then in kotlin you can do
Code:
init {
Runtime.getRuntime().exec('su')
}
Just below the
Code:
onCreate()
but inside the
Code:
MainActivity()