yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] buntoo:
Thanks a lot @ sicopat

I learnt new things from your very informative 1st post. Deodexing SGS1 stock roms was simple compared to SGSII. I used xUltimate for that purpose.

Anyways, I'm having a problem flashing deodexed (JPKJ2-2.3.5); I'm following all of your instructions. But after flashing it, it enteres bootloop.

Then I've to replace the deodexed app and deodexed framework with the original odexed files into the update.zip and after flashing it boots without any problem.

Even if I use ADB to replace the odexed files with deodexed (app & framework), it starts bootlooping.

Could you plz tell me what is going wrong? Is it my ROM or anything else I need to learn?

Also what is meant by step 4 "bis" ?? After starting the process when I open that .txt file, there is already Samsungapps written in the list.

Thanks in advance,

Regards,

buntoo
[Galaxy S II Themes and Apps] AJ.Rockwell:
Thanks to your awesome guide I successfully built my first ROM from the LA4 base :D

Now that I earned a small achievement for myself, I'm going back to my nandroid (if anyone is interested in the ROM send me a PM :D)

Cheeers!!
[Galaxy S II Themes and Apps] panteleimonov:
same problem here ?:confused:
[Galaxy S II Themes and Apps] AJ.Rockwell:
Hmmm what ROM base are you trying to deodex? Have you tried perhaps replacing the binaries with newest (bak)smali?

http://code.google.com/p/smali/
[Galaxy S II Themes and Apps] panteleimonov:
XWLA4 im trying.

how can i replace this? some explain? tnx a lot!
[Galaxy S II Themes and Apps] panteleimonov:
again error... doh how i can i replace the new (bak)smali thing and what i have to download? pls guys help..so want to make my own ROM..
[Galaxy S II Themes and Apps] steslatt:
Is the _Kit_Deodexage folder on the root of your C drive? eg C:\_Kit_Deodexage

It won't work if its not, it has to be on the root of C drive not in any other folders.

To update the binaries just go to http://code.google.com/p/smali/downloads/list

download smali-1.3.2.jar and baksmali-1.3.2.jar, rename them to just baksmali and smali then copy and replace them in the _binaries folder inside the _Kit_Deodexage folder.
[Galaxy S II Themes and Apps] al_madd:
Ok..

compiled my first ROM of my life..hahah
[Galaxy S II Themes and Apps] al_madd:
Just compile my ROM..

after flashed it...it stuck at bootloops..any idea??
[Galaxy S II Themes and Apps] hielo_te:
Nice work man! Im doing it..

Btw, can i leave the modem and zImage out of my new rom?

Sent From My GT-I9100
[Galaxy S II Themes and Apps] bluflight:
Hi freinds, thanks for this useful thread! But i have some problem, in last step when i start Deodex_Gingerbread i see in cmd screen that i have only errors and not understand why.. The folder is in c: and i have install the last java jdk and i have read and do all step by step.. I all work with windows 7 x64, maybe can be this the problem?

I have also try with deodexage kit fix i found some post ago with ics fix but also that give me the same problem, with ginger or ics samsung firmware is the same issue..
[Galaxy S II Themes and Apps] shahed26:
Can you please update this thread to support ICS aswel.

Thanks in advance
[Galaxy S II Themes and Apps] firefds:
You can just use dsixda's kitchen. Google it, as in don't have the link right now
[Galaxy S II Themes and Apps] shahed26:
Yeh i have used the latest version of dsixda but for some reason in my custom rom inside zip file i get a flash img file about 50mb in size and after flashing i get error samsung imei stopped working.

So i was just looking for an alternative solution to build custom rom.
[Galaxy S II Themes and Apps] firefds:
Flash a stock rom and root it.

With root explorer take out the /system/bin and /system/fonts and save them on your pc.

When you use dsixda's kitchen, right after you extract the factoryfs.img copy those folders into the extracted folder you got (replace files if needed).

Now you can continue normally and everything will work.

