yashsingh1/xdaforums huggingface dataset:
[Android General] Cheemaa:
Systemui guide for decompile/recompile for android pie. ??? Cant find it
[Android General] Er. Aditya:
same like oreo
[Android General] Cheemaa:
The oreo guides never worked for me on oreo. It always showed my screen as black and I even disabled check signature. I will try on pie and let you know

---------- Post added at 09:49 AM ---------- Previous post was at 09:45 AM ----------

Is there a better way to do it other than the one in the guides? If someone could help me out because I have been having trouble for the longest time .
[Android General] yash92duster:
Use superr

Full deodex rom

Add mod

And check once
[Android General] koolkunz:
ok will try superr...
[Android General] Albe96:
[MENTION=5262182]koolkunz[/MENTION] It might be not working or showing bad stuffs cause that mod need GearUtils support.Did you add it?

Without it nothing could be done.Check OP to add GearUtils to SystemUI
[Android General] koolkunz:
oh ok did not know that :good: but I am encountering problems even if I just decompile unmodded systemui and recompile it without making any changes(only changing the .9.png file that gives error)..

what steps do you follow in TMA..it gives a few options for recompiling..

i do:

recompile with original file structiure

then no to use aapt2

then again no to keep the modified AndroidManifest.xml

then no to add file to zip workspace

and thats it.. then I try to use the created apk in out folder
[Android General] Albe96:
In my opinion it's samsung's own bug.

As I said it now,you need to add GearUtils for this mod and it should be working as [MENTION=8168590]keki7[/MENTION] has tried it today.

And you should always use a full deodexed base for modifications!
[Android General] koolkunz:
this was very helpful thanks :good:

got the disable volume warning mod to work..now trying out the fingerprint unlock one

---------- Post added at 01:35 AM ---------- Previous post was at 01:02 AM ----------

finally got it to work :good:

phew..that was stressfull

should I zipalign the systemui.apk in the end ? is that recommended or not ?
[Android General] Albe96:
I'm glad that you got your success.Zipaligning is good.You can do if you want to
[Android General] Albe96:
Permanently Disable High Level Brightness Popup In TW Oreo

1.Open SystemUI/smali/com/android/systemui/settings/ToggleSliderView.smali

2.Find This Method:

.method public updateStrainAlertDialog(I)V

3.Change The Value In Blue-->

.method public updateStrainAlertDialog(I)V
.locals 1

const/4 v0, 0x0

if-nez p1, :cond_0

const/4 v0, 0x1 # Change This Line To [COLOR="BLUE"]const/4 v0, 0x0[/COLOR]

:cond_0
iput-boolean v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->showEyeStrainDialog:Z

return-void
.end method

4.Recompile And Test! :o​
[Android General] JeanMoraes11:
Dont working on russian oreo 8.0

If i downgrade to nougat, can it work ?
[Android General] BlackMesa123:
No, you need to follow the steps wrote in this thread
[Android General] ANDROIDXFOREVER:
how to hide statusbar icons lock screen thanks
[Android General] a.raul:
Good afternoon

You go to this post, and thanks in the thread [MENTION=4433143]venkat kamesh[/MENTION]

https://xdaforums.com/crossdevice-dev/sony-themes-apps/guide-hide-enable-layouts-small-apps-t3417499

Download the SystemUI.zip

Decompile your SystemUI.apk and copies in the path of the downloaded zip folder rz

Go to res/layout/status_bar_expanded.xml and add the lines of blue, eye there is the key for RC

<com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/notification_container_parent" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/qs_frame" android:clipChildren="false" android:clipToPadding="false" android:layout="@layout/qs_panel" android:layout_width="@dimen/notification_panel_width" android:layout_height="fill_parent" sysui:viewType="com.android.systemui.plugins.qs.QS" />
<com.android.systemui.statusbar.stack.NotificationStackScrollLayout android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/notification_stack_scroller" android:layout_width="@dimen/notification_panel_width" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap" />
<ViewStub android:id="@id/keyguard_user_switcher" android:layout="@layout/keyguard_user_switcher" android:layout_width="fill_parent" android:layout_height="fill_parent" />
[COLOR="Blue"] <com.android.systemui.rz.LeftLayout android:layout_width="fill_parent" android:layout_height="fill_parent" key="TU_KEY_RC">[/COLOR]
<include android:visibility="invisible" layout="@layout/keyguard_status_bar" />
[COLOR="blue"] </com.android.systemui.rz.LeftLayout>[/COLOR]
<Button android:id="@id/report_rejected_touch" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_header_height_keyguard" android:text="@string/report_rejected_touch" />
</com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer>

