[Android Apps and Games] PuntoG:
My Process for Installing 3MinitBattery

FYI, I thought you should know that I shared the process I followed to get 3Minit Battery installed, on this thread: http://xdaforums.com/note-edge/tmob...-5-1-1-s6e-note5-t3233528/page11#post63978166. I hope it was okay for me to have done so.

--------------------

I had such a hard time finding a way to install 3MinitBattery, I figured it would be nice to put all the steps in one place in hopes that someone else might benefit from what I've learned. I found scattered instructions, but couldn't find the step-by-step in a comprehensive list. It looks pretty intimidating, but

YOU CAN DO THIS!

!! Once you go through the steps, it's actually pretty easy. You might find it easier to do if you print these steps out so you can follow along without switching back and forth between screens.

PLEASE NOTE THAT I TAKE NO CREDIT FOR ANY OF THE UTILITIES/SOFTWARE, ETC. If you find the apps helpful, please thank the developers as it is their hard work which have made these steps possible.

Install Root Explorer or enable the root explorer option in ES Explorer

Open Root Explorer (or ES Explorer) and navigate to: /system/priv-app/SystemUI/

Copy SystemUI.apk to somewhere else on your device, like in the root of your SD Card or External SD

Next, still in Root Explorer, navigate to /system/framework and copy "framework-res.apk" to the same location as you did SystemUI.apk

Navigate to where you copied the two files above and copy them to your computer

On your computer, download the following:

"Tickle My Android" (google it...)​

The "Smali files and MinitBatteryResources.apk" from the Download area of this site: http://www.3minit.com/#four​

Install "Tickle My Android". MAKE SURE YOU CHANGE THE INSTALLATION PATH TO "C:"

Open the Tickle my Android folder in "C:\TickleMyAndroid", and copy "Framework-res.apk" and SystemUI.apk" to "C:\TickleMyAndroid\_WorkArea1\_in"

Back out of that folder to "C:\TickleMyAndroid, and run "tickle my android.exe"

In TMA, go to "Settings Menu" and click on "Enable Mouse Control." (This step is so you can use your mouse to navigate within TMA.)

Next, select "Change APK Tool Version" and select "apktool_2.0.2.jar" and select "Continue" to make the selection stick.

Back out to "Main Menu" and click on "Theming Menu" then select "Install Framework on PC." Follow the prompts to install. The window will close. DON'T PANIC!!!

While still in the "Theming" menu, select "Decompile Files" and choose "SystemUI.apk." IF YOU GET AN ERROR, YOU DID SOMETHING WRONG! GO BACK AND CHECK YOUR STEPS.

Now that you have "SystemUI.apk" decompiled, go to the following path in the TMA folder:

"C:\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\res\layout"​

For this ROM, you will locate and open "system_icons.xml" (Opening in Notepad worked for me but you can use whatever text editor you like.)

For other ROMS, the file name and/or path may be different. Per the developer:

for ROMS older than 5.xx, the file name will be status_bar.xml. For some older samsung devices, it's: tw_status_bar.xml)

[*]In the "system_icons.xml" file, go to the 7th line down, which begins with "<TextView" and make sure it contains: "android:id="@id/battery"

[*]In this same line #7, locate: android:layout_width="wrap_content" and "android:layout_height="wrap_content".

[*]Erase "wrap_content" in both places and change to "0.0dip". Make sure that you do not delete the quotation marks preceding or following "wrap_content"

[*]When you are done, this line should look exactly like this:

<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginTop="@dimen/battery_text_margin_top" android:alpha="@dimen/status_bar_icon_alpha" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginStart="@dimen/battery_text_marginStart" />​

[*]Make a new line and paste this text in the new line (maybe it doesn't matter, but I think it's always best to make the margin align with previous code):

[*]

<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />​

[*]If you are confident that you've done everything right, save the document and close it.

[*]Unzip the "Smali files and MinitBatteryResources.apk" that you previously downloaded.

[*]Open that folder and copy all 3 MinitBattery*.smali files into the following path (do not copy the "MinitBatteryResources.apk"):

"C:\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\smali\com\android\systemui\statusbar"​

[*]Now go back to TMA and back out to the Main Menu.

[*]Go to the "Theming Menu" and select "Recompile Files"

[*]Select "Recompile App with Original Signature" then select "SystemUI.apk"

[*]If everything was done right, you shouldn't have any errors. If you have errors, you will need to communicate with the developer, cause I can't help ya...LOL

[*]Once the recompile is complete, the new recompiled "SystemUI.apk" will be located in "C:\TickleMyAndroid\_WorkArea1\_out"

[*]You will need to copy "MinitBatteryResources.apk" and the recompiled "SystemUI.apk" to your phone's SD Card or External MicroSD.

Put the MinitBatteryResources anywhere you like and click on it to install​

Paste the "SystemUI.apk" into the same path you took it from: "/system/priv-app/SystemUI/SystemUI.apk" and overwrite the one that's there.​

[*]In Root Explorer, long-press"SystemUI.apk" and select "Permissions" in the menu that pops up.

Change the permissions so that only "Owner" has read/write checked, and the other options only have "Read" checked.​

Reboot your phone and you now have 3Minit Battery!!! YAY!!!

If I've forgotten any steps, please feel free to correct me.