(Its a symlink problem..)
[Galaxy S II Themes and Apps] shahed26:
Thanks mate. Will try this method and see how it goes. Hopefully i will be able to build my first error free custom rom :)

Thanks once again :D
[Galaxy S II Themes and Apps] suwandiapr:
I try to extract system.img from ROM package my galaxytab 8.9

I try this method coz its use ext4 too..

but i get the error message with "invalid header" ..

I use this tools from command prompt like this..

java -jar sgs2toext4.jar system.img system.ext4.img

what must i do for this tool can read this .img?

Sorry for a noob question..

this is error message from converting process

exception in thread "main" java.io.IOException:Invalid header
at dk.znz.sgs2converter.Sgs2Converter.convert(Sgs2Converter.java:52)
at dk.znz.sgs2converter.Program.main(Program.java:58)
at dk.znz.sgs2converter.DropFrame.main(DropFrame.java:110)
[Galaxy S II Themes and Apps] malibu_23:
Will this method work for say the sprint galaxy nexus?

Sent from my Galaxy Nexus
[Galaxy S II Themes and Apps] E:V:A:
That jar need to be ran from Windows, not on command line. (I have no idea why, and I don't care.) So just double click on the icon! Then you'll be presented with a "drop" window where you drag n droop the image file.
[Galaxy S II Themes and Apps] :
But you need Java runtime enviroment [or development] x86 installed. On windows x64, you still need the x86 java, and other tools like bat and other things running on cmd 32 bits. For that, just go %systemroot%\SysWOW64\ and open cmd.exe [if it doesnt work, try opening as administrator]. After that, navigate to your folder, like "cd c:\workspace" and enter the name of the file.
[Galaxy S II Themes and Apps] Morngkilr:
so if i want to convert the odin flashable stock Bell canada ics firmware..... would i just about go ahead the same way??

just trying to dualboot cm9 with stock bell ics...
[Galaxy S II Themes and Apps] Arnadel:
Working on ICS Firmware ?

In kit_deodexage I can't find deodex_IceCreamSandwich.cmd ???
[Galaxy S II Themes and Apps] fabzbear:
Following these steps to make a deox Rom will I be able to have root in the Rom?

Meaning when I make it and I flash it on a rooted phone, when flashed will the phone remain rooted or change to un-rooted for to the stock Rom I made?
[Galaxy S II Themes and Apps] mahanddeem:
superuser apk is already in the custom rom template so it's rooted from the factory :laugh:...

OP you're purely GREAT ..

Thanks for introducing me to this world
[Galaxy S II Themes and Apps] markusf21:
Thank you OP. I was looking for something like this

Sent from the AOKP Galaxy
[Galaxy S II Themes and Apps] Primokorn:
Hi

I'm trying to extract a specific apk (called Cityzi) from an official rom by Orange (french telephone company).

1/ I downloaded the following firmware: I9300BVBLH2 October, 2012

2/ I extracted the file to have :

* boot.img

* cache.img

* hidden.img

* modem.bin

* recovery.img

* system.img

3/ I thought that the required apk file was in system.img

4/ I used "sgs2toext4.jar" to obtain system.ext4.img

5/ I mounted this new img with DiskInternals Linux Reader to I had some apk files but not the one I'm looking for... :crying:

Is it possible that the Cityzi apk is in another img file?

Because I tried to convert the other img files (recovery.img for example) with sgs2toext4.jar but the process was not finished after 1 hour so I closed the software.

Hope I'm clear enough and I'm english is not so bad! ;)

Thanks a lot.

EDIT

I'm know that the rom is for SGS3 ;)
[Galaxy S II Themes and Apps] Dark Emotion:
Maybe you need to extract it from the CSC? I am not sure but you can take a look.
[Galaxy S II Themes and Apps] Primokorn:
CSC is the "modem.bin" file if I'm not mistaken and we can only use .img file with sgs2toext4.jar.
[Galaxy S II Themes and Apps] Dark Emotion:
I used dxisda's kitchen to customise rom's and during the process it would ask you to extract the CSC (which contains carrier's bloatware). I am not sure where the CSC is located (didn't repack rom for a long time).
[Galaxy S II Themes and Apps] Primokorn:
I have to follow this guide I suppose: http://xdaforums.com/showthread.php?t=1939420

