yashsingh1/xdaforums huggingface dataset:
[Android General] störte:
I have a question.

In your guide text is written

Copy attached smalis and pngs to your SystemUI, and add this on strings.xml :

<string name="recovery">Reboot in recovery mode</string>

<string name="recovery_confirm">Tap again to reboot in recovery mode</string>

<string name="download">Reboot in download mode</string>

<string name="download_confirm">Tap again to reboot in download mode</string>

<string name="quick_reboot">Quick reboot</string>

<string name="quick_reboot_confirm">Tap again to do a quick reboot</string>

<string name="reboot_ui">Reboot SystemUI</string>

<string name="reboot_ui_confirm">Tap again to reboot SystemUI</string>

<string name="screenshot">Screenshot</string>

<string name="screenrecord">Screenrecord</string>

<string name="flashlight">Flashlight</string>

In which strings.xml do i have to copy it ?

There are many of it.

Thank you in advanced
[Android General] AbrahamGC:
You need to add it to default strings.xml (res/values/strings.xml)

And then if you want to translate it, add it in values-es for spanish, fr for france, de for german... etc
[Android General] störte:
Thank you for the reply. Will do that
[Android General] Cheemaa:
I have a bootloader locked device(running pie) with only twrp and no root. I got 3minit battery mod working on my device and the app does not require root permissions. If it's possible to change battery icon with a app without root permissions, is it possible to have romcontrol(or some thing like that)?.

For example,

Let's say I want a toggle for "require fingerprints after reboot). Would that require root?

-SO BASICALLY

If I can use 3minit battery mod without root, can I use romcontrol(or similar app) without root.
[Android General] Bishopandme:
I'm in...

THs
[Android General] 587.saboor:
this guide is based on [MENTION=4658360]corsicanu[/MENTION] 's guide and changed to make S10 and later ODM work on pie https://xdaforums.com/android/general/guides-android-8-0-oreo-mods-thread-t3772017/post76861271

^^ Please use that guide if you're using S9 ODM or earlier but I recommend using S10 ODM and using this post

CREDITS:

[MENTION=4658360]corsicanu[/MENTION] basing it off his guide

[MENTION=6911575]BlackMesa123[/MENTION] aswell for telling me that odm is moved to product with S10 and later devices

Use S10 and later ODM instead of OMC/CSC in Pie

From S10 Samsung moved the ODM from /odm to /product, so the oreo method doesn't work on pie anymore with S10 ODM. We can add product partition to non product devices with a pretty simple and clean workaround.

Inside ramdisk, in init.rc file (all the devices should have that), [MENTION=4658360]corsicanu[/MENTION] found this:

# Link /vendor to /system/vendor for devices without a vendor partition.
symlink /system/vendor /vendor

Following this we can make it work just like this:

# Link /vendor to /system/vendor for devices without a vendor partition.
symlink /system/vendor /vendor
symlink /system/product /product

By unpacking the S10 product partition content inside a folder from system and creating the symlink from above at boot, rom will load product as it has the partition
[Android General] Cheemaa:
Have you made it yet? [MENTION=4751298]Carotix[/MENTION] been waiting for a while.
[Android General] JesseBenson:
All methods lines are present in pie but mod isnt working can you please make this work in pie thanks
[Android General] Cheemaa:
agreed, one for romcontrol and one for without romcontrol
[Android General] JesseBenson:
Hey pal can you tell how you added matrix effect in qs panel and how chanaged qs colours please
[Android General] francitato02:
hey bro, i've tried to apply this mod. it works great, but there is a strange issue. in fact at the bottom of display (with gradient, image or matrix mod) it create a gap, the same space of a navigation bar. the problem is that my base (note fe pie) hasn't that. how can i remove this gap? thanks :)
[Android General] wlryss:
Hi.. I see that you made modification of Extended Power Menu. If you attentively consider an original post about Extended Power menu from AbrahamGC, then will see that Navbar is on screenshots. I think that appearance of Navbar in Menu comes owing to substitution of files from framework.jar in SystemUI.

By the way I corrected a time delay and appearance of the white text in Custom Text of Extended Power Menu.

