Stock ICS Leak deodex - Motorola Droid 4

How can i deodex the new ics leak? All progs how can i set api level 15 doesn't work correctly. I need the systemui.apk deodexed for tweaking some png's.
Framework-res.apk is deodexed and i can change this;-)
Or can i only change the systemui.apk without touch systemui.odex
...Tapatalk

you can manually deodex with baksmali.
Code:
java -jar baksmali.jar -a 15 -x blah.odex
the -a flag specifies sdk version.
The problem I'm having trying to deodex the maxx 181 build is that services.jar doesn't have a classes.dex or odex file, so no idea how to deodex files that call for services.odex, any ideas?

Q9Nap said:
you can manually deodex with baksmali.
Code:
java -jar baksmali.jar -a 15 -x blah.odex
the -a flag specifies sdk version.
The problem I'm having trying to deodex the maxx 181 build is that services.jar doesn't have a classes.dex or odex file, so no idea how to deodex files that call for services.odex, any ideas?
Click to expand...
Click to collapse
Doesn't work with systemui from ics leak 4.0.4 droid4. Same error in all deodex apps. Boot class error
...Tapatalk

Rennert said:
Doesn't work with systemui from ics leak 4.0.4 droid4. Same error in all deodex apps. Boot class error
...Tapatalk
Click to expand...
Click to collapse
That is because you need to use the boot class path files to deodex with. -c option
Sent from my Galaxy Nexus using Tapatalk 2

nitroglycerine33 said:
That is because you need to use the boot class path files to deodex with. -c option
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
any ideas about my issue of no services.odex?

Related

[HELP] - Services.jar odexed editing

Hey guys, im on amon_ra's rom and as those who are on it know its odexed. So my question is has anyone successfully deodexed services.jar ? I mean i can deodex and compile using smali just fine but when i put it in services.jar and remove the odex file from /system/framework/ I get a lot of "died" in my log upon boot
Any help would be appreciated, thnx

Android 4.0.4 Not compatible with customizing?

I've tried multiple ways of decompiling and recompiling the systemui.apk, framework-res.apk aswell as add in custom carrier logo and custom status bar background, all of these mods worked on 4.0.3 but are not working with android 4.0.4, any suggestions?
I would try updating sdk and grab the latest aapt.exe from platform-tools and place it in your apktool folder
Sent from my Nexus S 4G using Tapatalk 2 Beta-4
I think I may have found a problem, fergie, in the SDK Manager, I only see SDK for Android 4.0.3, maybe they have not made an update because 4.0.4 has not been an official release???
patched apktool.jar
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
FlatEric0074 said:
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
Click to expand...
Click to collapse
Appreciate this but the version of apktool.jar I was using works better (1.4.3), with the version you provided above gets errors like crazy when decompiling the systemui.apk, decompiling the framework-res.apk works fine, recompiling shows too many errors to count :/
There is a specific apktool for 4.0.4 systemui which the guy attached. Its a modded version and works perfectly. Myself and others are using it.
Sent from my Nexus S using xda premium
I found out what I was doing wrong!!! Sorry about this guys I guess when I am building the SystemUI.apk I didn't realize that you only had to use the command "apktool b SystemUI" and it would build the apk in the dist folder thanks a lot guys

[Tutorial] How to use Lg Weather Widget on CM7 or Miui beta