In RC

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="On/Off" [COLOR="Blue"]android:key="TU_KEY_RC"[/COLOR] android:defaultValue="true" android:summaryOn="On" android:summaryOff="Off" app:packageNameToKill="com.android.systemui" app:isSilent="false" />

Regards
[Android General] ANDROIDXFOREVER:
thanks for your help but i ave this error

I: Using Apktool 2.3.3

I: Smaling smali folder into classes.dex...

Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/support/v7/widget/ActivityChooserModel$PersistHistoryAsyncTask;->doInBackground([Ljava/lang/Object;)Ljava/lang/Void;

at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:417)

at brut.androlib.Androlib.buildSources(Androlib.java:348)

at brut.androlib.Androlib.build(Androlib.java:300)

at brut.androlib.Androlib.build(Androlib.java:267)

at brut.apktool.Main.cmdBuild(Main.java:238)

at brut.apktool.Main.main(Main.java:76)

Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x1b

at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)

at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)

... 10 more

Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65539

at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)

at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348)

at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058)

... 11 more

----------------
[Android General] AbrahamGC:
Bro for fix Unisgned shot value out of range you can move some folders to smali_classes2, but respecting the path.

For example you can move statusbar folder. (Anyone is valid)

Move smali/com/android/systemui/statusbar

to smali_classes2/com/android/systemui/statusbar

Then you should be able to recompile :good:
[Android General] SimplyCity:
Hi guys, I wonder if someone has a guide for disable screen wake up after power connecting. Maybe with rc toggle. Much appreciated. [emoji846]

Wysłane z mojego SM-N950F przy użyciu Tapatalka
[Android General] Albe96:
The guide is the same as before in nougat.So here you go-->https://xdaforums.com/showpost.php?p=69794937&postcount=6
[Android General] a.raul:
As you have told me privately that you do not have RC, I give you the option to put it in SecSettings.apk,

the only drawback is that you have to restart the SystemUI, with Quick Reboot you have that option ...

I have set the example in the settings menu, in Advanced Functions

res/xml/useful_feature.xml and put the line where you like, in the captura, for example you add the blue color, the key must be the same as you have put in SystemUI

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<SecPreference android:title="@string/pen_settings_title" android:key="pen_settings_title" android:summary="@string/spen_summary" android:fragment="com.samsung.android.settings.spen.SPenSettingsMenu" />
[COLOR="Blue"]<SecSwitchPreference android:title="On/Off" android:key="TU_KEY" android:summary="el tuyo" />[/COLOR]
<SecPreference android:title="@string/active_key_title" android:key="active_key_settings" android:fragment="com.samsung.android.settings.activekey.ActiveKeySettings" />

To compile the adjustments and not have any problems later, follow this post

https://xdaforums.com/showpost.php?p=76259533&postcount=40

Regards
[Android General] defcon96:
..

---------- Post added at 09:00 AM ---------- Previous post was at 08:57 AM ----------

Does it have to be a cleanly installed oreo? Does it work with stock oreo if i used it for some time?
[Android General] yash92duster:
Sure all guides goes to post#1

I update this thread once in a weekend only:cool:
[Android General] Er. Aditya:
i guess ur talking about when u clean flash after making edits ?
[Android General] Cheemaa:
I am talking about deodexing my systemui apk and decompiling it and then recompiling it using the guides. And the replacing it and giving the right permissions. The deodexed file used to work great on oreo. But the recompile file used to make my home screen black and make systemui crash.... I havent tried on pie yet but I was looking for a easier way of recompiling systemui for pie

---------- Post added at 10:45 AM ---------- Previous post was at 10:42 AM ----------

And also what software and version I should use for touchwiz pie. I have tried tickle my android and batchapktool. Let me know what version and software I should use. Because last time I asked around for weeks followed guides. Tried other methods from asking people in their PM and none of them worked. Hopefully I have better luck on pie and with your guys help
[Android General] wlryss:
1. You need to make SystemUI ready for modification - post from this thread - https://xdaforums.com/showpost.php?p=76259485&postcount=39