EDIT

Sorry, this one: http://xdaforums.com/showthread.php?p=32854889#post32854889

EDIT 2

Too much complicated for me I think... Too bad.
[Galaxy S II Themes and Apps] Razorwindmo46:
Will this work for the SPH-L710? Someone in the forum for this phone posted this.
[Galaxy S II Themes and Apps] omarilzz:
Will it convert ext4 to img

Will it convert ext4 to img:confused:
[Galaxy S II Themes and Apps] tedascuen:
Try in cache.img (save sec_csc.zip from cache.img and unzip it)

Or try in hidden.img

You can use sgs2ext4 to convert img 2 ext4 and load ext4 with diskinternal linux reader.
[Galaxy S II Themes and Apps] sandyworld25:
I am facing a problem(extracting file is 0KB) while extracting system.img of samsung j1 through both sgs2toext4 and ext4_unpacker_exe i tried the same software to extract the system.img of karbonn but it works for that. So can you guys tell me why i am facing this problem and what can be the solutions.
[Galaxy S II Themes and Apps] nirsanyou:
Thank you for sharing
[Galaxy S II Themes and Apps] walda:
in same folder as input file.

sent from my SGSII via T*patalk
[Galaxy S II Themes and Apps] xinfinityoO:
anyone found a fix for this.. getting them from another deodex rom deficits the purpose..as you already need to find the corresponding rom so why would you want to make your own.

Its a great guide ..trying it out myself. but what if there isnt a deodex rom available.. then how do we fix this ??

thanks
[Galaxy S II Themes and Apps] sicopat:
I am working on it.

I try to do it manually, looking for bootclasspath
[Galaxy S II Themes and Apps] veescript:
I'm stuck at Deodexing

it says: "Error while reading boot class path entry framework.jar"
[Galaxy S II Themes and Apps] LeoMar75:
I already tried to manually deodexing these two apps without any success even adding bootclasspath.

I think that there is some debug code inside that needs some extra dependencies that are not among the jar and odes files we have.
[Galaxy S II Themes and Apps] sicopat:
From memory, they ask about com.android.maps.overlay

I think this is in Maps.apk ???
[Galaxy S II Themes and Apps] ransagy:
Running the deodex_gingerbread.cmd gives out A LOT of java exceptions/errors, similar to what vincenzo91 describes - About not finding the boot class path.

Like said before in the thread, /app and /framework have a lot of files left over, as well as some files in the deodexed directory counterparts.

Tried with stock KE7 ROM from intertech's thread.
[Galaxy S II Themes and Apps] Mackzen:
Think I successfully deodex email.apk with this command:

java -jar baksmali.jar -c :twframework.jar:com.google.android.maps.jar: -x Email.odex -I

tested and seems to work but a lot of error message :)
[Galaxy S II Themes and Apps] veescript:
I tried with XXKF2
[Galaxy S II Themes and Apps] xinfinityoO:
boot loop .. even with the wipe.sh

was trying with KF2.

do we still use the skeleton folder you provided. Why cant we use the same folders from the Original ROM
[Galaxy S II Themes and Apps] Mackzen:
Rom boot up fine but then restarts every 5 second.

I have used another deodex script and flashed through odin.

I keep learning :)

edit: after factoryreset I think all works :)
[Galaxy S II Themes and Apps] xinfinityoO:
could you share the script and the methods used..

thanks
[Galaxy S II Themes and Apps] Mackzen:
I have used this linux script http://xdaforums.com/showthread.php?t=909149

(you will need to modified some boothclass)

Here is a good site to understand the deodexing http://wiki.sdx-developers.com/index.php/How_to_deodex_a_ROM
[Galaxy S II Themes and Apps] insty:
Managed to build a KF2 rom with no problems. Thanks :)
[Galaxy S II Themes and Apps] sicopat:
I already built an KF1 and KF2 deodexed ROM without problems.

