3Minit Battery Mod Updated: [03/09/15]

santo_spy

New member
Jul 31, 2014
4
0
0
Hello

I update my Icons No 12. The Files is in my Smartphone. On 5.0.1 i used this without problems. In MM 6.0.1 It can not be read. I do not understand why it does not work. Can anyone help me please

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

SOLVED
How to S5 stock MM? I've followed the instructions, but not work (icon battery mod not apply). Thanks B4
 

santo_spy

New member
Jul 31, 2014
4
0
0
Log or file moded?
Here's the code I added in system_icon.xml :
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
And success RC, but not change battery mod.
I attach file systemUI

Thanks
 

Attachments

ninestarkoko

Senior Member
Nov 26, 2013
513
212
0
Hello for 2 days, I try many things but not to the success.

I am on Note4 N910F 6.0.1

I Use TMA with apktool 2.2.3 and try 2.2.4

NEXT14


- did you install all of the correct needed framework files on TMA?
You need to take the framework-res.apk from your rom and other possible .apk files in /system/framework and install into TMA

- how did you replace the SystemUI.apk file? (adb, manually, from recovery....)
if your systemui crashes after reboot it can be a problem of permissions (app permissions got reset after replacement) so you need to grant them again (via .xml files backup, via adb maybe, or via Settings -> apps -> SystemUi -> permissions if you can open the Settings).
Connect the phone to the pc and use "adb logcat" to know which is the problem

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

Question:
does anyone know how to reduce the padding/space/margin at the right of the battery icon?


ok found myself some things:

- in values/dimens.xml

<dimen name="status_bar_clock_size">14.0sp</dimen> to edit size of clock in statusbar (default android clock not OEM clocks)

<dimen name="status_bar_icon_drawing_size">17.0dip</dimen> to edit size of icons on the left of statusbar

- in layout/status_bar.xml

<LinearLayout android:eek:rientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip" >
Edit paddingEnd to reduce the size of the space/padding/margin at the right of battery/system icons

(Sony MM rom but it probably works for most of the roms)

Unfortunately i cannot find the dimension for system icons (icons on the right). Tried status_bar_icon_size (coded in framework-res.apk) but it does not work.
I'd like to enlarge them a bit, but the icon size seems written in the code and not in resources and I gave up after some digging in the code and android sources (i'm not expert enough). @gharrington maybe you discovered something while digging in systemui code?
 
Last edited:

gherbert

Senior Member
Nov 26, 2014
124
20
38
Rio de Janeiro
Has anyone got this to work on Samsung s8+? Verizon. I have made the code changes in the system_icons.xml and added the smali files, installed both 3minit .apk's. After reboot I don't have a status bar, notification bar, or nav buttons. This is Nougat 7.0 rooted.
I'm trying the same thing with the same results.
Don't understand what I'm doing wrong...
 

Tomas1516

Member
Sep 14, 2016
35
5
0
Hi, I cant install this mod in my rom
When recompile de system ui apk give me error
My rom is deodex and debloated without knox


Enviado desde mi SM-A310F mediante Tapatalk
 

Logel

Senior Member
Apr 3, 2011
3,721
5,306
263
Rheinau
Hello!
at first: im not a developer. But i tried to implement that mod into my used Rom
I did all steps like provided in OP.
But the Stock Battery Icon is still visible in Statusbar.
The 3minit Battery icon is only overlapping the stock Icon.
Maybe someone can tell me why.

Many THX in advance

Setup:
Samsung Galaxy Note 8
Android 7.1.1
My used Custom Rom (Nemesis Nougat N8 V2)
Sreenshots:
 
Last edited:

edzamber

Senior Member
Feb 21, 2012
3,864
3,657
253
Hello!
at first: im not a developer. But i tried to implement that mod into my used Rom
I did all steps like provided in OP.
But the Stock Battery Icon is still visible in Statusbar.
The 3minit Battery icon is only overlapping the stock Icon.
Maybe someone can tell me why.

