yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Themes and Apps] Dym71:
Little help over here :)

Hi, I've the same problem. My tablet is built in my car dashboard and with pop-ups it is useless.

I've problem with this script :( I suppose it's my foult but i don't know what should I do :(

CMD return error:

==> Error, "temp\classes.dex", Nie można odnaleźć pliku., ODEXed ROM?

I've stock ROM(Samsung T-235, Android 4.4.2) with root and it is odex :(

I try deodex this app(SystemUI) with a lot of tools for example:

Universal Deodexer V5

Rickys Rom Kitchen

This tools works properly(I think... no errors, the first generate "deodex" apk, second decompile odex apk but I dont know what next - I found decoded battery_low.xml etc.) but BatteryPatch still return error.

Can anybody help me with this problem?

Regards
[Galaxy S III Themes and Apps] Hyperion626:
Help please

I cant seem to figure out how to patch the SystemUI, any chance someone could give me a hand? I integrated my tablet into my car and I live in AZ which causes it to overheat from just being in the car making it annoyingly useless till it cools down

filedropper(dot)com/systemui442-t230nuueu0apa1

Thanks!
[Galaxy S III Themes and Apps] mojobern:
can i use this in other device? i have s3 too, JiaYu S3 Official Build 5.1. i hate the battery temperature warning alert popup. i always get DC while playing online game. tia.
[Galaxy S III Themes and Apps] jap.jap.teacher:
Help with disabling the battery heat warning

Hey guys!

I am very new to this, and i could only manage go download the SystemUI.apk from my phone.

I tried for hours to run the Patch js and disable the battery heat warning, but i was unable to.

I am attaching the SystemUI.apk i downloaded from my phone (galaxy s7 running on Android 7.0), and i am wondering if any of you experienced guys could help me out... I would really really appreciate it!

And guess what - i can't post a link to the systemui cause i`m a new user :)) Can anyone PM if you think you can help? Thanks!
[Galaxy S III Themes and Apps] awoc1234:
Files

Where do you put systemui.apk and patch.js?
[Galaxy S III Themes and Apps] InfX:
Guys... this thread is from 2013! Does anyone really expect this thing to still work today, after so many system updates? I'll be really surprised.
[Galaxy S III Themes and Apps] GalaxyS3man:
POP-UP IS GONE Finally.

Well, what can i say, wife kept botherin me..eh?! :banghead:.thank you, appreciated, i been here in xda only few days, newbie :P bare with me i'm a quick to catch up with things :rolleyes:
[Galaxy S III Themes and Apps] GalaxyS3man:
Wondering why this hacked camera wont work with flash or at all after 5% battery. Also this automated brightness down to minimun when hitting 5%. Maybe someone fix those too, other than that im happy.

I never actually have my phone in charger coz i have this extra battery charger set by samsung, when reaching 1% its nice just to throw fresh 100% while old one back to external charger.

I recommend that set to all GS3 users :p

Thanks again.
[Galaxy S III Themes and Apps] InfX:
The camera refusing to turn the flash on, or itself on, is, quite obviously, the camera feature, it is unrelated to system ui in any way. Why would this patch change it?

Brightness decrease - ive never seen it happening to me. Maybe because i normally run out of battery at home and already on low brightness. Or, maybe its a feature on a newer ROM (i am on xxalf5 deodexed stock).
[Galaxy S III Themes and Apps] GalaxyS3man:
Yeah i am aware that it's feature on camera app itself, strange only coz that hyper mod cam app supposed to work even battery under 5%. You know the one with 30mbps fullhd mod version of the stock cam.

Lg camera from play market runs fine thou, well.. it did on my Galaxy S2, SGS3 seem not compatible yet with this camera app.

---------- Post added at 11:47 AM ---------- Previous post was at 11:37 AM ----------

Ah, found the reason, it was a stockcam afterall, my mistake, heh. After restoring older backup there was not yet hyperx cam installed :p

---------- Post added at 11:53 AM ---------- Previous post was at 11:47 AM ----------

Yeah, no wonder it was not odexed, i send u the original from the phone last night, other systemui.apk files i was messing with were on my laptop. It was the cmd giving me errors that made me scratch my head ;)

Sorry for the mixup, but im thankful to you, i owe you a :beer:
[Galaxy S III Themes and Apps] zorro12010:
System UI

Hi InFX,

I've been looking like crazy for a solution to the Low batt pop ups etc.

Finally I found your thread but unfortunatly I could not manage the aspect with the apk tool.

Would you be so kind to mod my system ui?