You should use the Laggy Browser Fix from LitePro. In the LitePro browser.apk, you push the META_INF of your stock Browser.apk and you reuse the script to resign and zipallign :)
[Galaxy S II Themes and Apps] Mackzen:
Is there anyone that can take an look at this? http://pastebin.com/umq9Rc1s

When I turn wifi on, the device keeps restarting every ~5 seconds.

Thanks!
[Galaxy S II Themes and Apps] GanGs_KiD:
Hi :)

i am trying to deodexing MobilePrint.odex but :confused: i can not

Help me please

java -jar baksmali.jar -c :com.google.android.maps.jar:twframework.jar -d fm -x MobilePrint.odex

Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find sup
erclass Ljavax/swing/table/AbstractTableModel;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPa
th.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:
668)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280
)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:16
3)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:98)
at org.jf.baksmali.main.main(main.java:278)
Error while loading class Lcom/strangeberry/jmdns/tools/Browser$ServiceTableMode
l; from file MobilePrint.odex
Error while loading ClassPath class Lcom/strangeberry/jmdns/tools/Browser$Servic
eTableModel;

Thank you
[Galaxy S II Themes and Apps] Mackzen:
try this

java -jar baksmali.jar -x -I mobileprint.odex
[Galaxy S II Themes and Apps] xinfinityoO:
doesn't work..i think i give up...tried so many but nothing works on windows.. email and mobileprint not geting deoxed
[Galaxy S II Themes and Apps] D.O.C:
same problem here......and I dont want to "steal" apk from other roms...
[Galaxy S II Themes and Apps] sicopat:
I am shure we will find.

For the moment, it's concerning 2 apk whitch are not realy often Moded. You will find them from others deodexed ROMS. Event Pulser and LitePRO are using old versions of browser.apk in order to fix the Lag scroll.
[Galaxy S II Themes and Apps] D.O.C:
Fair enough..thanks for everything...this is defibetively a step toward a kitchen :)
[Galaxy S II Themes and Apps] ransagy:
So no one else got the same infinite errors i did?

Did anyone try with the XWKE7 ROM?

I suppose i'll just have to go at it manually..
[Galaxy S II Themes and Apps] D.O.C:
Well, even after borrowing apks from another kf2 and flashing zip files it enters a bootloop, im using full wipe, logcat doesnt even show.....maybe it is a problem with flashing script and setting permissioms?

..thanks for ur work by the way...im learning a lot here.....
[Galaxy S II Themes and Apps] xinfinityoO:
i hve the same problem
[Galaxy S II Themes and Apps] sicopat:
Hi, I don't have trouble with this script.

i already built KF1 and KF2 customROMs with it and flashed my GS2 several times without troubles.

Do you have the wype.sh in /system ??

But This script is an example, you can try an other and share your experience.
[Galaxy S II Themes and Apps] mostyle:
sicopat,

you were able to fully DeOdex KF1 and KF2?
[Galaxy S II Themes and Apps] ransagy:
I tried deodexing XWKE7 manually and pretty much got to the same results - Email.odex wants java.awt.image and MobilePrint.odex wants javax.swing.abstracttable.

Both are graphical libraries in Java, but i can't find anything in the ROM itself that contains them. Maybe Samsung used something else that isn't in the ROM.
[Galaxy S II Themes and Apps] D.O.C:
Jep. I understand you 100% percent......yea wipe.sh is present...im following the guide exactly nad still get same issue deodexing those.files......im beggining to think is cpu / ram related on pc as some of u aint got that problem and some of us do.....anyhow.....im sure we will sort it out eventually......starting the procedure fresh, one more try...again...lol
[Galaxy S II Themes and Apps] MCOGW:
Just an (weird) idea:

Did anyone already try to add rt.jar (located @ /lib subdirectory from jdk) to BOOTCLASSPATH while trying to deodex Email.odex/.apk?

