yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gharrington:
Redownload app make sure you have the latest mate.
[Android Apps and Games] silentattack:
Does it work on android 5.0?
[Android Apps and Games] Pain-N-Panic:
As of right now I don't believe so as 5.0 is odexed. Anyone correct me if I'm wrong please
[Android Apps and Games] The Sickness:
Your correct. There are some folks working on baksmali to get it updated for Lollipop.
[Android Apps and Games] ComboRom:
So that means is this work with Deodexed Lollipop Rom.. ??

Did anyone try
[Android Apps and Games] friedrich420:
No my man it actually means the opposite. As of now it wont work.. You need to wait a bit..
[Android Apps and Games] tiunilohmu:
Help please

To anyone who is willing to help, can you help me with this.

I tried to mod this in many times, no success.

sometimes, I got missing statusbar, statusbar shows up and goes repeatedly, The stock battery is gone completely.

I have copied the META-INF and AndroidManifest.xml back to the mod SystemUI.apk, still no luck.

Here's my files. They are for Xperia 4.4.4, thank you.

https://www.dropbox.com/sh/40t4cyyune1yt0k/AADXU7ElKhdyvKxljdrJwq3Da?dl=0

</LinearLayout>
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<LinearLayout android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/somc_sys_powersaver" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
[Android Apps and Games] mikep2323:
error log

Removed
[Android Apps and Games] *wii360*:
you have an error in line 24 in status_bar.xml
[Android Apps and Games] mikep2323:
Thanks for help. I ended up just starting over from scratch and made sure I did line 24 rite and its working.
[Android Apps and Games] az87rin:
I cant use this "3minit battery" on blekota note 4 for samsung galaxy s3.

Can anyone guide me? Please.
[Android Apps and Games] manuelmagix:
working fine, in cm12 EvoMagix Lollipop
[Android Apps and Games] AL_IRAQI:
Great which file you edited in systemui ?
[Android Apps and Games] nx248:
I got it to work in Lollipop also. I made changes to the system_icons.xml file.
[Android Apps and Games] bluflight:
what smali you used? i'm on ge lollipop for I9505, but i still have fc... I tryed in the "new" xml below
[Android Apps and Games] friedrich420:
Same here.. errors wrt the smali's
[Android Apps and Games] gharrington:
I modded a SystemUI for lollipop a while back if you can find it you can get the mod from there.
[Android Apps and Games] friedrich420:
nice!!

im gonna go hunting ;)

EDIT: Found it! For future reference the lollipop systemui gharrington modded is here: http://xdaforums.com/showpost.php?p=56655551&postcount=2261
[Android Apps and Games] bluflight:
[MENTION=4619873]gharrington[/MENTION]: i'm stubborn so i did:

- decompiled your systemUI

- i took from this smali's and strings inside system_icons.xml

- decompiled mine systemUI (from GE I9505)

- added inside smali's and added strings

- compiled correctly without errors (i updated my apktool to last 2.0.0 RC3 with compatibility for L)

- installed 3minit app

- flashed new systemUI with mods

- still get systemUI fc unfortunately

I tryed some combination but every time fc..

You change something another to your apktool?

Thanks in advantage big :good:
[Android Apps and Games] friedrich420:
Unfortunately same exact here with latest apktool but i also am a very stubborn man lol ;)
[Android Apps and Games] gharrington:
Logcat mate?
[Android Apps and Games] bluflight:
Here my log https://dl.dropboxusercontent.com/u/85820479/S4%20gpe%20L/2014-12-16-21-34-14.txt
[Android Apps and Games] gharrington:
Try moving the app to priv-app/app folder as set its permissions
[Android Apps and Games] bluflight:
tryed but still fc :confused:
[Android Apps and Games] gharrington:
I will be home soon I will make some changes for you to try.

The logcat is telling me the mod can't find the app.
[Android Apps and Games] bluflight:
I tryed some ways, install first app, flash together with systemUI, but nothing.. If i restore my stock systemUI 3minit app is installed and work fine.

I see in your systemUI you set this 2 strings for the mod:

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:layout_marginStart="0.0dip" />
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="5.0dip" />

but i for CM11 for example, i always do this:

In status_bar.xml i search for this 2 lines:

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />

And i overwrite with this 2:

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />

And directly below i add:

<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />

Here on L i not found .DockBatteryMeterView, maybe there's something another code to search around systemUI?
[Android Apps and Games] nx248:
Here is what I have in my system_icons.xml file.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="4.0dip" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>