Thanks in advance.
[Galaxy S III Themes and Apps] InfX:
Well... you could google a bit and manage it, really. It's not that complicated. If i could do it, anyone could after all.

In any case, attaching your apk with the patched classes.dex, sorry in advance if i did screw something up (unlikely, though). BTW, do specify in this thread what ROM is it coming from and with what mods applied, just in case someone else ends up finding it useful ;)
[Galaxy S III Themes and Apps] zorro12010:
Hi InfX,

Thanks very much, I have not tried it yet (at work) but will do so soon.

It concerned a system ui taken from Dragon JB 1.7.

Mods: statusbar (center clock, bubble battery), green jb theme by Dragon, system tweaks, like supercharger, soundhack, no boot sound, etc.

Thanks again for your kind work.
[Galaxy S III Themes and Apps] DSA:
I was using this mod in my previous rom - its a great mod

BUT, when the battery is fully charged, the battery icon and 'fully charged, remove charger' text doesn't disppear from the status bar

Im looking into it, will update when i have news...again, great mod
[Galaxy S III Themes and Apps] InfX:
If i remember correctly, the first "return-void" in the patch was the one that should make that no longer appear, at all. The method name there is VERY obvious, too. Note that there is another method nearby in the code that is intended to discard the notification when the charger is disconnected, it starts in a similar fashion. You may have accidentally patched that additional one.
[Galaxy S III Themes and Apps] DSA:
I think you may be right ...
[Galaxy S III Themes and Apps] threein99:
How exactly do I install this, I keep getting a "Application not installed" when I try to install it
[Galaxy S III Themes and Apps] DSA:
This isn't an app to install

This is a mod to a system file....you need to overwrite the original with the new modded version with a root file browser
[Galaxy S III Themes and Apps] threein99:
ok thanks a million

---------- Post added at 03:09 PM ---------- Previous post was at 02:42 PM ----------
[Galaxy S III Themes and Apps] Cyserrex:
How to decomile with apktools? :confused:

newbie here
[Galaxy S III Themes and Apps] DSA:
There's plenty of tutorials on this forum...do dome searching and you will find what you need

This thread isn't about apktools..
[Galaxy S III Themes and Apps] threein99:
Can someone point me in the right direction of a how to apply this mod ?
[Galaxy S III Themes and Apps] DSA:
PLEASE LEARN TO SEARCH
[Galaxy S III Themes and Apps] Kangburra:
Thanks to all it seems I have got this working on DLIB :)
[Galaxy S III Themes and Apps] ilfavi:
Hi, I cannot find the code you wrote.

In my PowerUI.smali I can find the first snippet only but not the second and the third one

:(
[Galaxy S III Themes and Apps] InfX:
Let me have the PowerUI.smali (post it here), i'll give you the line numbers if i spot it.
[Galaxy S III Themes and Apps] InfX:
Or, even better, here are my PowerUI.smali files before and after the change, so you can do a 3-way merge. In any case, the diffs are in the "notifyFullBatteryNotification" method, the "showLowBatteryWarning" method and the "showNotChargeDialog" method. Pretty obvious, isn't it ;)
[Galaxy S III Themes and Apps] d8389:
I prefer another mod, displaying first overheat message but not every minute.

in PowerUI$6.smali

# virtual methods

.method public run()V

.locals 1

return-void

.end method
[Galaxy S III Themes and Apps] ilfavi:
Thank you very much! I'll try the merge first.
[Galaxy S III Themes and Apps] ilfavi:
I decided to modify showLowBatteryWarning method only (the possibility of seeing the entire file helps a lot in the understanding of the mod). The recompiled package is oddly 400k smaller than the original one and this stopped me to put it back on the phone.

What am I doing wrong?

:confused:

:p
[Galaxy S III Themes and Apps] InfX:
Apktool did mess up on resources for me before. Not willing to deal with it, i just took the classes.dex out from the recompiled apk and placed it in the original one instead, uploading that one to the phone.

PS: ALWAYS back your ass up in any case
[Galaxy S III Themes and Apps] Kangburra:
I use dsixda's kitchen, works well and builds the ROM when you've finished ;)
[Galaxy S III Themes and Apps] ilfavi:
Oh interesting... But where do I have to put classes.dex file? Maybe dalvik-cache?
[Galaxy S III Themes and Apps] InfX:
I've just planted it in the original apk :)
[Galaxy S III Themes and Apps] ilfavi:
Ok I did it. The phone has restarted normally and this is a good point already.

Now all I have to do is to wait for this evening when the battery will go down.

