yashsingh1/xdaforums huggingface dataset:
[Android General] yash92duster:
SystemUI Tiles NN/OO/Pie:​

Decompile SystemUI .apk

Locate to res/values/strings.xml

And use the following code

<string name="quick_settings_tiles_default">Wifi,SoundMode,SilentMode,Bluetooth,RotationLock,Flashlight,AirplaneMode,PowerSaving,MobileData,WifiCalling,Performance,BlueLightFilter,WifiHotspot,PersonalMode,SecureFolder,Location,Nfc,Hotspot,Aod,AllShareCast,DeviceVisibility,Dnd,Sync,UDS,BikeMode,PowerPlanning,EdgeLighting,FloatingMessage,DormantMode,NetworkBooster,QuickConnect,SmartStay,SmartPause,AirView,AirBrowse,Toolbox,CarMode,UltraPowerSaving,SFinder,ScreenCapture,UHQ,VoLte,Dolby,Ebook,BatteryMode,DailyBoard,DesktopMode,SpenRemote,KidsHome,NightMode,Routines,NavigationBar,GrxScreenOnTime</string>

<string name="quick_settings_tiles_upsm">Wifi,SilentMode,Bluetooth,RotationLock,Flashlight,AirplaneMode,PowerSaving,MobileData,WifiCalling,WifiHotspot,Location,Nfc,AllShareCast,DeviceVisibility,Sync,FloatingMessage,DormantMode,NetworkBooster,QuickConnect,SmartStay,SmartPause,CarMode,UltraPowerSaving,ScreenCapture,GrxScreenOnTime,custom(com.sec.android.emergencymode.service/.PowerSavingTile),MobileData,Location</string>

<string name="quick_settings_supported_tiles_in_dex">Wifi,WifiCalling,WifiCallingSpr,SilentMode,SoundMode,Bluetooth,Hotspot,RotationLock,Flashlight,AirplaneMode,PowerSaving,MobileData,WifiCalling,Performance,WifiHotspot,PersonalMode,SecureFolder,Location,Nfc,Aod,AllShareCast,DeviceVisibility,Dnd,Sync,EdgeLighting,FloatingMessage,DormantMode,NetworkBooster,QuickConnect,SmartStay,SmartPause,AirView,AirBrowse,Toolbox,CarMode,UltraPowerSaving,SFinder,ScreenCapture,UHQ,GrxScreenOnTime,custom(com.samsung.knox.securefolder/.switcher.SecureFolderTile),Location,custom(com.android.nfc/com.samsung.android.nfc.quicktile.NfcTile),custom(com.samsung.android.oneconnect/.external.DeviceVisibilityTile),Dnd,custom(com.android.settings/com.samsung.android.settings.qstile.SecAccountTiles)</string>

Guide by yash92duster
[Android General] yash92duster:
TouchWizLauncher Landscape/Portrait Mode For Home:​

To have portrait mode in home you must use the s9 codes in build prop

Add the following CSC Code in system/omc/ins/cscfeature.xml

<CscFeature_Launcher_AddAutoRotationIcon>TRUE</CscFeature_Launcher_AddAutoRotationIcon>

In build.prop use the following code

ro.build.flavor=starltexx-user
ro.build.product=starlte
ro.product.name=starltexx
ro.product.device=starlte

Guide by yash92duster
[Android General] yash92duster:
Power Plan Feature for Device Maintenance Oreo:​

Add the following CSC Code in system/omc/ins/cscfeature.xml

<CscFeature_Common_ConfigYuva>powerplanning|reserve|zeroforward|mileage|dashboard</CscFeature_Common_ConfigYuva>

Push the MemorySaver.apk and PowerPlanning.apk to privapp

By yash92duster
[Android General] yash92duster:
Outdoor Mode in Settings for Oreo:​

Decompile SecSettings.apk

Locate to

smali\com\samsung\android\settings\display\SecDisplaySettings.smali

Find the line and Change 0x0 to 0x1

