ICS deodexing script - Android Q&A, Help & Troubleshooting

Hey buds,Do anyone know of a deodexing script for ICS 4.0.3 to deodex samsung ICS roms???I'm in need of it for windows.I have searched but couldn't find anything for windows and specifically not for samsung

It's for an HTC phone, but it should work for any ICS ROM as far as I can tell: http://forum.xda-developers.com/showthread.php?t=1572266
(slightly modified version of AutoDEOTool, made to work with ICS apparently)
Usage is fairly straight forward, put all from /system/app in _apk and all from /system/framework in _framework, then run the .bat and choose option 2. Paste in the BootClassPath from your init.rc (you'll need to remove the /system/framework/ from the path of each jar to make it work, a simple search and replace in a text editor should take care of that without problems) and leave it running for a while.

Related

[Q] Bootloop Trying to Add New Button Background to Framework-res.apk

(I'm new at this, any help would be appreciated)
I'm using Daneshm90's (very awesome) APK Manager to mess around with my framework-res.apk file. I've sucessfully reskinned some pngs and changed some xml files and stuff like that.
Why does the following cause a bootloop?
1) Decompile Framework-res.apk
2) Make a copy of res\drawable\btn_default_small.xml and rename it btn_default_small2.xml
3) Change the background of something to android:background="[a]drawable/btn_default_small2"
4) Compile\flash to phone etc, watch it bootloop
(please note: [a] is really the email 'at' symbol, the forums get mad at me for using it)
I can edit existing files just fine, but whenever I try to add and use a new file everything grinds to a halt, even if its just a copy of a working 'stock' file. What am I missing? Is there a list of files somewhere I need to add my new xml file to? Should I be building from source instead of using apk manager?

Any One ??

What Deoxing Means....I Made A Rom Using Deodexer_2.5.6.2.zip ...
What do it Do... ??
De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything
this was copy and pasted from "Android for Dummies"
also, read this: http://droidxblog.wordpress.com/2010/11/10/what-is-odex-and-deodex-in-android-a-complete-guide/
lots of good info there
eminembdg said:
De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything
this was copy and pasted from "Android for Dummies"
also, read this: http://droidxblog.wordpress.com/2010/11/10/what-is-odex-and-deodex-in-android-a-complete-guide/
lots of good info there
Click to expand...
Click to collapse
thnks so im ging to read

[Q] Modifying APKs - wont install

I'm looking for a little bit of guidance. I want to modify some apps but when I do I can't seem to get them working on devices.
I am happy with the use of APK tool and zipaling, and have successfully modified my SystemUI.apk but when I try to mod apps it does not work.
I have tried modding the apk in data/app and just replacing the file and tried modding the downloaded apk and try to install.
My process:
Decompile (APKtool)
Mod
Recompile (APKtool) - with errors
I add the files from the original APK that errored during recompile with 7zip
Zipaling
Transfer back to the device
Devices
Samsung S3 mini & Nexus 7 - both running stock rooted JB 4.1.1
You need to sign the apk before you can install them. Get the signapk.jar and either get the test keys or make your own keys. Once the zip is final (after 7zip) sign the apk and then do a zipalign.
Unless you are sure that the compilation errors are serious, consider fixing them.

Create Odex + Resign Phone.apk

I have a EVO LTE running the latest stock rooted odexed ROM (3.16). There is a mod I want to make, and there is an APK (for DEODEX ROMS) available that matches my ROM version (stock 3.16)
Basically I want to add Roam only option to Phone.apk.
I took the modified apk that supposedly has the roam only option, created an .odex file for it, and signed it using the current Phone.odex using this method:
http://forum.xda-developers.com/showthread.php?t=1853569
I made sure my BOOTCLASSPATH was correct but every time I book with this Phone.apk and Phone.odex in place (that I created), I have no service.
Does anyone have any ideas on what I might be doing wrong? Or how to see and troubleshoot any error messages occuring with loading Phone.apk?
I'm only recently learning about odexing. Did you try it deodexed? Keep in mind the phone.apk you odexed probably already has a classes.dex within it. Is it zipaligned? Permissions and ownership are correct?

[Q] Modifying odexed framework

I have an SGH-i547c running stock rom. This is what I prefer. Needless to say, it is odexed
I needed to edit the AudioService.smali file in the framework.odex
I figured out how to deodex framework.odex and edit the AudioService.smali file from the "out" folder
I also figured out how to odex the folder back into a framework.odex file without any errors.
However, the original framework.odex file is 8502KB and the edited and re-odexed version is 8034KB and it does not work on my device. The device failed to boot after replacing with the smaller file..........I had to re-flash the stock /system with Odin as I could not gain enough permission to push the original framework.odex I had backed up, back to the device using ADB through stock recovery or download mode.
I only changed a couple values in the AudioService.smali file yet I tried re-odexing several times and the output file was always smaller than the original and would not work on device.
I found some tutorials on this online and I find them not very well explained, complicated and not specific to what I am trying to do.
What did I do wrong??
Can someone explain to me how to do this properly without having to go get a degree?
Thanks

Categories

Resources