yashsingh1/xdaforums huggingface dataset:
[Android General] grzegorz354:
Guide Low Battery Warning​

Decompile SystemUI.apk

Locate to

smali/com/android/systemui/power/PowerNotificationWarnings.smail

Add blue text

.method public showLowBatteryWarning(Z)V
.locals 4
.param p1, "playSound" # Z

[COLOR="royalblue"][B][SIZE="3"]goto :goto_0[/SIZE][/B][/COLOR]

.line 699
const-string v0, "PowerUI.Notification"

new-instance v1, Ljava/lang/StringBuilder;

invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

const-string/jumbo v2, "show low battery warning: level="

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget v2, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mBatteryLevel:I

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

const-string v2, " ["

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget v2, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mBucket:I

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

const-string v2, "] playSound="

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v1

invoke-static {v0, v1}, Landroid/util/Slog;->i(Ljava/lang/String;Ljava/lang/String;)I

.line 704
iget-object v0, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "SHOULD_SHUT_DOWN"

const/4 v2, 0x0

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

const/4 v1, 0x1

if-ne v1, v0, :cond_0

move v2, v1

nop

:cond_0
move v0, v2

.line 705
.local v0, "isShutdownOn":Z
if-eqz v0, :cond_1

.line 706
const-string v1, "PowerUI.Notification"

const-string v2, "Shutdown is ON"

invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 707
return-void

.line 710
:cond_1
iget-boolean v2, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mFTAMode:Z

if-eqz v2, :cond_2

const/4 v2, -0x2

iget v3, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mBucket:I

if-eq v2, v3, :cond_2

.line 711
const-string v1, "PowerUI.Notification"

const-string v2, "FTA Mode is ON and Not critical Low battery"

invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 712
return-void

.line 716
:cond_2
iput-boolean p1, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mPlaySound:Z

.line 717
iput-boolean v1, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mWarning:Z

.line 718
invoke-direct {p0}, Lcom/android/systemui/power/PowerNotificationWarnings;->updateNotification()V

.line 719

[COLOR="RoyalBlue"][B][SIZE="3"] :goto_0[/SIZE][/B][/COLOR]

return-void
.end method
[Android General] TheDevelopper:
>All you guys! I need your helps, I'm running S9+ port and I have ported an S9+ SystemUI.apk from the Galaxy SM-G965N to my Galaxy S7e, but there's a small bug that disturbs me, whatever I did the wallpapers in theme store are disordered, I want to make them exactly like stock S9+, I edited the "public.xml" and "AndroidManifest.xml" and much more matched files on both wallpaper-res.apk and SystemUI.apk and also in framework-res.apk but :/ still disordered even using the Public Id converter and mod smali for wallpaper. Please I need your help, the gold one should be the last infinity wallpaper instead of being the first one as shown down in the attached thumb, just want to know where is the problem, I respect the whole rules

>EDIT: I have found the problem and I want to share what is going wrong with anybody else that got the same issue and want to fix it, ok it's in "framework-res.apk/values/arrays.xml and attrs.xml", the issue is in the CSC lines, if edited you must delete some lines in "public.xml" so you get the apk compiled, but you'll get errors in "efs" and lose your base band and emei

corrupted, you can not fix this using adb or TWRP with typing

dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1

"then enter" and

dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2

"then enter again" in TWRP, it doesn't work for this time because of the new edited framework-res.apk. You must restore the original framework apk that works fine with your rom, so, don't do it if you cannot fix it or you haven't any basic knowledge about dec/comp apks

>[MENTION=4840281]stang5litre[/MENTION], please, do you know how to fix that emei/baseband corrupt once edited the framework-res.apk without restoring the original one?
[Android General] stang5litre:
Go in the UI and framework and rename them . Make the gold one #4 instead of number 1 etc.

stang5litre 5.0 Edition Roms
[Android General] TheDevelopper:
Thanks, but i have already done it, and if so you'll get merged infinity wallpaper applied, i meand

the gold infinity animations will be applied to the blue one and so, i think the solution is to mod smali for wallpaper?
[Android General] Er. Aditya:
can anyone help me i edited csc edit and when my rom boots it get stucks here

https://imgur.com/a/M84hVYy
[Android General] yash92duster:
Delete this app