Thank you for your help!:good:
[Galaxy S III Themes and Apps] ilfavi:
Doh! The alert is still here at 15% :(
[Galaxy S III Themes and Apps] chaitumtx:
guys help me

can u help me im tried to decomplie my systemui.apk but its getting some errors can u mod for me
[Galaxy S III Themes and Apps] Kangburra:
Try dsixda's kitchen, works perfectly for me. :)
[Galaxy S III Themes and Apps] InfX:
Are you sure the errors are not resources related? If thats the case, just leave the resources alone, you are only touching the code here. In any case, patched apk attached.
[Galaxy S III Themes and Apps] chaitumtx:
help me

i have no knowledge about the andriod can explain wat i want to uplode resource means?
[Galaxy S III Themes and Apps] InfX:
Sorry, i don't really get the question.
[Galaxy S III Themes and Apps] chaitumtx:
help me

k just i need to mod the mod for my s3 im using omega jb v31 rom can mod systemui.apk uploded before post .
[Galaxy S III Themes and Apps] InfX:
I already did, i've attached the modded apk in my reply that follows.
[Galaxy S III Themes and Apps] chaitumtx:
its not working what u have attached file using u r patch i did n`t get status bar and systemUI slow can u modd again
[Galaxy S III Themes and Apps] InfX:
I am certain i did it right. Did you reboot after replacing it?
[Galaxy S III Themes and Apps] droido123:
InfX - tried and failed to modify the apk file

Dear InfX -

I am a noob and trying to learn more about modifying the .apk file. I am deeply annoyed by this low battery warning pop up notification (yes, i have also already renamed the .ogg file) and would actually like to remove it entirely or set it to zero.

*

I see that other noobs have supplied you with their SystemUI.apk file and you have modified the PowerUI.smali patch. I have tried using a few different methods in each and failing. Since the OP Ed hasn't yet created a thread of i9305 models I am unsure if I am either not doing this right OR if this patch is only for i9300?

*

So, I was hoping you might kindly modify my SystemUI.apk file file so that the 15% low battery warning is either disabled or set to 2%. If you can then post the mod'd file I can then look into how the file was modded so I will know how to do it myself next time and won't need to waste experts time. I kinda of learn by comparing and contrasting file types and looking for the variances. So, if you could kindly look at mine, making sure your mod is suitable for my device (I have pasted the specs below) I would be deeply appreciative so I can crawl out of my noob hole into a little more knowledge.

*

You can PM too if you prefer it.

*

Thanks a bunch

*

Specifications:

Samsung Galaxy S3 LTE Hong Kong Version

Model number:GT-I9305

Android version: 4.1 .1

Baseband version: I9305ZHALI1

Kernel version

3.0.31-177985

Build number: JRO03C.I9305ZHALI7
[Galaxy S III Themes and Apps] InfX:
Will take a look later on (probably tomorrow), patching should be quite similar if not identical.
[Galaxy S III Themes and Apps] LXative:
Has anyone successfully done this to the US device?
[Galaxy S III Themes and Apps] chaitumtx:
yes i did but its saying systemUI not responding and won`t showing status bar
[Galaxy S III Themes and Apps] InfX:
Ill doublecheck it again later
[Galaxy S III Themes and Apps] InfX:
Sorry, i've just re-did it, and got the "classes.dex" (that's the file containing the java code) that is bit-to-bit identical with the one in the apk i've uploaded for you. I really don't know what's wrong. Can be a good idea to check your logcat, though. Or maybe someone else here can come up with an idea.
[Galaxy S III Themes and Apps] InfX:
The apk you've attached is from an odexed ROM. TBH, i have no idea how to really deal with those, yet the thing i am 100% sure about is that you need to modify the corresponding odex, not the apk, for a very obvious reason (that's where the code is in the odexed apk, it's not in the classed.dex). XDA is the right place to find this kind of stuff out, though :)
[Galaxy S III Themes and Apps] droido123:
here is the updated SYSTEMUI.apk file

Hi, I figured out how to deodex my system. I am one month old iOS refugee, I am learning fast but still an infant.

*

I use a custom ROM (Pandorium 2.2) and its working like a charm.

*

I have done lots of research on this 15% battery issue and it doesn't seem like there is an easy fix out there (uploaded zip, etc). it seems the only way to get it done is through your method (which is still a bit ahead of me in the learning curve). I have attached the de-odex SystemUI.apk file and would kindly appreciate if you could apply your code and recompile it and post it back up for me so i can test.

*