You need to place files from attached archive to decompiled SystemUI and change lines (with com.android.settings.rz.Text) in SystemUI\res\layout\sec_global_actions_item.xml to such view:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/sec_global_actions_icon_label_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:gravity="center" android:id="@id/sec_global_actions_icon" android:layout_width="70.0dip" android:layout_height="70.0dip" android:scaleType="center" />
+! <android.widget.ColorTextView android:textSize="15.0sp" android:gravity="center" android:id="@id/sec_global_actions_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="primary_power_text_color" />
</LinearLayout>
+! <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_state" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="status_power_text_color" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/sec_global_actions_description" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="10.0" android:importantForAccessibility="no">
+! <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_description_text" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="8.6" android:fontFamily="roboto-regular" key="status_power_text_color" />
</LinearLayout>
</LinearLayout>

In Rom Control you don`t need to make any changes..
[Android General] francitato02:
cool! btw related to navbar gap, the most strange things is that, without this mod enabled there isn't any gap. what do you about change fill_parent to wrap_content? can it fix this problem?
[Android General] wlryss:
You can try to make it and then to tell all of us
[Android General] francitato02:
nothing, still the same.. i have really no idea. i hope that somebody can help me with it
[Android General] wlryss:
I`ll try to fix this.. But later..
[Android General] luuphong559:
Where is link Kitchen tools?

Tks

I'm noob :confused:
[Android General] Steve Giordano:
Where is this code???

- Delete the stock method .method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
[Android General] francitato02:
hey bro, i've tried and even with it, rc still crash. i've tried to look into log, but it show error in rc smali. Any idea?
[Android General] Ahmedorient:
Where service.jar file ???
[Android General] wlryss:
In your Telephone - system/framework/..

You can see with use Root Explorer..
[Android General] youmbi:
Hi guys thank so much for this thread

How about android pie 9.0 I use same process but always face error

Thank for help
[Android General] youmbi:
Hello

Thanks so much for this tutorial

I whant to know how about android pie secsetting.apk how to mod?

Thanks ?
[Android General] a.raul:
That post has become obsolete for Pie.

Go to this link and download the program, thank the work is easy.

https://xdaforums.com/showpost.php?p=79030030&postcount=842

Needless to say that in order to decompile and compile you need to install the framework-res.apk, the program gives you that option.

Decompile the SystemUI.apk, enter your modifications and recompile without signature (option 1)

Open with Winrar SystemUI.apk recompiled and the source SystemUI, and enter the META-INF and SEC-INF folders,

in Winrar you must have compression method in option Do not compress.

And it's already
[Android General] youmbi:
Thanks so much

The process is same for secsetting.apk and frameworkres.apk?

Best Regards
[Android General] a.raul:
For the SecSettings.apk as with SystemUI.apk, META-INF and SEC-INF folders, and in addition to the source SecSettings.apk you add the res / raw folder, with the same procedure in Winrar.

For framework-res.apk, you will have two problems in recompilation, the cause of one of them is in apktool.yml, and the second in styles.xml, I leave the files as you should leave them, to be able to recompile with Advanced ApkTool. As in the rest, you do the same procedure with META-INF and SEC-INF folders.

Edito: The file apktool.yml, I had to rename it to apktool.yml.xml so that the señoritos de xda let it upload it. It seems that it is not valid, add in a box as it would be ...

!!brut.androlib.meta.MetaInfo

apkFileName: framework-res.apk

compressionType: false

doNotCompress:

- arsc

- png

- ogg

isFrameworkApk: true

packageInfo:

forcedPackageId: '1'

renameManifestPackage: null

sdkInfo:

minSdkVersion: '28'

targetSdkVersion: '28'

sharedLibrary: false

sparseResources: false

unknownFiles:

SEC-INF/buildConfirm.crt: '8'

SEC-INF/buildinfo.xml: '8'

usesFramework: null

version: 2.4.0

versionInfo:

versionCode: '28'

versionName: '9'
[Android General] brezzz:
Hi

I am wanting to edit a stock s7 edge systemUI.apk, I have it de-compiled but need help with the mods and any help would be appreciated. I am looking for:

Minimum 5 toggles instead of 6

Remove brightness slider from pull-down

Remove "emergency information" from power menu

Add "reboot to recovery" to power menu

Implement physical back button long press to kill

Would anybody be able to help me achieve all of this please? It would really be appreciated.

Many Thanks

Brezzz
[Android General] Voytec83:
Try to add navigation_bar_height=0 in res/values/dimens.xml or apply as an overlay for framework-res.apk
[Android General] Shariq3422:
Where does this statusbar.smali file will be found??
[Android General] wlryss:
For Android 9 Pie - https://xdaforums.com/showpost.php?p=79065654&postcount=1125
[Android General] Shariq3422:
So i need to decompile the systemui.apk ??
[Android General] wlryss:
You can use guide from this post - https://xdaforums.com/showpost.php?p=79096609&postcount=1142

But consider - I used similar modification (did myself) and isn't sure that it in principle correctly works at Android Pie
[Android General] jult:
Just an FYI, it looks kind of dumb to have this spelled wrong everywhere. It's DIALER, not DAILER, from to dial, a verb derived from dialing a phone number on a phone's dial (which used to be round).
[Android General] yash92duster:
Ya.

Don't worry I make 999282 mistakes.

Thanks for report

Will update thread next week

It's been few months since last update ;)

Edit: fixed:silly:
[Android General] cosmobi:
Hello. Are there any people with problems with incoming calls at the Wlan Call? I need help. Thank you.
[Android General] mrjoy:
what about Fully spoof signature check Guide for latest Pie?
[Android General] ricardo2511:
Do i need to follow this guide before modding systemui.apk for example? :confused:
[Android General] thereassaad:
Anything u gonna modded it just follow the steps ..
[Android General] ricardo2511:
I just directly decompiled, and modded to remove the high volume warning and high brightness, but after flashing rom with systemui.apk modded i dont have navigation buttons niether quicksettings panel. Also i wanted to do the mod of adding 8 apps to dock on samsung launcher and after flashing the launcher is not even installed, even though i followed the exact same steps of the guide. Is that because i need to follow this steps before i start modding these files? Im just starting with this kind of things...
[Android General] thereassaad:
Just u want to do is drag & drop by using winrar , compress method is store , drag ur modded classes to original systemui or any apk that u modded it
[Android General] ricardo2511:
All i've done is decompile systemui.apk, followed the guide to disable high volume and brightness warning and added screenrecorder, but after modding those while following the guide, i recompiled the systemui into systemui.apk, so i replaced the stock systemui.apk with the modded one and suddenly i have those problems i metioned before (no qs panel nor navigation buttons).
[Android General] Voytec83:
So maybe start your modding experience with reading about basics... Posts 39,40 and 41 in this thread if I remember correct. [MENTION=5405448]thereassaad[/MENTION] already said what to do and how
[Android General] ricardo2511:
I just dont get it, i've tried several times to make it work but i just couldnt, everytime after modding systemui.apk, then recompiling, and putting it inside of priv-app systemui folder, when booting up systemui seems to be completely dead, no qs panel, no navigation buttons, only black background... the only thing working is the touchwiz launcher, and i didnt find any solution. Im using tickle my android and im modding for android pie. If someone knows how to solve my issue i would really appreciate it...:(
[Android General] ShaDisNX255:
They've already told you the answer, but here we go again.

Here are the steps for a successful modding on Pie

-Decompile SystemUI

-Do the modifications according to the guide you are following

-Recompile SystemUI

-Open the new SystemUI with winRAR

-Also open the OLD UNMODIFIED SystemUI with winRAR

-Copy over "res", "resources.arsc" and any "classes.dex" file from the NEW SystemUI to the OLD SystemUI using winRAR

-WinRAR will ask you what type of compression you should use, you should select "Store"

