yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] waldox:
Those are unmodified originals. The only thing I've done is try to decompile SystemUI.apk. I copied SystemUI.apk and framework-res.apk into the 3Minit_Android_Studio folder. I launch 3Minit APK Tools, click on Install Framework file, then select my framework-res and click Install. Then I get this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I'm guessing it's ODEX, because it's the Stock Rom, but I really don't know. I never got as far as installing smali files or editing the xml.

I really appreciate you trying to help me out. Thanks!
[Android Apps and Games] pas2001:
Your app show it from odex rom. But the point is you want to know why cant install framework right?
[Android Apps and Games] waldox:
Yes, that is correct. Or even better, I just want somebody to get this thing working for me! :)
[Android Apps and Games] Fatadxb:
I have note 5 dual sim using custom ROM single sim version and it has option to add 3 minit battery but the apk doesn't affect or change the battery icon someone please explain to me how can I make it work ?
[Android Apps and Games] gharrington:
This error you receive from android studio is because you have the wrong java version installed
[Android Apps and Games] waldox:
I have Java 8 Update 65, running on OS X 10.11.1. I don't even know if OS X will let me install version 7. Any advice here?

Thanks
[Android Apps and Games] gharrington:
You sure can you can install as many Java versions you want and swap between them. Google java jre7 download and you will find what you need
[Android Apps and Games] waldox:
Ok, I'll give it a shot. Thanks!
[Android Apps and Games] pas2001:
But you still find no smali folder to paste smali files.
[Android Apps and Games] thomas suh:
~Note5(N920S) other files~

Dear Pas2001

I attached other files that you need for 3 Minit Battery setting.

Thank you for your support~

I appreciate your work~

Have a nice day~

Thomas
[Android Apps and Games] pas2001:
Looked in to your systemui I can't find smali folder mate. You use odex rom . Sorry, I can't mod odex rom systemui .
[Android Apps and Games] waldox:
Ok, I got Java 7 installed and was able to decompile the SystemUI, but like pas2001 said, there's no smali folder. In addition to that, the xml is different than what the guide indicates. Will this mod work on stock marshmallow?
[Android Apps and Games] pas2001:
the xml may different but if you find key word "@id/battery" think it OK . The point for me is smali folder. without folder you cant add smali files and will error recompile.

For marsh mellow ask [MENTION=4619873]gharrington[/MENTION]. He may use it in nexus6 now. But I guess answer is "yes" I mean in marsh mellow but for stock think ot still odex.

Some guy been here moded odex I saw in past but cant remember.
[Android Apps and Games] thomas suh:
~Deodexed files for N920S~

Dear Pas2001

I attached other files(Deodexed) that you need for 3 Minit Battery setting.

Framework-res.apk by zip

Thank you for your support~

I appreciate your work~

Have a nice day~

Thomas
[Android Apps and Games] pas2001:
OK sorry the busy day... Please backup your rom . Now your rom use deodex systemUI ?

Flash this zip http://www.mediafire.com/download/bm7oyvbx9rey58r/Thomus_MOD.zip

Then install this apk as normal app http://www.mediafire.com/download/irav06r6yptvr7x/MinitBatteryResources.apk

Use your paid app battery setting to adjust. Hope it work let me know.

As I saw if you still use odexed systemui you must delete SystemUI.odex after change to moded systemUI but never try. for me always use deodex rom.
[Android Apps and Games] thomas suh:
Dear Pas2001

I tried the modded SystemUI.apk that you made for me but I didn't work...

I sent a SystemUI that is belong to one of custom roms that has deodexed.

I really thought I would work if I just erase odex.apk in SystemUI file.

In order to work your 3 Minit battery , I guess that I have to deodex entire my note5 rom.

I have been using your 3 Minit battery setting app since Note 4 so I hope to use it in note 5 as well.

Would you please deodex my current stock rom and mod the systemUI one more time ?

