configure eclipse to use entire Android source base - Android Q&A, Help & Troubleshooting

How can I configure Eclipse to use the entire Android source code?
I'm working on the file settings.apk using eclipse...but with the editor, for example, I can't import "android.os.SystemProperties" (error: 'cannot be resolved').
there's a guide to configure eclipse to work on system app???
thanks!

s_dimaio said:
How can I configure Eclipse to use the entire Android source code?
I'm working on the file settings.apk using eclipse...but with the editor, for example, I can't import "android.os.SystemProperties" (error: 'cannot be resolved').
there's a guide to configure eclipse to work on system app???
thanks!
Click to expand...
Click to collapse
Same question... did you ever find an answer?

Sorry for bumping an old thread, but... might anyone have an answer for that?

Solution
Hi all,
I have found solution for this problem.
:good:

Related

[Q] It's possible read (and write to) Android browser bookmarks?

I've done this app Bookmarks Easy Import that import pc bookmarks (and folders too) in Android bookmarks but it required root because it read and write directly an Android database.
Please, someone know if is possible read and write Android bookmarks from b4a or java application (via API?) in a non-rooted phone?
Thanks
cb56
Have you seen this example code:
Here should be the link but I am not allowed to post it. So search google for
"Accessing Data With Android Cursors" com.android.broswer.permission.WRITE_HISTORY_BOOKMARKS
It should be the first result.
Did you give you app the correct permissions?
By the way, do you plan to release the source code of your app?
jmozmoz said:
Have you seen this example code:
Here should be the link but I am not allowed to post it. So search google for
"Accessing Data With Android Cursors" com.android.broswer.permission.WRITE_HISTORY_BOOKMARKS
It should be the first result.
Did you give you app the correct permissions?
By the way, do you plan to release the source code of your app?
Click to expand...
Click to collapse
Thanks for the reply ,
I know it can be done with a root device.
I was interested to see if it was possible to read and write Android bookmarks without root to make my program more usable; for now it seems impossible.
May be a permission issue...I'm studying.
Bye
cb56
cb56 said:
Thanks for the reply ,
I know it can be done with a root device.
I was interested to see if it was possible to read and write Android bookmarks without root to make my program more usable; for now it seems impossible.
May be a permission issue...I'm studying.
Bye
cb56
Click to expand...
Click to collapse
Did you solve this?
IvanMunson said:
Did you solve this?
Click to expand...
Click to collapse
No.
cb56

How to install multiple instances of the same .apk

I was tinkering and editing an apk, and i managed to compile it and install it fine and it works and is suited to me. So i was wondering ( not too good with xmls ), is it possible to edit the manifest file to rename the apk so I can install multiple copies ( i.e. have the original unmodified one and the modified one at the same time ). I need this for testing purposes. Which lines do i need to edit exactly so the phone doesn't give me the "installing this application will replace the current..." warning, so I can multiple instances of it?
Hope I'm being clear on what exactly I need, any help is appreciated. Cheers
Edit : Just found a post from this guy on a simillar thread that i couldn't find using search
levenum said:
It is not a simple matter.
APKs are managed by package name, not by file name, but you can't simply change the package name in the manifest of a compiled APK.
Even assuming you manage to do it without messing up the file, which is not a simple task, there will still be code referring to the package name, so the app will crash.
Click to expand...
Click to collapse
So is this true ?
Yes it is, I've tried.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
cttttt said:
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
Click to expand...
Click to collapse
Yeah, thought so myself. Used the emu for a while, but It's so damn slow, can't compare it to actual testing. Nvm, I've dropped the matter anyway. Thanks for the reply
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
akash45 said:
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
Click to expand...
Click to collapse
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
prudra said:
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
Click to expand...
Click to collapse
Okay my bad

[Q] How to open APKs in Eclipse?

We use Eclipse for making android apps. Is there any way to open APK files in Eclipse, so I can view their source folder, etc. and do any editing? I've used APK Multi tool and APK Manager, but I wanted to open an APK in Eclipse. Any help would be appreciated.
Sent from heaven!
anasdcool71 said:
We use Eclipse for making android apps. Is there any way to open APK files in Eclipse, so I can view their source folder, etc. and do any editing? I've used APK Multi tool and APK Manager, but I wanted to open an APK in Eclipse. Any help would be appreciated.
Sent from heaven!
Click to expand...
Click to collapse
Not possible, APKs are compiled code. there is no source left to see. Your best bet is to contact the developer and ask for source code
lkrasner said:
Not possible, APKs are compiled code. there is no source left to see. Your best bet is to contact the developer and ask for source code
Click to expand...
Click to collapse
Alright. Well, thanks for the help!
Sent from heaven!
Not Quite
That's false you can Indeed see the source code with a little help of dex2jar and apktool.
AND hope there is no code obfuscation like proguard.
Regards,
D'Pepino

Decompile Settings.apk

Hey community, im looking to decompile Settings.apk in order to add my own features in. Basically in the same way AOKP does with its Rom Control settings. I have decompiled the apk using apktool but the xml files were not included so i could not put it into eclipse to add settings and such. can someoen tell me how to go about this?
Bump
Sent from my Galaxy Nexus using Tapatalk 2
This is a feature found in multiple roms on all devcies yet nobody can help me out ?
Sent from my Galaxy Nexus using Tapatalk 2
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Jonny said:
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
Click to expand...
Click to collapse
Ok i did this. great program by the way, but its java source is just generated as .class files and no .java files. Everything else was perfect but i need the .java files to actually edit and write new methods.
ajay8055 said:
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Click to expand...
Click to collapse
This explains hwo to edit the xml files in detail so thank yo for this. but it doesn thelp with adding any settings
?????
Sent from my Galaxy Nexus using Tapatalk 2

[Q][Noob] How to build an .apk (Keyguard) from source ?

Hi everyone,
i've downloaded keyguard source from AOSB Github (https://github.com/AOSB/android_frameworks_base/tree/kitkat/packages/Keyguard), and after made all changes i need, i would like to compile/build it as an .apk, but i don't know how to do that
Someone can help me please ?
I'm using Windows.
I will be grateful to people who give me answers
Android Studio ☺
worf_1977 said:
Android Studio ☺
Click to expand...
Click to collapse
Thank you for your help.
But i when i try to build it, i've git an error and it says:
Error:FAILURE: Build failed with an exception.
* What went wrong:
Task 'assemble' not found in root project 'Keyguard'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Click to expand...
Click to collapse
Any idea ? :/
EDIT: I solved it; but after make project, i don't know where is my apk :X
EDIT²: When i try to build it with eclipse, i've got 1271 errors
Bump, any other ideas ? :/
It should be placed into your $OUT folder, whatever would it be...

Categories

Resources