2. I change the recompiled SystemUI with TWRP script only - https://xdaforums.com/showpost.php?p=78934583&postcount=980
[Android General] Cheemaa:
Alright thank you. I believe this script will help me delete the unneeded files to make the apk work. Can you provide a script for other stuff too like secsettings and res framework

---------- Post added at 11:31 AM ---------- Previous post was at 11:17 AM ----------

What should I use for pie? Batch apktool or tickle my android or what. What version should I use for the software?
[Android General] wlryss:
For SystemUI and SecSettings.. This is for example..

print(" ");
ui_print("***********************************************");
ui_print("* *");
ui_print("* Mod SystemUI SecSettings *");
ui_print("* by WR *");
ui_print("* *");
ui_print("***********************************************");
ui_print("");
show_progress(1.0,0);
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
set_progress(0.33);
ui_print("Delete files...");

delete_recursive("/system/priv-app/SecSettings");
delete("/data/dalvik-cache/arm64/system@priv-app@SecSettings@SecSettings.apk@classes.dex");
delete("/data/dalvik-cache/arm64/system@priv-app@SecSettings@SecSettings.apk@classes.vdex");
delete_recursive("/data/data/com.android.settings");
delete_recursive("/data/user/0/com.android.settings");

delete_recursive("/system/priv-app/SystemUI");
delete("/data/dalvik-cache/arm64/system@priv-app@SystemUI@SystemUI.apk@classes.dex");
delete("/data/dalvik-cache/arm64/system@priv-app@SystemUI@SystemUI.apk@classes.vdex");
delete_recursive("/data/data/com.android.systemui");
delete_recursive("/data/user/0/com.android.systemui");

set_progress(0.33);
ui_print("Extracting files...");
package_extract_dir("system", "/system");
set_progress(0.33);
ui_print("Setting Permission");

set_perm(0, 0, 0755, "/system/app");
set_perm(0, 0, 0755, "/system/framework");
set_perm(0, 0, 0755, "/system/priv-app");

ui_print("Unmounting SYSTEM...");
unmount("/system");
unmount("/data");
set_progress(1.00);
ui_print("Done!");

