*{HOW TO}{TEAM REJECTS}{Windows} Quick DECOMPILE/COMPILE - Jelly Bean updated 7/1/13

lorjay589

Senior Member
Oct 25, 2010
1,427
2,652
0
Baltimore, MD
TEAM REJECTZ QUICK JB FIX

If anyone was having a problem with adding the 15 toggles, now just pull the classes.dex file out and quick baksmali/smali to fix it. Even though it
compiled correct it still didn't lol if you get that, but now its fixed



Since i did this for the E4GT i figured i would do the same. Well since the bean is here​



1. You need to make sure you have the latest java

2. Download Notepad++ (google it) lol

3. Download the Team Rejectz Quick JB Fix (the latest one) which is linked below


Instructions Decompile/Recompile




1. UNzip and place the JB Quick Fix Folder on your c: drive and name it apktool

2. Since this is TW/CM10 you should drag your framework-res.apk, twframework-res.apk, and systemUI.apk onto the apktool-if cmd file

3. Now time to decompile. You can actually drag your apk from where ever its located but i suggest you place them in the Quick Fix folder.
and drag and drop it on top of the Quick-Deompile cmd file

4. To get an error less decompile i prefer you to use the stock apk

5. Once the decompile process is done. you can go into the apks folder that was created and make your edits with notepad++

warning if you create to many edits that would cause and error. then begin the process over but do them one by one

6. Now its time to recompile ^^^^^^^^^remember the warning^^^^^^^ drag and drop the apks folder on top of the Quick-Recompile cmd file

7. Now once your done go into the apks folder you should see dist folder. Your new compiled apk is located there. I prefer to just use the build folder and drag the things I need into the apk. Much easier. Also remember if any images has been added you need to make sure you drag the new arsc file because the public.xml may have been changed

8. Don't worry about signing the apk. All of your edits besides the ones in drawable folder will be in the resource.arsc file

9. Drag that file into the apk thats in the rom your editing

10. If you decide to edit the decompressed .9 images you can check my Team Rejectz Theme Cheat Sheet located >>>Here



Baksmali/Smali​



1. Grab the apk/jar file you want to edit

2. Drag the classes.dex file out of the apk/jar file

3. Drag and drop the classes.dex file onto the Quick-Baksmali cmd file

4. A smali folder will be created

5. Now you can make your smali edit inside of the smali folder and close and save them.

6. After the edits and save, drag and drop the smali folder on top of the Quick-Smali cmd file

7. You should now see a new file called new-classes.dex. rename it to classes.dex

8. Finally drag the classes.dex file into the original apk/jar you pulled it from

If this helped you in anyway just hit that thanks button thanks!!!!!!!!!!


Download:

Team Rejectz Quick JB Fix 2.5


Change Log

Quick Fix 2.5

Faster Compile times and Less errors
Updated to apktool 1.5.2, left the older ones in
Updated aapt to most recent
Updated baksmali/smali to 2.0
 
Last edited:

JoshBeach

Inactive Recognized Developer
Dec 19, 2007
4,692
31,810
0
Upstate NY
Thanks fpr sharing... unfortunately i cant get it to work...

not sure what I am doing wrong.

i grabbed the 3 files from the zip, moved them to a folder on my desktop, then dropped them in the apktool-if cmd.

then grabbed the systemui, and dropped on the quickdecompile cmd, and nothing is happening.

what else do I need to do?

Thanks again for the tool, hope I can get it working...
 

lorjay589

Senior Member
Oct 25, 2010
1,427
2,652
0
Baltimore, MD
Thanks fpr sharing... unfortunately i cant get it to work...

not sure what I am doing wrong.

i grabbed the 3 files from the zip, moved them to a folder on my desktop, then dropped them in the apktool-if cmd.

then grabbed the systemui, and dropped on the quickdecompile cmd, and nothing is happening.

what else do I need to do?

Thanks again for the tool, hope I can get it working...
Put the folder on the root of your c: drive and name it apktool.

Sent from my SPH-L710 using xda premium
 

lorjay589

Senior Member
Oct 25, 2010
1,427
2,652
0
Baltimore, MD
got systemui decompile, but with errors, brut.something. tried recompiling, but still errored, even without making any changes.

:(
If you worked on a ics rom and you did the apk-tool if then you need to do the jelly bean frame. But if thats not the case post a pic of your error so I can tell you whats wrong


Sent from my SPH-L710 using xda premium
 
  • Like
Reactions: venkat kamesh

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
15 toggle classes.dex figured out and updated. now just pull the classes.dex out and use the quick smali and baksmali
Nice. Where are all the Rejectz threads here? We got mijjah representing? whats going on up in the S3 section.. Do I really have to go out and buy another phone just to put some awesome stuff here?
 

Stryke_the_Orc

Retired Senior Moderator
Oct 14, 2010
6,782
8,998
0
Maras Dantia
I keep getting this error when trying to decompile SystemUI.apk
Code:
[*] SystemUI.apk 
decompiling SystemUI.apk... 
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
is there anything I can do to fix this?:confused:

Nevermind, I don't think I need it. Pretty sure I can do it in 7.zip
 
Last edited:

lorjay589

Senior Member
Oct 25, 2010
1,427
2,652
0
Baltimore, MD
I keep getting this error when trying to decompile SystemUI.apk
Code:
[*] SystemUI.apk 
decompiling SystemUI.apk... 
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
is there anything I can do to fix this?:confused:

Nevermind, I don't think I need it. Pretty sure I can do it in 7.zip
did you do the apktool-if instructions. and also, if this problem continues. drag out the classes.dex file and it will decompile. and use baksmali to decompile the classes.dex file
 
  • Like
Reactions: Stryke_the_Orc

Stryke_the_Orc

Retired Senior Moderator
Oct 14, 2010
6,782
8,998
0
Maras Dantia
did you do the apktool-if instructions. and also, if this problem continues. drag out the classes.dex file and it will decompile. and use baksmali to decompile the classes.dex file

Found my error. In the install process I went A.D.D. and added an extra directory so nothing wanted to work properly. Fixed the directory and now the SystemUI.apk decompiled correctly, thank you for this tool :good::D
 

lorjay589

Senior Member
Oct 25, 2010
1,427
2,652
0
Baltimore, MD
Found my error. In the install process I went A.D.D. and added an extra directory so nothing wanted to work properly. Fixed the directory and now the SystemUI.apk decompiled correctly, thank you for this tool :good::D
ok cool no problem, and remember its best to make changes 1 by 1, and compile. so you could no each and every error. it also tell u what went wrong so read it carefully. it would also tell you which line in a xml is causing problems
 
  • Like
Reactions: Stryke_the_Orc

e1ement08

Senior Member
Sep 30, 2011
287
58
0
Since this thread was dug up I just want to say that's an awesome little guide for decompiling lol. Just what I have been looking for.

Sent from my SPH-L710 using xda app-developers app