system/app/PlayAutoInstallConfig/PlayAutoInstallConfig.apk
[Android General] Er. Aditya:
thanku sir but its still going on

edit : i clean flashed and everything works great thanks alot sar :)
[Android General] yash92duster:
;)great

Later I will post my bloatware app list in post 1- from mm to pp
[Android General] Er. Aditya:
that would be awesome sir , would help alot cleaning out crap :D will wait for it

[MENTION=6377149]yash92duster[/MENTION] i was facing a strange issue when i applied csc edits from your post here sir

https://xdaforums.com/showpost.php?p=76225671&postcount=11

and in this i found that my play store downloads were not working

so after alot of back and forth i found this to be the culprit

<CscFeature_Common_ConfigYuva>powerplanning|reserve|zeroforward|mileage|dashboard|sprotect|MemorySaver|geolike</CscFeature_Common_ConfigYuva>

why sir ?
[Android General] yash92duster:
OK will check and update csc tweaks to latest

Add this alone once and check

<CscFeature_Common_ConfigYuva>powerplanning|MemorySaver|sprotect|reserve|dashboard</CscFeature_Common_ConfigYuva>
[Android General] Er. Aditya:
Sir I tried with clean and dirty flashes...adding thing makes play store download stop and rem9ve this and reboot everything works properly
[Android General] yash92duster:
Remove 1 by 1 in this tweak and check

Edit:

All new csc tweaks updated

https://xdaforums.com/showpost.php?p=76225671&postcount=11
[Android General] Er. Aditya:
Thanku sir il try next weekend with clean flash
[Android General] yash92duster:
[Samsung][Debloater]Kitkat_Lollipop_Marshmallow_Nougat_Oreo_Pie:​

Notes:

*This Debloater Is For Following Android Versions:
Kitkat, Lollipop, Marshmallow, Nougat, Oreo& Pie

*Backup And Flash The Debloater Zip In TWRP Recovery

*If Something Goes Wrong, Simply Restore Your Backup

*Debloat Zip Has My Personal Debloat List Of Apps

AFH Download Link:https://www.androidfilehost.com/?w=files&flid=288167

Guide by yash92duster
[Android General] nguyentankiet:
[MENTION=6377149]yash92duster[/MENTION]

Which tool you used to deodex Pie rom?
[Android General] thereassaad:
SuperR kitchen , batchapktool , TOAD tools , all of this tools deodex pie successfully ..
[Android General] nguyentankiet:
I tried Batch and TOAD but unsuccessfull [emoji848]
[Android General] yash92duster:
Ok

I updated csc tweaks post too
[Android General] yash92duster:
we provide Only link for those tools here

Post your issues with logs in those tool thread

good day
[Android General] Er. Aditya:
Hi again sir

Can u help with this too...why some apps give update error

https://imgur.com/gallery/JoJ8aIV
[Android General] yash92duster:
Use full system and check once

Maybe you debloated something or those apps don't work on your port rom
[Android General] Er. Aditya:
Rom is stock based sir but yes probably i debloated something il try that

Thanks again sir
[Android General] Techvir:
Couple of super nooob questions.

Is this still applicable for pie rom ?

When I decompile systemui.apk I cannot see any smali files

Or does that mean I need a de oxdexed files.
[Android General] micosal:
I made use of the Quantum Kernel v1.0 in a custom rom meant for my device ( Samsung Galaxy j7 prime) so that I can Fix Data Mount in TWRP for Oreo 8.1.0 which has December 2018 update. The data mount issue was resolved and I can now backup my boot,system and data using twrp, but I encounter a new problem: my wifi,hotspot and bluetooth are not working. Please how can I fix it?
[Android General] yash92duster:
Yes it works in pie

Use deodex ui apk
[Android General] LeeXDA18:
Any way of deodexing apks and jars without pc? Latest apktool (2.4.0) doesnt properly deodex, they have odex and vdex files
[Android General] stang5litre:
No

stang5litre 5.0 Edition Roms
[Android General] LeeXDA18:
Any way to maintain original signature when modding an apk without pc
[Android General] yash92duster:
Check post 1 if it got any
[Android General] LeeXDA18:
Checked all, no link to the request
[Android General] Er. Aditya:
Hi sir is there a way to make spay work on rooted device ?
[Android General] Encik Panda:
Once u tripped ur Knox to 0x1 thats mean there's no more Samsung Pay and Secure Folder for ur device
[Android General] artn3r:
I created an xposed module for unlocking the sim tray