Yes, I would like to figure out how to fish (use an Apk Tool) on my own too. However, I have searched the forums and google and not been able to find a good, stable, APK File/tool/manager program. I am using Windows 7 64x (I guess there are different Linux and Windows apk tools) So, if you could kindly recommend the name of an APK tool that will work for this problem (and maybe a reliable source where to download it from) that would help me so I can learn how to do it on my own.

*

Once I have got the APK tool installed on my PC I can then figure out how to decompile, edit, and recompile this on my own. I will use the mod SystemUi.apk that you are going to provide as a "safe check" to be able to refer back to in order to compare and contrast.

*

This is a great mod, I look forward to installing it, learning how to do it myself and then helping super-noobs like myself learn how to do.

*

Thanks man :cowboy:
[Galaxy S III Themes and Apps] oae08:
Great Mod. thanks alot just what i was lookin for.
[Galaxy S III Themes and Apps] InfX:
Ill only be able to patch it for you in about 3 day, so if anyone else can do it before - please do.
[Galaxy S III Themes and Apps] naeg1977:
hello:o

please can someone help me to apply the new powerUI.smile to my attach file ?

I really want to disable the pop ups but im very new to this

thank you very very much :)
[Galaxy S III Themes and Apps] InfX:
Guys, i am currently AFK and can't patch those apk files. Please do NOT nag me with (multiple!!!) private messages. I really did NOT post this thread with "send me your files and ill patch it for you" in mind, totally not.

Thanks for understanding.
[Galaxy S III Themes and Apps] InfX:
Alpha version of the script to auto apply this patch

Since i am not exactly going to patch everyone's SystemUI.apk files in the nearest future, yet i had some spare time right now, i've decided to automate the process. I've been thinking about some simple bat file, yet making such a complicated bat file is far beyond my "bat capabilities", so i've made a jscript instead.

If anyone here is willing to beta-test it, please go ahead. To use it, unzip the attached archive, put your SystemUI,apk in the same directory as Patch.js and launch Patch.js to try & apply the patch. Please report here in case of either success or failure.

I'll attach the script to the first post in case everything goes well for most people.

Anyone willing to reuse the script or edit it in any way, feel free to do whatever necessary, i've commented the script to quite an extensive level, so it's easy enough to understand.

PS: As usual, i am taking no responsibilities in case of any damages, etc etc, caused by this, insert your worst disclaimer here.

EDIT: moving the jscript to the first post...
[Galaxy S III Themes and Apps] clausg:
Hi,

I downloaded the jscript and run it. The process went without flaw it seems. I replaced the SystemUI.apk and rebooted.

The only thing I noticed so far is that the original wallpaper came up. Now I have to drain it and see, I will report if it worked.

Thanks a lot InfX!
[Galaxy S III Themes and Apps] InfX:
The system does, indeed, reset the wallpaper for me when i replace the SystemUI.apk, not sure why, the best guess would be the system detecting the apk switch, wiping it's data, with the wallpaper set there. Just a wild guess though. Anyway, i'll put the script up in the first post after 1..2 more ppl report it doing it's job. This should allow most people to apply the patch without having to manually decompile and edit anything. Mind it, though, as you can see from the script trace prints, the script does exactly the same thing, just automates it :)

PS: Thanks for testing.
[Galaxy S III Themes and Apps] clausg:
Alright, I drained the battery down to 3% and I confirm: it works! No notification anymore. Great ! The wallpaper issue is a matter of 5 seconds to restore.

Thanks InfX!
[Galaxy S III Themes and Apps] InfX:
Just noticed youve actually applied it on N7000, not I9300, lol. You are likely to be the first to test it on N7000 :)
[Galaxy S III Themes and Apps] naeg1977:
Help for a new guy please.

I extracted the battery patch and now I have a a patch jscript script.

Where must I put this script ?

Do I have to do anything else after that ?

Thanks :)

Think different....Samsung Galaxy S3
[Galaxy S III Themes and Apps] InfX:
You put the jscript anywhere you want on yout PC, along with its "utils" directory. Then you put your SystemUI.apk at the same place youve put the script. Then you run the script. If everything goes as planned, the script does the modifications required on your apk, all you have to do after is replace it on your phone. If not - you should get a meaningful error messages displayed in the script console.
[Galaxy S III Themes and Apps] Stivikivi:
When I try to run the script it says : Error, the system can't find the specific data.

But I copied the Script with the ult folder and the systemui in the same folder but no idea why it doesn't work.
[Galaxy S III Themes and Apps] InfX:
Please copy & paste the entire console output of the script here.
[Galaxy S III Themes and Apps] Stivikivi:
Microsoft (R) Windows Script Host, Version 5.8