:cond_29
invoke-static {}, Lcom/android/settings/Utils;->isSupportGraceUX()Z [COLOR="DarkGreen"] ---<<< Line 8239 >>>---[/COLOR]

move-result v25

if-eqz v25, :cond_12

goto/16 :goto_12

:cond_2a
const/16 v25, 0x1 [COLOR="darkgreen"]---<<<< Change 0x0 to 0x1 >>>--- ---<<< Line 8246 >>>---[/COLOR]

goto/16 :goto_13

:cond_2b
move-object/from16 v0, p0

iget-object v0, v0, Lcom/samsung/android/settings/display/SecDisplaySettings;->mOutdoorMode:Landroid/support/v14/preference/SwitchPreference;

This Guide is optimized from

https://xdaforums.com/showpost.php?p=72466188&postcount=161

Thanks to palaych
[Android General] yash92duster:
Guide To Fix Headphones in S9+ Oreo Ports:​

Decompile framework-res.apk

Locate to

framework-res/res/values/bools.xml

Search for AudioJack

And Change the following:

From
<bool name="config_useDevInputEventForAudioJack">true</bool>
To
<bool name="config_useDevInputEventForAudioJack">false</bool>

By Bulldog74ts and AlexisXDA
[Android General] yash92duster:
Guide to Fix Data Mount in TWRP for Oreo:​

Unpack kernel ( Boot.img ) using AIK ( Android.Image.Kitchen.v3.1-Win32 )

Locate to Ramdisk folder

You will find 3 fstab

In the zip you will find Stock and Modded files, Compare them for the changes made

Repack and enjoy

Now Data will mount if you use Magisk Root

By Ouweshs28 and yash92duster
[Android General] yash92duster:
Guide To Permanently Disable Flag Secure in Oreo:​

This MOD enable Screenshots and Screen Record into Secure apps

Locate to

services.jar\smali_classes2\com\android\server\wm\WindowManagerService.smali

From

.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 3

const/4 v2, 0x1

const/4 v1, 0x0

iget-object v0, p1, Lcom/android/server/wm/WindowState;->mAttrs:Landroid/view/WindowManager$LayoutParams;

iget v0, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

and-int/lit16 v0, v0, 0x2000

if-eqz v0, :cond_0

return v2

:cond_0
iget-object v0, p0, Lcom/android/server/wm/WindowManagerService;->mBridge:Lcom/android/server/wm/IWindowManagerServiceBridge;

invoke-interface {v0, p1}, Lcom/android/server/wm/IWindowManagerServiceBridge;->isScreenCaptureDisabledLocked(Lcom/android/server/wm/WindowState;)Z

move-result v0

if-eqz v0, :cond_1

return v2

:cond_1
return v1
.end method

To

.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 1

const/4 v0, 0x0

return v0
.end method

This Guide is from

https://xdaforums.com/showpost.php?p=73830449&postcount=234

Thanks to edzamber and fOmey
[Android General] yash92duster:
Nav Bar Colors Oreo:​

Decompile SecSettings.apk

Locate to

SecSettings.apk/res/values/colors.xml

Use the following values:

<color name="navigationbar_default_color_1">#ff000000</color>
<color name="navigationbar_default_color_2">#ff59000b</color>
<color name="navigationbar_default_color_3">#ff8da8c3</color>
<color name="navigationbar_default_color_4">#ff45593d</color>
<color name="navigationbar_default_color_5">#ffceb891</color>
<color name="navigationbar_default_color_6">#ffb1b1b1</color>
<color name="navigationbar_default_color_7">#00000000</color>

Recompile SecSettings2.apk

By yash92duster
[Android General] yash92duster:
Signature Check Disable For Oreo:​

Locate to

Services.jar\smali\com\android\server\pm\PackageManagerService.smali

Search for

.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I

Replace the entire .method with the following code:

.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7

const/4 v0, 0x0

return v0
.end method

This Guide is from

https://xdaforums.com/showpost.php?p=66207890&postcount=557