Because this is the .jar where java.awt is located (in the normal Java world ;) ) by default...
[Galaxy S II Themes and Apps] ransagy:
I did; However, baksmali won't accept it since it has no classes.dex file (obviously).

I basically generated a long list of every jar in framework/ and every apk in app/ to use as boot class path lookups, and nothing resolves the issue.

It DOES change it to a different error (missing another java networking class or something along those lines).
[Galaxy S II Themes and Apps] drphrozen:
Alternative to Convert_sgs2img.exe

i've converted the Convert_sgs2img.exe code to java, and has optimized it a bit, which means it is much faster, cross platform and shows progress. Hope someone finds it useful.

plz, don't ask me what exactly the program does, ask the maintainer of this thread, credits to those who created the code for this converter

regards, drphrozen
[Galaxy S II Themes and Apps] omrij:
You can use AutoDeoTool

http://xdaforums.com/showthread.php?t=1053227

turn ignore mode to on in order to successfully deodex email&mobile print

you'll get errors but they work
[Galaxy S II Themes and Apps] sicopat:
Thanks to drphrozen and omrij.

I have edited the first post to add the java sg2converter.zip and gave the link to AutoDeoTool

Lets go people, CustomROMs are here !!
[Galaxy S II Themes and Apps] Mackzen:
my problem with wifi is still there. Turning on wifi force the device softrestart every ~5 seconds.

logcat http://pastebin.com/kUJEnPPt
[Galaxy S II Themes and Apps] sunwee:
browser lag when deodex using script. i am on kf2. is there anyway to overcome this?

i try vrtweak fix but it cannot connect. possible someone can upload the browser.apk? thanks in advance.
[Galaxy S II Themes and Apps] sicopat:
Hi, I had the same problem and asked an answer there : .../showthread.php?t=1125178

It seems to have an unidentified problem with recent Browser.apk.

The current solution (used by many) is to use an old version of stock browser.apk.

You could use the Laggy Browser.apk fixed by LitePro, in his Lite'ningROM thread.
[Galaxy S II Themes and Apps] D.O.C:
Same errors using that tool...on same apks and more...lol...thanks for the alternative anyhow.....