Copyright (C) Microsoft Corporation 1996-2001. Alle Rechte vorbehalten.

Checking for java presence...

==> Error, the system can't find the specific file

C:\Users\Windows\Desktop\TitaniumBackup\Script>
[Galaxy S III Themes and Apps] InfX:
Checking for java presence...

==> Error, the system can't find the specific file

Do you have java installed?

PS: How is the script output any nearly unclear? :(
[Galaxy S III Themes and Apps] naeg1977:
Thank you very much :)

You are doing a very difficult and great job and thank you for helping new guy's like me :)

I just tested the script .

The only problem that I see is that at 5% the brightness goes down as it did before the new systemui.apk.

When I fix the brightness(for the record brightness is not on automatic, its set manually) once, then when the battery goes at 4% 3% 2% 1% it doesn't go down any more .

It does this only at 5%

Also at lock screen it shows me that I must connect the phone to the charger as it did before.

I don't know if the above problems must stop with the new jscript or not ?

I dont have any pop up battery sound alert at 5% and under any more .

Also at 20% battery left everything works perfectly without any pop up alert or sound

I have the omega theme that came with the ram also on my phone and nothing changed after running the script and replacing the new systemui.apk. , everything is running perfectly .

Im using omega rom 33.2 4.1.2 galaxy S3

Thank you so much :)

Think different....Samsung Galaxy S3
[Galaxy S III Themes and Apps] InfX:
As i already mentioned (in the first post), the ONLY thing this mod does is removing the popups and the the "fully charged" notification. It does NOT modify any kind of actual functionality at all, nor it was ever intended to, sorry if it wasn't clear.

About the jscript, the ONLY purpose of the jscript is letting those unfamiliar with decompiling the code and applying changes to the decompiled smali files apply the mod in an automated fashion. In the first post i've mentioned the following:

Fetch your "/system/app/SystemUI.apk" from the device.

Decompile with apktool, locate the PowerUI.smali.

Apply the patch below.

Rebuild the apk.

Rename your original SystemUI.apk and push the new one to the device.

The jscript simply automates steps 2 to 4, inclusive, for you. That's all.
[Galaxy S III Themes and Apps] Stivikivi:
yeah I have java that's it :((
[Galaxy S III Themes and Apps] InfX:
I've posted a (slightly modified) jscript in the first post. It isn't much different from the previous one i've posted, it's mostly tidying the code up and checking if the patch is already applied, to avoid double-patching.

NOTE: Having a full time job, i am not exactly available 24/7. Anyone reading this thread and seeing noob questions, please don't be shy and respond. Also, the jscript is perfectly well commented, anyone reading this and able to do a little bit of coding, feel free to support it ;)
[Galaxy S III Themes and Apps] InfX:
Run cmd, type "java -version" in there, hit enter. Do you see a java version or do you see 'java' is not recognized as an internal or external command... ? If it's the later, you either don't have java installed properly or somehow had it removed from system path. Fix it and try again.
[Galaxy S III Themes and Apps] Stivikivi:
Thank you I tested it with my laptop and now it works! :)
[Galaxy S III Themes and Apps] clausg:
Sure, true. But the syntax of the systemUI in the N7000 is the same afaik. So it's not surprising.
[Galaxy S III Themes and Apps] InfX:
Yep, indeed.
[Galaxy S III Themes and Apps] ilfavi:
When I double click the script it opens the java help so I commented the java check lines and all worked like a charm

thank you

Now I have to check it out on my phone
[Galaxy S III Themes and Apps] InfX:
Thanks for feedback. Maybe i should do the java check with some "java -version" or a small test jar file instead. Can you check if running "java -version" works for you in there? Thanks in advance.

EDIT: Nevermind, "-version" returns a non-0 exit code on my machine. Modifying the java check to launch a hello world jar and reuploading. Thanks for feedback again.

EDIT2: Done. The ridiculous thing is, i don't even have JDK, so i had to build the "hello world" with this :eek:
[Galaxy S III Themes and Apps] InfX:
I've just modified the instructions to use the jscript instead of manually decompiling and patching. I've also removed the diffs code barely anyone here seems to understand, attaching a "before" and "after" versions of the smali file in case anyone is interested to apply this manually or have troubles using the jscript.

PS: Hopefully the thread readers, as well as mods, do not have problem with such a drastic modification of the original post.
[Galaxy S III Themes and Apps] Lost.soul:
I was reading through your script and gotta say, you are tidy as heck :P

Just one question though, I can see that you are replacing the function for the methods with return void so nothing happens.

If I just remove the methods entirely, do you think this will work both ways or something might break ?