by edzamber, tdunham, one_love_420 and CNexus
[Android General] yash92duster:
Installing Apps Older Versions Over Newer For Oreo:​

Locate to

Services.jar\smali\com\android\server\pm\PackageManagerService$InstallParams.smali

Search for :

.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;)I

Now just change if-nez to if-eqz

From
if-nez v1, :cond_1
To
if-eqz v1, :cond_1

Like Follows,

:goto_2
if-eqz v2, :cond_6

sget-boolean v10, Landroid/os/Build;->IS_DEBUGGABLE:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0

if-nez v10, :cond_5

move v1, v7

:goto_3
[COLOR="Red"]if-eqz v1[/COLOR], :cond_1

:try_start_1
invoke-static {v0, p1}, Lcom/android/server/pm/PackageManagerService;->-wrap35(Landroid/content/pm/PackageParser$Package;Landroid/content/pm/PackageInfoLite;)V
:try_end_1
.catch Lcom/android/server/pm/PackageManagerException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0

Recompile Services.jar

Done

Now you can install any old app version on top of a newer without unistalling before

This Guide is from

https://xdaforums.com/showpost.php?p=66207890&postcount=557

by edzamber, tdunham, one_love_420 and CNexus
[Android General] yash92duster:
Camera Flash Light 1% Mod:​

Decompile framework-res.apk

Locate to

res/values.integer.xml

Find the following:

<integer name="config_lowBatteryWarningLevel">15</integer>

Change accordingly:

From
<integer name="config_lowBatteryWarningLevel">15</integer>

To
<integer name="config_lowBatteryWarningLevel">1</integer>

Now Flashlight in Camera Will work till 1% Battery

By yash92duster
[Android General] yash92duster:
Rom Logo to SecSettings for Oreo:​

Decompile SecSettings.apk

Locate to res/xml/device_info_settings.xml

Add the following code:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">

<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
<PreferenceCategory android:title="@string/rom_info" android:key="dummy_gen">
<Preference android:title="@string/rom_name" android:key="rom_name" android:summary="@string/rom_name_details" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_ver" android:key="rom_ver" android:summary="@string/rom_ver_details" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_date" android:key="rom_date" android:summary="@string/rom_date_details" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_developer" android:key="rom_developer" android:summary="@string/rom_developer_name" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_dev_country" android:key="rom_dev_country" android:summary="@string/rom_dev_country_name" style="?android:preferenceInformationStyle" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/device_info" android:key="dummy_gen" />

Add logo.png (410x160 pix) to res/drawable folder

Add logo.xml to res/layout folder

Locate to res/values/ids.xml

Add the following code at the end of the xml

<item type="id" name="dev_settings">false</item>

Locate to res/values/strings.xml

Add the following code at the end of the xml

<string name="device_info">Device Information</string>
<string name="rom_info">Information About ROM</string>
<string name="rom_name">ROM Name</string>
<string name="rom_name_details">LightROM</string>
<string name="rom_ver">ROM Version</string>
<string name="rom_ver_details">Based on CRB7</string>
<string name="rom_date">ROM Date</string>
<string name="rom_date_details">01.January.2018</string>
<string name="rom_developer">ROM Developer</string>
<string name="rom_developer_name">yash92duster</string>
<string name="rom_dev_country">Developer Country</string>
<string name="rom_dev_country_name">Chennai/India</string>
</resources>

Recompile SecSettings.apk

Country Code is by one of my Telegram Friend

This Guide is optimized from

https://xdaforums.com/showpost.php?p=67026539&postcount=1873

Thanks to ambasadii
[Android General] yash92duster:
Adding Changelog Option To SecSettings Oreo:​

Decompile SecSettings .apk

Locate to res/values/strings.xml

Add the following codes:

<string name="changelog_title"><b>Changelog</b></string>
<string name="changelog_title_summary">View recent changes in ROM</string>
<string name="changelog_loading">Loading changelog...</string>
<string name="changelog_error">Unable to load changelog</string>
<string name="changelog_unknown">Unknown</string>
<string name="changelog_version">Version</string>