Don`t forget insert recompiled SystemUI.apk and SecSettings.apk to system/priv-app/SystemUI/ and system/priv-app/SecSettings/ folders in system folder in your TWRP zip.

You can add modified framework-res.apk to system/framework/ and other modified apk to system/app/ or system/priv-app/ in their folders with the same name.
[Android General] Tchania:
I don't have high hopes for this but is there a way to change the volume panel to the one that shows on the side (like in lineageos)?
[Android General] Cheemaa:
Can anybody tell me what software and version I should be using for pie? Ticklemyandroid or bathapktool or which one and what version?. Thank you
[Android General] Er. Aditya:
any of these but u need to follow the edits shown above
[Android General] youmbi:
Hello mate thank so much for this tutorial

Please how to add only developer name like:

<string name="rom_developer">ROM Developer</string>

<string name="rom_developer_name">yash92duster</string>

I need to add only Rom developer

Thank
[Android General] hshah:
So I just spent ages doing this on my Note 8 running Pie, and even though it was my first time tinkering in this manner, surprisingly my phone had no issues booting.

Unfortunately I still get the AASA Token Parser error when trying to update Samsung system apps, which I thought this mod would have sorted :(
[Android General] Cheemaa:
I extracted my My stock s8+ pie system.img with supers kitchen. When I go into systemui, it doesnt have an odex folders but framework does.

It doesnt have any odex folders

My firmware is stock that I downloaded from samfirm. And I know the systemui has odex folders. Is this a bug with supers kitchen?
[Android General] Er. Aditya:
This thread has nothing to do with superR kitchen i think you should post in correct thread if your using paid or free version

Probably you should post there with your issue and a link to your firmware that doesnt requires any registration
[Android General] texmur:
question

for this solution must be device rooted?

I can not find " services.jar" at my note 8
[Android General] Er. Aditya:
yes u need root and also service.jar should be deodexed
[Android General] AhmedKhan123:
How to install applock on pie? I tried the oreo method and used a90 applock.apk but it does not work. Applock appear under advanced features but does not seem to work. Please help
[Android General] Er. Aditya:
U need to csc edit too
[Android General] AhmedKhan123:
Did that too. I added those two lines at the end of cscfeatures.xml

Applock appears under advanced features but when I turn it on, it just force closes.
[Android General] Er. Aditya:
have u tried with clean install
[Android General] AhmedKhan123:
Yup. It's a clean install(updated to pie) with internal storage wipe. However, I'm on stock rom with root and twrp
[Android General] ShaDisNX255:
It's as easy as omitting everything else. It is important that you understand a little on how xml works. Just, don't add the lines that include information that you don't want to add, understand?

<Preference android:title="@string/rom_developer" android:key="rom_developer" android:summary="@string/rom_developer_name" style="?android:preferenceInformationStyle" />

For example if you only add this line, it will only include rom_developer title and rom_developer_name as a summary
[Android General] Er. Aditya:
for me new app lock works fine
[Android General] AhmedKhan123:
Can you share the apk that you used? If you could provide a flashable zip, that would be great.

Thanks.
[Android General] wlryss:
This is zip for TWRP. Android 9, Samsung Galaxy S8+, my own firnware.
[Android General] youmbi:
THANK FOR YOUR HELP

please any solution for unpack and repack system.img with original signature?
[Android General] AhmedKhan123:
Here is what is happening. When I touch on "Off" button, it turns to "on" and the phone hangs. And then the crash dialogue appears. I've also added the lines in cscfeatures.xml. I don't know what is wrong. Maybe stock rom is the issue

Edit: For some reason the applock is 40Mb in size. I remember it was about 400-800kbs on oreo. Maybe something's broke
[Android General] wlryss:
You asked for flashable zip for Apps Lock. How can you flash zip if you have stock Rom?

If you have root (and TWRP), the best way to find problem - make log..
[Android General] AhmedKhan123:
I have stock rom with twrp. How can I make a log?
[Android General] Cheemaa:
Does rom logo and changelog still work with SecSettings on pie?
[Android General] Cheemaa:
I have seem this question unanswered twice, why is there lag after using deodexed and recompiled services.jar. my phone is really laggy after replacing services.jar but when I replace services.jar with original. It goes back to being fast....

-----I AM ON PIE

Also my framework is odexed. I deleted the odex files for services.jar.

HOW DO I GET RID OF THE LAG.....

Name of files:

Framework/services.jar.prof

Framework/oat/arm64/services.art

Framework/oat/arm64/services.vdex

Framework/oat/arm64/services.odex

---------- Post added at 08:52 AM ---------- Previous post was at 08:48 AM ----------

Exact same thing is happening to me
[Android General] quanqw:
I want to update google app in system/priv-app on oreo but it had force close. How can I fix it?.
[Android General] wlryss:
1. I change service with TWRP script..

ui_print(" ");
ui_print("***********************************************");
ui_print("* *");
ui_print("* Mod Deodex service *");
ui_print("* WR Team *");
ui_print("* *");
ui_print("***********************************************");
ui_print("");
show_progress(1.0,0);
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
set_progress(0.33);
ui_print("Delete files...");

delete("/system/framework/services.jar");
delete("/system/framework/oat/arm64/services.odex");
delete("/system/framework/oat/arm64/services.vdex");

set_progress(0.33);
ui_print("Extracting files...");
package_extract_dir("system", "/system");
set_progress(0.33);
ui_print("Setting Permission");

set_perm(0, 0, 0755, "/system/framework");
ui_print("Unmounting SYSTEM...");
unmount("/system");
unmount("/data");
set_progress(1.00);
ui_print("Done!");

Need to delete 3 files from service only for use deodexed version of service.

2. For good working of deodexed service you need to use Kernel with SE State - Permissive.
[Android General] Cheemaa:
Which 3 files do I need to delete?

And can i do it without having my se state as permissive? My phone has a locked bootloader. I dont think I can change my se state

---------- Post added at 10:21 AM ---------- Previous post was at 10:19 AM ----------

Never mind just saw the files I need to delete in the script. But any other way without setting se state as permissive. My bootloader is locked. I only have a safestrap twrp. So I can only flash zips.
[Android General] wlryss:
I think that in case of the blocked bootloader it is impossible.
[Android General] Cheemaa:
Is it maybe because I deleted 2 extra files? >>>>

Framework/services.jar.prof

Framework/oat/arm64/services.art

So there is absolutely no way to fix lag because of services.jar?.....
[Android General] wlryss:
What device at you? I have S8+ (G955F(D)) - the European version
[Android General] Cheemaa:
I have the s8+ g955u the US variant. Snapdragon. Locked bootloader with twrp. No root.

---------- Post added at 10:42 AM ---------- Previous post was at 10:40 AM ----------

Maybe if I put the 2 files back it will fix the lag? I really want to use my modded services.jar with no lag. So There is absolutely no way to fix lag without changing SElinux status?
[Android General] wlryss:
For this device (at the same time without root) I can't even provide that any system modifications worked.
[Android General] Cheemaa:
My system modifications worked.... what are you saying I dont understand . What does "фтн" mean. Sorry I only speak English. I dont know the symbol

---------- Post added at 10:49 AM ---------- Previous post was at 10:47 AM ----------

My modification worked for services.jar. I tested it. My phone just got laggy. I can notice it. There is a difference. It will work fine but at times it will lag.

---------- Post added at 10:49 AM ---------- Previous post was at 10:49 AM ----------

It doesnt do it when I have the original services.jar(odexed) and the odex files.
[Android General] baloo30310:
ALTHOUGH THIS THREAD IS VALID FOR PIE please???
[Android General] VICosPhi:
There is a way to fix this UI lag when you edit and replaced services.jar on a Samsung phone. The only person I know that was able to fix it is [MENTION=3931450]dr.ketan[/MENTION] he fixed it in his Note9 ROM. Let us know if you are able to get in touch with him and get an answer on how to fix it. Thanks.
[Android General] Cheemaa:
There are some guides optimised for pie. If you have any questions. Ask for specific guide and that if it is supported for pie.

---------- Post added at 08:23 PM ---------- Previous post was at 08:21 PM ----------

Damn man, that's going to be a little hard. His bio says "dont pm me regarding technical help"??. But his roms kernel is enforcing so that's good to know that's not the issue. If someone knows how to fix UI lag after editing and replacing services.jar. please tell me. There should be a guide on how to fix it...
[Android General] hshah:
[MENTION=1620550]fOmey[/MENTION] may be able to help as he was looking into the slow downs as part of his efforts on his Smali Patcher tool/module :)
[Android General] Cheemaa:
Thank you for helping, I pmed @f0mey, let's see if he is willing to help me. I really want to find a fix for this.
[Android General] nikkali25:
I encounter this problem when i port note fe to my j5 prime..please try not to delete any files of art or etc etc just replace the service.jar.
[Android General] Cheemaa:
So delete services.vdex/services.odex... that's it?

And dont delete services.jar.prof/services.art...?
[Android General] Voytec83:
Sorry Mate but this are like BASICS... U moved to straight to modding thread - make one step back and Ur problems might get solved quickly

---------- Post added at 03:43 PM ---------- Previous post was at 03:37 PM ----------

Use guide for Pie, this is for Oreo

---------- Post added at 03:53 PM ---------- Previous post was at 03:43 PM ----------

Nice to see not that much dead Sir ? Now U have Pie, so field for testing is just waiting for a little of Your spare time? Good luck and thx for all guides!

---------- Post added at 03:57 PM ---------- Previous post was at 03:53 PM ----------

Works great, thx a lot for sharing the guide?
[Android General] baloo30310:
OK thanks but I can not find ??;)
[Android General] Cheemaa:
Check op or use the find feature... if you can't find the guide you're looking for. Make sure you ask a question with a specific guide you're looking for. Because there are guides for pie and some of the oreo guides work for pie too. So just ask specifically. We cant just give you everything, just ask if you're unsure. youre not being specific. What guide are you looking for.

---------- Post added at 08:52 PM ---------- Previous post was at 08:47 PM ----------

@Voytec83 every one needs a little help and apparently not, this is a issue that has not been fixed. Just focus on your questions or interests since the OP has no problem with me. I am just trying to find a fix so I can inform others that are experiencing the same problems as me.
[Android General] Cheemaa:
Been looking for this too, but a way to do it without romcontrol... so the custom text is permanent.