I created an xposed module for unlocking the sim tray - please test.

With this, there is no need to recompile services.jar anymore.

https://xdaforums.com/galaxy-s9/development/xposed-unlock-dual-sims-sdcard-s9-s9-t3888952
[Android General] Grouxho:
Updated guide for screen recorder tile in UI compatible PIE-OREO

https://xdaforums.com/showpost.php?p=77608911&postcount=596

enjoy.

Thanks to [MENTION=5836069]ezam[/MENTION]ber for testing fixes for pie compatibility.
[Android General] AttoR:
Hi sir...

How to enter settings, when clicked nothing happens.. :)
[Android General] :
Hi

Long press on tile

Envoyé de mon SM-G965F en utilisant Tapatalk
[Android General] AttoR:
Still can't enter to settings sir... :eek:
[Android General] :
In this case I don't know, sorry.

Wait [MENTION=4985020]Grouxho[/MENTION] ;)

Envoyé de mon SM-G965F en utilisant Tapatalk
[Android General] Er. Aditya:
Anyone knows of custom fonts working on pie ?
[Android General] kin201303:
because the ver is not same

your del your ScreenRecorder.app reboot after install his ScreenRecorder.app
[Android General] AttoR:
what version should I use ...?

I use the suffix 23 and 27 versions still can't...
[Android General] kin201303:
i add new ver ScreenRecorder_3.1.00.34.apk
[Android General] AttoR:
Okay, i'll test it now sir... big thanks... :svetius:

---------- Post added at 06:06 AM ---------- Previous post was at 05:56 AM ----------

SOLVED
[Android General] Adutz1:
I'm on stock rom samsung s8 SM G950F and I would like to install screen recorder..but I don't know how to decompile system ui from these instructions :

GUIDE

1.- Download Attached rar

2.- Decompile SystemUI.apk

3.- From rar take the smali (GrxScreenRecordTile.smali) and place it in smali/com/systemui/qs/tiles

4.- From rar take the png (grx_screen_recorder.png) and place it in res-drawables

5.- To avoid ****lagsungwiz analytics error log line when pressing the tile edit res - values - arrays and look for this array

can somebody help me with some video or a tutorial?
[Android General] Eleo:
Please read OP thoroughly. This thread is for users who already are able to decompile and edit decompiled apks and jars. Please look in web/elsewhere in XDA for how to decompile, or follow below OP for custom guides about decompiling. Many examples there
[Android General] yash92duster:
If you don't care about warranty and stuff

You can learn to customize you device

There are guides linked in post #1

-Tma for apk editor

-Superr kitchen to unpack stock rom

-Stock rom download using samfirm tool

-time and patience

-learn to grab logs

Then you're good to go :cool:

Good day :cool:
[Android General] whalesplaho:
please clarification

1. the systemui_mod, will it be tha decompiled/recompiled untouched version

2. i tried to copy to tha systemui_mod.apk opened in 7zip from tha systemui_orig.apk, it pops error "not implemented".

i dnt know whats wrong please. please help!

---------- Post added at 02:16 PM ---------- Previous post was at 02:15 PM ----------

please clarification

1. the systemui_mod, will it be tha decompiled/recompiled untouched version

2. i tried to copy to tha systemui_mod.apk opened in 7zip from tha systemui_orig.apk, it pops error "not implemented".

i dnt know whats wrong please. please help!
[Android General] 3arthur6:
Hi!

Does another one get trouble when modify system apps on pie?

I m unable to boot or I get FC of these modified apps with some permission or security issues in logcat..

That with disabled signature verification in core-oj.jar and services.jar

Is there specials de/recompilation apktool flags on pie?

Thanks guys
[Android General] micosal:
1. You will duplicate the systemui.apk and rename one to systemui_mod0.apk and rename the other as systemui_original.apk

2. Use winrar if 7zip doesn't work. If you are on oreo 8.1.0, you may have to extract from the systemui_original.apk and add to system_mod0.apk following the guide.

That's how I did mine and it worked.