Tutorial to add Lg classes to the framework.jar in order to make work the original weather widget of LG in every rom.
I have made this process successfully in the CyanogenMod 7.2RC1 and in the MIUI 2.1a.
I discovered this process thanks to doc3000, which created to me the framework.jar of CM7 with Lg classes. After a while researching, I discovered the process.
First of all, make a backup of your rom just in case something goes wrong, be able to recover the terminal restoring it from the recovery, given the fact that a wrong framework.jar will produce a bootlop.
The files you need are:
1) baksmali.jar y smali.jar ,which you can get it from here: http://code.google.com/p/smali/. I have used the .jar files
2) original LG framework.jar file, for example in whatever rom STOCK, available in “/system/framework/framework.jar”
3) framework.jar of the rom to which we want to add the LG classes, available in “/system/framework/framework.jar”
4) WeatherWidget.apk which you can get too from whatever STOCK rom, available in “/system/app/WeatherWidget.apk”
1) Open a console, then cd to the folder where you have the 4 files. Run:
Code:
java -jar baksmali.jar framework.jar -o outlg
This will make a folder named “outlg”, which it will have all the LG Classes of the framework.jar
2) Repeat the same with the framework.jar of the rom that we want to add the LG classes running the command
Code:
java -jar baksmali.jar framework.jar -o out
3) Go to the folder “outlg/com” and make a copy of the “lge” folder to the “out/com” folder.
4) Now run
Code:
java -jar smali.jar out -o classes.dex
5) Open the framework.jar of the rom that we want to add the LG Classes with Winzip / 7zip ... , and replace the file classes.dex from the inside by the one we just have created. (Don't use Winrar, it make an incorrect framework.jar with a bootloop as a result. I don't know if Winzip work, but I confirm 7zip yes)
6) Insert the modified framework.jar to the “/system/framework” overwritting the original file, and checking that it has group and owner “root” and the correct permissions ( To know the correct permissions, look the permissions of any file in the folder “/system/framework/”...)
7) Copy the file “WeatherWidget.apk” in “/system/app/” and put he same permissions as any apk in that directory, check that the group and the owner are “root” too
8) Restart the device, and here we have the original LG weather widget in our favourite rom.
This process should work in every rom in every device, not only in the Optimus Black, but I could not check it because I only have an Optimus Black.
Sorry for my english >.<
Cheers!!!
Thank you i gonna try it out. but why it is in Q&A section? Maybe moderator could move this thread to themes&apps section? xD anyway thank you dude
I have less than 10 posts, I can't post on Development forum, but you are right, apps and themes are the correct forum, sorry >.<
Enviado desde mi LG-P970 usando Tapatalk
It ok maybe moderator can move it some day and more people find it?
Sent from my P970 using XDA
Hang on, i got an idea. i can create thread for you and put link on this thred hows that?
Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA
fongnd said:
Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA
Hi all,
I can do a normal zip with all the files needed. This night I will do the zip.
A flashable zip is usseles when developers make a change involving "CyanogenMod/android_frameworks_base" because the framework.jar change. You need to do the process again to get a new framework.jar or you will get a bootlop.
Since u back so i ask qustion again...
Do you want me to open thread for you in themes and apps and give a link to your post... i take no credit for ur work.. so want me to?
P.S. im making zip now
Sent from my LG-P970 using XDA
foggydisaster said:
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
thanks for offering me all necessary files.
I've just go through the tutorial again to rehearse all the command that I need to do.... I think I will screw up on this.... I have a busy life and I cant afford to have bootloop on phone. Just too time consuming.
Zip Is Here!
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:
foggydisaster said:
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:
Click to expand...
Click to collapse
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,
fongnd said:
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,
Click to expand...
Click to collapse
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you
foggydisaster said:
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you
Click to expand...
Click to collapse
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,
fongnd said:
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,
Click to expand...
Click to collapse
Ok dude its night now so ill do this for you tomorow c: but ull have this i promise nighty night
Sent from my GT-I9001 using XDA
Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.
runtime_Err0r said:
Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.
Click to expand...
Click to collapse
Ill go with ubuntu c:
Sent from my GT-I9001 using XDA
i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?
foggydisaster said:
i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?
Click to expand...
Click to collapse
I edit my first post with CODE tags, copy again the commands and it will work. It's a problem with the "-" simbol in plain text with browser. My fault.
Still the same itworks with CM7 framework filebut not with LGE..

[Script][Optimizer][ZipAligner] Amestris Odexer Script