Open

res/xml/device_info_settings.xml and look for the following code

<Preference android:title="@string/device_feedback" android:key="device_feedback" />

Add the following code after or before the above code

<PreferenceScreen android:title="@string/changelog_title" android:key="changelog" android:summary="@string/changelog_title_summary" android:fragment="com.samsung.android.settings.rz.ChangeLog" />

Merge the smali.zip to SecSettings.apk

Compile and Decompile for Replacing public id

Find

res/values/public.xml

<public type="string" name="[COLOR="darkgreen"]changelog_error[/COLOR]" id="[COLOR="Red"]0x7f090f8e[/COLOR]" /> This code needs to be used in the ChangeLog.smali

6. Find 0x7f090f8e in SecSettings\smali_classes2\com\samsung\android\settings\rz\ChangeLog.smali

move-object v2, v3

:goto_1
const v9, 0x7f090f8e

:try_start_2
invoke-virtual {p0, v9}, Lcom/samsung/android/settings/rz/ChangeLog;->getString(I)Ljava/lang/String;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0

Now copy RZChangelog.txt to system/etc Folder

Optimized for Oreo by yash92duster

This Guide is optimized from

https://xdaforums.com/crossdevice-dev/sony-themes-apps/guide-add-changelog-to-settings-rom-t3278694

Thanks to venkat kamesh
[Android General] elxufas:
Thanks for the thread, to keep in mind and to follow it.
[Android General] bulldog74ts:
By Bulldog74ts ;););)
[Android General] a.raul:
Good afternoon

I hope everything is understandable ...

First of all to thank all the people of XDA who little by little, contribute and contribute, so that we all go a little better in this "hobby"

Also, of course, [MENTION=7393522]AbrahamGC[/MENTION], you are a great chaval and you have a promising future in this ...

Say that I use to decompile and compile, the following tool, or in some case CMD. Thank [MENTION=5078388]BDFreak[/MENTION]

https://xdaforums.com/showthread.php?t=2639400

With apktool 2.3.2, now, before 2.3.1 both valid, Thank [MENTION=3924617]iBotPeaches[/MENTION]

https://xdaforums.com/showthread.php?t=1755243

Let's start explaining how to modify SystemUI.apk, Secsettings.apk, framework-res.apk and the * .jar of Samsung Oreo

I want to explain my procedure, which is the one that is not giving me any problem of any kind, it may be that other DEV, do it differently.

SystemUI.apk

We will have 2 copies of SystemUI.apk, each one with a different name so as not to get mixed up,

for example SystemUI_origen.apk and another with a different name, for example SystemUI_mod0.apk.

We open both with 7zip

In SystemUI_mod0.apk we open the animator folder, and in SystemUI_origen.apk animator-v21,

we copy paste from animator-v21, in animator.

In SystemUI_mod0.apk we open the color folder, and in SystemUI_origen.apk color-v11 and color-v23,

copy paste color-v11 and color-v23, in color.

In SystemUI_mod0.apk we open the drawable folder, and in SystemUI_origen.apk drawable-v21 and drawable-v23,

We copy paste from drawable-v21 and drawable-v23, in drawable.

In SystemUI_mod0.apk we open the folder layout, and in SystemUI_origen.apk layout-v11, layout-v21 and layout-v26,

copy paste from layout-v11, layout-v21 and layout-v26, in layout.

We have prepared SystemUI_mod0.apk to decompile, decompile.

We will see that the names of some folders have been renamed eliminating the term -v ...

In the zip that I leave added in the post, there is the file pip_dismiss_scrim.9.png, this we will change it for the one that is in

drawable-xxxhdpi (decompiled) which is the name of the drawable-xxxhdpi-v4 folder in the apk without decompiling.

We have compiled the SystemUI_mod0.apk, we are going to rename it so as not to get mixed up, for example SystemUI_mod0_compilado.apk.