Always remember to have backup
[Android General] whalesplaho:
1. When i duplicate the original systemui.apk, i rename one to systemui_mod and tha other to systemui_orig, dey both has animation-v21 folder unlike in tha guide dat shows one will have animation which is tha duplicate and tha original with animation-v21 folder. Dats why im asking if i ll need to decompile/recompiled first cos in tha recompiled apk, it just animation folder and not having v21.

Thanks big buddy for yur help. Appreciate!!!

I almost gave up modding on Oreo buh yhu gave me a chance to do so.
[Android General] micosal:
what the Developer did was to copy and paste the content of all folders that have -v from original to mod0 without-v.

For instance, he copy and paste the content of animator-v21 folder from systemui_original.apk to animator folder in systemui_mod0.apk

And for color, he copied and pasted the content of color-v11 and colour-23 folders from systemui_original.apk to color folder in systemui_mod0.apk

That's why I advised you use the images attached.
[Android General] centaur31:
Hi, could you please specify the location of the services jar file? Do we need a recompile or can this be done on text editor?? Thanks.
[Android General] Er. Aditya:
location of service jar would be in your framework folder in system

and then decompile service jar and then use a text editor

[MENTION=6377149]yash92duster[/MENTION] sir can u point me to dm verity disable zip to work with super su ? i cant get to boot supersu anyhow
[Android General] yash92duster:
Thread has Been Updated with New Looks and Simplified Content ?

Good Day
[Android General] Eleo:
Just one thing. At the lowest part of OP you have a telegram chat link. Instead of "t.me/xxx", it is "t.m/xxx” (otherwise it says "this site can't be reached"). I know you are not a selfish person to write "me" everywhere, but this is how telegram links work

Cheers :angel:
[Android General] yash92duster:
Ya fixed

I'm updating 30 threads ;)

1 or 2 mistakes happens;)

Good Day
[Android General] an-_-dro:
which part to edit to get "fix" blur value? so i don't need romcontrol to get blur working?

thanks in advance
[Android General] ANDROIDXFOREVER:
:D perfect
[Android General] hossein_sys:
how to remove access to status bar permanently in android Oreo on Samsung devices

Hello

I need to remove the access to status bar permanently in android Oreo but its visible and can see it(Samsung j7core - android 8)(Apktool 2.3.3).

I follow from this post and this one :

My steps is:

1- adb pull /system/priv-app/SystemUI/SystemUI.apk

2- adb pull /system/framework/framework-res.apk

3- apktool if framework-res.apk

4- apktool if SystemUI.apk

5- apktool d SystemUI.apk

6- Open SystemUI\res\layout\status_bar.xml and add android:clickable="false" to the top most xml element

7- Open xhdpi folder and replace the corrupt pip_dismiss_scrim.9.png file with the file on the top of my post link

8- run apktool b SystemUI

9- Go to SystemUI\original and copy AndroidManifest.xml and META-INF to SystemUI\build\apk\

10- run apktool b SystemUI again

11- Go to SystemUI\dist\ and override the device's original SystemUI.apk with the one at SystemUI\dist\SystemUI.apk with adb push SystemUI\dist\SystemUI.apk /system/priv-app/SystemUI/SystemUI.apk

12- change the permissions of SystemUI.apk

13- reboot device

14- see result >>> failed > the status bar and nav bar are lost ! cant see both of them

I do this steps on android 6 and worked perfectly .

Which step is wrong or must be do ?

please help ...

Many thanks.
[Android General] hossein_sys:
Thanks a lot for your description ...

I follow you step by step , but at final when I copy the res, classes.dex, classes2.dex and resources.arsc in SystemUI_mod0.apk , the size of SystemUI_mod0.apk changed from 34MB to 22MB ...

Whats the problem ?
[Android General] Eleo:
Nothing. When you move files into apk file using a zip manager (like 7zip), it automatically compresses the copied files. It does not affect apk itself. Don't worry.
[Android General] msubhani:
Hi, i implement your guide it only turn off dua sim bar if i want to enable it didn't work with rom control switch. Is there anything thing missing in guide? On off switch option is not working.
[Android General] JesseBenson:
yash bro you are the real guy - Really you work hard for making guides helping other devs - Cheers!
[Android General] yash92duster:
Only 2% are mine

Rest are from other devs

It's just a one stop for all devs guides

We don't need any apreeciarion here