I really sorry to bother you because of this....I just don't have much computer knowledge as like you...

Thank you for your great support!

Have a nice day~

P.S - How can I send my current stock note5 rom(N920S) tar file to you? by an e-mail ?

Thomas
[Android Apps and Games] pas2001:
No experience about that sorry. My way is theme. Mod 3 minit is a skill recieve from my leader.

Can you change new deodex rom and send files again?

PS you tell no work what happen?
[Android Apps and Games] Fatadxb:
if someone please could help me 3 days trying couldnt make it work I include all 3 files

mine is note 5 dual sim

HERE
[Android Apps and Games] pas2001:
Please explain how you try in 3 days and what the result. I think we can't support case by case . It may better if just guide or provide some hand to the ones who have ability to do by themself. And create for the one that can't really do.
[Android Apps and Games] bdorr1105:
Could you please post a link to your ROM that you are using? I like to know what people are using for reference. Have you applied any mods as well?

---------- Post added at 11:18 PM ---------- Previous post was at 11:16 PM ----------

You do not have to deodex the entire ROM, you just need to deodex the SystemUI.apk and apply the mod, the rest of the ROM can remain odexed. Additionally, what ROM are you running, please post the ROM link. Also state what version of the ROM you are running. Is this a dual sim phone?
[Android Apps and Games] thomas suh:
~Samaung N920S~

Thank you for your concen~

I am using a stock rom which is a koran version of note 5 ( N920S) N920SKSU2AOJ2(-SK stands for phone carrier and version is

OJ2) I don't have a link to it but I can send it to you if give me your e-mail address.but it's in tar.MD5 file. I don't know how to

change into zip file yet. It's not a dual sim phone.

pointzero6@naver.com --- My e-mail address

Thomas
[Android Apps and Games] Fatadxb:
here is the rom

http://xdaforums.com/note5/development/n920i-dr-ketan-rom-l1-t3195076

when I edit the systemUI status bar disappear black
[Android Apps and Games] gharrington:
After you edit SystemUI and build it make sure you copy META-INF and AndroidManifest.XML from original apk to modded one. This will fix the black(disappeared) statusbar
[Android Apps and Games] Fatadxb:
the rom has built in 3minit battery but its not working on dual sim and changes already done by the developer ( 0.0dip and the line ) and smali files

so what should I do to make it work ?
[Android Apps and Games] gharrington:
Make the same changes to msim_system_icons.xml
[Android Apps and Games] :
Hi friends,

Anyone has the necessary files to install this great app (paid version purchased from Play Store) on Galaxy S5 SM-G900F running CM12.1?

Many thanks in advance.
[Android Apps and Games] thomas suh:
~Another attempt (N920S)

Hello~ again~

I like to try one more time for 3 minit battery setting.

I am enclosing another deodexed files. They are from previous stock rom(korean version of N920) that have deodexed.

I hope it will work regardless of different rom number at this time after you mod them.

Thank you for your great support~

Have a nice day~

Thomas
[Android Apps and Games] Fatadxb:
finally got it working but now I have two battery icon one stock and 3minit ?

is there anyway to fix it ?
[Android Apps and Games] bdorr1105:
There is probably a setting that allows you to hide the stock built in battery
[Android Apps and Games] Fatadxb:
I did turn it off but it still there
[Android Apps and Games] gharrington:
Post the contexts of your modded msim_system_icons here I will see
[Android Apps and Games] Fatadxb:
<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" android:layout_marginBottom="@dimen/system_icons_margin_bottom" android:alpha="@dimen/status_bar_icon_alpha" />

<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="@dimen/signal_cluster_gap">

<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/system_icons_margin_bottom" android:layout_marginStart="@dimen/signal_cluster_gap" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/msim_signal_cluster_view" />

<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:alpha="@dimen/status_bar_icon_alpha" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginStart="@dimen/battery_text_marginStart" />

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