Now we have to use SystemUI_mod0.apk and SystemUI_mod0_compilado.apk, we open both with 7zip

Copy from the SystemUI_mod0_compilado.apk the folder res, classes.dex, classes2.dex and resources.arsc in SystemUI_mod0.apk

In addition to the zip where pip_dismiss_scrim.9.png is located, it is copied / pasted into drawable-xxxhdpi-v4.

With this we will have prepared the SystemUI.apk prepared for future modifications and we will not have any problem in decompilation and compilation.

In all the modifications, I at least copy and paste all the above, the folder res, classes.dex, classes2.dex and resources.arsc

and if there is any addition in the assets folder by modification, I open the folder and add what that modification implies.

I leave descriptive images of the steps, for better understanding.

Regards
[Android General] a.raul:
We continue with...

Let's start explaining how to modify SystemUI.apk, SecSettings.apk, framework-res.apk and the * .jar of Samsung Oreo

I want to explain my procedure, which is the one that is not giving me any problem of any kind, it may be that other DEV, do it differently.

SecSettings.apk

We are going to have 2 copies of SecSettings.apk, each with a different name so as not to get involved,

for example SecSettings_origen.apk and another with a different name, for example SecSettings_mod0.apk.

We open both with 7zip

In SecSettings_mod0.apk we open the anim folder, and in SecSettings_origen.apk anim-v21,

we copy paste from anim-v21, in anim.

In SecSettings_mod0.apk we open the color folder, and in SecSettings_origen.apk color-v11 and color-v23,

copy paste color-v11 and color-v23, in color.

In SecSettings_mod0.apk we open the drawable folder, and in SecSettings_origen.apk drawable-v21 and drawable-v23,

We copy paste from drawable-v21 and drawable-v23, in drawable.

In SecSettings_mod0.apk we open the layout folder, and in SecSettings_origen.apk layout-v11, layout-v21 and layout-v26,

copy paste from layout-v11, layout-v21 and layout-v26, in layout.

We have prepared SecSettings_mod0.apk to decompile, decompile.

We will see that the names of some folders have been renamed eliminating the term -v ...

Go to res / values ​​/ styles.xml and delete the following line:

<item name="dropdownPreferenceStyle">@style/SettingsDropdownPreference</item> ## Delete line

We save and close, and compile,

We have compiled the SecSettings_mod0.apk, we are going to rename it to not get involved, for example SecSettings_mod0_compilado.apk.

Now we have to use SecSettings_mod0.apk and SecSettings_mod0_compilado.apk, we open both with 7zip.

Unlike SystemUI.apk, the folder res is not completely copied, the reason we can have a fix, for example in fingerprints.

I leave an image of the folders to be copied (marked in blue) of SecSettings_mod0_compilado.apk in SecSettings_mod0.apk,

what I do to make my job easier and not having any mess is to eliminate what I do not have to go through (everyone who does it their own way)

but only the folders of the image, and then I copy / paste the folder res, resources.arsc, classes.dex and classes2.dex of SecSettings_mod0_compilado.apk in SecSettings_mod0.apk

With this we will have prepared the SecSettings.apk prepared for future modifications and we will not have any problem in decompilation and compilation.

In future modifications, just copy / paste what has been modified.

If it influences resources.arsc, classes.dex and classes2.dex, of course what has been modified, but,

if the modification influences an * .xml we will only pass that * .xml in in the corresponding folder, we will avoid fix.

I leave descriptive images of the steps, for better understanding.

Regards
[Android General] ermakovermakov7878:
Does not work on Samsung A7 (17) did without a key. Black screen at boot.:crying:
[Android General] AbrahamGC:
TOGGLE FOR FINGERPRINT WAKE-UP

With this mod you can choose if the phone will wake-up and be unlocked or do nothing.

GearUtils needed.

1- Decompile SystemUI.

2- Open smali/com/android/systemui/Rune.smali