I also used the Smali files for Apktool 2.x.x and apktool 2.0.0RC3. That seemed to work for me.
[Android Apps and Games] gharrington:
[MENTION=1367408]bluflight[/MENTION]

Ok try these new files and also put the new apk in priv-app folder (the app will no longer need to be installed before flashing) [MENTION=4401403]friedrich420[/MENTION] want to try this too?

Note this will also work on pre lollipop roms.
[Android Apps and Games] gharrington:
cm12

Here is a modded SystemUI.apk and resources apk of cm12.

Just push 3MinitBatteryResources.apk to system/priv-app

and

SystemUI.apk to system/priv-app/SystemUI
[Android Apps and Games] gharrington:
Here mate you will also need to download 3MinitBatteryResources.apk and flash to system/priv-app.

Also you will get a double battery upon first flash please go in to your device settings and turn the battery off.
[Android Apps and Games] tiunilohmu:
Thank you again.
[Android Apps and Games] bluflight:
Thanks my man, works perfectly now :) Only i not see app in drawer because are Only resources of app right?

PS: also work pushed in system/app

Thanks again for support and for your patience [emoji106]

Inviato dal mio GT-I9505G utilizzando Tapatalk
[Android Apps and Games] gharrington:
No problem yes it's just the resources you will still need to install the app to control it mate.
[Android Apps and Games] Eudemony:
Yay! I will have to try this too. Thanks mate.
[Android Apps and Games] bluflight:
But so for next times i must always remeber to add also apk resources over normal apk?

Inviato dal mio GT-I9505G utilizzando Tapatalk
[Android Apps and Games] gharrington:
Yes. I will be doing this way as of next version anyway mate, as it means you can still flash mod without installing app first.
[Android Apps and Games] Eudemony:
Damn, still can't get it to work on my port of 5.0 GPe

Constant SystemUI FC's

Original System_icons.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
</LinearLayout>

Modded System_icons.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

Used new smali

SystemUI.apk compiled ok added meta-inf and androidmanifest

made zip with systemui in systemui folder in priv-app

added new resources apk to priv-app (tried both in folder and no folder)\

added settings app to priv-app tried app too and tried both in and no folders also..

hmmm... scratches head
[Android Apps and Games] gharrington:
You have done the mod incorrect mate. Upload your System_icons.xml and I will change asap. In lollipop you can't remove the batteryMeterView line you must set height and width to 0.0dip and add the minitBattery line below it. Also remove the id="battery" from MinitBattery line.
[Android Apps and Games] Eudemony:
Ah, I assume then I should add a line not overwrite a line..

recompiling..

edit: you beat me to it..

will test now
[Android Apps and Games] Eudemony:
Yay! It worked :)

Just need to shorten the gap between battery and signal icons
[Android Apps and Games] gharrington:
Remove android:layout_marginStart="7.0dip" from meterBatteryView line. Or set it to 0.0dip
[Android Apps and Games] Eudemony:
Done

oops see a mistake i made

redoing
[Android Apps and Games] gharrington:
I will release new app in playstore soon has no ads and an extra tab to make changing battery more convenient. Buying it will also help towards any future developments. Thanks.
[Android Apps and Games] Eudemony:
All good now mate!

Thanks for your patience lol
[Android Apps and Games] Eudemony:
Paypal donation made mate :) Thanks again!
[Android Apps and Games] gharrington:
Thanks mate.
[Android Apps and Games] gharrington:
Paid app now available here it had no ads and a new tab to make switching battery types even easier. Please be nice and support more development buy purchasing it thanks.
[Android Apps and Games] AL_IRAQI:
Thanks buddy, i purchased the app and gave it 5 stars rating and I'll share Google Play link in my ROM thread :)
[Android Apps and Games] Darkman:
I have found a bug in the new app. I can not change the battery text size, because the window swype to the left or right.

This is a screen from my phone with a not colorable icon but on my tablet it is not working too and there is a colorable icon.
[Android Apps and Games] gharrington:
It's because those options are only available for colourable types mate. If you switch to one they will be enabled....
[Android Apps and Games] gharrington:
Just made an update in the plaster that may help with this mate. Thanks for buying the app also. Team member [MENTION=669706]wii360[/MENTION] and you found a bug then when setting a colourable type in stored tab it failed to set correctly and did not activate the settings tab, this has now been fixed.
[Android Apps and Games] Darkman:
Thanks, yes now it is working :good:
[Android Apps and Games] RushFan:
I bought the app, I followed the instructions of the last post of Gharrington downloading its SystemUI.apk .