I got an idea......why dont you guys post a stock deodexed kf2 so we can play a bit......i currently have no intention of buying a new pc :-( which I think is the problem.....i got a fully working lucid port to villain rom...but honestly i dont want to depend on other rom updates as i mod hosts. Gps.cong. Media xmls came etc.....theming is one part, java hacking is another but honestly, tomorrow if villain releases update i will have to redo all of it...lol

Anyway thanks, and if some kind soul wants to upload a stock deodexed zip file im sure lots of us with issues will be grateful...cheers.
[Galaxy S II Themes and Apps] sicopat:
I think its possible.

I am currently hospitalised but when back home I could upload the stock deodexed KF2 firmware.

You can see what I did there (french sorry) : http://www.galaxys2.fr/forum/viewtopic.php?f=12&t=1774

And with Google translation : HERE

It's a noob work, by the way :D

You wasn't able to use Email.apk and MobilePrint.apk even with errors using AutoDeoTool ?
[Galaxy S II Themes and Apps] D.O.C:
WTF? you are hospitalized mate?, damn, I really hope you are alright, sorry for us being such a pain in the ash.......

yeah, didnt boot, but I guess you would have to resign those two apks with the tools you gave us for them to work right?....hehehe....nooobing here too.

Really nice job, I see you have your own custom rom....nice
[Galaxy S II Themes and Apps] sicopat:
Thanks, That's right for the signature.

For tmy customROM, I just took icons and used Mods already posted here.

The limit is that not every devs post the line commands to modify. Some just post a modified apk for one firmware. :(
[Galaxy S II Themes and Apps] omrij:
I'll upload /app and /framework of I9100XXKF2/I9100OXAKF2/I9100XXKF2 rom

By the way, you ave to use custom bootclasspath in order to deodex (I forgot to mention)
[Galaxy S II Themes and Apps] Mackzen:
Anyone know an helpful person I could pm? I specially need help to read my logcat.
[Galaxy S II Themes and Apps] D.O.C:
Ok, tried again without a luck....I will try now with kf3 and kf4......maybe I will get lucky there....
[Galaxy S II Themes and Apps] omrij:
http://www.multiupload.com/4DWKMF13C5
[Galaxy S II Themes and Apps] xinfinityoO:
can you write/tell the custom bootclasspath you used..

thanks
[Galaxy S II Themes and Apps] sicopat:
+1 :D i will appreciate and will complete my How to
[Galaxy S II Themes and Apps] omrij:
I was lazy, I just used all the framework jars

am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:javax.obex.jar:libvtmanagerjar.jar:monkey.jar:pm.jar:sec_feature.jar:seccamera.jar:sechardware.jar:secmediarecorder.jar:services.jar:sqlite-jdbc.jar:svc.jar:twframework.jar
[Galaxy S II Themes and Apps] mabmed:
Thanks.. Does this deodex Rom work correctly? can i flash it via odin? :confused:
[Galaxy S II Themes and Apps] D.O.C:
Thanks mate.n...this one is signed with the tool posted here right?...is there any apk or jar missing?...thanks a lot bro..
[Galaxy S II Themes and Apps] D.O.C:
Its only apps and framework folder.....isnt flashable.....needs all libs. Media. Etc
[Galaxy S II Themes and Apps] ransagy:
So far, Only Settings.APK (and obviously Email and Mobileprint) has issues after deodexing - I get FC's when trying to enter any menu that has anything to do with Wifi (Wifi, Wifi Direct, Portable Hotspot Tethering, etc).

I'll check later and see what i get under logcat for those.

EDIT: here we go - http://pastebin.com/88K0cASf

Clearly, Settings.APK didn't deodex well for me, although i recall no errors in doing so. I'll try deodexing just that again.

EDIT2: Yeah, Apparently baksmali still generated output and compiled it even with the error despite me not giving it the -I(gnore) flag. Recompiled with proper boot classes (twframework.jar) and FC's are gone. I'm going to do the whole deodex stage again and log the output just to see if others have the same issue.
[Galaxy S II Themes and Apps] ransagy:
Here's what i used to deodex everything but Email/MobilePrint:

framework/twframework.jar:framework/com.google.android.maps.jar:framework/seccamera.jar:framework/core-junit.jar:framework/secmediarecorder.jar:framework/javax.obex.jar:framework/libvtmanagerjar.jar

The order might be a bit wrong, Because framework/ext.odex took two tries, without me adding or changing the boot classes path.
[Galaxy S II Themes and Apps] ThiaiZ:
What do i do with the sgs2converter.jar?
[Galaxy S II Themes and Apps] drphrozen:
java -jar sgs2converter.jar "inputfile" "outputfile"

fx: java -jar sgs2converter.jar "factoryfs.img" "factoryfs.ext4.img"
[Galaxy S II Themes and Apps] sicopat:
Witch firmware did you try to deodex ? I didn't had troubles with settings.apk deodexing KF1 and KF2 firmware.
[Galaxy S II Themes and Apps] D.O.C:
Same here..no prob on settings.apk

Nevertheless, I ran into a bunch of errors when moving all the folder to root of my HD...when doing deodexing on desktop errors only on same two apks as always....that got me thinking...

How are pulser, des, and the other already deodexed roms got theirs?...has anyone asked them?, just dont want to ask same question twice....
[Galaxy S II Themes and Apps] ransagy:
I posted about it before, XWKE7 :)

But as you can see from the edits, I sorted those out, i wasn't including one of the dependencies in the bootclass path and baksmali just ignored and compiled anyway since it was just one method that was unresolved (without me using the -I flag). Recompiled, voila.

About the other two, I thought about asking them, I suppose we could. I'd really like to know what Samsung did there, Because it looks like they ported over some of Java.