Use guides and enjoy

Good day
[Android General] firefds:
Hey, did you solve this?

I'm trying to edit the fotaagent.apk and getting FC when just decompiling and recompiling without changing anything. (S8 Pie)
[Android General] JesseBenson:
Thanks for clearing - Sorry if i made you feel a lil sad for a moment
[Android General] 3arthur6:
No... And I get no answers from others modders..

You did well the usual changes for disable signature check?

So for some I can, for others I can only modify the classes.dex, and for systemui, secsettings and others nothing..

I actually try to understand why.

But I managed to mod fotaagent on pie note 9 (to catch fota?!:p) by moding only the classes.dex and copying the lib folder in the app's directory.
[Android General] firefds:
Oh you did? Nice. That's exactly what I was trying to do. Any chance for a bit information on what you did?

I havent actually disabled the signature check.. maybe that's the issue im having.
[Android General] 3arthur6:
Yes no problem!

I use more or less this guide Fully spoof signature check Guide

When apply mods and unzip the lib folder as I sayed.

What infos did you need? Can you upload your logcat? It can help.
[Android General] JesseBenson:
Guys look Use 7zip open original apk as archive and modded one and Drag everything from modded to stock one once done install that one - Leme know if this works
[Android General] firefds:
Im just extracting the classes.dex file using the official baksmali, repacking it and putting it back in the apk with 7zip. So im not changing the signature.

I didnt understand what you are doing with the lib file.

Also are you using the modded baksmali?
[Android General] 3arthur6:
Thanks I will try!

---------- Post added at 01:03 PM ---------- Previous post was at 12:54 PM ----------

Yes I do the same. With the latest official smali/backsmali.

For the lib, just I extract from the apk(with 7zip) the lib folder into the FotaAgent folder and rename the folder inside lib from arm64-v8a to arm64.
[Android General] JesseBenson:
Honestly i use Tickle My Android to decompile any jar and apk needed you should try aswell and the using 7zip drag and drop everything from modified to original one and then use the original one
[Android General] firefds:
Thanks for this!

I managed to download the fota update when rooted. Will be easier for future betas.

I also managed to spoof device status Official on Pie.
[Android General] JesseBenson:
Awesome happy to see you do that, Official by syscope? and for fota did you edited anything? ota zip is in data/fota
[Android General] firefds:
There is no more syscope apk in Pie. The edits I did were in SecSettings. I'm not too satisfied with the way I spoofed it, there are some more digging to be made (basically, looking for where an external method is implemented that SecSettings is calling).

Regarding Fota - Yes, I know the zip is in data/fota, but when the device is rooted the zip won't download. What I did was to edit the FotaAgent.apk to make that work.

I've sent some information to [MENTION=6377149]yash92duster[/MENTION], and I hope he will confirm it and update you guys.
[Android General] 3arthur6:
Thanks the method works! but if the apk is resigned no way to boot.. So no modifications in androidmanifest..

It seems the signature check spoof failed.

Can you resign systemui or secsetting and get boot?

---------- Post added at 05:49 PM ---------- Previous post was at 05:39 PM ----------

Dude you didnt get fotaagent modded for downloading the last and second S8 pie beta ota? So how did you get them?! :eek: It's the only way I found
[Android General] JesseBenson:
Signature spoof stillwork
[Android General] 3arthur6:
So you can resign systemui or secsettings and boot?
[Android General] yash92duster:
Confirmed

Device status spoof works great on s8 s9 pie:cool:
[Android General] lijianjunyonghu:
Can anyone tell me how to signal the left pie
[Android General] AbrahamGC:
FIX FOR SHARE EXTERNAL ON FACEBOOK WITH DISABLED SIGNATURES (PIE VERSION)

Few changes from Oreo to make it working...

Needs deodex services.jar (You can run it on odex system, no problem)

Just follow the guide on the zip, in 2 min is done :good:

​
[Android General] studywes:
Hi

does it work for pie?

thank you very much
[Android General] tech927:
gesture mod

Possible newbie questions, where can I get gesture mod and how would I integrate it in to a kernel? I'm wanting to get it going with the MoRoKernel v4.6.

Also, how do you decompile a .jar file then recompile it? I'm wanting to do this to turn off the are you sure prompt when shutting down my phone.

Thanks.

Dave.