Many THX in advance

Setup:
Samsung Galaxy Note 8
Android 7.1.1
My used Custom Rom (Nemesis Nougat N8 V2
Hi,

Remove this line in res/layout/system_icons.xml

Code:
  <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
 
  • Like
Reactions: Logel

Logel

Senior Member
Apr 3, 2011
3,721
5,306
263
Rheinau
Hi,

Remove this line in res/layout/system_icons.xml

Code:
  <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
Many Thx for your fast asnwer
Completly delete this line gives me a SystemUI FC after reboot all few seconds.
I can't use the Phone with the new recompiled SystemUI and switched back to Stock SystemUI

In OP it's provided to only edit this Line. but the Entry to change is different from what i have in system_icons.xml

What i should change (in layout_width and layout_hight):
Code:
android:layout_width="wrap_content"
What i have in my system_icons.xml:
Code:
android:layout_width="@dimen/battery_margin_bottom"
 

kramer04

Senior Member
Jan 15, 2011
570
212
73
France
Many Thx for your fast asnwer
Completly delete this line gives me a SystemUI FC after reboot all few seconds.
I can't use the Phone with the new recompiled SystemUI and switched back to Stock SystemUI

In OP it's provided to only edit this Line. but the Entry to change is different from what i have in system_icons.xml

What i should change (in layout_width and layout_hight):
Code:
android:layout_width="wrap_content"
What i have in my system_icons.xml:
Code:
android:layout_width="@dimen/battery_margin_bottom"
I'v changed like this in systemUi/res/layout/system_icons.xml
Code:
<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" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
Hope it can help
 
Last edited:
  • Like
Reactions: Logel

edzamber

Senior Member
Feb 21, 2012
3,864
3,657
253
Many Thx for your fast asnwer
Completly delete this line gives me a SystemUI FC after reboot all few seconds.
I can't use the Phone with the new recompiled SystemUI and switched back to Stock SystemUI

In OP it's provided to only edit this Line. but the Entry to change is different from what i have in system_icons.xml

What i should change (in layout_width and layout_hight):
Code:
android:layout_width="wrap_content"
What i have in my system_icons.xml:
Code:
android:layout_width="@dimen/battery_margin_bottom"
Ok,

Have a look here :

https://forum.xda-developers.com/showpost.php?p=70127889&postcount=39

Don't miss to add global context too...

I you havn't RomControl you need to use 6gear database editor to create a key "stock_battery_visibility" in System tab with value 0 for hide Stock battery


6Gear database editor here

https://forum.xda-developers.com/showpost.php?p=66720889&postcount=6054
 
Last edited:
  • Like
Reactions: Logel

Logel

Senior Member
Apr 3, 2011
3,721
5,306
263
Rheinau
Ok,

Have a look here :

https://forum.xda-developers.com/showpost.php?p=70127889&postcount=39

Don't miss to add global context too...

I you havn't RomControl you need to use 6gear database editor to create a key "stock_battery_visibility" in System tab with value 0 for hide Stock battery


6Gear database editor here

https://forum.xda-developers.com/showpost.php?p=66720889&postcount=6054
No, this Rom haven't a Rom Control :(
And i think my Knowledge is much too less for that Guide from @daxgirl :eek:
But Thx for your useful answers and Links:cowboy:
I will read about that 6Gear database editor, and read, and read, and read:cyclops:
 

edzamber

Senior Member
Feb 21, 2012
3,864
3,657
253
No, this Rom haven't a Rom Control :(
And i think my Knowledge is much too less for that Guide from @daxgirl :eek:
But Thx for your useful answers and Links:cowboy:
I will read about that 6Gear database editor, and read, and read, and read:cyclops:
Just follow the guides...

Database editor working only if you mod your SystemUI with global context and switch for hide stock battery. It not working without modding systemui First... This app is only writing into database some values for specifics Keys as RomControl do.
 
Last edited:
  • Like
Reactions: Logel