From his SystemUI I extracted the smali files and I copied the lines of text about the file system_icons.xml but the phone is always in fc .

With KitKat I never had problems with tens of roms .

Can anyone help with this fantastic mod?

Here are the files related to the Rom (Fusion v5.0 - LP_5.0.1_r1 for Galaxy S5)

Thanks in advance!

https://www.mediafire.com/?1o31mki5mauqyad
[Android Apps and Games] ivanfix:
Also I have bought the app and I have the same problems with other roms CM12 for S5 .

Always fc .

No problems with dozens stock roms or CM11
[Android Apps and Games] gharrington:
Here mate http://www.mediafire.com/download/qbe0dyn62ooyv3t/Archive.zip just flash both to priv-app
[Android Apps and Games] gharrington:
I uploaded a modded SystemUI.apk for cm12 a few pages back mate.
[Android Apps and Games] RushFan:
Thanks for the quick response but does not work.

I created a zip file to flash the SistemUI.apk into the folder priv-app/SystemUI and the file folder MinitBatteryResources.apk in priv-app folder but the phone goes into fc.
[Android Apps and Games] gharrington:
Please send logcat mate.
[Android Apps and Games] RushFan:
here it is

View attachment 3071674
[Android Apps and Games] gharrington:
No good mate.
[Android Apps and Games] RushFan:
Sorry. Try with this, sir.

https://www.mediafire.com/?va27436pjhr6bdh
[Android Apps and Games] gharrington:
Here you go it was my bad one of the smali files didn't copy into the folder all good now.
[Android Apps and Games] davidisflash:
CM12 on Note 4 (TMobile)

Hi gharrington-

Thanks for uploading your paid app. I was meaning to get it for awhile for all of your hard work. You helped me a ton on this for Galaxy S3 (several, several posts back). I went ahead and purchased your paid app :)

With the uploaded resources and systemUI.apk you uploaded a page back, I too am getting FCs.

Steps I do:

- Get 3 minit from play store then open it once

- In root browser push the two files you just uploaded (resources and systemUI) to system/priv-app and system/priv-app/SystemUI

Should we still modify permissions of your apk files at all after pushing them to priv-app? I've been changing permissions to rw-r-r?

Here's the thread for the ROM I'm using:

http://xdaforums.com/note-4-tmobile/development/unofficial-cm-12-0-t-mobile-note-4-t2972265

And the ROM link within the thread:

https://mega.co.nz/#!KclmRBwJ!-PyO5t...ldufaIv0P4Wyxc

Would anyone be kind enough to help a brother out?

Thank you

David
[Android Apps and Games] davidisflash:
My first attempt at it

Edit: Update

I followed the updated instructions on the OP for CM12 roms making sure that I modify system_icons.xml. For my ROM I mentioned below attached is my SystemUI.apk I created.

I pushed the apk to system/priv-app/SystemUI and gave it permissions rw-r-r

I pushed the 3MinitBatterySettings apk to system/priv-app/ as is without changing permissions

After rebooting I get no FC but now I have no statusbar.

Any ideas?
[Android Apps and Games] gharrington:
You may have forgotten to copy META-INF and Android_manifest.xml from original apk to modded one.
[Android Apps and Games] davidisflash:
Thanks. Well what I did was...before using the "b" command of apktool to make the new .apk file, I moved those files from the original unpackaged apk to the folder I would then compile. That must be the issue then. So basically what I should have done is:

1) Make the modifications to files in my /SystemUI folder (unpackaged original System.apk contents)

2) Use the apktool "b" parameter and recompile. This created a folder dist in SystemUI with a file SystemUI.apk

3) For the new apk created in /SystemUI/dist, should I then decompile it with apktool "d", copy those files in you mentioned, recompile into an updated apk then finally sign that one?

Please clarify what I did wrong

Thanks again
[Android Apps and Games] bdorr1105:
Hey man, use this Advanced APK Took it is much easier, I just used it to make the SystemUI.apk mods worked like a champ
[Android Apps and Games] davidisflash:
Thanks! Gonna try
[Android Apps and Games] bdorr1105:
when you recompile, option 4 will be recompile, sign, zipalign...battery mod is wokring great, i still made sure to pull the AndroidManifest and META folder from the original SystemUI.apk with 7 zip and replace the ones in the recompiled APK...Everyhting is working great...

That OP says you dont have to do that last step, I am acreature of habit tho
[Android Apps and Games] gharrington:
Well if using apktool 2.x you can just type apktool b -c SystemUI -o SystemUI-modded.apk this will copy everything for you then you can just flash the SystemUI-modded.apk
[Android Apps and Games] davidisflash:
Thanks!