-Done, your SystemUI (old) is now the SystemUI you should be using
[Android General] ricardo2511:
Finally! Thank you so much, really appreciate it!:svetius:
[Android General] ShaDisNX255:
No problem. We all learn from by messing some stuff up :P
[Android General] ricardo2511:
You really really helped me out! And one quick question, the same process goes for modding touchwiz launcher too?
[Android General] teutate:
Which version of tickle are you using? I'm still stuck without navbar etc...
[Android General] ricardo2511:
And you followed the exact same steps he told me? If it still doesnt work use the older version like 15.1 or something like that. Before i had the solution i also thought it was because of the version so i downloaded an older one, not the version 16, but it still didnt work. Then i tried doing the exact same steps as ShaDisNX255 told me and it worked, but i just tried with the older version.
[Android General] teutate:
have no clue why it was not working before but now all is ok

- using TMA 15.5.0.1 to decompile

- Mod + replace pip_dismiss_scrim.9.png

- recompiling with original signature

- then using ShaDisNX255 simple copy in original systemui.apk for signature instructions

- in winrar can also select normal compression and the new systemUI.apk works ok

thank you all :)
[Android General] ricardo2511:
Good that it worked, so better we keep the older version then:):good:
[Android General] youmbi:
disable slot sim2

hi brother thank to share your knowlage

please do you have any way for disable slot sim2 in samsung a810F?

thanks.
[Android General] Voytec83:
It depends, for me adding mods on the device with ApkEditor works without the procedure as for SystemUI. However if U want to keep original signature of apk, then follow same as mentioned.
[Android General] w8stin:
Biometric unlock after reboot doesnt work

Hi [MENTION=7393522]AbrahamGC[/MENTION] (and the others :angel:),

i tried ur method for biometric unlock after reboot but it doesnt work for me..

Neither for face unlock, neither for fingerprint.

Have u any idea if something has changed in SystemUI touchwizz oreo since u have shared ur guide ?

i attached my KeyguardUpdateMonitor.smali modified following ur guide, if it can help..

Thx in advance :D !

Edit : i used "always on" method, no rom control*.
[Android General] Er. Aditya:
good day everyone , on pie i got " only official binaries are allowed to be flashed even just by rooting " please is there any fix to this ?

thankyou
[Android General] joluke:
Wrong thread. Flash the stock rom and re-root your phone
[Android General] bleros:
hi yash the new update oreo may patch have longer code or im wrong? can u take a look or someone.:cowboy: i tried to do but im getting black backround no status bar thank you

.method private onShowSafetyWarningW(I)V
.locals 2
.param p1, "flags" # I

.prologue
.line 371
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mKnoxStateMonitor:Lcom/android/systemui/KnoxStateMonitor;

invoke-virtual {v0}, Lcom/android/systemui/KnoxStateMonitor;->isSafetyWarningDialogEnabled()Z

move-result v0

xor-int/lit8 v0, v0, 0x1

.line 370
if-eqz v0, :cond_0

.line 372
sget-object v0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->TAG:Ljava/lang/String;

const-string/jumbo v1, "KnoxStateMonitor : Disable SafetyWarningDialog"

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

.line 373
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mAudio:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->disableSafeMediaVolume()V

.line 374
return-void

.line 376
:cond_0
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mCallbacks:Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;

invoke-virtual {v0, p1}, Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;->onShowSafetyWarning(I)V

.line 377
return-void
.end method
[Android General] Voytec83:
Search PIE method by [MENTION=7393522]AbrahamGC[/MENTION]. It works at least for fingerprint

---------- Post added at 11:20 AM ---------- Previous post was at 11:15 AM ----------

Use drag&drop method to add classes.dex back to SystemUI - ur issue is signature mismatch...

If U don't know what I mean, just go one page back - some kind User described it there in easy way (tho posts 39, 40 and 41 in this thread are pretty much clear in this matter too)
[Android General] a.raul:
This link from [MENTION=4985020]Grouxho[/MENTION] is functional on Android Pie

https://xdaforums.com/showpost.php?p=70176615&postcount=46

but just in case ...

https://xdaforums.com/showpost.php?p=75593810&postcount=11856
[Android General] bleros:
Thnx bro but im talking about permanently method. Not with rom control i saw this but my codes with his code are different and i get black backround and bo status bar tested without editing systemui just to check that was deodexed well,work good.
[Android General] a.raul:
and maybe?

