[Q] Internal/Hidden files - Android Q&A, Help & Troubleshooting

I'm trying to extract internal and hiddent files for my Bionic 4.1.2.
The instructions I found online said to basically
1.) extract the framework.jar (adb pull /system/framework/framework.jar - not a problem)
2.) rename it to framework.zip and unzip - not a problem
3.) retrieve classes.dex - problem there is no classes.dex
I can't move any further because classes.dex is not in my framework.jar on the emulator or physical device.
Is the file Classes.dex located somewhere else for this version of Andorid?
Is there another or better method to get internal and hidden files to utilize in applications?
I need this so I can build some special needs applications for my father who has ALS.
Any help provided would be appreciated. Thanks.

Utilizing Android Internal/Hidden files
Is there another or better method to get internal and hidden files to utilize in applications?
sbrammer said:
I'm trying to extract internal and hiddent files for my Bionic 4.1.2.
The instructions I found online said to basically
1.) extract the framework.jar (adb pull /system/framework/framework.jar - not a problem)
2.) rename it to framework.zip and unzip - not a problem
3.) retrieve classes.dex - problem there is no classes.dex
I can't move any further because classes.dex is not in my framework.jar on the emulator or physical device.
Is the file Classes.dex located somewhere else for this version of Andorid?
Is there another or better method to get internal and hidden files to utilize in applications?
I need this so I can build some special needs applications for my father who has ALS.
Any help provided would be appreciated. Thanks.
Click to expand...
Click to collapse

Related

Extract *.apk?

If I have a *.apk that I download, is there anyway to backup/extract it?
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
Right but how do I find the *.apk if I am downloading it off of the market?
apps are located in data/app/
There are also various apps in the market that will backup apps.
I use appmonster incedently.
7zip can extract and view contents of an apk without renaming.
backup and reinstalling apps....
view the first link in my signature.
I used MyBackup Pro to do a backup of my apps onto the sd card, then I used ASTRO file manager to navigate to /sdcard/rerware/MyBackup/AllAppsBackups where I found the file LastBackupApps.zip. I then used androzip or something similar to unzip that file and it contained the apk for every one of the apps I backed up.
how to extract .apk.p files
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
lxrose said:
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
Click to expand...
Click to collapse
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
bftb0 said:
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
Click to expand...
Click to collapse
Thanks for the info. I thought I can update the apk files manually, because from recovery it doesn't work (it is a rooted image, so signature not accepted) and there are some fixes in the new update that I wanted to give a chance.
Unable to install ddx1.14.jar in my HTC wildire
I hve downloaded dexeder.jar file in to my SD card. but i can't install it in my HTC wildfire...
it shows an error...
"ddx1.14.jar cannot be installed because critical information is missing from the application file (MIDlet-Name). Please contact the application provider for more information."
Help me Pls..... Thanks in advance.....
apk download
did you search for the apk online?

Re-compile framework-res.apk (Custom Rom)

I got this figured out already, sorry about that.
Who ever thanked me, I wasn't posting a guide but a question.
I am trying from a fresh firmware base to learn from scratch but no idea how to get that framework to compile correctly.
did you install framework first?
Code:
apktool if framework-res.apk
Easy
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Chadw1985 said:
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Click to expand...
Click to collapse
If you just want to modify one of the 'normal' XML files or an image then that approach will work fine. The problem is he wants to edit the bool.xml file and that is contained in the 'resources.asrc' file and you need to decompile it first.
I am in the same situation although someone managed to edit the file for me and recompile it so I got there in the end, just not by doing it myself.
I followed the instructions you describe and the file never recompiled properly - or at least my device never booted with the one I recompiled
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
nickiberli said:
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
Click to expand...
Click to collapse
I have tried exactly like this and it didn't work for me. I downloaded lots of different APK tools and tried them all - there were comments about using older versions of apktool.jar etc. I kept getting different sizes of the output file depending on which one I used. I gave up in the end as someone edited the file for me and it was only one specific entry in bool.xmls I wanted changing. As far I could tell we were both doing exactly the same thing.
The last thing I said I was going to do was wipe the PC I was attempting to do this on. I never got round to doing it... I'd be interested to know why I could never get this working though
Andy
Give me the framework and tell me what u want to do.
I will do that for u
Btw is the framework ICS based?
Sent from my Micromax_A70 using Tapatalk 2 Beta-4
You have resigned?
Greets!

[Q] Modify java code in framework.jar

Hey everyone,
My stock rom on my phone has issues with MVNO's (mobile virtual network operator). Basically this means that my data connection only works when Roaming. This is a know issue that has already been fixed on several roms (but not on mine).
To fix this I would like to modify the source of the framework.jar file (`/system/framework/framework.jar`), more specific the file : `/com/android/internal/telephony/gsm/GsmServiceStateTracker.java`
To start I will list the steps I have take to show you where I'm stuck at the momoment:
- I have fully deodexed my stock rom, both the JAR files and the APK files in both /system/framework/ and /system/app
- I have downloaded the deodexed framework.jar file and extracted the classes.dex file from it
- I have decompiled the classes.dex file using baksmali to end up with several *.class files
- I have converted these *.class files to a .jar file using dex2jar
- I have unpacked opened this jar file using jdqui to end up with several *.java files
This is where I'm stuck, I need to figure out how to edit the java file I want and end up with a working framework.jar again that I can upload to my phone.
Am I doing this the wrong way? Any other way to resolve my issue? I hope to get some help from people who have experience in doing this...
Any help would be appreciated!
Bump, anyone?

[Q] Modifying QuickSnote.apk for Jelly 'Beans' build 4

Hi,
I'm trying to figure out why a modified QuickSnote.apk doesn't work on Jelly 'Beans' Rom - Build 4->http://forum.xda-developers.com/showthread.php?t=2032447
This is a problem (for me) because it used to work on build 3 just two days ago.
Here is what I did,
0. Install framework-res.apk, SystemUI.apk, and twframework-res.apk that I extracted from root (build 4)
1. Download and decompile the '/system/app/QuickSnote.apk' using 'apktool'
2. Overwrite QuickSnote/res/raw/popupnote_sound.ogg with a dummy ogg file.
3. Recompile the 'QuickSnote.apk' using 'apktool'
4. Copy&paste jar-res directory from the original apk into newly created apk (it's missing from the new apk for some reason)
5. Sign the apk using 'signapk'
6. Finally, overwrite /system/app/QuickSnote.apk with the new&signed apk
After doing this, I assumed that the only difference in the MANIFEST.MF files would be the SHA1Digest of the 'popupnote_sound.ogg' file. However, many other digests seem to be different.
Could this be the reason why it's not working?
Please assist me with this.
Thanks.
Have you tried to copy :
assets
META-INF
android-manifest.xml
from the original to the new one?
I had same problem with framework-res.apk and it solved it

[Q] Bionic 4.1.2 Internal/Hidden files

I'm trying to extract internal and hiddent files for my Bionic 4.1.2.
The instructions I found online said to basically
1.) extract the framework.jar (adb pull /system/framework/framework.jar - not a problem)
2.) rename it to framework.zip and unzip - not a problem
3.) retrieve classes.dex - problem there is no classes.dex
I can't move any further because classes.dex is not in my framework.jar on the emulator or physical device.
Is the file Classes.dex located somewhere else for this version of Andorid?
Is there another or better method to get internal and hidden files to utilize in applications?
I need this so I can build some special needs applications for my father who has ALS.
Any help provided would be appreciated. Thanks.

Categories

Resources