*EDIT* Update

Update of what I just did:

1) Flashed the CM12 ROM fresh (clean flash)

2) Installed 3minit paid app

3) Used advanced apk tool

- Unpackaged original SystemUI.apk

- Made changes to the folder:

- Copied in the 3 smali files to the correct folder in /smali per OP

- Made change to System_Icons.xml

4) Told advanced apk to compile sign and zip align the apk

5) Copied to local drive as follows:

- From page 1 OP, copied 3MinitBatterySettings.apk into system/priv-app. Didn't change permissions . I used this apk instead of the resources apk posted a few pages back since OP said it was updated today

- Pushed SystemUI.apk (updated) to system/priv-app/SystemUI. I deleted what was there, pasted this one, then changed permissions to rw-r-r

How did you guys set your permissions for the two files (if you made any changes at all)?

The above gives me the same issue...no FC but no status bar. So it must be needing to copy in meta-inf and xml then. I'll repeat with that step and let you know
[Android Apps and Games] bdorr1105:
refer to above, pull the Meta-inf and android manifest xml from the original systemui that you decompiled and replaced the ones in the newly compiled apk
[Android Apps and Games] davidisflash:
Here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!

It worked!!!! You guys rock! Attached is the systemui for CM12 on note 4. Gary, can you update your dictionary of all the known completed apks? I can also cross reference it and credit you on the TMobile thread if you want.

Btw, I didn't change the battery settings apk permissions, from OP, just the SystemUI.apk to rw-r-r as always
[Android Apps and Games] bdorr1105:
you can install the one form the market its .99cents or if you download form the OP, you just push it to priv-app like you did and use root explorer to change the permissions. the App will work, but it should also be rw-r-r - All the apps in that folder are

s

EDIT* Awesome glad to hear it worked
[Android Apps and Games] gharrington:
Team member [MENTION=5282154]pas2001[/MENTION] looks after that archive but I am sure he will add it mate. Glad you got it working.
[Android Apps and Games] davidisflash:
So I mentioned above that I had purchased the app. Does that mean then that if I'm using the purchased app from the play store I didn't need to push batterysettings.apk to system/priv-app

And thank you :)

---------- Post added at 09:37 PM ---------- Previous post was at 09:36 PM ----------

Thanks Gary. This tool rocks.
[Android Apps and Games] bdorr1105:
no you didnt have to push it, but it doesnt matter because it would let you update it from the playstore with it pushed regardless, but you piad so it was updated and all is good
[Android Apps and Games] pas2001:
Sorry for miss this role for long and you know why [emoji4]

Now which post that i should add to my post#4?

I still wait anyone to pm me. Thank
[Android Apps and Games] bdorr1105:
I love this app paid for this and quick launch love the versatility they add. Thanks I made sure to hit the thanks button
[Android Apps and Games] gharrington:
Look out for the new Quicklaunch update coming soon.

http://xdaforums.com/showthread.php?p=57670373
[Android Apps and Games] JoHnNYBlaZE716:
Someone helped me before, but I can't remember who it was? Would someone please help me put the 3minit battery mod on my phone. I've tried several times but I get recompiling errors for some reason. I don't know what in doing wrong. I am attaching my frameworks and systemui. Thanks in advance!!

https://www.dropbox.com/s/30xf3pv1x16fb6s/frameworks_systemui.zip?dl=0

http://i1370.photobucket.com/albums/ag261/Droid716/JONNY SIG 2_zpsrfigggpi.jpg
[Android Apps and Games] az87rin:
I still cannot use this apps on note 4 based. :crying::crying::crying:
[Android Apps and Games] KLPFL:
Did you check in the note 4 theme thread under de ketan. He created on for the note 4
[Android Apps and Games] az87rin:
I'll check. Thanks for info.
[Android Apps and Games] manbat:
It is here...it worked for me on my Note 4.

http://xdaforums.com/showthread.php?p=56990398

Sent from my SM-N910V / VZW Note 4 DE / Factory Bootloader Unlocked / Rooted / StarKissed / TWRP 2.8.3.0 trltevzw
[Android Apps and Games] AbirvalGaming:
standart asset lenovo have similar things, but here much more graphic
[Android Apps and Games] pas2001:
Please send link to me. Wanna see it. Thank.
[Android Apps and Games] kennyboyismr47:
Finally got this working on my Note Edge, think I had the wrong smali files, sorted now, thank you.