This is an Easy Tutorial, How to Decompile .apk and Recompile .apk FilesIf u like this Tutorial, Hit THANKS ButtonCREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, for making how to decompile and recompile .jar files,soon
Reserved 2, if I get time I wil add a video tutorial too!
FAQ'sWhy can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
x.r3y said:
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
Click to expand...
Click to collapse
That's the decompiling ment for !
StAnLiN
stanlin salu said:
That's the decompiling ment for !
StAnLiN
Click to expand...
Click to collapse
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Aeron sagar said:
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Click to expand...
Click to collapse
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
yes bro apk in dist but it gives bootloop ...
Aeron sagar said:
yes bro apk in dist but it gives bootloop ...
Click to expand...
Click to collapse
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Aeron sagar said:
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Click to expand...
Click to collapse
Haha, don't worry that's not an error, the path of dist was manually set so u get that message, actual 'errors' u will get under these note (if u have committed any error in editing), if get only these messages then ur apk is successfully recompiled :thumbup:
Sent from my Xperia Live with Walkman using Tapatalk 2
Teach me
guys i dont even get a stightest idea to decompile and recompile......... is there any application which can look into .apk files and also allow it to edit???????
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Ben Ling said:
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Click to expand...
Click to collapse
i dont see any error in it...its done recompiling ...
ya the size will be reduced based on ur apk tool compression level
while recompiling it shows error,.... "destination could not be found "
Thank you very much for the tutorial.. very helpful... :laugh:
I don't think so it works for JB
Can't decompile SystemUI of JB.
[*] "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"
decompiling "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\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.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
Click to expand...
Click to collapse
androidnerd2 said:
I don't think so it works for JB
Can't decompile SystemUI of JB.
Click to expand...
Click to collapse
try this both update ur aapt or install the proper framework's first
thank her tutorial ata friend
Sent from my Xperia Tipo using XDA Premium 4 mobile app
Related
We are all here to learn, take from community and give back to community!!!
@Lord ClockaN
Hya guys, after A LOT of requests, I decided to share with the community something that I found really REALLY useful for Dev's but also for other users too that want to mess up with compiling and decompiling process. Usually, non problems at all with that, but since ICS come out, many dev\users are not able to decompile\compile properly many ics apk (not all). This guide will ensure you a good result, 100% working, easy, and fastest way to mess up with ics for theming and resizing purposes, or whatever you want
BIG THX to my friend and Dev teammate @Bichon for this
Credits
@Bichon (yes, again)
@Xavierjohn22, the amazing author of AutoApktool! Visit his thread HERE, click his thanks button, and support his work with donations, and my personal thanks to author for this tool which is the most powerful and easiest tool ever.
@Brut_all for Apktool
@XDA Community
@Google
About Apktooll
Please consider to visit the original thread about this tool, because what I'm explaining here is just 1\10 of the real skill of this tool. You can do basically whatever you want with AutoApktool, themers will love it, Dev's will appreciate it a lot, I'm sure.
Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail.
Requirements (Windows environment, mine is Seven 64 bit)
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
SDK (last 3.0 version for ICS source code)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS!!!)
HOW-TO (NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version!!)
1) Download and simply unpack Auto_ApkTool 2.0.0
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to mess up with in "_INPUT_APK"
4) you can chose more than one option to decompile (option 6 is strongly recommended)
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, snali, or png, doesn't matter)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) you MUST sign the apk with option 10 (NOTE: drag the apk from dist folder to the prompt, then press enter, and in the SAME folder, a signedxxx.apk will appear)
11) Rename the apk, and push it |NOTE: you can push the apk with 62 option or with sdk typing:
Code:
adb remount
adb push xxx.apk system/app
adb reboot
That's it
NOTE FOR SAMSUNG USERS
Samsung changed some Hex value in the compiled dex code.
It has nothing to do with resources apks or anthing.
If you want to decompile those apks you have to do the follwing:
Using 7zip extract the classes.dex file from the apk and save it somewhere.\
Delete the classes.dex file from the apk.
Now you can decompile the apk using this tutorial.
If you want to decompile the classes.dex to edit the smali code, download baksmali 1.3.2 and smali 1.3.2 and use them to decompile and recompile the classes.dex.
After you recompiled the edited smali code, just drag back in the new classes.dex file you made.
this won't be fixed until Brut will make a new Apktool, or someone inserted the new baksmali/smali code into apktool
THX @Firefeds
When you're in trouble...try this one, you can apply the following method to the op too
Downloads:
http://code.google.com/p/smali/downloads/list
smali/baksmali editing v1.3.2
- Download both smali and baksmali v1.3.2
http://code.google.com/p/android-apktool/downloads/list
This is the latest apktool used to compile/decompile .apk.
Download apktool1.4.3.tar.bz2 and apktool-install-windows-r04-brut1.tar.bz2 for Windows or
apktool-install-macosx-r04-brut1.tar.bz2 and apktool-install-linux-r04-brut1.tar.bz2 for Mac. Follow the instruction on installation.
Step by step:
1. Extract the classes.dex from the desired apk.
2. Decompile it with baksmali v1.3.2 (for modding smali)
3. Recompile classes.dex with smali v1.3.2.
4. Decompile the apk with apktool (without classes.dex in the apk itself).
4a. Modify the apk however you want to, adding your changes.
4b. Recompile it with apktool.
5. Put the modified apk back into classes.dex.
6. Sign the apk.
thx @djolebih
You're the boss man ^_^
Great work.
great tutorial
zFr3eak said:
great tutorial
Click to expand...
Click to collapse
Thx my friend, I have a great team behind the scene
Awesome bro!
I shall include your insight on the official Smartdroid website too.
Keep it up your contribution to the DHD community is invaluable.
mattkle said:
Awesome bro!
I shall include your insight on the official Smartdroid website too.
Keep it up your contribution to the DHD community is invaluable.
Click to expand...
Click to collapse
thx bro, hope people find it useful, you too
Well done Mem!! This will be so much usefull when ICS Sense ROM will arrive for DHD!!
OrcoX1iSE said:
Well done Mem!! This will be so much usefull when ICS Sense ROM will arrive for DHD!!
Click to expand...
Click to collapse
Ics Sense rom is already available for dhd LOL
Thx anyway
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Great tutorial mate. As soon as I come home ill try. I am moving my theme to the ICS and I hope this works with samsung ics apps
All the best,
Vert
---------- Post added at 09:59 AM ---------- Previous post was at 09:43 AM ----------
It doesn't work with bloody samsung ics apps...
[*] C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\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.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
memnoc said:
Ics Sense rom is already available for dhd LOL
Thx anyway
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Click to expand...
Click to collapse
Really??? Where is related thread? The only one I've found have too much modules that doesn't work (e.g. wi-fi, gps), so I mean something usable!!!
OrcoX1iSE said:
Really??? Where is related thread? The only one I've found have too much modules that doesn't work (e.g. wi-fi, gps), so I mean something usable!!!
Click to expand...
Click to collapse
then u should have said "when a fully working ICS will come out"
Vertumus said:
Great tutorial mate. As soon as I come home ill try. I am moving my theme to the ICS and I hope this works with samsung ics apps
All the best,
Vert
---------- Post added at 09:59 AM ---------- Previous post was at 09:43 AM ----------
It doesn't work with bloody samsung ics apps...
[*] C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\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.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
Click to expand...
Click to collapse
mate make sure u have loaded all resources apk, then follow the errors, isn't a tool fault for what I can see...u edited some smali right?
thanks for all user would mod ics apk and thanks for put my name in OP..
BiCh0n said:
thanks for all user would mod ics apk and thanks for put my name in OP..
Click to expand...
Click to collapse
it's absolutely a pleasure, thx to you
Thanks for this great tutorial memnoc.
But when you create your own app you can checkout your project in eclipse or something like this. Ive read that this is for security that your app cant be decompiled.
Will this program decompile such apk's too?
0utl4wZ said:
Thanks for this great tutorial memnoc.
But when you create your own app you can checkout your project in eclipse or something like this. Ive read that this is for security that your app cant be decompiled.
Will this program decompile such apk's too?
Click to expand...
Click to collapse
can't follow u mate, give me an ex so i can understand what app r u talkin about
memnoc said:
can't follow u mate, give me an ex so i can understand what app r u talkin about
Click to expand...
Click to collapse
Is there a difference between market and system app? I'm talking about normal market apps, which you can build in java with eclipse. There is a choice to publish. I don't know the right name there. With this the apk should built that you can't decompile this. (So I read it)
But if there is a difference you can decompile all system apks without problems? This would be very nice
0utl4wZ said:
Is there a difference between market and system app? I'm talking about normal market apps, which you can build in java with eclipse. There is a choice to publish. I don't know the right name there. With this the apk should built that you can't decompile this. (So I read it)
But if there is a difference you can decompile all system apks without problems? This would be very nice
Click to expand...
Click to collapse
Guess yeah, but you should try, I don't create the tool i just posted a way to use it changing aapt and make it ready to use for you
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
memnoc said:
mate make sure u have loaded all resources apk, then follow the errors, isn't a tool fault for what I can see...u edited some smali right?
Click to expand...
Click to collapse
I'm trying to decompile Contacts.apk and Phone.apk and getting same error message:
[*] C:\Android\AutoAPKTool2.0.0\_INPUT_APK\Contacts.apk
decompiling C:\Android\AutoAPKTool2.0.0\_INPUT_APK\Contacts.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.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
I had this message in ApkManager 4.9, 5.0.
Not new to themeing. Done my fair share and never had problem decompiling apps.
Did try to decompile framework-res.apk and it went through without any errors or problems. However the Contacts.apk for ICS will not decompile.
Guide to changing path thickness of Pattern Lockscreen to ICS style
I wandered places searching this off. I found some traces in direction of my destiny but none of them worked fully correctly
So, as stated, I searched a lot for this mod and came face to face with failures and smali errors. So, I had to figure it out myself some modification to do in it to make it work.
Note: IT is not COMPLETELY my mod but I have done modifications in it to make it work. This is based on a guide for Froyo outside of XDA.
Pre-Requisites:
1. PC with Java JDK or JRE
2. Deodexed ROM
3. 7-Zip
4. classes.dex decompiling tool
5. Notepad++
6. Patience
7. Carefulness for editing smali files
Let's Start
1. First we would have to decompile classes.dex inside framework.jar
For that, you can use my Tool ROM Tool v3
First using 7zip, Right click on your framework.jar and open it as archive and drag and drop classes.dex in input folder of the tool
(Note: If you don't have classes.dex in framework.jar [only META-INF and preloaded-classes.dex], then your framework isn't deodexed)
Now, open Script.bat and choose 1 (Decompile classes.dex)
2. Now, we will make the changes. Go to decompiled folder and go to \classout\com\android\internal\widget and open LockPatternView.smali in Notepad++
Search for mDiameterFactor:F [Ctrl+F]
See the code above it.
It should be like this:-
Code:
const[COLOR="Red"]/high16[/COLOR] v2, 0x3f00
If it is, then you will have to remove red part /high16
Because it will not allow the change of code we will be doing which will have a different hexadecimal value which will not be supported till this code is in effect
Now, it will look like this:-
Code:
const v2, 0x[COLOR="Red"]3f00[/COLOR]
Now, we will change the thickness value 3f00 to 3dcccccd
Final code will look like this
Code:
const v2, 0x3dcccccd
Save it
I am attaching final and before smali for comparison below.
View attachment 1936707
(Note: If you don't have /high16, it's good , then just change the value and save)
3. Go to Script.bat again and choose 2 (Recompile classes.dex) and after it's done, you will get classes.dex
Drop it in framework.jar
4. Push framewotk.jar in /system/framework
Eg:
Copy it in platform-tools folder of android SDK and type following with pressing Enter after each command
Code:
adb remount
adb push framework.jar /system/framework/
adb shell chmod 644 /system/framework/framework.jar
adb shell killall system_server
Last command will Hot Reboot your phone to apply changes. It is fast and better than rebooting phone.
5. Enjoy
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Before
After
Credits
A member from other forum to answer a question to other member of that forum
Google for letting me search somethings
Samsung Galaxy Ace s5830i members for supporting me so much
reserved!!!! :good::good:
zenxus31 said:
reserved!!!! :good::good:
Click to expand...
Click to collapse
For?
Don't post things like this in guide threads atleast. Reporting
A Hero Can Be Anyone.
Bruce Wayne said:
For?
Don't post things like this in guide threads atleast. Reporting
A Hero Can Be Anyone.
Click to expand...
Click to collapse
for question
zenxus31 said:
for question
Click to expand...
Click to collapse
Better go through this post. You need to I say. http://forum.xda-developers.com/showthread.php?p=40990860
A Hero Can Be Anyone.
U arE aWeSOME !!
I hav searched so many threads and forums for this ..!!
Thanks man!!
Sent from my GT-S5360 using xda app-developers app
question:
in the shell command,afaik chmod 777 is rw-r--r--
what is 644 stand for?
because adb and shell command new to me (i never use that,and still know little about that),so i want to apply the framework.jar manually via rootex
Sent by a Schoolar Boy Question? Better go to [Help Thread] by Deadly
Droid_beginner_student said:
question:
in the shell command,afaik chmod 777 is rw-r--r--
what is 644 stand for?
because adb and shell command new to me (i never use that,and still know little about that),so i want to apply the framework.jar manually via rootex
Sent by a Schoolar Boy Question? Better go to [Help Thread] by Deadly
Click to expand...
Click to collapse
alternate version.
4 - read (r)
2 - write (w)
1 - execute (x)
so 777 implies rwx rwx rwx
and 644 rw r r
Working good!
AaaaaaweSoooooomE
Sent from my GT-S5360 using xda app-developers app
Thank you all
Looking forward to learn more
Updated OP with some correction and link to RTv3
Can you pls make a flashable zip
Can't use my PC
Really want this badly
sent from my muffin phone
darkshadow246 said:
Can you pls make a flashable zip
Can't use my PC
Really want this badly
sent from my muffin phone
Click to expand...
Click to collapse
This isn't a universal mod as different ROMs have different framework.jar.
So, it can't be made into Flashable Zip
Sorry
Violaa..
That was my first modification by my self..!!
Thanks OP
sir areeb could help me how to add the pattern lock. in op edit only the thickness. my problems is in sgs3 rom dont have this pattern
ProGTXjay said:
sir areeb could help me how to add the pattern lock. in op edit only the thickness. my problems is in sgs3 rom dont have this pattern
Click to expand...
Click to collapse
It isn't possible(why would someone do that) for a ROM to remove Pattern lock!
It would be there is Settings/Security/Lockscreen
Hey I have changed the path thickness...
But how to change the thickness of those dots? Are they pngs or we have to edit some xmls for that too?
TheStrix said:
Hey I have changed the path thickness...
But how to change the thickness of those dots? Are they pngs or we have to edit some xmls for that too?
Click to expand...
Click to collapse
PNG
But if you edit them heavily and they appear out of place , then xml will come into play
iamareebjamal said:
PNG
But if you edit them heavily and they appear out of place , then xml will come into play
Click to expand...
Click to collapse
Where are those pngs located?? Or which xml to edit?
I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
I'm looking to do the same too. but with DeskClockGoogle and WebViewGoogle pulled from the N5 factory image, to finish my Lollipop Gapps pack.
Unfortunately, even with baksmali and smali that I've built from source with the latest changes, I get the same errors. I'm guessing we'll have to wait until they're (hopefully) updated.
I've attached my compiled builds of baksmali and smali with up-to-date changes from source (latest being November 6, 2014) if you or anyone wants to mess with them or whatever.
I made it on my nexus 5 stock rom.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
how you deodexed stock SystemUI ? please give link on HOWTO
how edit smali (as he reached smali) ?
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
I want this
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
My state:
[email protected]:~/Downloads/smali-oat/baksmali/build/libs$ java -Xmx512m -jar baksmali-2.0.3-dev.jar -a 21 -x SystemUI.odex -d ./framework
Error occurred while loading boot class path files. Aborting.
org.jf.util.ExceptionWithContext: Cannot locate boot class path file /system/framework/conscrypt.jar
at org.jf.dexlib2.analysis.ClassPath.loadClassPathEntry(ClassPath.java:227)
at org.jf.dexlib2.analysis.ClassPath.fromClassPath(ClassPath.java:161)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:68)
at org.jf.baksmali.main.main(main.java:298)
Click to expand...
Click to collapse
Seem it know how to deodex but framework file conscrypt only 372 byte. It isn't contain classes.dex.
Link to file
https://mega.co.nz/#!NUoQxSLa!het4J3GXvtGVmI43m_Gl0jqBZ7X9BhHb7xErseEjnUc
hiepgia said:
...It isn't contain classes.dex...
Click to expand...
Click to collapse
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
cargobr151 said:
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
Click to expand...
Click to collapse
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
hiepgia said:
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
It is not a true .odex. It requires the oat2dex script to strip the oat header. Then you have the classes.dex file. The problem is getting the apk and the dex to happily coexist in the same APK. AOSP can deodex but we are still breaking the same apks just decompiled and recompiled (Stock factory or modded). SystemUI is only one I have been able to lock down as an auto break due to time constraint and ability to visualize the break.
.
Well I'm happy to see discussion being stirred up in this thread finally!!!! I gave up on trying to deodex the system apps.....until Jesus freak can update the smali/baksmali tools I'm in no position to get that working.
On the other hand, I've been working on "work around" to get the battery percentage in the status bar. We can all see the battery percentage in the drop down menu and in the lock screen (key guard.) I'm attempting to modify the keygaurd text view for the battery percentage and add it to the status bar in the "system_icons" XML file. Right now I'm able to compile the mod but its not showing up. If someone would like to help with it feel fee to reply here or shoot me a PM. The theory is to get a working battery percentage in the status bar without deodexing.
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
You need to have python installed, but if you have it you can run the oat2dex.py script on your odex file and then you'll be able to baksmali/smali it with the latest versions of those. I just don't know how to turn the dex file back into the original format to pop back into the rom.
Me neither, and I've never messed around with python
Sent from my Nexus 5 using xda premium
Items Required :-
1) SystemUI.apk
2) Apktool
3) Text Editor (Notepad ++)
Procedure:-
1) First of All decompile SystemUI.apk using apktool.
2) Now Goto res/layout folder.
3) Open status_bar_recent_item.xml
4) Now in its line no. 2 add this code android:layout_marginTop="-75.0dip" android:rotationX="-10.0"
5) Save it.
6) Also Open Status_bar_recent_panel.xml
7) In line no. 2 add android:rotationX="10.0"
8) Save it.
9) Recompile and push meta inf and androidmanifest.xml of your original apk to the modded one.
10) Push it and set permissions to rw--r-r
Dont cook up your phone.
Note:- If You faced any deformalities regarding thumbnail size change
Thumbnail_height and thumbnail_width to 250.0px
Tested in JB 4.2.2 MTK
Samsung JellyBean Users Can go Over HERE
Full Credit to Arta Bagger and UI DESIGNER PRO
Dont Forget To Hit Thanks Button
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can you attach screenshots please?
---------- Post added at 02:01 PM ---------- Previous post was at 02:00 PM ----------
Thanks.
Screen shot in my comment sir you can click there to check ss
Awesome :good:
eboybasit said:
Items Required :-
1) SystemUI.apk
2) Apktool
3) Text Editor (Notepad ++)
Procedure:-
1) First of All decompile SystemUI.apk using apktool.
2) Now Goto res/layout folder.
3) Open status_bar_recent_panel_item.xml
4) Now in its line no. 2 add this code android:rotationX="-10.0"
5) Save it.
6) Also Open Status_bar_recent_panel.xml
7) In line no. 2 add android:rotationX="10.0"
8) Save it.
9) Recompile and push meta inf and androidmanifest.xml of your original apk to the modded one.
10) Push it and set permissions to rw--r-r
Dont cook up your phone.
Note:- If You faced any deformalities regarding thumbnail size change
Thumbnail_height and thumbnail_width to 250px
Tested in Cherry Mobile JB 4.2.2 MTK
Full Credit to Rommel Vallisor
Dont Forget To Hit Thanks Button
Click to expand...
Click to collapse
There is no "status_bar_recent_panel_item.xml" only "status_bar_recent_panel.xml" and "status_bar_recent_item.xml" in the res/layout folder
Sir you can try finding it in layout-port folder
Try finding in layout-port folder
Thanks sir @syaeful
eboybasit said:
Items Required :-
1) SystemUI.apk
2) Apktool
3) Text Editor (Notepad ++)
Procedure:-
1) First of All decompile SystemUI.apk using apktool.
2) Now Goto res/layout folder.
3) Open status_bar_recent_panel_item.xml
4) Now in its line no. 2 add this code android:rotationX="-10.0"
5) Save it.
6) Also Open Status_bar_recent_panel.xml
7) In line no. 2 add android:rotationX="10.0"
8) Save it.
9) Recompile and push meta inf and androidmanifest.xml of your original apk to the modded one.
10) Push it and set permissions to rw--r-r
Dont cook up your phone.
Note:- If You faced any deformalities regarding thumbnail size change
Thumbnail_height and thumbnail_width to 250px
Tested in Cherry Mobile JB 4.2.2 MTK
Full Credit to Rommel Vallisor
Dont Forget To Hit Thanks Button
Click to expand...
Click to collapse
Mine turned out like this Jb 4.2.2
[img=http://s13.postimg.org/bq1owupz7/Screenshot_2015_03_07_21_01_19.jpg]
Papdya said:
Mine turned out like this Jb 4.2.2
[img=http://s13.postimg.org/bq1owupz7/Screenshot_2015_03_07_21_01_19.jpg]
Click to expand...
Click to collapse
Ahh..... wait i'll give you xmls for compare sir your recent app style is different,,,, are you a samsung user...?
eboybasit said:
Ahh..... wait i'll give you xmls for compare sir your recent app style is different,,,, are you a samsung user...?
Click to expand...
Click to collapse
No it micromax and its a rom which i have ported and themed according to my liking.. Dont call me sir plz.. i am just 16
Papdya said:
Mine turned out like this Jb 4.2.2
[img=http://s13.postimg.org/bq1owupz7/Screenshot_2015_03_07_21_01_19.jpg]
Click to expand...
Click to collapse
Compare your xml with this Hope this will help You
K sure i will check n tell.
Okay :thumbup:
http://d-h.st/KA06
http://d-h.st/nxuj
Here are my files a few lines are different ..do i make it same as urs or let it stay?
Papdya said:
http://d-h.st/KA06
http://d-h.st/nxuj
Here are my files a few lines are different ..do i make it same as urs or let it stay?
Click to expand...
Click to collapse
Dont change height or any drawable or add any extra drawable.....only compare codes placement and layout margins ,paddings and relative layouts
Papdya said:
http://d-h.st/KA06
http://d-h.st/nxuj
Here are my files a few lines are different ..do i make it same as urs or let it stay?
Click to expand...
Click to collapse
Dont add any drawables,,,,,only compare the placement of codes in linear layouts , relative layouts, paddings and margins
eboybasit said:
Dont add any drawables,,,,,only compare the placement of codes in linear layouts , relative layouts, paddings and margins
Click to expand...
Click to collapse
I will try it tmrw and tell if it works. Thanks fr the help btw. :thumbup:
Papdya said:
I will try it tmrw and tell if it works. Thanks fr the help btw. :thumbup:
Click to expand...
Click to collapse
Your Welcome
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
An All in One App To De-Compile , Re-Compile , Extract Meta-inf Folder , Add Meta-inf Folder , Sign , Zipalign , Jar to Dex and Dex To jar & Many more (Even All Lollipop Apps SDK 21) Right in Your Phone or tablet , No needed for a PC Anymore
This app is a continue for The open spurce ApkTool and with many imrprovements like adding Apktool v2.0 and many more So cridit for main application goes to chinese sources and people from AG Who worked Before me on This
*some people having issue with installing this as a regular app , for faster operation on decompile recompile recommended to manually push it to system apps or either patch to android signature ..
Small request : if anyone have a good key for sign please sign it and give me the key to use for next releases..
works for ArmV7 Devices
i will be glad if my App Be sticky in Developers Android hacking forum
ApkTools Is a well Known Android Reverse Engineering Tool that decrypt/translates an app or system apps To human language Code
I made this app for my personal use now im sharing with you
it have Latest ApkTool v2.0 and other versions could be find in about , you can use two different apk tool
you can optionally decompile Dex or decompile resources only
And many other futures , even more easy than a PC
Just Import Frameworks And youre good to go
you may need a good cpu for faster Decompile/recompile consumed time will be shown
Custom motifications for jobs are implemented
Download :
v4.7 :
Download From Mega
I didnt share this to earn anything just to help people and easier developement , tell me if im wrong, i dont know the exact Cridits tell me and i will add to OP
Donations Welcome For Donation Plz Email/PM me
Plz Don't Ask Compile , Decompile related help questions and ApkTool related stuffs
XDA:DevDB Information
ApkTool For Android, Tool/Utility for all devices (see above for details)
Contributors
HAYLCION, ApkTool
Version Information
Status: Stable
Current Stable Version: 4.7
Created 2015-05-23
Last Updated 2015-05-23
Awesome work bro.. I always find this kinda app... Great :good: :good:
metaspook said:
Awesome work bro.. I always find this kinda app... Great :good: :good:
Click to expand...
Click to collapse
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
HAYLCION said:
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
Click to expand...
Click to collapse
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
metaspook said:
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
Click to expand...
Click to collapse
So where else? I like your jobs they're hady , thumbs up for the busybox you shared !
It won't let me install on my m9
ahrion said:
It won't let me install on my m9
Click to expand...
Click to collapse
Push to system/app if youre on armv7
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
This is screen shot of the original dialer.apk
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Nhien Nguyen said:
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Click to expand...
Click to collapse
Can you post the full log.
ndrancs said:
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
Click to expand...
Click to collapse
No i forgot to change it in app its not rc3 its the latest v2.0.0 final that works wor lollipop flawsly too
ndrancs said:
This is screen shot of the original dialer.apk
Click to expand...
Click to collapse
Yeah it supports that you Have to adjust Min max sdk in apktool.yml if not recompiles but what you showed is about signature
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
bdizzle1686 said:
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
Click to expand...
Click to collapse
Copy err log and send, i can tell you
Hi dev and thank you for your work.
I'd like to decompile HydrogenOS launcher apk, include in it OxygenOS framework and recompile hoping it could work on other AOSP based rom and not only in OxygenOS.
I'm a noobe and I was just wondering: is that possible? And, can I do this completely with your tool?
Thank you so much
mega link is dead... please reupload
Download link problem
Download issues still. Anyone have a copy of this?
for me brut broo -_- when I dc my systemUI