3- Replace .method public static isSupportWOF()Z with this :

.method public static isSupportWOF()Z
.locals 4

const/4 v0, 0x0

const-string v2, "agc_fp_wakeup"

const/4 v3, 0x1

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

move-result v1

if-eqz v1, :cond_b

const/4 v0, 0x1

:cond_b
return v0
.end method

Add this on RomControl : (Requires SystemUI reboot)

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference
android:title="Wake-up with fingerprint"
android:defaultValue="true"
android:key="agc_fp_wakeup"
app:packageNameToKill="com.android.systemui"
app:isSilent="true" />

That's all. :good:
​
[Android General] mikeyb123:
after I decompile and edit system ui files, no matter what mod (example center clock) as soon as I recompile and put back on my device after reboot I have No status bar or navigation bar and no wallpaper just black, anyone have any ideas? im using tickle my android latest to recompile and decompile. any help would be greatly appreciated im on oreo 8.0.0
[Android General] Blackball:
Did you used the original signature?

Copy meta inf and androidmanifest.xml from the original file to your modded file. With 7zip for example.

Or you did something wrong [emoji6]

Gesendet von meinem BKL-L04 mit Tapatalk
[Android General] mikeyb123:
yes ive tried that I really aint sure whats going on
[Android General] yash92duster:
Install framework res apk

Unpack ui

Add mods

Recompile with original signature in tma

you get new UI.apk in o/p folder

Now Drag and drop resources.arsc from new apk to original UI apk

Using winrar

Use compression store

Then drag and drop res folder, classes....

Use compression best

Now UI will work fine in full wipe

^

Add only 1 or 2 basic mods and check first
[Android General] mikeyb123:
worked great thank you so much has been doing my head in for days lol

^

Add only 1 or 2 basic mods and check first[/QUOTE]
[Android General] mikeyb123:
Does anyone know how or has been able to to do clock settings mods move statusbar clock left right or center on the fly with Rom control?
[Android General] DevilMan77:
Thx for the guide but whats the different to the option which already excist in the S8 settings for fingerprint?? There is the option after you setup fingerprint to wake phone with fingerprint
[Android General] AbrahamGC:
The stock option is for unlock or not the phone with fp, my mod is only for wake-up. If it's disabled you can wake-up the phone with home/powet button and then use fp for unlock. It's just disable the sensor when phone is locked.
[Android General] TEKHD:
Quick question... Did you disable signature verification? (Service.jar)
[Android General] mikeyb123:
No forgot I will do now though:)?
[Android General] crizalid8:
get error when i'm try to compile framework-res.apk from s9+ oreo please help

Log.txt
[Android General] Eleo:
Can you please retry with apktool 2.3.1?
[Android General] crizalid8:
Have same whith apktool 2.3.1.

I can send you framework-res.apk il you want test

https://mega.nz/#!ydtzGJAT!jsk0RSmH9FHmfzOKwT5IB7Mp_Xm1edzvw-T2ilBHZfQ
[Android General] mikeyb123:
[IMG="image"]http://i68.tinypic.com/i4pr3c.jpg[/IMG]

anyone now how to get past this I cant recompile systemui.apk
[Android General] AbrahamGC:
Move some folder from smali to smali_classes2, but respect the path
[Android General] mikeyb123:
what folders im editing statusbar.smali ive moved that to classes2 it compiled but mods not working that way
[Android General] AbrahamGC:
Ok you have:

smali/com/android/systemui/statusbar/phone/StatusBar.smali

move it to:

smali_classes2/com/android/systemui/statusbar/phone/StatusBar.smali

Create missing folders and cut / copy smali, that's all.

This does not affect the mods, therefore, if one does not work, you are probably doing it wrong.
[Android General] edzamber:
Did you install framework on TMA (option 3)?
[Android General] a.raul:
With apktool 2.3.2, it's the best for now

https://xdaforums.com/showpost.php?p=76259824&postcount=41
[Android General] Pinkcat:
Thank you so much for this post man!