Hi, this is a script for converting the Deodexed firmware to Odex Structure.
This script is created by Me , ported from vLad's work & mixed TearsDontFalls work for useable for galaxy not.
This is for Samsung Galaxy note & maybe s2(if you test for s2 p.m me) Official Firmwares.
Instruction:
be sure your phone is rooted and The Java Runtime packages is installed on your pc
1: Download The Attachment and Extract it to your PC.
2: Put your phone into USB Debug mode or reboot into recovery and mount system
Code:
Settings > Application > Development
Enable The USB debugging mod
3: Connect The USB Cable into your phone
4: Run the
Code:
odex.cmd
file from downloaded attachment.
5: Your phone will start the Odex Converting and also will Zip_align all applications.
This script will ODEX all fles on your phone:
Code:
/System/app
/System/framework
-------------------------------------
if has error MobileTrackerEngineTwo.apk you most cut this file from /System/app and odex rom after reboot call back this file
Credits:
Mehrzad_63
M_J_Nazari
Vlad
TearsDontFalls
Click to expand...
Click to collapse
DISCUSSION THREAD
http://forum.xda-developers.com/showthread.php?t=1608715
Hello Mehrzad,
You asked me to reply in this thread. The question was how to re-odex a deodexed S2 Samsung 4.0.4 Rom.
I quote:
mehrzad1363 said:
Hello Existence
First you can use this Thread for odexing
this odexer for note and i think work this with S2 . but if you get bootloop upload init.rc in root your phone.
for Deodexer i Necessarily get S2 .Because change this method for any app in system and apks in S2 .
Deodexer is the first way in Windows without linux and I do not have access to different phones.
Click to expand...
Click to collapse
@[email protected] said:
Hi Mehrzad, I'm playing with it as we speak! I changed your odex.sh with bootclasspath for the S2:
Code:
/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
But no boot... :crying:
Will upload my init.rc.. Where can I find this?
Will look for it now!
Edit: Here's my init.rc. Thanks for looking into this!
https://dl.dropbox.com/u/25779832/init.rc
Click to expand...
Click to collapse
My init.rc is in the above quote.
The S2 community would be very thankfull if you could make this handy script work for the S2! (I9100)
why should we odex again?
meethere said:
why should we odex again?
Click to expand...
Click to collapse
Odexed is known and proven to be more smooth, fast and less RAM-eating then a De-odexed Rom.
The disavantage is that your Rom will become less easy to customize...
@[email protected] said:
Hello Mehrzad,
You asked me to reply in this thread. The question was how to re-odex a deodexed S2 Samsung 4.0.4 Rom.
I quote:
My init.rc is in the above quote.
The S2 community would be very thankfull if you could make this handy script work for the S2! (I9100)
Click to expand...
Click to collapse
1- open init.rc with notpad ++ and get line BOOTCLASSPATH.
2- replace this line into odex.sh in odexer package
3- next line in odex.sh edit with all jar BOOTCLASSPATH and save
4- for any apk in app folder if get error moved this file to oder folder and finish re-odex callback this file.
Common this way for all android phone . :good:
I have idiot question
How can i knows my rom is odex after run odex.cmd(working)? I dont see anything odex file in system/app and system/frammerwork

[Q] Fixing RIL when porting Nexus S to SGS

Okay, so here's what I'm doing:
Direct port from Nexus S to SGS. It boots, everything works except signal. Last time I spoke to Andy Thompson over at MIUIAndroid, I needed to change some files in classes.dex, but I have no further instruction.
What I've done:
Take classes.dex out of framework.jar and placed the classes.dex and the baksmali and smali jar files in the same directory.
Then did this:
java -jar baksmali-1.4.0.jar -o classout/ classes.dex
I now have a classout folder with all the smali files in it and such. What needs to be replaced in order to have RIL/Signal working? I imagine the CORRECT files from a Captivate CM10 build or otherwise, but I don't know which files it is.
If anyone could give me some direction I can recompile it.
Spank you all!
happen also with me when I tried to port miui from nexus s (am also using captivate) the error is somewhere in framework-res.apk (according to me)
what I did was I changed the base to i9000
dheeraj (dhlalit11) said:
happen also with me when I tried to port miui from nexus s (am also using captivate) the error is somewhere in framework-res.apk (according to me)
what I did was I changed the base to i9000
Click to expand...
Click to collapse
MIUIAndroid is discontinued for the I9000 now, even for porting. In order to get it to work on the I9000, the same change needed to be made. I need to know what it was.

Categories

Resources