How To Implement 1% Battery Mod On Your Rom
What is 1% Battery Mod
1% battery mod allows your battery % icon to decrease in 1% increments
Stock roms and some custom roms dont have this so the battery % icon jumps from 100% to 79% then 64% 49% 34% 19% and 4%
So this mod allows your rom to display 100% 99% 98% 97% and so on down to 1% with pngs that look as follows
{
"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"
}
How To For Deodex Roms Only
Always Make A Nandroid Backup Before Trying Anything!
1- Download the files in attatchment
2- Decompile Framework-res.apk with apk tool (if you dont know how to do this see my thread for link to my apktool guide - link in my signature)
3- Open res/drawable
4- Replace stat_sys_battery.xml and stat_sys_battery_charge.xml with the ones from the battery files zip
5- Open res/drawable-ldpi and copy all the pngs from the battery pngs zip here replacing any pngs already there when asked
6 - Recompile and put in a flashable zip and flash in cwm with system mounted (see below)
You can use any other battery icon pack you like as long as it has the full ammount of pngs required
How To Make Flashable Zip
1 - Download the Flashable Zip Template from attachment
2- Open the flashable zip with WinRar
3- Goto system/framework
3- Drag your compiled framework-res.apk to this location
4- In the window that pops up select ok
5- Done you can now flash the zip in cwm with system mounted
credits
UOT Kitchen for files
Will try it later...
OT: Congrats for becoming RC..
DELETED
Click to expand...
Click to collapse
Thanks For The Guide Bro... Well Done!
Sent From My XG-I™ N7000 Using XDA-Developers App
RenzkiPH said:
Thanks For The Guide Bro... Well Done!
Sent From My XG-I™ N7000 Using XDA-Developers App
Click to expand...
Click to collapse
thank you but please delete your quote of the op
Hi. I lost status bar. I using stock rom deodex. Help me
[email protected] said:
Hi. I lost status bar. I using stock rom deodex. Help me
Click to expand...
Click to collapse
Did you decompile framework-res.apk with apktool? you cant just unzip a file to replace xml files you must decompile
how did you flash it?
did you put it in a flashable zip and flash it in cwm with system mounted?
no reason why you would loose your statusbar
if you just replaced framework-res.apk with a root browser its not a good idea to do that - if you did that did you set the correct permissions rw-r-r
either flash your origional framework-res.apk back
or restore your nandroid backup
then try again
remember framework-res.apk goes in system/framework in the flashable zip folder - give me a min and I will upload a flashable zip and instructions on the op
update - template added to op for flashable zip
marcussmith2626 said:
Did you decompile framework-res.apk with apktool? you cant just unzip a file to replace xml files you must decompile
how did you flash it?
did you put it in a flashable zip and flash it in cwm with system mounted?
no reason why you would loose your statusbar
if you just replaced framework-res.apk with a root browser its not a good idea to do that - if you did that did you set the correct permissions rw-r-r
either flash your origional framework-res.apk back
or restore your nandroid backup
then try again
remember framework-res.apk goes in system/framework in the flashable zip folder - give me a min and I will upload a flashable zip and instructions on the op
update - template added to op for flashable zip
Click to expand...
Click to collapse
Thanks to reply. Will try tomorrow.
Sent with my Young using Forum Runner
H9 Error XML Files
sir marcussmith2626 why when I tried to copy & paste your xml files attached to my H9 Framework-res.apk then after recompile I pushed it to system through RootEx then aftery reboot I only got like this battery icon ( [?] ) its QUESTION MARK. why? our battery pngs are on drawable-hdpi. Thanks and sorry for my bad english.
CAPsebastian said:
sir marcussmith2626 why when I tried to copy & paste your xml files attached to my H9 Framework-res.apk then after recompile I pushed it to system through RootEx then aftery reboot I only got like this battery icon ( [?] ) its QUESTION MARK. why? our battery pngs are on drawable-hdpi. Thanks and sorry for my bad english.
Click to expand...
Click to collapse
Its always better to flash the files in cwm with system mounted
Also if you push manually you need to set the permission of the apk to rw-r-r
You also need to use the pngs in the zip provided or another pack that contain the exact same number of pngs with the exact same file names - these filenames match the path in the xml files
Your rom may also have other framework mods which are pointing to different locations for the pngs
marcussmith2626 said:
Its always better to flash the files in cwm with system mounted
Also if you push manually you need to set the permission of the apk to rw-r-r
You also need to use the pngs in the zip provided or another pack that contain the exact same number of pngs with the exact same file names - these filenames match the path in the xml files
Your rom may also have other framework mods which are pointing to different locations for the pngs
Click to expand...
Click to collapse
Okay sir. Thaanks! I'll gonna try it again.
Yeah. I have the complete pngs of battery icons that i would like to replace, my only problem is on the xml's when I will just use the xml's of Hyperion9 there would be no problem but the battery is draining by 100-90-80-70% and so on, then I would like to apply your xml's attached to be able to implement the 1% battery draining.
I can attach my framework-res.apk in here just to be able to fix about the xml's problem. :3
can you help me figure it out? if you only have time, but if you're busy its okay. Thank you.
CAPsebastian said:
Okay sir. Thaanks! I'll gonna try it again.
Yeah. I have the complete pngs of battery icons that i would like to replace, my only problem is on the xml's when I will just use the xml's of Hyperion9 there would be no problem but the battery is draining by 100-90-80-70% and so on, then I would like to apply your xml's attached to be able to implement the 1% battery draining.
I can attach my framework-res.apk in here just to be able to fix about the xml's problem. :3
can you help me figure it out? if you only have time, but if you're busy its okay. Thank you.
Click to expand...
Click to collapse
sorry not doing it for you
like I said - the names of the pngs must match exactly
use the pngs provided - if they work your pngs or named wrong
also galaxy y is ldpi so you should place these pngs in the res-ldpi folder or create it - also copy them into the other res folders just to make sure - android will choose the correct folder for you
marcussmith2626 said:
sorry not doing it for you
like I said - the names of the pngs must match exactly
use the pngs provided - if they work your pngs or named wrong
also galaxy y is ldpi so you should place these pngs in the res-ldpi folder or create it - also copy them into the other res folders just to make sure - android will choose the correct folder for you
Click to expand...
Click to collapse
ahh okaay2. thanks! ^_^
Yeah, i tried when I used the XML's of Hyperion9 it show's but when I changed it to your XML's attached it turned into unknown battery. I don't know if what's the problem of it.
Yeah. they say but why our's is on hdpi? haha tss! so can I erase all the battery icons on hdpi and changed it to ldpi?
wait I'm just editing it on phone using Ninjamorph is it advisable? because I heard it on recompiling xml script should turn into alien binary script language. XD
CAPsebastian said:
ahh okaay2. thanks! ^_^
Yeah, i tried when I used the XML's of Hyperion9 it show's but when I changed it to your XML's attached it turned into unknown battery. I don't know if what's the problem of it.
Yeah. they say but why our's is on hdpi? haha tss! so can I erase all the battery icons on hdpi and changed it to ldpi?
wait I'm just editing it on phone using Ninjamorph is it advisable? because I heard it on recompiling xml script should turn into alien binary script language. XD
Click to expand...
Click to collapse
you need to use apktool to decompile the apk and recompile the apk as written in my instructions
Im guessing when you are using ninjamorph you are simply replacing the xml - you cannot do this - the apk need properly decompiling and recompiling
I cannot support any other method other than using apktool
marcussmith2626 said:
you need to use apktool to decompile the apk and recompile the apk as written in my instructions
Im guessing when you are using ninjamorph you are simply replacing the xml - you cannot do this - the apk need properly decompiling and recompiling
I cannot support any other method other than using apktool
Click to expand...
Click to collapse
Okay2. Thanks for the info! maybe I'll just use the apktool.apk given from other Devs here in XDA is that advisable? because I don't have PC yet, my PC is admitted on the shop because she's sick. XD
CAPsebastian said:
Okay2. Thanks for the info! maybe I'll just use the apktool.apk given from other Devs here in XDA is that advisable? because I don't have PC yet, my PC is admitted on the shop because she's sick. XD
Click to expand...
Click to collapse
yes you can use the mobile version of apktool
Battery turned to red(unknown) icon when I use Ninjamorph pro.
Also tried Apktool4.4_armhf.zip but it doesn't re/decompile anything & ends up giving this error:
/data/data/per.pqy.apktool/mydata/apktool2.sh: line 6: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found
Click to expand...
Click to collapse
Galaxy_Rohit said:
Battery turned to red(unknown) icon when I use Ninjamorph pro.
Also tried Apktool4.4_armhf.zip but it doesn't re/decompile anything & ends up giving this error:
Click to expand...
Click to collapse
Can you use a PC instead of using apps on your phone?
Ticklefish said:
Can you use a PC instead of using apps on your phone?
Click to expand...
Click to collapse
Better advice the developer to stop making such android apps. When I'm outdoors, my phone is my best friend. Hope u understand!!
Galaxy_Rohit said:
Battery turned to red(unknown) icon when I use Ninjamorph pro.
Also tried Apktool4.4_armhf.zip but it doesn't re/decompile anything & ends up giving this error:
Click to expand...
Click to collapse
That version will probably not work on our phone
Please try the version and instructions from this thread
http://forum.xda-developers.com/showthread.php?t=2488697
I wont be a able to offer anymore support regarding compiling on a phone or using this tool correctly
Related
Hello Guys
I have designed a glow circle battery for my own use, but I decided to post it here so you may use it in case you like it
The battery was developed on a i9000, but I analyzed the framework from captivate and it seems that this procedure will work on captivate also. Please try and feedback.
If you like my work, please consider a small donation to help me continue developing.
Change log:
17.03.2011
-Reorganized the threat so everyone could easily mod his own framework. Follow the new installation instructions
-Added CWM file only with script so you can use it with your framework file safely.
-Uploaded new reorganized image packages.
14.03.2011
-added new charger images. -- Beams -- ( i might rework them in the next days) --
-added missing images for full charge and so on...
-I will modify tomorrow morning the threat, with new reorganised files cause it became a little confusing
03.02.2011
CAUTION:
Flash only if you have DOC's ROm, because some users stated that on Darky they had problems. Not sure why, because it should work - they're both deodexed roms. Do a BACKUP
-Added CWM files for V1, V2 - with percentage and clear at charging
-Working to a new animation for charging, a lot better than this one, but I can;t tell you when it will be ready because I have a lot to work for my school
02.02.2011
Finished creating charging icons and XML editing for animation. I Added two versions of the framework:
-Version 1 : loops the circle animation continuous, without showing the current amount of battery after each loop
-Version 2 : Shows after each loop the amount of battery
01.03.2011
I just created another battery with life indicators on the margins
INSTALLING INSTRUCTIONS
1. Download 3 packs: one with images of the battery (batt1 or batt2), one of the chargers (Glow, or BEAMS) and one of the charging animation images (with percentage and without).
2. Download CWM_update.zip
3. Place the files from the battery pack and charger inside your framework-res.apk file, in /res/drawable-hdpi.
4. Place the file from charging script inside your framework-res.apk file, in /res/drawable
5. put the modified framework-res.apk file inside the framework folder, of the CWM_update.zip.
6. Reboot in CWM.
7. Clear cache.
8. Clear Dalvik.
9. Flash the file.
10 Reboot and enjoy
Previews:
New Evolution Battery
{
"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"
}
Glow Charger
Old Evolution
Beam Charger
DOWNLOAD
If you like my work, please consider a small donation to help me continue developing.
Battery:
New Evolution: http://www.multiupload.com/371JXMVJ7N
Old Evolution: http://www.multiupload.com/S64AEV6X7K
Charger
BEAM Charger: http://www.multiupload.com/72IYDH6F03
Glow Charger: http://www.multiupload.com/P16AHXNW2S
Charging Script:
With percentage: http://www.multiupload.com/98L6VG1IQF
Without percentage: http://www.multiupload.com/ZCMQ2MPBTC
CWM_update.zip: http://www.multiupload.com/OPI3LQ1Z04
how do I place the files in the framework file??? I really would like to give it a try but i don't know how, the instructions are little confusing. And another question this mod work on axura 2.3.0.1?
marianohernan said:
how do I place the files in the framework file??? I really would like to give it a try but i don't know how, the instructions are little confusing. And another question this mod work on axura 2.3.0.1?
Click to expand...
Click to collapse
use root explorer to do it
bosina said:
use root explorer to do it
Click to expand...
Click to collapse
wrong. using that you will need to reflash as you will keep getting FC errors on every app.
What have you not understood?
WHOA WHOA WHOA.
What rom is this?
that looks jizzingly beautiful!
I don't even understand these instructions:
1. Download 3 packs: one with images of the battery (batt1 or batt2), one of the chargers (Glow, or BEAMS) and one of the charging animation images (with percentage and without).
2. Download CWM_update.zip
3. Place the files from the battery pack and charger inside your framework-res.apk file, in /res/drawable-hdpi.
4. Place the file from charging script inside your framework-res.apk file, in /res/drawable
5. put the modified framework-res.apk file inside the framework folder, of the CWM_update.zip.
6. Reboot in CWM.
7. Clear cache.
8. Clear Dalvik.
9. Flash the file.
10 Reboot and enjoy
What is all this framework stuff? Just make it so this whole thing is flashable thru CWM... sheesh what is all this crap
jwleonhart said:
I don't even understand these instructions:
What is all this framework stuff? Just make it so this whole thing is flashable thru CWM... sheesh what is all this crap
Click to expand...
Click to collapse
the batteries are organized in image packs, so you can form different combinations. the packs are available in the download links, and the CWM_update is the file that will help you update your systems framework without breaking your system. sorry, but if you don't have some basic knowledge about this I don't recommend to do any modification, as you might brick your phone.
I think the instructions are clear enough... I can't explain better than that
xriderx66 said:
WHOA WHOA WHOA.
What rom is this?
that looks jizzingly beautiful!
Click to expand...
Click to collapse
thats what i thought when i saw it..damm
I have some experience but i'm by no means advanced. I also don't have DOC's rom, whatever rom that is. I'm using Bionix 1.3.1, can I still flash this battery file?
Let me go step by step on this so maybe i'll understand what your saying with ease...
1. Download 3 packs: one with images of the battery (batt1 or batt2), one of the chargers (Glow, or BEAMS) and one of the charging animation images (with percentage and without).
2. Download CWM_update.zip
3. Place the files from the battery pack and charger inside your framework-res.apk file, in /res/drawable-hdpi.
4. Place the file from charging script inside your framework-res.apk file, in /res/drawable
5. put the modified framework-res.apk file inside the framework folder, of the CWM_update.zip.
6. Reboot in CWM.
7. Clear cache.
8. Clear Dalvik.
9. Flash the file.
10 Reboot and enjoy
Ok, so I downloaded the 3 files... Glow Charger, New Evolution battery, and Charging with %. Then I downloaded CWM_update.zip
Now I went ahead and unrar'ed the 3 zip files, which are obviously full of images.
Now the next 3 steps are what confuse the living hell out of me:
3. Place the files from the battery pack and charger inside your framework-res.apk file, in /res/drawable-hdpi.
4. Place the file from charging script inside your framework-res.apk file, in /res/drawable
5. put the modified framework-res.apk file inside the framework folder, of the CWM_update.zip.
What exactly are you telling me to do here?
I'm not the most advanced, but i'm also not challenged so if you could just break it down a little bit more maybe i'd understand it better.
Sorry I didn't mean to come off like a prick in the last post, i really would like to try these battery mods out, they look nifty.
And also i'm with these guys, what theme/rom are you running... looks like everything on your phone is transparent?
Looks pretty awesome! I'm content with my current battery, but this is quite cool....
If you don't mind though, what font is that? It looks awesome!
Crysis21 said:
no man, not that;s what i mean. the battery, the charger, and the XML for making the animation are put in separate packages. all these packages must be combined, at your preference, in your framework-res.apk file. (you open the framework-res.apk with WINRAR and then you put the images in the folder drawable-res-hdpi and the xml in drawable. TAKE CARE to save the file with no compression!!! after that, put the file in CWM_updater, in framework folder. THIS FILE (cwm_updater) you will flash with CWM. Got it?
Click to expand...
Click to collapse
this is what i explained on captivate forum. I hope is clear enough
Ok, so I tried to follow your guide.
Using QtADB I went ahead and found the framework-res.apk file. I then copied it to my PC and unrar'ed it. Then I went to drawable-hdpi (I didn't have a drawable-res-hdpi.... but I found the images in drawable-hdpi so I replaced them there)
I then went ahead and make the file and APK again through winrar. Made sure I didn't compress it.
I then went and opened the CWM_Update.zip folder, went into the the framework folder, and copied the framework-res.apk inside of it.
I then copied the CWM_Update.zip to my SD card, went into CWM and tried to install it. When I try to install the zip I get the following:
E:Can't open /sdcard/romstuff/CWM_Update_evolution_battery.zip
(bad)
Installation Aborted
I renamed CWM_Update the CWM_Update_Evolution_battery so I knew what the file was for since I have alot of stuff in my rom folder.
I'm assuming changing the name shouldn't do anything since anything else i've ever renamed is fine.
I'm running Bionix 1.3.1, could that have something to do with it???
This really sucks I wanted to try the battery, and i'm really sure I did this right... i'm not an idiot with a computer so I'm lost on where I went wrong possibly?
I just found your post in the captivate forum, and also checked that I used "STORE" on winrar for both repacking the .apk file and for the .zip file. The whole update.zip file ended up being a little more than 11mb... does that sound right? The APK file itself is 6.6mb in size.
It's still giving me the (bad) file error in CWM.
I have followed each step, copied the files to the apk, put the apk into the CWM_update zip and flashed with clockwork. For some reason it is not working/showing up. Still has the default battery icons and animations. I am running Axura 2.3.1.3. No problems with Clockwork flashing, no error or stuck on boot animations. Don't know what else to do. Really like this battery mod.
Do you have to delete the original Battery png's and charging icons from the Framework folder to make this work? I also am trying to follow your instructions and trying to make sense of it.
jwleonhart said:
Ok, so I tried to follow your guide.
Using QtADB I went ahead and found the framework-res.apk file. I then copied it to my PC and unrar'ed it. Then I went to drawable-hdpi (I didn't have a drawable-res-hdpi.... but I found the images in drawable-hdpi so I replaced them there)
I then went ahead and make the file and APK again through winrar. Made sure I didn't compress it.
I then went and opened the CWM_Update.zip folder, went into the the framework folder, and copied the framework-res.apk inside of it.
I then copied the CWM_Update.zip to my SD card, went into CWM and tried to install it. When I try to install the zip I get the following:
E:Can't open /sdcard/romstuff/CWM_Update_evolution_battery.zip
(bad)
Installation Aborted
I renamed CWM_Update the CWM_Update_Evolution_battery so I knew what the file was for since I have alot of stuff in my rom folder.
I'm assuming changing the name shouldn't do anything since anything else i've ever renamed is fine.
I'm running Bionix 1.3.1, could that have something to do with it???
This really sucks I wanted to try the battery, and i'm really sure I did this right... i'm not an idiot with a computer so I'm lost on where I went wrong possibly?
Click to expand...
Click to collapse
ughh, just did all the same as these guys^^ and got nowhereeeee. when someone fixes this i'll try again..
Hey Guys,
This mod will remove the time from the notification bar on your Atrix. You will need to install the Java SE JDK in order to perform this mod.
You Must Be Deodexed to Perform this Mod!
Instructions:
1) First download smali-1.2.6.jar and baksmali-1.2.6.jar from here http://code.google.com/p/smali/downloads/list. Rename them to just smali.jar and baksmali.jar.
2) You'll need to pull the services.jar from the /system/framework/ directory on your phone to your PC. Open the services.jar file for example with winzip, 7z, winRar, or whatever. Unzip the classes.dex file to a new folder and place the baksmali and smali file there too. After that open a new command window within that folder and run following line:
Code:
java -jar baksmali.jar -o out/ classes.dex
3) You'll have a new folder now called "out". Browse to "out/com/android/server/status" and open the file called StatusBarPolicy.smali with a text editor. I personally prefer "Notepad++".
4) Search for:
Code:
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V
5) It should be under ".line 592". Now add this line underneath the line you just searched for from above:
Code:
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
6) Save the file.
7) Open a new command window within the folder you created before or maximize the same command window you used before and run this:
Code:
java -Xmx512M -jar smali.jar out/ -o edited-classes.dex
8) Now you'll have a new dex file called "edited-classes.dex". Rename the old dex file to classes_old.dex and rename the new file to "classes.dex".
9) Open again the services.jar file with any zip tool and overwrite the classes.dex file with the one just created.
10) Push the updated services.jar back to the /system/framework/ directory on your phone and set the file permissions to rw-r--r--. Reboot!
That's it! Now you have more room for icons...
Screenshot:
{
"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"
}
Disclaimer:
If you choose to perform this mod, please be aware that you are doing it at your own risk. I'm not responsible if you brick your device. Backup, Backup, BACKUP your files before performing this mod.
Good Luck!
If anyone knows how to remove the date from the notification dropdown, please let me know, that's the next mod i would like to perform...Thanks!
FINALLY! Been looking for someone to do this. havent tried it yet, backing up right now..
**EDIT** lol nevermind, cant figure this out on my mac and my pc isnt running correctly atm. Anyway to make this flashable through cwm for noobs like me?
Sweet look
any way to make this an update.zip? sry new to this and am not really comfortable with this
tonecreationz said:
That's it! Now you have more room for icons...
Good Luck!
Click to expand...
Click to collapse
Hey Tone... thought I would post it here.. just in case people don't want or don't know how to do this.. I created the CWM install version for them... credit goes to you for the MOD...
I also attached a 1% services.jar from Gingerblur v3.5 with the no clock mod... I don't use the 1% MOD... but you can give it a try...
jpinoy said:
Hey Tone... thought I would post it here.. just in case people don't want or don't know how to do this.. I created the CWM install version for them... credit goes to you for the MOD...
Click to expand...
Click to collapse
Thanks... worked on top of Gingerblur v3.5.
**Edit**
Huummm, battery level seems to be stuck @ 100% now... let me try erasing battery data via CWM
Well, I don't know??? Wiped battery status and dalvik cache with CWM and battery status still shows 100%... Going to restore to the backup I made before flashing this, and confirm that this was indeed the problem.
jpinoy said:
Hey Tone... thought I would post it here.. just in case people don't want or don't know how to do this.. I created the CWM install version for them... credit goes to you for the MOD...
Click to expand...
Click to collapse
is this only for 1.83? Im about to try it on top of 1.57. Of course im backing up first..
*EDIT* not sure if there would be any reason for it to not work on 1.57, but it works fine [:
Swiftks said:
Thanks... worked on top of Gingerblur v3.5.
**Edit**
Huummm, battery level seems to be stuck @ 100% now... let me try erasing battery data via CWM
Well, I don't know??? Wiped battery status and dalvik cache with CWM and battery status still shows 100%... Going to restore to the backup I made before flashing this, and confirm that this was indeed the problem.
Click to expand...
Click to collapse
Hmm.. this is just for the default status bar.. this might not work with the 1% battery mod that also requires the services.jar editing.... let me see if I can edit that and you can give that a try...
jpinoy said:
Hmm.. this is just for the default status bar.. this might not work with the 1% battery mod that also requires the services.jar editing.... let me see if I can edit that and you can give that a try...
Click to expand...
Click to collapse
Think I got it... just edited my services.jar from gingerblur v3.5... going to flash and test. If it works, I'll post it.
Should probably note for windows users that "text editor" doesn't mean notepad It'll prolly screw up the line endings and cause problems.
Thanks for the guide though! Good work
This worked great and thanks for the zip file above thumbs up guys
sent from my gingerblur 3.1 atrix
jpinoy said:
Hey Tone... thought I would post it here.. just in case people don't want or don't know how to do this.. I created the CWM install version for them... credit goes to you for the MOD...
I also attached a 1% services.jar from Gingerblur v3.5 with the no clock mod... I don't use the 1% MOD... but you can give it a try...
Click to expand...
Click to collapse
so all i have to do is use one of this zip files?
jahizen said:
so all i have to do is use one of this zip files?
Click to expand...
Click to collapse
Correct.....
Will this work on a stock rooted Atrix?
Sent from my MB860 using Tapatalk
asesino said:
Will this work on a stock rooted Atrix?
Sent from my MB860 using Tapatalk
Click to expand...
Click to collapse
You can give it a try, just use the stock one and not the 1% one.
Make sure you make a backup of your stock setup in CWM first before doing this just in case it doesn't work...
Oh, btw, you got a thanks from me cus I hit the wrong button when trying to reply to your question..
Can someone please edit the services.jar for greyblur so theres no clock in the notification bar? AND IF possible, can you add the 1% battery mod? TIA
ekidd14 said:
Can someone please edit the services.jar for greyblur so theres no clock in the notification bar? AND IF possible, can you add the 1% battery mod? TIA
Click to expand...
Click to collapse
Make a backup and then try it... I moved away from Greyblur a while ago and don't want to flash that on my device to see if it works, it should though... but I've only tested these on 1.83...
Good luck
jpinoy said:
Make a backup and then try it... I moved away from Greyblur a while ago and don't want to flash that on my device to see if it works, it should though... but I've only tested these on 1.83...
Good luck
Click to expand...
Click to collapse
Yeah, i flashed it a while ago while on greyblur and everything works fine, except the notification pulldown isnt transparent like how greyblurs pull down normally is. The .zip posted is from gingerblur's services.jar i think..
Is it possible to remove Time from Micromax A57's statusbar
Any how I was trying to do this
with my A57 Micromax, but codes and files do not match
If you can help please get me an idea on where i should find and replace the code to remove the time here.
I am attaching the services.jar for this device
Standing battery without much headache by editing Horizontal icons
Well may not be new but PNGs are always doubtful how they behave...
What I wanted is Standing style battery and I was have very nice battery icons set that was in horizontal style.
I simply opened all of them in a picture manager and Rotated then Clockwise. Done..
and Its working fine with the statusbar and looks good without any loss of png quality.
I liked it..
---------- Post added at 07:20 PM ---------- Previous post was at 07:14 PM ----------
In open status bar my Device Shows Date as well (left end of status bar)
Any guide of method to remove that ??
Thankx in advance.
IMPORTANT - APK decompilation is needed only when you are going to edit some xml's or other stuff. If you want edit or replace png's, you need to extract the apk instead of decompiling it.
If you want to extract an apk for theming, read this tutorial - http://forum.xda-developers.com/showthread.php?t=1665674
1) Download apkmanager ( http://www.apkmultitool.com/?q=node/5 ) and install it.
2) Put the apk you want to decompile in 'place-apk-here-for-modding' folder.
3) Double click on 'script'
4) Ignore the 'adb not found' command and press enter
5) Type 22 i.e. 'set current project' and press enter.
6) Type 1 and press enter
7) Type 9 and press enter to decompile apk.
8) Wait until the decompilation finishes.
9) Minimize command line and go to projects -> filename.apk -> make the required changes
10) Switch back to command-line, type 11 and press enter.
11) After sometime you'll get a message 'is this a system apk?', type y and press enter.
12) You'll get another message 'aside from......... of errors', type y and press enter.
13) Wait until you get this message - 'In the apk manager.... this script' , dont do anything, minimize command-line, go to keep folder and delete resources.arsc
14) Switch back to command-line and press enter.
15) Wait until the command-line comes back to its initial look.
16) Go to 'place-apk-here-for-modding' folder, your new file will be unsignedfilename.apk
Read step 17 if you have modded framework-res.apk, otherwise skip it.
17) Open framework-res.apk and unsignedframework-res.apk using 7-zip or winrar or any other archive manager. Drag and drop resources.arsc from unsignedframework-res.apk into framework-res.apk (do not extract them, just open them using any archive manager and do the drag-drop stuff)
18) Copy the file to SD card, rename it and remove 'unsigned' from file's name.
19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your old file ( first move resources.arsc from new to old framework and then move the old framework) to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
PS - Make a nandroid backup before doing this if you modded framework.
Sent from my GT-S5830 using Tapatalk 2
Fr
I'll update this with more info when I get access to my PC
Sent from my GT-S5830 using Tapatalk 2
Huh, finally. Thanks a lot dev. This is much better than all those crap tutorials I found when I searched on Google. If you copied from someone, please give credits
Sent from my GT-S5830 using xda premium
Rishris said:
lIf you copied from someone, please give credits
Click to expand...
Click to collapse
No, I did not copy. I wrote on my own :beer:
Sent from my GT-S5830 using Tapatalk 2
Why no one uses apktool and 7-zip
Sent from my GT-i9070 using xda premium
tj_droid said:
....19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your new file to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
Click to expand...
Click to collapse
This part is very important. Push directly to /system/framework folder may will be end with bootloop, FC...
(from my exprience)
btw good tutorial.
{
"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"
}
i did it like 10 times! dont have resource.arsc after compiling
here is the log http://dl.dropbox.com/u/54790911/New%20Text%20Document%20%282%29.txt
When i decompile framework-res from Miracle v4, i get a lot of errors with png, how do i fix this?
R4Ck said:
When i decompile framework-res from Miracle v4, i get a lot of errors with png, who do i fix this?
Click to expand...
Click to collapse
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
CoolCatGetHome said:
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
Click to expand...
Click to collapse
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
R4Ck said:
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
Click to expand...
Click to collapse
You should follow the tutorial by music.soul on patching .9.png s. U cant just edit them like normal pngs.
And, sorry , thanked u by mistake.ENJOY
Sent from my GT-S5830 using Tapatalk 2 Beta-5
Apk tool is better.100%.
Apk manager doesn't compile right.
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
+1
when you edit .9.png (I'm using Photoshop CS5)
after flatten image & save for existing image, it not save with .9.png.
for example:
filename.9.png it will be save to filename.png.
you must manually put .9.png
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
I prefered apktool. Both tools are better it defend on how we using it.
Both are can't functions properly if our give wrong commands, wrong prefix...etc
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
vaibhavx said:
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
Click to expand...
Click to collapse
My pleasure
Sent from my GT-S5830 using Tapatalk 2
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
mor_1228 said:
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
Click to expand...
Click to collapse
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
u have links for that ? if yes then can u post tutorial.
i need to learn how to edit xml files androidmanifest.xml because i want to change the name of a app. can u do that for me ?
like app name is abc but i want xyz. this the name which we see in app drawer or manage applications.
Did this for a friend on the razr - but I'm on an Atrix 2, so it's not that much different... (original post can be found here)
Included are ODEXED versions (for your stock, rooted razr, if you so desire) of the 1% battery increments and horizontal scrollable quick panel toggles. This will also remove the carrier name from the pulldown menu (you're on your own for getting it back or removing it from the lockscreen if you want - this might help).
{
"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"
}
NOTE: CDMA ONLY - This was made from and installed on DROID RAZR System version 6.16.211.XT912.Verizon.en.US on ICS 4.0.4 - not sure about cross-system compatibility, but I wouldn't try it without a backup plan..
I am not responsible for your phone.
Download & Install:
(The following is the way I installed it using whirleye's BootMenu app - feel free to unzip and/or use your own method to install)
-Download RAZR_ICS_ODEXED_1perBatt_DropTogs.zip to your sdcard
-Boot into recovery with BootMenu
-Wipe dalvik & cache partition
-Install zip & Reboot
Credits & Thanks:
I ported these both over to ICS from GB for the A2... then moved them over to the RAZR (it involves a lot of edits, additions, deodexing and re-odexing)
-Major credit goes to nitroglycerine33 for the scrollable toggles
-Thanks also to cogeary for bringing nitro's work to the A2
-Thanks to he_stheone64 for the battery icons (except the unknown (?) batt image, that was me)
-Thanks to iwabashu for the use of the RAZR and the screenie
-----------------------------------------
Original post (but, very applicable to the RAZR variants): http://forum.xda-developers.com/showthread.php?t=1803516
PORTING THE 1% BATTERY INCREMENTS & DROPDOWN (QUICK PANEL) TOGGLES TO YOUR SYSTEM VERSION
This guide is based on moving these mods for ICS to other similar ICS-running devices. The process varies a bit going from GB to ICS. Or ICS to JB..
You will need:
Your deodexed SystemUI.apk
Your deodexed services.jar
Copies of deodexed SystemUI.apk & services.jar with the mods
Apktool /Smali/Baksmali tools
Notepad++ or similar text editor
7-zip or similar archive manager
WinMerge or Meld or similar diff/compare tool (a very useful tool that allows you to compare two folders or files side-by-side, and points out the differences for you)
Click to expand...
Click to collapse
My “get started” thread may hold some tips for accomplishing the tasks below – check it out HERE
IMPORTANT: This guide is to help you get these mods to your system, for your personal use. If you take the toggles from above and decide to use them in a ROM, be certain to credit nitroglycerine33 for his work.
Click to expand...
Click to collapse
Don't forget to install your framework for apktool by putting your framework-res.apk next to apktool, cd to that folder (or hold-shift right-click), and do a:
Code:
apktool if framework-res.apk
SystemUI.apk:
-decompile your deodexed SystemUI.apk
-rename the one with the mods to something else like SystemUI2.apk, and decompile also
For the dropdown toggles:
-add quickpanel smali
Copy the “quickpanel” folder from the modded com\android\systemui\statusbar folder to the same location in your stock
-add quickpanel_quick_settings.xml to layout folder
Open the modded SystemUI.apk\res\layout folder and copy the quickpanel_quick_settings.xml to your stock layout folder
NOTE: Some older toggle mods may not have this xml, all of the code was included in the status_bar_expanded.xml (Big thanks to nitroglycerine33 for the new xml code that is so much easier to work with)
-edit status_bar_expanded.xml or status_bar_tracking.xml for new qp xml (see below for options - some don't have the _tracking.xml - it's all in expanded, I think)
Open the modded SystemUI.apk\res\layout\status_bar_expanded.xml and add this line:
Code:
<include layout="@layout/quickpanel_quick_settings" />
(this will put the toggles between the date and notifications)
OR
(this will put the toggles above the date, directly under the status bar)
OR
delete the "include layout" line entirely from status_bar_expanded and open status_bar_tracking.xml
(this will put the toggles at the very bottom, attached to the close bar)
-add 33 quickpanel images
Add or copy the 33 .png images associated with the quickpanel toggles from the modded SystemUI.apk\res\drawable-hdpi to your stock /drawable-hdpi folder
-add qp lines to ids.xml
Open the modded SystemUI.apk\res\values\ids.xml and copy all of the quickpanel ids to your stock ids.xml (there should be 41 lines at the bottom of the xml – selected in the screenshot below)
-add qp lines to strings.xml
Open the modded SystemUI.apk\res\values\strings.xml and copy all of the quickpanel strings to your stock strings.xml (there should be 15 lines at the bottom of the xml – selected in the screenshot below)
-add qp to public.xml
(NOTE: The resource ID’s in the public.xml need to be unique – meaning that no two alpha-numeric IDs can be the same. If you are lucky, you can just use the trick below and copy the resource IDs entirely from the modded xml. So, before you copy and paste, check a few of the modded resource ID’s against your stock. If you need to assign new ID’s, just stop here, compile your SystemUI.apk, then decompile it again and look for the new IDs created in the public.xml – you will then need to copy those resource IDs over to the quickpanel smali files - with a lot of cross-referenceing.)
Open the modded SystemUI.apk\res\values\public.xml and copy the quickpanel lines from the public type = “drawable” (33 lines), “string” (15 lines), and “id” (41 lines) to your stock public.xml (do not worry about the drawables for the battery images)
For the 1% Battery:
-add stat_sys battery xmls
Open the modded SystemUI.apk\res\drawable folder and copy stat_sys_battery.xml and stat_sys_battery_charge.xml to your stock drawable folder and overwrite the existing
-204 battery images
Add or copy the 204 .png images associated with the 1% battery increments from the modded SystemUI.apk\res\drawable-hdpi to your stock drawable-hdpi folder
-compile the SystemUI.apk (make sure that you saved your original signatures (META-INF folder), and do not compress the resources.arsc - meaning, take it out of the apk and re-add it to the apk in "store" mode with 7-zip)
-it is suggested to decompile the newly modded apk, and check that all of your new edits are still there
Click to expand...
Click to collapse
services.jar
For 1% battery mod only (toggles are done):
-baksmali the classes.dex from your services.jar, and rename the folder to my_classout, or something
-baksmali the classes.dex from the modded services.jar, and rename the folder to mod_classout, or whatever
-edit BatteryService.smali
Open the modded com\android\server\BatteryService.smali and your stock BatteryService.smali with WinMerge or Meld and compare the two files.
(What..? You didn't think I'd do it all for you, did you?)
Update: See HERE
-reassemble (smali) into a new classes.dex and copy to and overwrite the existing one in your services.jar with an archive manager
Click to expand...
Click to collapse
***ATTACHED ARE THE DEODEXED STOCK & MODDED XT912 FILES FOR YOUR REFERENCE AND TO COMPARE***
If this is for an ODEXED system, you must then re-odex the SystemUI.apk and services.jar. See HERE for how to do that
These were originally ported using a similar process from GB to ICS for the Atrix 2 (except I ended up re-doing all of the resource ID's in the quickpanel smali). Since then, I have used the above method to move both mods over to the RAZR. --- UPDATE 9/13/12: I also used this method to move the 1% battery increments over to CM10/JB for the A2... watch the v3, v4, etc, notation in the BatteryService.smali... pay attention to detail.
Please post questions or PM with complaints.
Big thanks to nitroglycerine33, cogeary, and whoever else first did the smali/xml coding, and all the devs/modders who came before..
EDIT (2012.12.25): Attached a zip below to restore stock odexed xt912 ICS files and remove this mod. Wipe dalvik cache and flash in custom recovery.
Any confirmation from anyone that all toggles work? I would love to do this to my phone. Im on. 215 willing to try it. But what happens if it doesnt work. How do i revert back to normal? Sbf?
Sent from my DROID RAZR using xda app-developers app
lrlooly said:
Any confirmation from anyone that all toggles work? I would love to do this to my phone. Im on. 215 willing to try it. But what happens if it doesnt work. How do i revert back to normal? Sbf?
Sent from my DROID RAZR using xda app-developers app
Click to expand...
Click to collapse
Not sure if it will work on .215..
But, you should always have a good backup just in case something goes wrong.. sbf should be a last resort.
Or you can create another zip package with your current working copies of the 4 files that will be replaced by this zip package. You can probably just use this zip package and drop your current apk/jar/odex files in there and put it on your sdcard also... And if it bootloops, go into recovery and flash the zip to restore your original files..
This might help - there's a small section at the end about making zip packages: http://forum.xda-developers.com/showthread.php?t=1753659
Sent from my phone's mind
Just an warning for GSM Users > Crackflasher as i'm, i had to try it
Stuck on Bootanimation, so nandroid back
HSD-Pilot said:
Just an warning for GSM Users > Crackflasher as i'm, i had to try it
Stuck on Bootanimation, so nandroid back
Click to expand...
Click to collapse
Yea.. cdma only - as it's the SystemUI.apk and services.jar getting changed.
I updated the OP. Sorry bout that.
Sent from my phone's mind
No problem, I expected nothing else
I just tried it anyway.
Sent from my CustomiZed XT910
Wont install on. 215. Not sure if there is something i did wrong however.
Sent from my DROID RAZR using xda app-developers app
Did not work for me either, stock ics, rooted. I would love to get this on my phone.
Sent from my DROID RAZR using xda premium
alteredlikeness said:
NOTE: CDMA ONLY - This was made from and installed on DROID RAZR System version 6.16.211.XT912.Verizon.en.US on ICS 4.0.4 - not sure about cross-system compatibility, but I wouldn't try it without a backup plan..
I am not responsible for your phone.
Click to expand...
Click to collapse
lrlooly said:
Wont install on. 215. Not sure if there is something i did wrong however.
Sent from my DROID RAZR using xda app-developers app
Click to expand...
Click to collapse
chris3582 said:
Did not work for me either, stock ics, rooted. I would love to get this on my phone.
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
If it's not the system version listed, it doesn't work for you.
chris3582 - what version are you? How are you trying to install?
And you guys all have recovery on boot working before trying these things, right?
Sent from my phone's mind
chris3582 said:
Did not work for me either, stock ics, rooted. I would love to get this on my phone.
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
The updater script uses busybox. If you don't have busybox in sbin directory it most likely will not install.
From my ICED down MAXX!
alteredlikeness said:
If it's not the system version listed, it doesn't work for you.
chris3582 - what version are you? How are you trying to install?
And you guys all have recovery on boot working before trying these things, right?
Sent from my phone's mind
Click to expand...
Click to collapse
I am trying to flash it using safestrap.
Sent from my DROID RAZR using xda premium
chris3582 said:
I am trying to flash it using safestrap.
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
Yea, that's what I was afraid of.. I do not have much experience with safestrap. It might just be that the updater-script needs to be revised... it's made for cwm recovery, and I used whirleyes BootMenu to install..
If someone with experience wants to convert this mod to work with safestrap.. please feel free
Sent from my phone's mind
Awesome!
Thanks! works perfect.
I tried it with my stock rooted vzw .215. It doesnt work. My phone would just stay in the start-up animation. I had to fastboot back to. 211.
lrlooly said:
Any confirmation from anyone that all toggles work? I would love to do this to my phone. Im on. 215 willing to try it. But what happens if it doesnt work. How do i revert back to normal? Sbf?
Sent from my DROID RAZR using xda app-developers app
Click to expand...
Click to collapse
DROIDESP said:
Thanks! works perfect.
Click to expand...
Click to collapse
Finally! - Thanks for letting me know that it does work on someone else's phone! I mean, with over 30 downloads you are the first to verify it works (besides my friend who I originally made it for).. thanks.. and enjoy
Sent from my phone's mind
alteredlikeness said:
Yea, that's what I was afraid of.. I do not have much experience with safestrap. It might just be that the updater-script needs to be revised... it's made for cwm recovery, and I used whirleyes BootMenu to install..
If someone with experience wants to convert this mod to work with safestrap.. please feel free
Sent from my phone's mind
Click to expand...
Click to collapse
Can anyone let me know if this works with the Razr stock recovery and not just CWM?
Thanks!
Screenshot Included
alteredlikeness said:
Finally! - Thanks for letting me know that it does work on someone else's phone! I mean, with over 30 downloads you are the first to verify it works (besides my friend who I originally made it for).. thanks.. and enjoy
Sent from my phone's mind
Click to expand...
Click to collapse
Thanks again! Thought I would send a screenshot so you know!
DCDD85 said:
Can anyone let me know if this works with the Razr stock recovery and not just CWM?
Thanks!
Click to expand...
Click to collapse
Stock recovery? Probably not. Why not just install BootMenu?
Also, you guys can just take the apk/odex files from the zip and install them by different means.. like adb or root explorer.. just make sure that you set proper permissions, then reboot.
Sent from my phone's mind
DROIDESP said:
Thanks again! Thought I would send a screenshot so you know!
Click to expand...
Click to collapse
Thanks!
Side note: Kenosha, huh? I'm in MKE... and the guy I made it for is near Burlington.. small world
Sent from my phone's mind
Ha!
alteredlikeness said:
Thanks!
Side note: Kenosha, huh? I'm in MKE... and the guy I made it for is near Burlington.. small world
Sent from my phone's mind
Click to expand...
Click to collapse
Funny, I strongly considered removing BW before taking that screenshot.... Its a very small world! I'm up in MKE all the time. PM me sometime we can break some phones.
" This thread will cover various useful guides starting from how to Decompile/Recompile Apk & Jar files. Me & my friend Aneel will provide new guides/tutorial day by day so that you guys can get many handy guidance in one place. Please Suggest us If you need any guide & we will try to post it If we actually can. Also If you find our guides useful then support us my giving feedback, hitting thanks & adding in credits section "
1st Let's start with [How to decompile & recompile with Apk Multitool]:
*Requirements*
Latest Java
Latest JDK+JRE (get everything from http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Apk Multi Tool (Download from attachment)
Steps
1. Unzip Apk Multi Tool into a folder
2. Now run Setup.bat. It will look like this
{
"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. Now choose 3. Setup Directories & press enter
4. This will create the folders needed. It will look like this
5. Now place the apk you want to decompile in place-apk-here-for-modding
6. Place a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder. Preferebly it should be from the same package of apk/same apks of a Rom which you placed in the place-apk-here-for-modding folder. If there is no corresponding apks then you can try with other framework & systemUI apks also.
7. Now again run Setup.bat & press enter & choose 2. Installing Framework-Res. It will look like this
8. Now choose option 1 & enter to install framework & again option 4 & enter to install SystemUI
9. Now run Script.bat & press enter to activate various menu. Choose option 9 to decompile the apk. Then press enter. It will look like this
10. Once decompile is complete close the script & go to projects folder
11. Do the necessary changes you want to
12. When editing is done again run Script.bat
13. Choose option 11 to recompile & press enter. It will prompt a message after sometimes, Aside from the signatures....of errors (y/n)
14. Input y & press enter
15. Now after sometimes, it will again ask you to delete everything you have modified from keep folder & also delete resources.arsc if you have modified any xml. Minimize the script, delete the xml(s) you have modified (other than from values folder, it won't appear in keep folder) & also resources.arsc. If you have modified any png (not added) then delete it too. Then press enter when you are ready.
16. Now your new apk is ready. You can find it in place-apk-here-for-modding folder. Note that, your original apk will also be in the same folder with original name. Your modified apk will have System_ attached in the name.
17. Copy it to some other place & rename to original apk name & enjoy.
18. When you want to work on the next project then delete everything from place-apk-here-for-modding & projects folder. Now follow the same steps again from Number 5 of this guide.
[How to decompile & recompile Jar Files]:
*Requirements*
Winrar/7zip
Deodexed Jar files
smali.jar
baksmali.jar (both are in the attachment)
Command Prompt/Terminal
0. Take the classes.dex from jar file by opening it with 7zip/Winrar.
1. Open a new folder in Desktop named suppose "Jar"
2. Place smali.jar & baksmali.jar in the folder
2. Open Command Prompt. On windows type cmd in Run
3. cd to your directory where you have opened the new folder. In my case it is
Code:
C:\Documents and Settings\USER\Desktop\Jar
4. Write
Code:
cd C:\Documents and Settings\USER\Desktop\Jar
& press enter. Note that, on your case the directory will be different from mines. So get the correct directory by going into that directory from C:
5. Now type this to Decompile. Note that, there is a "space" before "classes.dex"
Code:
java -jar baksmali.jar -o classout\ classes.dex
& press enter
6. When Decompiling is done there will a folder named "classout" be placed in Jar folder. Minimize the cmd.
7. Now make the necessary changes inside the classout folder
8. When done,type this to recompile & press enter. Remember, there is a "space" before "new-classes.dex"
Code:
java -Xmx512M -jar smali.jar classout\ -o new-classes.dex
9. When recompiling is done there will be a new file in the folder named "new-classes.dex"
10. Now rename new-classes.dex to classes.dex & put it in the jar file with 7zip/Winrar
..............That's All. Thank You.................
Credits:
@raziel23x for Apk Multitool
@iONEx for teaching me about Apk Multitool when I was a noob
@Hero for Decomping jar files concept
Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.
Aciong.Aksaya said:
Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.
Click to expand...
Click to collapse
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397
saqib nazm said:
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397
Click to expand...
Click to collapse
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.
Aciong.Aksaya said:
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.
Click to expand...
Click to collapse
here is the guide http://en.miui.com/thread-4353-1-1.html
Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"
Razor! said:
Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"
Click to expand...
Click to collapse
Right! Thanks Razor,now it's correct :good:
saqib nazm said:
Right! Thanks Razor,now it's correct :good:
Click to expand...
Click to collapse
Welcome
Press thanks if you like my work/advice
@saqib nazm, it would be good if you add tut on how to recompile apks after making changes in androidmanifest.xml.. Because I have observed it gives bootloops.. As signing of apps just puts meta inf and doesn't do anything to androidmanifest.. Just a suggestion..
Sent from my MT11i using xda premium
sandy7 said:
here is the guide http://en.miui.com/thread-4353-1-1.html
Click to expand...
Click to collapse
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?
First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
After that,in step 7&8,when I choose option 1 & enter to install framework & again option 4 & enter to install SystemUI,I get this screens
So,in step 9,Run Script.bat & press enter to activate various menü choose option 9 to decompile the apk. Then press enter,I get errors like this
And so,projects folder is empty.What is the problem and what can I do?
Mazellat said:
First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
Click to expand...
Click to collapse
that could be a problem with that apk, you cannot decompile it. If you have done all the steps properly as you said can you try with any other apk? so to be sure if that's the problem with that apk
Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
saqib nazm said:
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?
Click to expand...
Click to collapse
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...
Aciong.Aksaya said:
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...
Click to expand...
Click to collapse
Oh ok I am extremely sorry then. Have a nice day
Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium
danisariandi said:
Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium
Click to expand...
Click to collapse
bro I have told you how to do it that day in the original thread, which part you didn't understand? You asked about smali files, you don't need any smali files man.
Kjkkkkkkkkk
poria1999 said:
Hi all members
I have some problem in recompiling apk files...
When i compile apk and delete resources.arsc+xmls that i have modified them,anything didnt change in apk ...
i am working on framework-res.apk ...
please helpe me...
Click to expand...
Click to collapse
what were you trying to change? & what you did?
Yyyyyyyyyyyyyyyyyyyyyy