[Guide] 3Min Battery Mod(Step By Step Instructions) using BatchApkTool - Nexus 6P Q&A, Help & Troubleshooting

Hi guys, i really love the 3Min battery Mod from @gharrington Tyvm bro. There is a lot of threads of how to make it yourself but i think most of them are not too detailed and cover everything. So since i use these instructions my self i thought of sharing them in case someone may benefit from it.
Preparation: :
1. Download the latest BatchApkTool .
2. Tools needed and how to extract System.img.
3. Recommended tools needed: Notepad ++, 7zip or Winrar
Instructions::
A.
1. Download the latest BatchApkTool unzip it and move the need files to their designated folders explained in the next step.
2. We need to get SystemUI folder and framework folder(Inside it Framework_res.apk and arm64 folder is needed) either from a System.img in that case use the guide in the preparation section on how to extract it or import them from your device using any file manager with root.
3. Put SystemUI folder in _priv-app folder, and framework folder in to _framework folder.
B.
Open BatchApkTool select your language make sure that all the settings match your rom, enter the following numbers for changes:
83. Smali(By default it's the latest "2.2 latest when writing this" so just check it in case)
84. Api level: ------------- select 23( for Marshmallow)
85. Apktool(By default it's the latest stable version "it was 2.2.0 when writing this" just make sure it is)
C.
1. Under Smali section select '01 Deodex all apks and jars'(In case your rom isn't deodexed yet if it is skip this step). If your rom is stock then your SystemUi.apk needs to be deodexed for this to work. (For Nexus 6p select Arm64 when asked)
2.Under Smali section select '02' to move the deodexed files to _Input_Apk folder.
*Make a backup of META-INF folder and AndroidManifest.xml after extracting them from the deodexed SystemUI.apk file using Winrar or 7zip.
3.Under ApkTool section select '1' to decompile Apks.
4. After that go to _Input_Apk folder and open the decompiled SystemUI folder, navigate to res/layout/system_icons.xml and open with notepad ++
5. Find:
Code:
android:layout_width="9.5dip"
and
Code:
android:layout_height="14.5dip"
Note: These values may not be an exact match, doesn't matter
Change both values to
Code:
android:layout_width="0.0dip"
and
Code:
android:layout_height="0.0dip"
6. Hit enter and directly underneath that line add the following:
Code:
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
7. Save your work and close notepad ++
8. You now need to navigate to smali/com/android/systemui/statusbar/policy folder
** Download the latest Modfiles package(3MinitBatterySettings, MinitBatteryResources, 3 Smali files) needed from here or main website.
9. Copy the 3 smali files(files that end with .smali) into that policy folder.
10. Time to recompile the SystemUI.apk. Under ApkTool section select '3 recompile apks' in Batchapktool.
11. Once recompiling of SystemUI.apk is complete go to it in _OUT_APK you will find it there, open it with 7zip or Winrar and Don't Extract.
12. Delete META-INF folder and AndroidManifest.xml from newly recompiled SystemUI.apk and replace them with the original backup we took in step C.2.
13. Download the 3MinitBattery_Template1.zip(will remove original SystemUi.apk and replace it) or 3Minit_Battery_Template2.zip(Will not remove the original SystemUi.apk and will leave it for you to remove it manually in case you want to back it up).
14. Use one of the template zips then open it don't extract it just open it with Winrar or 7zip and drop 3MinitBatterySettings, MinitBatteryResources that we got in step C.8 to their respective folders in the zip file. Drop the newly recompiled SystemUI.apk to SystemUI folder if you choose template 1 and if you choose template 2 put it in priv-app folder.
P.s: If you choose template 2 after flashing it go to system/priv-app/SystemUI folder in your device and with any file manger with root delete SystemUi.apk after you back it up to where ever you choose then reboot the device.
15. After this make a backup of your rom and flash the zip.
16. To use 3minBattery app open it and choose your customization then reboot you should see the changes after that. Good luck! :good:
Credits go to:
- @gharrington for his Mod&Guide.
- bursoft for Batch ApkTool.
- @bdorr1105 for his Thread.
- https://androidmtk.com for the Guide&Tools.

Awesome tutorial.. I am looking to add it into a modified stock rom for a Samsung tablet that I have.. Do you know of any easy to follow tutorials for that? i am very new to this part of android..lol.. i am usually on the flashing end and now i am trying to help out for this tab because it has no custom roms until mine. Again, awesome tutorial.

glockman4519 said:
Awesome tutorial.. I am looking to add it into a modified stock rom for a Samsung tablet that I have.. Do you know of any easy to follow tutorials for that? i am very new to this part of android..lol.. i am usually on the flashing end and now i am trying to help out for this tab because it has no custom roms until mine. Again, awesome tutorial.
Click to expand...
Click to collapse
Ty much appreciated. It has been a while since I created this thread since then I have stopped using this mod because it's kind of a headache to do it for every update add to that since Google already enabled the battery percentage inside the battery there was no need any more for the mod. Anyway it's still great to be able to change from time to time. Regarding the tutorial I am sorry to say I haven't tried to create a custom ROM so I can't help you much with that but I am sure there are a lot of tutorials but will require some time to search. Good luck with your project.

Related

Help with compiling apk for framework-res

I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
You have to sign it with 12
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Tried it, still boot loops at the Archos screen. I then have to do a complete format & wipe reinstalling the SDK, firmware, and the root files. I don't get it.
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
msticninja said:
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
Click to expand...
Click to collapse
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Rockstar52 said:
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Click to expand...
Click to collapse
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
msticninja said:
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
Click to expand...
Click to collapse
No but I will give it a try and report back.
None of my changes are taking effect??!
Still not working, just a question. I am running Win7 64bit could this be the problem?? Do I need to be on a 32bit system to do the decompiling, compiling?
Tried on my wife's 32bit system still the same. For some reason it's not compiling the .apk right.
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
waterpolo said:
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
Click to expand...
Click to collapse
No, I did not. Was I supposed to?
EDIT: Ok I did some digging and what I have found is that the file size of the original framework-res.apk is 9.32mb. Once I rebuild it whether I modified anything or not the rebuilt .apk is only 7.34mb. Upon further inspection it seems to leave out all of the "value" named folders from the newly built .apk, and it does this whether I use APKTool or APK Manager(even though I say keep files). Has anyone else had this problem?
IM having the same problem,no solution though ! i edited bools.xml but after recompiling its not there ! Anyone solution ?

[Q] How to create an flashable .zip file

Hello all,
I am looking for a good comprehensive guide to creating my own .zip files to flash certain changes I like to make when flashing a rom or just adding files.
Now I have found a few good guides here on XDA but they seem to no longer apply as the update script needs to be in edify and not amend. This is the issue I am having so if anyone can point me to a walk through that explains this type of thing I would appreciate it.
Anyone?
lol, i dont think developers/people-with-knowledge would go into a Q&A sub-forum .
I'm neither on of them, however here is my would-be-successful attempt p) :
1- Make all your modifications and finalize them, the root folder must be /system/ .
2- use apktool to recompile as an apk (apktool b system)
3- sign that .apk.
4- rename extension to zip and violla
theoretically, it should work.
Not shure if this can help you, but i created a zip (original Script is from dungphp) to replace files on my device from CWM:
http://forum.xda-developers.com/showthread.php?t=1241244

[GUIDE] MODDING ICS (16-May-2012) Beginners modding guide.

{
"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"
}
​
FIRST READ THIS !!!
-I will try to put it simple , and remember I don't know everything!
-I'm not a helpdesk , somethings you need to figure out yourself , don't expect me to put all my time in guiding you personal so please don't pm me about questions!!
-Second this is not a request thread , this is a do it your self thread!!!!!!
-I start with simple things and build my way up! I will also point you to the tools or upload the tools you need when it comes to that.
-All things I post here are mods I tried so if it doesn't work on your pc , IT is your pc setup not mine!
(My system is Windows 7 64bit professional.)
Click to expand...
Click to collapse
Mods that need no decompiling and recompiling of a APK (Difficulty Level x---)
(Only thing you need for this is WinRar or 7Zip and Graphic program)​
1:Changing background color of the MENU on ICS.
-Extract the framework-res from the rom zip (system/framework) using a zip extracter (WinRar or 7Zip)
-You got the "framework-res.apk" , you extract that with WinRar like you would extract a zip file.
-Now you got the "framework-res" folder with his extracted content in that folder.( Remember this is not decompiling so only simple .jpg/png files can be switch this way NOT ".9.png" files)
-Now navigate to "framework-res/res/drawable-nodpi = background_holo_dark.png".
-You can use 2 sizes for it , default size is 512x512 the other size you can use is 1155x685 (for pictures with more than colors)
-Mod background_holo_dark.png the way you want.
-If finisched you select all folders and files (ctrl-a) in the "framework-res" folder and create a new zip file of it , BUT as you want to create it you change the "framework-res.zip" to "framework-res.apk " , now you create it with WinRar on store setting !
-You should have your own framework-res.apk now .
-Get the" MOD-INSTALLER.zip " I put in the attachments and you open it with WinRar (don't unpack it) , there is a folder "system/framework" , navigate to it using WinRar and now you drag the "framework-res.apk" you modded to that folder.(WinRar will ask to put it in the .zip file , you confirm this ).
-Put the "MOD-INSTALLER.zip " on your tablet and flash with CWM.
Click to expand...
Click to collapse
2:Changing the soft touch buttons(Home , Back , Menu , recent) and more icons like Wifi , etc.......
(This not for battery % mod , for that we need to decompile or use a SystemUI with battery % mod already build in , I will upload one that is prepared for battery% and one stock , see attachments)
(On a later stage we are going to build our own SystemUI.apk with battery% mod included and change the statusbar , but that involves decompiling , signing , and modding .9.png images and is of modding level ,xxx-)
Using the attached SystemUI =
Rename the "STOCK-SystemUI.zip" to "SystemUI.apk" before you flash it.
Rename the "%-SystemUI.zip" to "SystemUI.apk"before you flash it.
Click to expand...
Click to collapse
-Extract the "SystemUI.apk" from the rom zip (system/app) using a zip extracter (WinRar or 7Zip)
-You got the "SystemUI.apk" , you extract that with WinRar like you would extract a zip file.
-Now you got the "SystemUI" folder with his extracted content in that folder.( Remember this is not decompiling so only simple .jpg/png files can be switch this way NOT ".9.png" files)
-Now navigate to "SystemUI/res/drawable-mdpi = Here you can find all the Icons for the soft-touch buttons , wifi icons , AcerRing Icon and battery Icon
-Mod ....png the way you want or replace them with other icons but respect the image size as much as you can (A little of is no problem) .
-If finisched you select all folders and files (ctrl-a) in the "SystemUI" folder and create a new zip file of it , BUT as you want to create it you change the "SystemUI.zip" to "SystemUI.apk " , now you create it with WinRar on store setting !
-You should have your own SystemUI.apk now .
-Get the" MOD-INSTALLER.zip " I put in the attachments and you open it with WinRar (don't unpack it) , there is a folder "system/app" , navigate to it using WinRar and now you drag the "SystemUI.apk" you modded to that folder.(WinRar will ask to put it in the .zip file , you confirm this ).
-Put the "MOD-INSTALLER.zip " on your tablet and flash with CWM.
Click to expand...
Click to collapse
Changing the layout of the AcerRing.
(I added the stock AcerRing.apk in attachments , just rename it from AcerRing.zip to AcerRing.apk)
-Extract the "AcerRing.apk" from the rom zip (system/app) using a zip extracter (WinRar or 7Zip)
-You got the "AcerRingI.apk" , you extract that with WinRar like you would extract a zip file.
-Now you got the "AcerRing" folder with his extracted content in that folder.
-Now navigate to "AcerRing/res/drawable = Here you find all the .png's that you can mod to change the look of the ring.
-Mod ....png the way you want (YOU NEED TO RESPECT THE IMAGE SIZE).
-If finisched you select all folders and files (ctrl-a) in the "AcerRing" folder and create a new zip file of it , BUT as you want to create it you change the "AcerRing.zip" to "AcerRing.apk " , now you create it with WinRar on store setting !
-You should have your own AcerRing.apk now .
-Get the" MOD-INSTALLER.zip " I put in the attachments and you open it with WinRar (don't unpack it) , there is a folder "system/app" , navigate to it using WinRar and now you drag the "AcerRing.apk" you modded to that folder.(WinRar will ask to put it in the .zip file , you confirm this ).
-Put the "MOD-INSTALLER.zip " on your tablet and flash with CWM.
Note about AcerRing:
AcerRing is not supported on all ICS roms , just flashing the AcerRing.apk is not enough to make it work, that is rom building and a whole different thing
Click to expand...
Click to collapse
Changing the default wallpapers or creating your own:
(I added a template(created by scottw714) (A500 HD Template.psd in a zip file ) in attachments that you can use to mod wallpapers so if you put a text in the wallaper it is put in the center or you can line it out with the helping lines , you will need a graphic program that support this type of working file (I use "paint shop pro" for all my modding)
-Extract the "Launcher2.apk" from the rom zip (system/app) using a zip extracter (WinRar or 7Zip)
-You got the " Launcher2.apk " , you extract that with WinRar like you would extract a zip file.
-Now you got the " Launcher2" folder with his extracted content in that folder.
-Now navigate to " Launcher2/res/ drawable-sw600dp-nodpi = Here you find all the wallpapers.
-Mod ....wallpapers or replace the ones that are there ,but you need to keep the original name (so just adding wallpapers won't work) and you need to respect the size. You got the excual wallpaper (1920x1408) and the _small version (180x180)is the one you see when you select it in settings.
-If finisched you select all folders and files (ctrl-a) in the "Launcher2" folder and create a new zip file of it , BUT as you want to create it you change the "Launcher2.zip" to "Launcher.apk " , now you create it with WinRar on store setting !
-You should have your own Launcher2.apk now .
-Get the" MOD-INSTALLER.zip " I put in the attachments and you open it with WinRar (don't unpack it) , there is a folder "system/app" , navigate to it using WinRar and now you drag the "Launcher2.apk" you modded to that folder.(WinRar will ask to put it in the .zip file , you confirm this ).
Click to expand...
Click to collapse
Changing the bootanimation
You got 2 options , use the BootAnimation-Flasher or do it manualy.
Using the BootAnimation-Flasher (see attachments):
-You open the "BootAnimation-Flasher with winrar or 7-zip (don't upack).
-Go to the folder system/media = here you put your "bootanimation.zip" (and it has to have that name!!!)
-Put the "BootAnimation-Flasher on your tablet and flash with cwm ( Your current bootanimation will be overwriten)
Doing it manualy (you need to have full root):
-Use a file manager with root permission (example: EsFileExplorer)
-Navigate to system/media = Here you put your "bootanimation.zip" (and it has to have that name!!!)
-You can backup your other (if there is one already installed) bootanimation.zip in system/media by copy/past it to a other place or just by renaming it to "bootanimation.zip.bak"
Note :
If you delete the "bootanimation.zip" and don't replace it in system/media you will get the stock android bootanimation , that is present on all Stock Acer ICS roms.
Click to expand...
Click to collapse
More to come , I will try to do something everyday.
Decompiling & recompiling apk
Decompiling and recompling APK (Difficulty level xxx-)​
First we need
-Install android SDK and make sure when you run installation you select the tools and platform tools to install.(rest is of no use for Decompiling and recompiling a apk.
modding)
-Install Java SDK (JDK & JRE)(I install the Java SE 7.. and the SE 6.. as some tools only run on SE 6..) Make sure you install the JAVA Runtime (JRE)
-APK_MAnager_ICS that I put together so it works on ICS apk's.
You can also use APK-MultiTool , just google it but I don't like that new layout (personal I think)and the decompiling and recompiling doesn't work on ICS without problems.
Click to expand...
Click to collapse
We are gonna build the battery% mod into the SystemUI.apk(you can use the Stock SystemUI that I added in attachments above).​
Extract the APK-Manager_ICS.zip and open that folder , You click on the "script.bat" , if nothing happens or you get a error (no adb) some of the Java stuff is missing or not installed correctly or the android SDK is not installed !!!!!!
Now lets begin building our SystemUI % mod
Decompiling:
-You place your APK in the folder "place-apk-here-for-modding
-Look at screenshot , make sure you use the correct apktool.jar , you find these in the APKtool-switch folder that I put in there. You put the correct apktool.jar in the folder "other" , if you use the wrong one decompiling and recompiling won't work.
You set your project
Select your project apk
Decompile
MODDING YOUR APK FOR %Battery
-Now in the "projects" folder you got to SystemUI/res/drawable-mdpi , here you add your battery icons from 0 - 100 , you can do this also for the charging icons.(I never change the charging stage icons ,I'm not interested to see a charging level in %)
-After you did that you go to SystemUI/res/drawable-sw600dp-mdpi , and here you delete all the battery icons , also the charging icons(just to save you some work)
(In this folder you also find the notify panel but these are .9.png files , that is for later but if you want to mod these now is the time)
-Now you go to SystemUI/res/drawable , here you replace the "stat_sys_battery.xml" with the one I put in the attachments (unpack the zip and use the xml file that is in it) Why use this XML , well then you don't need to mod it yourself.
If you also changed the charging level into % you need to change the "stat_sys_battery_charge.xml". Also see attachments.
Click to expand...
Click to collapse
RECOMPILING
-Now you go back to the Script.bat and run it , select your project (22) and choose the SystemUI (1 in this case) and select the option "11" , Recompile.
-It will start ...........
-Answer "Yes" when it asks wheter it is system file
-Answer "Yes" when it asks "would you like to copy over any additional files...?"
-Script is paused => (don't press a key) and a 'keep" folder is created.
-Go to the "keep" folder (it's in the same folder than "script.bat")
In this "Keep" Folder, (DON'T MISS A STEPP !!!)
-delete "resources.arsc" file (You always do this when you changed XML files)
-delete originals "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" from the "keep\res\drawable" folder
-delete all originals battery PNGs in / res/drawable-mdpi that were meant to be edited and delete the battery icons in /res/drawable-sw600dp-mdpi .
- Go back to "script.bat" and press a key to finish the job
Click to expand...
Click to collapse
-Your new "SystemUI.apk" has been created in the "\place-apk-here-for-modding\" folder. It's called "unsignedSystemUIapk".. but it's not working yet.
-Unzip all the content of the "unsignedSystemUI.apk".
-Select all the files in the "unsingedSystemUI" folder (ctrl-a) and with Winrar/7zip BUT as you want to create it you change the "SystemUI.zip" to "SystemUI.apk " , now you create it with WinRar on store setting !
-Get the" MOD-INSTALLER.zip " I put in the attachments and you open it with WinRar (don't unpack it) , there is a folder "system/app" , navigate to it using WinRar and now you drag the "SystemUI.apk" you modded to that folder.(WinRar will ask to put it in the .zip file , you confirm this ).
-Put the "MOD-INSTALLER.zip " on your tablet and flash with CWM.
Click to expand...
Click to collapse
NOTE !!!!
If it doesn't work from the first time keep trying you missed a step , If you got a error on decompiling or recompiling is because you are not using the correct "apktool.jar" that you need to put in the "other" folder. Or you missed a step.
Or you are using a apk that is corrupted with a previous mod (that is why I decompile and recompile all my mods so I can build on them , just copy/past images like in the easy step guide can result in errors when decompiling such a copy/paste apk.).
Click to expand...
Click to collapse
reserved2
Knowledge is power and this is why we share
thank you civ
You are a boss civato.
Envoyé depuis mon A500 avec Tapatalk
I'm not a helpdesk , somethings you need to figure out yourself , don't expect me to put all my time in guiding you personal so please don't pm me about questions!!
-Second this is not a request thread , this is a do it your self thread!!!!!!
Click to expand...
Click to collapse
Civato , you are now , you know that!!!!lol!!!!
Bossman civato
Sent from my Galaxy Nexus using Tapatalk 2
Added soft touch button mod.
Awesome!!!!!!!!!!
Thanks so much. Will have to give this a go.
Sent from my A500 using xda premium
Nice work, very useful
Added some more stuff , enjoy.
Hey, great work Civato! Just wondering, will your Mod Installer zip work with Thor's ROM? Thanks for everything!
chaosking121 said:
Hey, great work Civato! Just wondering, will your Mod Installer zip work with Thor's ROM? Thanks for everything!
Click to expand...
Click to collapse
Yes.
civato,
Decided to post this question in your modding ics thread.
I'm using the stock Acer_AV041_A500_1.031.00_WW_GEN1-FULL-ROOT zip you posted in another thread. I am slimming it down a bit but am having trouble finding the Docs to Go apk and odex files to remove them. It use to be DTG.apk in the system/app folder in 3.2. Is it under a different name somewhere in the original zip?
After install, the apk shows in the system/vendor/app; but in the original zip the vendor folder only contains fake.txt
Any help locating these would be appreciated.
Thanks
bytemehard said:
civato,
Decided to post this question in your modding ics thread.
I'm using the stock Acer_AV041_A500_1.031.00_WW_GEN1-FULL-ROOT zip you posted in another thread. I am slimming it down a bit but am having trouble finding the Docs to Go apk and odex files to remove them. It use to be DTG.apk in the system/app folder in 3.2. Is it under a different name somewhere in the original zip?
After install, the apk shows in the system/vendor/app; but in the original zip the vendor folder only contains fake.txt
Any help locating these would be appreciated.
Thanks
Click to expand...
Click to collapse
The stock one stores it in flexrom folder. That is where Acer puts his stuff.
possible to ad "change boot animation" ?
z-control said:
possible to ad "change boot animation" ?
Click to expand...
Click to collapse
yes, if i got time I do a quick write up on that.
EDIT:
Done , added the how to change bootanimation
I'm also working on the guideon how to decompiling and recompiling systemUI for battery% mod and statusbar modding , will take a few days as I'm very busy.
Decompiling & recompiling apk
New , see post 2 , level xxx-
Thanks civato
Envoyé depuis mon GT-I9100 avec Tapatalk
Thanks civato

[30/08][TUTORIAL][GUIDE] Learn to make your own 'eye-candy' mods [Easy Steps]

Hi, I'm open this thread with the intention of help to all the people who wants give some 'eye-candy' to their SGSII. I'm taking as base the mods that I made for the Resurrection Remix ROM but this not means that only work on the RR ROM, since, what you can find here are guides, the only necessary to do it's follow the steps with the files from the ROM that you want.
Feedback and comments are welcome.
Remember, always make a Nandroid Backup before of flash any mod!
If you are using the "Technical way" and have some troubles at the moment of decompile/compile, take a look on this thread.
⊗ INDEX OF TUTORIALS ⊗
Decompile the .apk method [Technical Way]
How-to modify the SystemUI background
How-to modify the Dialer background
How-to change the Lockscreen Icon to swype
How-to add the Carrier Name on the status bar
Drag & Drop Method [Easy Steps for noobs]
How-to modify the SystemUI background
How-to modify the Dialer background
How-to modify the Toggles of the notification area
Useful Guides
How-to do it your own theme by kroz46 Drag & Drop Method [Easy Steps for noobs]
'VRTheme template' method by VillainROM team [Tested with Jelly Bean builds]
'Universal Flasher Tool' method [NOT tested with Jelly Bean builds]
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
⊗ Decompile the .apk method [Technical way] ⊗
⊗ How-to modify the SystemUI background ⊗​
{
"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"
}
1.- Extract the framework-res.apk from the path /system/framework, for do this just decompress the main .zip of your ROM
2.- Decompile the framework-res.apk with Android-Utility if you are on Linux & MAC (this a powerful tool and very simple to use, please read all the OP of @TommyTommatoe) if you are on Windows then use APK Tool
3.- Go to the path /res/drawable-nodpi
4.- Rename the image that you want use as background_holo_dark.png (remember that the image needs to be a resolution of 480x800 for a better experience)
5.- Paste the image on the folder /res/drawable-nodpi for replace the original one
8.- Compile the framework-res.apk
9.- Sign the framework-res.apk
10.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
11.- Compress the folders META-INF and system in one .zip, name it as you want.
12.- Enjoy the MOD
⊗ How-to modify the Dialer background ⊗​
1.- Extract the Contacts.apk from the path /system/app, for do this just decompress the main .zip of your ROM
2.- Decompile the Contacts.apk with Android-Utility if you are on Linux & MAC (this a powerful tool and very simple to use, please read all the OP of @TommyTommatoe) if you are on Windows then use APK Tool
3.- Go to the path /res/drawable-nodpi
4.- Rename the image that you want use as background_dial_holo_dark.png (remember that the image needs to be a resolution of 480x800 for a better experience)
5.- Paste the image on the folder /res/drawable-nodpi for replace the original one
8.- Compile the Contacts.apk
9.- Sign the Contacts.apk
10.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
11.- Compress the folders META-INF and system in one .zip, name it as you want.
12.- Enjoy the MOD
⊗ Drag & Drop Method [Easy Steps for noobs] ⊗
⊗ How-to change the SystemUI background ⊗​
1.- Extract the framework-res.apk from the main zip of your ROM and open it with a double clic
5.- Go to the path /res/drawable-nodpi
6.- Rename the image that you want use as background_holo_dark.png (remember that the image needs to be a resolution of 480x800 for a better experience)
7.- Drag and drop the image on the folder /res/drawable-nodpi for replace the original one
8.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
9.- Compress the folders META-INF and system in one .zip, name it as you want.
10.- Enjoy the MOD
⊗ How-to change the Dialer background ⊗​
1.- Extract the Contacts.apk from the main zip of your ROM and open it with a double clic
2.- Go to the path /res/drawable-nodpi
3.- Rename the image that you want use as background_dial_holo_dark.png (remember that the image needs to be a resolution of 480x800 for a better experience)
4.- Drag and drop the image on the folder /res/drawable-nodpi for replace the original
5.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
6.- Compress the folders META-INF and system in one .zip, name it as you want.
7.- Enjoy the MOD
⊗ How-to change the Toggles of the notification area ⊗​
1.- Extract the SystemUI.apk from your ROM and open it with a double clic.
2.- Go to the path /res/drawable
3.- Here you need replace the two images named: btn_off.png and btn_on.png
4.- When you have your images ready just drag and drop both images on the folder /res/drawable to replace the originals.
5.- Go to the path /res/drawable-hdpi and find all the images for the toggles, example: toggle_2g_1.png
6.- When you have your images ready just drag and drop both images on the folder /res/drawable-hdpi to replace the originals.
7.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
8.- Compress the folders META-INF and system in one .zip, name it as you want.
9.- Enjoy the MOD
⊗ Extra Tutorials ⊗
⊗ How-to change the Lockscreen Icon to Swype [Technical way] ⊗​
1.- Extract the framework-res.apk from the path /system/framework, for do this just decompress the main .zip of your ROM
2.- Decompile the framework-res.apk with Android-Utility if you are on Linux & MAC (this a powerful tool and very simple to use, please read all the OP of TommyTommatoe) if you are on Windows then use APK Tool
3.- Go to the path /res/drawable-hdpi
4.- Rename the image that you want use as ic_lockscreen_handle_normal.png (remember, the stock image it's of 162 x 162 px)
5.- If you want change the icon when you "push" too, you need to change the image named ic_lockscreen_handle_pressed.png too
5.- Paste the images on the folder /res/drawable-hdpi for replace the original ones
8.- Compile the framework-res.apk
9.- Sign the framework-res.apk
10.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
11.- Compress the folders META-INF and system in one .zip, name it as you want.
12.- Enjoy the MOD
⊗ How-to add the Carrier Name on the status bar [Technical way] ⊗​
1.- Extract the SystemUI.apk from the path /system/app, for do this just decompress the main .zip of your ROM
2.- Decompile the SystemUI.apk with Android-Utility (this a powerful tool and very simple to use, please read all the OP of TommyTommatoe) if you are on Windows then use APK Tool
3.- Go to the path /res/layout and open the status_bar.xml file
4.- Find this line:
Code:
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
5.- Above of that line insert this one:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:background="@drawable/carrier_logo" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />
6.- Save the .xml file and exit
7.- Go to the path res/drawable-hdpi and inside put the image that you want use, named as carrier_logo.png Note: The image must be of 100 x 45 px
8.- Compile the SystemUI.apk
9.- Sign the SystemUI.apk
10.- Here you have an example of the needed folders to make your modded apk flashable through recovery, the META-INF folder contain the script to make flashable the files if you want modify for show some custom text during the installation, go to the path /com/google/android/updater-script and modify the lines that i mark there. Then place the SystemUI.apk in the path /system/app (as you can see this just follow the structure of the folders in the main .zip of all the ROM's)
11.- Compress the folders META-INF and system in one .zip, name it as you want.
12.- Enjoy the MOD
⊗ 'Universal Flasher Tool' method ⊗
NOT tested on Jelly Bean builds​
The "Universal Flasher Tool", it's a tool developed by Spanish cookers and it's very easy to use:
First of all, download the latest version from here (the link it's on the bottom of the post) For the people who knows spanish will be very useful if you read all the OP.
When you have the downloaded file, unzip it, inside you find 6 files:
- META-INF folder
- MORPH folder
- tools folder
- XTRAS folder
- MOD.config file
- README.txt file
As I explain here the "fast and easy" way, the only things that you need are:
- META-INF folder
- MORPH folder
- MOD.config file
On the META-INF folder, it's the installation script (/META-INF/com/google/android/update-script) from here, the only things that you can add/modify it's the sentence ui_print(" "); and inside of the quoutes " " write the text that you want show on the recovery, for example:
ui_print(" ");
ui_print(" <GaboWinter Mods> ");
ui_print(" <made with> ");
Honestly, for the very very noob modders i'm not recommend change anything from here, be careful!
On the MORPH folder you can find two folders data and system, the files that you want change must be placed inside of the system folder, this is a recreation of the original paths from the zip of the main ROM so, if you want change the background of the System UI you need to recreate the path (just create the folders) /system/framework/framework-res.apk/res/drawable-nodpi and inside put the file (background_holo_dark.png) that you want set, just place the image and nothing more.
This step can be used to modify multiple files, just create the folders (paths) inside the system folder
On the MOD.config file you can find some tweaks, for example, you can set if you want or not clean the dalvik-cache when the script of installation finish, i recommend to you read the .txt file it's very simple.
As this method only changes the exact file (.png's) the mods must work on every version of your ROM (the paths never change), that's because with this we don't use the .apk's. Have in count that this method works pretty well with images but no with .xml's and other files, if you want mod some code then follow the [Technical Steps]
Good stuff.
Can I just ask what the font is that's used in the ROM design?
scayre32 said:
Can I just ask what the font is that's used in the ROM design?
Click to expand...
Click to collapse
Thanks mate, well actually it's Roboto Font
Enviado desde mi GT-I9100 usando Tapatalk 2
I meant
the font from your signature and some of the wallpapers that were made for the previous versions. Should have made that clearer, sorry.
Nice I always wanted to try to mod stuff thanks for the tutorials.
scayre32 said:
the font from your signature and some of the wallpapers that were made for the previous versions. Should have made that clearer, sorry.
Click to expand...
Click to collapse
Oh, sorry but i don't have that info. Actually @cyberboob it's who design that stuff, but i asked already when he tell me i pass you the information
shadowblade330 said:
Nice I always wanted to try to mod stuff thanks for the tutorials.
Click to expand...
Click to collapse
Thank you mate, i'm glad of give a little help
Enviado desde mi GT-I9100 usando Tapatalk 2
Use lockscreen mod on CM9 and it messed up my phone.
thanks
thanks gabo for sharing..i dont know bout others but this makes my phone more awesome
rakeshishere said:
Use lockscreen mod on CM9 and it messed up my phone.
Click to expand...
Click to collapse
What error gives you? Some fc?
I check the files, the issue it's caused for the lockscreen files, the framework of CM9 it's different than the one used by @bajee11, his mod only works on Resurrection Remix, i'm gonna edit the post with that warning
Thanks for the feedback and hope this can be solved soon
Enviado desde mi GT-I9100 usando Tapatalk 2
rakeshishere said:
Use lockscreen mod on CM9 and it messed up my phone.
Click to expand...
Click to collapse
This is a guide to create your own Mod, the Mod are provider here works with Resurrection Remix ics others rom has different version of framework-res.apk . Use this guide with ur own files of ur Rom
GaboWinter said:
What error gives you? Some fc?
I check the files, the issue it's caused for the lockscreen files, the framework of CM9 it's different than the one used by @bajee11, his mod only works on Resurrection Remix, i'm gonna edit the post with that warning
Thanks for the feedback and hope this can be solved soon
Enviado desde mi GT-I9100 usando Tapatalk 2
Click to expand...
Click to collapse
Yep, going by your post as these mods work with any ROM. I tried lockscreen mod (LockScreen_Carrier_No_Vib_White_CWM) and boot was stuck on CM9 29/5 nightly build.
At later point, I checked the lockscreen mod thread, it was clearly mentioned by
@bajee11 that it only works on RR 2.0 or AOKP based ROM.
Ok, OP updated for put the warnings about the non Resurrection Remix or AOKP based ROM's
Thanks to everyone for the feedback and sorry the inconveniences
PWOAH! THIS IS AWESOME! And to think i was considering paying for a theme.
rootingdestroyer said:
PWOAH! THIS IS AWESOME! And to think i was considering paying for a theme.
Click to expand...
Click to collapse
Glad you like it mate and hope be useful
Well, if you need one mod with some especific background just tell me
Enviado desde mi GT-I9100 usando Tapatalk 2
Hi,
Thanks for this tip but for rom stock for exemple, in contacts.apk there are no
/res/drawable-nodpi
and no
background_holo_dark.png
In which folder is it ?
Thanks
Ok GaboWinter asked me to explain this for someone asking about the sig I made.
Basically the "rr" and opened "x" are not fonts... but shapes I made using the pen tool in photoshop. The rest is a font called Orbitron ....that I edited into a certain angle by going to Edit -Transform- SKEW. Then apply effects to.
sikuland said:
Hi,
Thanks for this tip but for rom stock for exemple, in contacts.apk there are no
/res/drawable-nodpi
and no
background_holo_dark.png
In which folder is it ?
Thanks
Click to expand...
Click to collapse
Well i'm not sure that this works on stock, the files contained are differents than a Custom ROM and the mods need this files from Custom, sorry.
But i'm gonna search something that can help you
cyberboob said:
Ok GaboWinter asked me to explain this for someone asking about the sig I made.
Basically the "rr" and opened "x" are not fonts... but shapes I made using the pen tool in photoshop. The rest is a font called Orbitron ....that I edited into a certain angle by going to Edit -Transform- SKEW. Then apply effects to.
Click to expand...
Click to collapse
Thanks for the explanation mate
Enviado desde mi GT-I9100 usando Tapatalk 2
That squares image in your other post looks amazing on my phone with the custom font. Thanks so much You're awesome!
rootingdestroyer said:
That squares image in your other post looks amazing on my phone with the custom font. Thanks so much You're awesome!
Click to expand...
Click to collapse
I'm glad that like you mate and thanks a lot for your words
Enviado desde mi GT-I9100 usando Tapatalk 2
Update
New OP update!
Added:
How-to change the Lockscreen Icon to Swype [Technical Steps]

CM12 superuser mod without computer

Since Serajr 'one click' superuser mod only works on stock ROM, you have to use apktool to achieve the same on CM. Here's how you can do it on your phone. Only tested on official CM12 on Xperia Z1c, with a clean flash of /system, (unmodified), but probably can be applied elsewhere, maybe with some adjustment.
1. Follow steps 1 and 2 in this post, (except for the part about copying theme files) - http://forum.xda-developers.com/sony-xperia-z1-compact/general/tweak-theme-computer-t3279649 Note that the /system/framework/SemcGenericUxpRes/SemcGenericUx file is not present in CM ROM, so instead you would copy /system/framework/org.cyanogenmod.platform-res.apk. Also copy /system/framework/services.jar to the same directory.
2. Import the first 2 files as framework, according to step 3 in the link above, then tap on services.jar, and 'decompile all'. You will end up with a folder called 'services-src'.
3. Using a root browser and capable text editor, (I used Mixplorer and Jota+), follow instructions to mod PackageManagerService.smali file here - http://forum.xda-developers.com/showpost.php?p=62909773&postcount=4
Notes on this step: This file is over 60,000 lines long, which is why I specified 'capable' above. Many text editing programs won't handle it very well. Even if they can display it OK, you're going to need something that has a good search function, and copy/paste ability or it will be a big headache trying to do this on a phone. I found the first line to edit somewhere around line 8,700, by searching for 'compareSignatures'. The tutorial recommends using the word 'cannot' to help find the second one, but that didn't work for me. I used 'compareSignature' for that also, and just used the arrows to jump ahead through the search results until I found it.
4. Once the mods are made, save and exit. Then go back to apktool, and tap on 'services-src' folder and choose 'recompile'. You will end up with a file called 'services.apk'. All that is in the 'apk' is a classes.dex file. Use Mixplorer or RTB to extract the classes.dex from the apk. Then, with Mixplorer, go into your original services.jar, (that you copied into apktool folder), and delete the classes.dex file in there. Then go back to your new classes.dex, that you extracted from services.apk, and copy it into the services.jar. Using Mixplorer, you don't have to unzip/rezip or extract anything. Just long-press your new classes.dex, choose copy, then go into the jar just by tapping it, and then paste.
5. Move the new services.jar to /system/framework and reboot, (of course back up your original just in case).
The only way I know to test su mod is to attempt to use something that claims to require it, so I tested it with this - http://forum.xda-developers.com/cro...t-xperia-z5-systemui-particle-effect-t3206206 (the same thread as above). See screenshots for success verification.
very nice

Categories

Resources