.method private onShowSafetyWarningW(I)V
.locals 1

const/4 v0, 0x0

return v0
.end method
[Android General] bleros:
I will test it now and report back

nope not working
[Android General] a.raul:
Well you do this is not necessary romcontrol for the change on off

https://xdaforums.com/showpost.php?p=75593810&postcount=11856

.method public getVolumeWarningTweak()Z
.locals 2

const-string/jumbo v0, "volumen_warning_disabled"

[COLOR="Red"] const/4 v1, 0x0 OFF[/COLOR] or [COLOR="blue"]const/4 v1, 0x1 ON[/COLOR]

invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v0

return v0
.end method
[Android General] bleros:
no is not working tried the code on ur link but black screen without status bar..

---------- Post added at 21:10 ---------- Previous post was at 20:14 ----------

If you want the volume safe warning to be permanently disabled

- Decompile SystemUI.apk

- Look for com/android/systemui/volume/VolumeDialogController.smali

- find .method private onShowSafetyWarningW(I)V and replace the whole method with this one

.method private onShowSafetyWarningW(I)V
.locals 2

iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogController;->mAudio:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->disableSafeMediaVolume()V

return-void

.end method

on my systemui there is no VolumeDialogController only VolumeDialogControllerImpl so i changed this code from VDC to VDCImpl

but still not work i have no idea
[Android General] AbrahamGC:
I'm sure your problem is on UI recompilation, try first to decompile/recompile without changes, and then push it to your phone... If it stills not working, is not a mod issue.
[Android General] AbrahamGC:
The app is recompiled without errors (warnings are not important on this case).

Now, you only want to mod a smali, so, after recompile, take only all classes.dex from the new apk and add it into original apk.
[Android General] a.raul:
En fin, ni a tocino...
[Android General] bleros:
sorry but i dont understand what u mean.. which is new apk and which original apk and how to add it to new apk,

.method private onShowSafetyWarningW(I)V
.locals 2

iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mAudio:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->disableSafeMediaVolume()V

return-void

.end method

Original code from my systemui.apk from oreo may, in yash92 there is no line 371 line 372 etc

.method private onShowSafetyWarningW(I)V
.locals 2
.param p1, "flags" # I

.prologue
.line 371
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mKnoxStateMonitor:Lcom/android/systemui/KnoxStateMonitor;

invoke-virtual {v0}, Lcom/android/systemui/KnoxStateMonitor;->isSafetyWarningDialogEnabled()Z

move-result v0

xor-int/lit8 v0, v0, 0x1

.line 370
if-eqz v0, :cond_0

.line 372
sget-object v0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->TAG:Ljava/lang/String;

const-string/jumbo v1, "KnoxStateMonitor : Disable SafetyWarningDialog"

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

.line 373
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mAudio:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->disableSafeMediaVolume()V

.line 374
return-void

.line 376
:cond_0
iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mCallbacks:Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;

invoke-virtual {v0, p1}, Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;->onShowSafetyWarning(I)V

.line 377
return-void
.end method
[Android General] ShaDisNX255:
Hey, I couldn't help but notice you are having problems with your re-compiling.

I'll try to break it down.

Your issue where you are reporting that the screen goes black and you don't get status bar means that your SystemUI is crashing and/or won't start. This is common when there are issues with the APK signature.

I won't go in to detail about what it means or what it does, but it's pretty simple to fix and in fact, you SHOULD have read about it in the OP on "How to modify SystemUI.apk" here: https://xdaforums.com/showpost.php?p=76259485&postcount=39

But, to make a long story short, you have to do the following:

Have 2 SystemUI. One where you will mod and the original one

SystemUIMOD

SystemUI

(for example)

Decompile SystemUIMOD, modify the smali and then recompile SystemUIMOD once modified.

Then, open both SystemUIMOD with winrar and SystemUI (original) also with winrar.

Copy over all the classes.dex folder in SystemUIMOD over to SystemUI and select "Store only" when it asks you what type of compression you'd like.

And then try the SystemUI where you copied it over to.

Simple.

If you have any more questions, look up the guide I told you about and it goes in to far more detail that you need.