<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" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="3.0dip" />
[Android Apps and Games] gharrington:
Take a look at this line

<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" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="3.0dip" />

You have missed as step from the guide. Change it to

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="3.0dip" />
[Android Apps and Games] Fatadxb:
thank you

---------- Post added at 12:47 AM ---------- Previous post was at 12:38 AM ----------

last question Can i use the same mism system icon when I flash new rom ?
[Android Apps and Games] gharrington:
Can't really say yes or no to that it depends in the rom and ROM dev
[Android Apps and Games] waldox:
[MENTION=4619873]gharrington[/MENTION] Sorry to bother you, but you never really answered me. If you could please point me in the direction of some instructions for installing your mod on Stock Marshmallow, I would be ever so grateful.
[Android Apps and Games] gharrington:
Just follow the guide there is no difference from lollipop
[Android Apps and Games] waldox:
Your guide is not matching up to my experience with my Stock Nexus 5x.. As I've said before, when I decompile SystemUI there is no smali folder. Do I just create that?

As for the xml edits. Your guide says:

Here is that line from my system_icons.xml:

<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" />

As you can see, my width and height attributes (are they called attributes? I'm a web developer, so they seem like attribute to me) do not match the guide. Being fairly ignorant of what these things mean, I'm afraid to replace them with your code. However, if you can reassure me that this is the right thing to do, then I'll go ahead and replace

with

and proceed on with the rest of the guide and see how it goes.

Thanks again for your help, and for a great mod that I'd love to learn how to install. :)
[Android Apps and Games] gharrington:
You would replece it with width="0.0dip" not wrap_content and if you have no smali folder it means your ROM is odexed you will need to deodex it first or flash one of the deodexed ROMs from XDA.

Start by getting a deodexed ROM and we can help you more from there

I am running it in nexus 6 marshmallow ROM I will upload my system_icons asap for you too see.
[Android Apps and Games] pas2001:
OK I will look for you one more time.

[MENTION=2313776]thomas suh[/MENTION] flash this zip http://www.mediafire.com/download/j5sc1m9zbwcbhm0/Thomas_0611.zip

then install this app http://www.mediafire.com/download/irav06r6yptvr7x/MinitBatteryResources.apk
[Android Apps and Games] waldox:
Sorry about that, that was just a copy/paste error on my part.

Thanks for the additional information on odexed roms, that's something I'll have to learn more about. Roms are just starting to appear for this phone, so I'll grab a deodexed one soon.

Cool, thanks. Thanks for all your help.
[Android Apps and Games] sunprophet:
Please delete
[Android Apps and Games] bdorr1105:
send me a link to your ROM, the i can mod the SystemUI.apk and deodex it. I do it all the time for Marshamallow, well not so much anymore since they are primarily deodexed anyway. Just a few extra steps
[Android Apps and Games] waldox:
Thanks, I really appreciate the offer, but I'm still running the Stock version that came with the phone. I'll jump to a custom rom as soon as something comes out that appeals to me, then I can re-visit this mod.
[Android Apps and Games] pas2001:
Try mod in post 3669?

send from my s6 edge
[Android Apps and Games] waldox:
[MENTION=4619873]gharrington[/MENTION],

Ok, I just installed the Nexus 5x Pure Nexus Project ROM. I extracted the SystemUI.apk and framework-res.apk and used 3Minit Android Studio to decompile, then I edited the system_icons.xml, placed the smali files, and finally recompiled. Everything seemed to work.

So now I need to get things intalled on my phone, and I'm a little confused about this part. In the downloaded files from 3MinitBatteryModFiles3.0.zip, there is a file called MinitBatteryResources.apk.

1. Do I just copy that over the my phone and install it normally?

What about my modified SystemUI.apk? I've seen various posts where people are instructed to "push" it to system/priv-apps.

2. Does that mean I can't just copy it over with a root file explorer? If not, how do I do this?

Thanks for your continuing support!
[Android Apps and Games] bdorr1105:
There is an updated smali but nonetheless the mod will still work fine.

Use root Explorer and navigate to system/priv-app/SystemUi and paste in your modded SystemUi.apk and give it rw-r-r permission

Then you can place MinitBatteryResources.apk into system/app

Give it rw-r-r permissions. Do MinitBatteryResources.apk first then the SystemUi.apk

Update smali version 4

https://www.dropbox.com/s/hfnq6s505...MD5_2583ec2e019280caccaf8257788553b4.zip?dl=0

Option 2, post your SystemUi.apk and I will give you a flashable zip
[Android Apps and Games] waldox:
Thank you so much! I've finally gotten it working! And also thanks to [MENTION=4619873]gharrington[/MENTION], and [MENTION=5282154]pas2001[/MENTION] and anyone else who helped me out!
[Android Apps and Games] MAXSIMUS96:
Is it possible to install this mod firmware on RR 5.5.8? The application I bought at the store and would like to use this firmware. Here's a link to my SystemUI - https://drive.google.com/file/d/0B2NXHFfPxFb8RnJEbmE1aG9jbFE/view?usp=sharing .

If you can ask for help in the modification.

link rom - http://xdaforums.com/galaxy-s3-neo/development/rom-ressurection-remix-s3-neo-t3123799

framework.res - https://drive.google.com/file/d/0B2NXHFfPxFb8bkdUUi1HQ2FIYTA/view?usp=sharing
[Android Apps and Games] bdorr1105:
Please post more information

1. Link to ROM

2. Need the framework-res.apk from your ROM to decompile

Thanks
[Android Apps and Games] MoistPicklez:
Hey [MENTION=1195110]bdorr1105[/MENTION], would you be able to do 5.1.1 NuclearSlim mod for me? I recall you gave H²OS a shot before, but it just wouldn't work for me at all.
[Android Apps and Games] bdorr1105:
I will definitely give it a shot please post a link to the ROM and tell me what version you have running
[Android Apps and Games] MoistPicklez:
Here's the thread: http://xdaforums.com/showthread.php?t=3133741

The only build there is October 8th - 5.1.1. Thanks very much for your time man!
[Android Apps and Games] bdorr1105:
Here You Go.....I tried creating a zip specifically for your device with a zip creator. Please let me know how this works. You do have the option of a manual push method as well if the zip is not successful

free: 3Minit_Battery_free_NuclearSlim-bacon-V3.0-STABLE.5.1.1-20151008-0229.zip

paid: 3Minit_Battery_paid_NuclearSlim-bacon-V3.0-STABLE.5.1.1-20151008-0229.zip

paid version is only if you already bought the paid version from the marketplace - Do not forget to install from the playstore
[Android Apps and Games] MoistPicklez:
Zip failed to flash, replacing the systemui and adding the minitresources worked like a charm, thank you very much.
[Android Apps and Games] rajackar:
3minit battery mod on S6 dual sim

Hey guys,

I've tried installing the 3minit battery mod on my Galaxy S6 dual sim. Sadly things seem a bit more complicated on the dual sim variant of the S6.

I've also tried some roms that have the 3minit mod included but on these roms there is no effect on battery.

This led me to try decompiling systemui and making the changes required. While I was able to do this the lines that need to be changed appear differently in my system_icons.xml.

I tried some variations on the instructions and while my phone boots the status bar etc is not loaded and background stays black.

My original system_icons.xml looks like this:

<?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" android:alpha="@dimen/status_bar_icon_alpha" />
<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="@dimen/signal_cluster_gap">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_gap" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />
<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="wrap_content" android:layout_height="wrap_content" 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" />
<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" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="@dimen/battery_icon_start_margin" />
</LinearLayout>
</LinearLayout>

Is anyone able to help me try to get this mod to work?

Any help will be greatly appreciated.
[Android Apps and Games] pas2001:
First look at @id/battery as key line. Edit layout height and layout width to "0.0dip"

Then add line about 3minit just below as instruction.

You should look in file msim system icons.xml and edit same way too.
[Android Apps and Games] rajackar:
Thanks for the quick response.

Will give that a try.
[Android Apps and Games] MAXSIMUS96:
Is it possible to install this mod firmware on RR 5.5.8? The application I bought at the store and would like to use this firmware. Here's a link to my SystemUI - https://drive.google.com/file/d/0B2NXHFfPxFb8RnJEbmE1aG9jbFE/view?usp=sharing .

If you can ask for help in the modification.

link rom - http://xdaforums.com/galaxy-s3-neo/development/rom-ressurection-remix-s3-neo-t3123799

framework.res - https://drive.google.com/file/d/0B2NXHFfPxFb8bkdUUi1HQ2FIYTA/view?usp=sharing

Samsung Galaxy S3 Duos
[Android Apps and Games] bdorr1105:
Give this a try bro. If you bought 3Minit Settings from the playstore, download the paid version so the zip doesn't install the older free version! Please report back

Free: 3Minit_Battery_free_Resurrection-Remix-LP-v5.5.8-20151107-s3ve3g.zip

Paid: 3Minit_Battery_paid_Resurrection-Remix-LP-v5.5.8-20151107-s3ve3g.zip

If the zip fails to flash, you have the manual method

1. Download the zip file for your ROM in download section

2. Extract the SystemUI.apk and MinitBatteryResources.apk from the zip

3. Copy these 2 files to your phone

4. Navigate to /system/app with Root Explorer

5. Create a folder named MinitBatteryResources

6. Copy MinitBatteryResources.apk inside of that folder

7. Set permissions to rw-r-r or 0644

8. Navigate to /system/priv-app/SystemUI

9. Copy the modded SystemUI.apk attached to this post

10. Set permissions to rw-r-r or 0644 (If it reboots before you can do that, just set permissions after pgone reboots)

11. Reboot phone and hopefully you are good to go!
[Android Apps and Games] MAXSIMUS96:
I would be grateful if you would arrange for your works! Now I should try. I will be a screenshot and added to the presidency in the event a favorable outcome.:good:
[Android Apps and Games] MAXSIMUS96:
bdorr1105

[IMG="Screen"][/IMG]

Status bar is slightly down. His need to lift

more true from above empty seat. The screen isn't completely filled
[Android Apps and Games] bdorr1105:
[MENTION=4619873]gharrington[/MENTION] any reason why the statusbar would come down?
[Android Apps and Games] MAXSIMUS96:
And periodically pops up a GUI bug
[Android Apps and Games] bigrushdog:
[MENTION=4619873]gharrington[/MENTION] http://review.teameos.org/#/c/1336/

AOSP is in the game.
[Android Apps and Games] MAXSIMUS96:
Tell me please. Can I use this patch to fix the situation?

and how to install this patch?
[Android Apps and Games] MAXSIMUS96:
By using any of the programs and tools edit SystemUI to apply changes by this patch-http://review.teameos.org/#/c/1336/

Please help in solving this problem
[Android Apps and Games] bigrushdog:
It seems I need to provide further clarification as to what this is. If you look at the commit but do not understand what it means or how it works, it does not pertain to you. If you are not running aosp it does not pertain to you. This ongoing work is based upon the source code [MENTION=1577398]gharr[/MENTION]ingron released. That source code is what the smali files are made from. I built upon the original source code and made the code more practical for aosp. It is not a solution to anybody's fail. It is for developers.
[Android Apps and Games] bdorr1105:
Ahhhh forget it, deleted
[Android Apps and Games] waldox:
[MENTION=4619873]gharrington[/MENTION],

Is there a way to adjust the margin, or padding, or posistion, of the battery icon so that it's not so close to its neighbor?
[Android Apps and Games] JaeMelo:
Why is this app so damn slow in loading up content?!