FORUMS
Remove All Ads from XDA

 View Poll Results: Hello Users...!!! Is Thread Useful.......!!!

Yes.....Good Collection of Mods.
 
35 Vote(s)
85.37%
Not useful, I dont own Samsung Device.
 
6 Vote(s)
14.63%

[Guides][Mods][TouchWiz]Android 8 Oreo Mods

8,694 posts
Thanks Meter: 7,984
 
Post Reply Email Thread
Announcement from yash92duster: THread WIll Be Updated Every 1 or 2 Weeks Only
[CENTER]

I Hope All Agree With Me And Share Guides Here For Oreo Like Me.

Please Feel Free To Contribute As Well.






Note:
This Thread is Purely Meant For Custom ROM Devs / Learners
Others Please Ignore And Don't Ask For Flashable Zips







Note to Beginners:
You Will Need Basic Knowledge For Editing Decompiled Apks and Jars.






Thread Rules:
Code:
*Post Guides Here Which Work 100% Only On A Galaxy S8/S8+, Note 8, S9/S9+ or any Oreo Device
*If You Post A Guide, Then Be Sure Its Your Own Guide.
*If Guide Is Not Owned By You Then Please Link To The Post Of Original Developer And Show Only The Changes Here.
*If Guide Is Not Owned By You Then Give Credits And Write That - " The Users Have To Thank In Linked Thread From Original Thread ".
*Please Add Screenshots For All Guides you post, Also use Xda Upload Tab For Uploading Pictures and don't add urls.
*Keep your guide please up to date.



Lets Get Started:



SecSettings:

* Outdoor Mode in Settings for Oreo:
https://forum.xda-developers.com/sho...4&postcount=25

* Nav Bar Colors Oreo
https://forum.xda-developers.com/sho...3&postcount=30

* Rom Logo to SecSettings for Oreo
https://forum.xda-developers.com/sho...7&postcount=34

* Adding Changelog Option To SecSettings Oreo
https://forum.xda-developers.com/sho...6&postcount=35

* Guide To Add Apps To SecSettings
https://forum.xda-developers.com/sho...&postcount=157

* Guide To Change User Manual Link In Settings Menu To Any Else:
* Add On To User Manual Link In Settings Menu To Any Else: Remove SBrowser Link By Default And Use Any Other Browser:
https://forum.xda-developers.com/sho...&postcount=181

* The Vibration Of The Soft Keys Switch
https://forum.xda-developers.com/sho...&postcount=258





SystemUI:

* Guide to Remove High Volume Warning
https://forum.xda-developers.com/sho...80&postcount=5

* Guide to Remove Dual Sim Bar from Notification Panel
https://forum.xda-developers.com/sho...7&postcount=18

* GUIDE_TUTORIAL_THINK-OUTSIDE-THE-BOX - Global context for android application - example on SystemUI
https://forum.xda-developers.com/sho...postcount=8317

* Guide menu reset and off on samsung oreo
https://forum.xda-developers.com/sho...01&postcount=9

* SystemUI Tiles
https://forum.xda-developers.com/sho...1&postcount=22

* NETWORK TRAFFIC WITH DARK TINT
https://forum.xda-developers.com/sho...5&postcount=42

* DOUBLE TAP TO SLEEP ON STATUSBAR (ROMCONTROL OPTIONAL)
https://forum.xda-developers.com/sho...3&postcount=44

* ENABLE LOCKSCREEN ROTATION (ROMCONTROL OPTIONAL)
https://forum.xda-developers.com/sho...4&postcount=45

* TOGGLE COLOR INVERSION
https://forum.xda-developers.com/sho...3&postcount=46

* COLOR SIGNAL CLUSTER WITHOUT LOSS DARK TINT
https://forum.xda-developers.com/sho...5&postcount=47

* Center clock
https://forum.xda-developers.com/sho...0&postcount=50

* Guide to Hide Status Bar Icons in Lock Screen
https://forum.xda-developers.com/sho...&postcount=112

* Permanently Disable High Level Brightness Popup In TW Oreo
https://forum.xda-developers.com/sho...&postcount=108

* Custom Animation GIF For TW Oreo!
https://forum.xda-developers.com/sho...7&postcount=99

* FontUtils (Custom fonts for all TextViews with RC)
https://forum.xda-developers.com/sho...8&postcount=77

* Guide To Add Quick Face Unlock Without Swipe ( With Google Smart Lock )
https://forum.xda-developers.com/sho...&postcount=147

* Signal Cluster To The Left ( With/Without RomControl ) ( On-The-Fly )
https://forum.xda-developers.com/sho...&postcount=194

* Guide - Move status bar views to right - left or center on fly
https://forum.xda-developers.com/sho...&postcount=200

* [GUIDE]Change Battery Icon on Every 10% Drain on Tw Oreo
https://forum.xda-developers.com/sho...&postcount=237

* Mini Guide - Force always visible Free Form Menu item in notifications
https://forum.xda-developers.com/sho...&postcount=228

* SIM Panel Responsive Switch
https://forum.xda-developers.com/sho...&postcount=276

* Dual Sim Bar from Notification Panel with switch
https://forum.xda-developers.com/sho...&postcount=276

* Fingerprint Unlock without RomControl & with RomControl
Unlock Device Using Fingerprint Unlock After Reboot
https://forum.xda-developers.com/sho...&postcount=341

* USE BIOMETRIC ON REBOOT
Unlock Device Using Fingerprint/IRIS/Face Unlock After Reboot
https://forum.xda-developers.com/sho...&postcount=323

* Unlock Device Using Fingerprint/IRIS/Face Unlock After Reboot
Unlock Device Using Fingerprint Unlock After Reboot
https://forum.xda-developers.com/sho...9&postcount=70

* TOGGLE FOR FINGERPRINT WAKE-UP
https://forum.xda-developers.com/sho...&postcount=384

* Advanced Power Menu - Up to 15 Toggles, custom colors...
https://forum.xda-developers.com/sho...&postcount=428

* QUICK-REPLY ON SECURE LOCKSCREEN (WITH/WITHOUT ROMCONTROL)
https://forum.xda-developers.com/sho...&postcount=445

* DeluxeOutdoor - Custom outdoor button on notif. panel
https://forum.xda-developers.com/sho...&postcount=452

* Screen off TimeOuts Tile - User Screen and Lock Screen (normal mode and power save mode)
https://forum.xda-developers.com/sho...&postcount=421





Framework-res:

* Framework Res Apk SSRM and HQM Optimizations
https://forum.xda-developers.com/sho...8&postcount=21

* Guide To Fix Headphones in S9+ Oreo Ports
https://forum.xda-developers.com/sho...9&postcount=27

* Camera Flash Light 1% Mod
https://forum.xda-developers.com/sho...1&postcount=33




Services.jar:

* Guide To Permanently Disable Flag Secure in Oreo
https://forum.xda-developers.com/sho...9&postcount=29

* Fully spoof signature check Guide
( Services.jar & Core-oj.jar - Signature Check Disable, Installing Apps Older Versions Over Newer For Oreo )
https://forum.xda-developers.com/sho...&postcount=314

* Signature Check Disable For Oreo
https://forum.xda-developers.com/sho...3&postcount=31

* Installing Apps Older Versions Over Newer For Oreo
https://forum.xda-developers.com/sho...2&postcount=32

* USB Plug/Unplug disable wake up with toggle in RomControl
https://forum.xda-developers.com/sho...37&postcount=6

* Tweaks: bypass MicroSD/Sim2 tray lock
https://forum.xda-developers.com/sho...&postcount=313

* Guide - A bit different way for Toast Animations
https://forum.xda-developers.com/sho...&postcount=375




GooglePackageInstaller:

*




Samsung Camera 7/8:

*




InCallUI:

*




TouchWizHome Launcher:

* TouchWizLauncher - Adding 8 Icons to Dock
https://forum.xda-developers.com/sho...2&postcount=20

* TouchWizLauncher Landscape/Portrait Mode For Home
https://forum.xda-developers.com/sho...2&postcount=23

* ENABLE LANDSCAPE MODE ON TW (SMALI WAY)
https://forum.xda-developers.com/sho...0&postcount=43

* TOUCHWIZ : CUSTOM SIZE / COLOR APP NAMES WITH ROMCONTROL
https://forum.xda-developers.com/sho...&postcount=457




Samsung Root Detection App:

* SysScope: Set Device Status Official
https://forum.xda-developers.com/sho...5&postcount=81






SecSetupWizard_Global:

*






Build.prop Tweaks:



CSC Tweaks:



UPSM Tweaks:

*




Kernel Mods:

* Fix For Oreo DeOdex (ROM WITHOUT ARM/ARM64)
( You Can Boot ROM Without Using System/Framework/ARM/ and System/Framework/ARM64 Folders )
https://forum.xda-developers.com/sho...&postcount=141





Flashable Zip For Flashing System Files:



Uncategorized:

* [Smali/Baksmali] JesusFreke - Smali/Baksmali Jars
https://bitbucket.org/JesusFreke/smali/downloads/

* Some OMC manipulation tips
https://forum.xda-developers.com/sho...8&postcount=10

* Use ODM instead of OMC/CSC in Oreo
https://forum.xda-developers.com/sho...&postcount=240

* Decrypt/Decode Note 8 OMC/CSC files
https://forum.xda-developers.com/gal...files-t3770940

* How to Modify SystemUI.apk, Secsettings.apk, framework-res.apk and the * .jar of Samsung Oreo
https://forum.xda-developers.com/sho...5&postcount=39
https://forum.xda-developers.com/sho...3&postcount=40
https://forum.xda-developers.com/sho...4&postcount=41

* [Guide][Video Tutorial] How to build Custom ROMs and Kernel Modification![O][N][M][L]
https://forum.xda-developers.com/and...ernel-t3814251

* For those who want to go from 6th ROM Control to GRX Settings
https://forum.xda-developers.com/sho...&postcount=312

* Fixing Private Mode on Non Supported Frameworks (i.e S8+ / Note 8 / S9 ) Oreo
https://forum.xda-developers.com/sho...&postcount=408

* How To Fix S9+/S9 Dolby on Oreo Roms
https://forum.xda-developers.com/sho...&postcount=405

* RMM prenormal work around
https://forum.xda-developers.com/sho...5&postcount=51

* [GUIDE] Root/Install TWRP on any NON-US Samsung after 2018 updates
https://forum.xda-developers.com/sam...msung-t3747535

* [Guide][tut] [LP/MM] Hide/Enable Layouts (small apps, Icons, Nav and more) no smali
https://forum.xda-developers.com/cro...-apps-t3417499

* AppLock For Oreo 8.0
https://forum.xda-developers.com/sho...5&postcount=13

* Screen Recorder
https://forum.xda-developers.com/sho...3&postcount=19

* Power Plan Feature for Device Maintenance Oreo
https://forum.xda-developers.com/sho...3&postcount=24

* Guide for GMS Doze
https://forum.xda-developers.com/sho...4&postcount=14

* Guide to Fix Data Mount in TWRP for Oreo
https://forum.xda-developers.com/sho...6&postcount=28

* ADB Prop Tweak
https://forum.xda-developers.com/sho...5&postcount=15

* Guide to Calibrate Battery
https://forum.xda-developers.com/sho...4&postcount=16

* [FontPack] -v7.2- 1120 Fonts Compatible with Oreo
https://forum.xda-developers.com/gal...6edge-t3154336

* [ADVANCED TUTORIAL][NOT-FOR-THE-WEAK-HEART][6THGEAR INFO CORNER] Content observer the 6thGear way
https://forum.xda-developers.com/sho...postcount=8549

* [GUIDE]All-In-One(stock FW/CSC/ROOT/TWRP recovery/FRP unlock/PIT/unbrick/bootloader)
https://forum.xda-developers.com/gal...-root-t3702963

* [30/09/16][Sounds] Iron Man 3 Added !!! [BOOTANIMATIONS] for S5/N4/S6/E /N5/S7/E
https://forum.xda-developers.com/gal...audio-t3410272

* [TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]
https://forum.xda-developers.com/sho....php?t=2239421

* [GUIDE] Restore You IMEI And Fix Corrupted EFS
https://forum.xda-developers.com/and...d-efs-t3116217

* [DEV][TEMPLATE] AnyKernel2 - Easily Mod ROM Ramdisk + Pack zImage
https://forum.xda-developers.com/sho....php?t=2670512

* [TOOL] Public ID Converter
https://forum.xda-developers.com/and...erter-t3064175

* SystemUI Compilation Error Fix!
https://forum.xda-developers.com/sho...6&postcount=49







ROM Building Kitchens:

* [WINDOWS/LINUX][DONATE] SuperR's Kitchen
https://forum.xda-developers.com/app...0-0-0-t3601702

* [LINUX][FREE] SuperR's Kitchen
https://forum.xda-developers.com/app...2-1-6-t3597434

* Poison Kitchen IDE
https://forum.xda-developers.com/and...n-ide-t3779833

* [ANDROID ROMs SYSTEMs EDITOR] ASSAYYED_KITCHEN
https://forum.xda-developers.com/che...tchen-t3410545

* [TOOL]Fulmics Deodexer ◦ Marshmallow ◦ Nougat ◦ Oreo
https://forum.xda-developers.com/and...r-1-0-t3512081

* [TOOL] Tickle My Android - Decompiling & Deodexing The Easy Way
https://forum.xda-developers.com/sho....php?t=1633333

* [Tool]Fully automated tool for create deodex from ART
https://forum.xda-developers.com/gal...oid-l-t2972025




Root:



Xposed:

* [OFFICIAL] Xposed for Lollipop/Marshmallow
http://forum.xda-developers.com/show....php?t=3034811

* [UNOFFICIAL]Xposed for Samsung Lollipop/Marshmallow
https://forum.xda-developers.com/xpo...lipop-t3180960

* [UNOFFICIAL] Material Design Xposed Installer
https://forum.xda-developers.com/xpo...aller-t3137758




Kitkat/Lollipop/Marshmallow/Nougat/Oreo - Guides/Mods:

* [Guides] Android 8.0 Oreo Mods Thread
https://forum.xda-developers.com/and...hread-t3772017

* Guides Android 7 modding with main emphasis on S7edge this time
https://forum.xda-developers.com/and...5#post69788075

* [Guides & Links] TOUCHWIZ UNIFIED MODS THREAD
https://forum.xda-developers.com/sho....php?t=2799050

* Collection of Guides & Mods & Links for Samsung Android 6.0.1
https://forum.xda-developers.com/gal...-devs-t3321679




General Guides:

* How to Port Samsung Rom to other Samsung devices (Updated as of 4/19/2017)
https://forum.xda-developers.com/and...msung-t3481114

* [SOURCE CODE][DEV TOOL][SDK 21+]6thGear RomControl v2.+ for Devs
https://forum.xda-developers.com/and...-devs-t3411916

* TEE:
A TEE processor is typically a separate microprocessor in the system or a virtualized instance of the main processor.
The TEE processor is isolated from the rest of the system using memory and I/O protection mechanisms supported by the hardware.

https://source.android.com/security/trusty/

* Android Tips and Tricks
https://forum.xda-developers.com/sho....php?t=1723643

* [REF][GUIDE]Most Upto Date Guide on CPU Governors, I/O Schedulers:
https://forum.xda-developers.com/gen...ors-o-t3048957

* [GUIDE] How to fix IMEI / DRK issues [ALL MODELS][COMBINATION UPDATE 03 NOV 2017]
https://forum.xda-developers.com/s7-...ssues-t3379516

* [GUIDE][COMPLETE] All in one Android Development [NOOB FRIENDLY]
https://forum.xda-developers.com/che...5121?nocache=1

* [GUIDE][COMPLETE] Android ROM Development From Source To End
https://forum.xda-developers.com/che...pment-t2814763

* [GUIDE/TIPS] How to Port OEM Apps / Vendor Apps to Your Current ROM
https://forum.xda-developers.com/sho....php?t=2476050

* OTA Update Center App (v 2.0.5)
http://forum.xda-developers.com/show...5#post29501085




General Guides Older Versions:

* Porting Nougat Apps to Marshmallow
https://forum.xda-developers.com/sho...ostcount=10884

* Disable Signature Check
https://forum.xda-developers.com/sho...&postcount=557

* How to add logo and rom info to settings / about device,
Add Toolbox Controller to Settings
http://forum.xda-developers.com/show...postcount=1873
http://forum.xda-developers.com/show...postcount=1813

* Changelog to settings
https://forum.xda-developers.com/cro...s-rom-t3278694

* How to add SuperSU Link in Settings
https://forum.xda-developers.com/sho...postcount=2264

* How to add App Link in Settings
http://forum.xda-developers.com/show...postcount=2264

* [MOD][APP] Multi DPI Samsung Apps (Camera, Keyboard, Contacts/Dialer) & services.jar
https://forum.xda-developers.com/gal...3#post61491483

* [GUIDE] How To Add Contacts, Tasks, And Apps Edge Panel | Edge Panel S8 Guide | Nougat
https://forum.xda-developers.com/sho...&postcount=245

* How to Disable Flag_Secure in Nougat TW Rom
https://forum.xda-developers.com/sho...ostcount=11420


* [MOD][HOW-TO] Fully disable app verification (FOR USER APPS)
https://forum.xda-developers.com/sho....php?t=2733681

* Change FOTA Upgrade Screen to any color
https://forum.xda-developers.com/sho...postcount=8460

* A.O.K.P Ram Bar
http://forum.xda-developers.com/show...postcount=5419
http://forum.xda-developers.com/show...postcount=5543

* How to Add Quicklauncher in Recents App
http://forum.xda-developers.com/show...postcount=1332

* Remove the grey status bar when power saving mode is on
http://forum.xda-developers.com/show...postcount=7345

* ADD/REMOVE - 5Way Reboot TW Marshmallow
http://forum.xda-developers.com/show...postcount=1220
http://forum.xda-developers.com/show...postcount=9369

* How to Advance Power Menu on Marshmallow 6.0.1
https://forum.xda-developers.com/sho...&postcount=525

* Advanced Power Menu for Nougat
https://forum.xda-developers.com/sho...83&postcount=3

* Device info to notification panel and lockscreen
http://forum.xda-developers.com/show...postcount=2019
http://forum.xda-developers.com/show...postcount=2294
http://forum.xda-developers.com/show...postcount=2030

* For Guide - Multiwindow & Toolbox Toggles in S7Edge SystemUI
http://forum.xda-developers.com/show...postcount=6307

* Enable OutdoorMode
http://forum.xda-developers.com/show...&postcount=543

* Fix - Screen Overlay - GooglePackageInstaller apk
http://forum.xda-developers.com/show...postcount=8597

* Fix - Screen Overlay - GooglePackageInstaller apk Nougat
https://forum.xda-developers.com/sho...count=82<br />

* Increase Toolbox apps number
http://forum.xda-developers.com/gala...g-fws-t2899795

* Add On-Off Label To Settings ( Framework-res apk )
http://forum.xda-developers.com/show...postcount=2952

* [Guide] How to add (Capacitive) touch key light settings back to Display Settings
https://forum.xda-developers.com/sho...postcount=6010

* (HOW-TO) (MM) S7 Power Menu Mod with Blur background
https://forum.xda-developers.com/gal...-blur-t3389044

* [MOD][LP] Dynamic blur - Recents Panel
https://forum.xda-developers.com/lg-...panel-t3284520

* Opaque Status Bar Icons In Marshmallow (Remove Alpha Channel from status bar icons)
https://forum.xda-developers.com/sho...postcount=1774

* Remove EXTRA WHITE SPACE in DEFAULT APP SELECTOR
http://forum.xda-developers.com/show...postcount=8981

* Remove sd notification for S7e UI
http://forum.xda-developers.com/show...postcount=5666

* Quick Settings Columns to 6
http://forum.xda-developers.com/show...postcount=2705

* Disable Lockscreen " Swipe screen to unlock " Text
http://forum.xda-developers.com/show...&postcount=489

* How to Remove Web Manual and Updates in Settings Menu
https://forum.xda-developers.com/sho...&postcount=161

* [GUIDE][DEVS][SMALI]Enable "Device Status Official" - Remove SysScope[GUIDE][DEVS]
https://forum.xda-developers.com/att...icial-t2815682




General Tools:

* [GUIDE] How to Decompile APKs with ODEX files [Noob Friendly]
https://forum.xda-developers.com/and...files-t3325340

* [TOOL] Android Image Kitchen - Unpack/Repack
https://forum.xda-developers.com/sho....php?t=2073775

* Odin3 Tool For Windows:
https://forum.xda-developers.com/sho....php?t=2711451

* [OFFICIAL][TOOL][WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3
https://forum.xda-developers.com/sho....php?t=2588979

* [Q&A] AROMA Installer - [Dev Move To DevDB]
https://forum.xda-developers.com/sho....php?t=1461712

* [Script][Tool] how to create a tar.md5 file from img For Odin
https://forum.xda-developers.com/sho....php?t=2446269

* How can a modder have easy life / Pushing apps into system / Easier than you think
https://forum.xda-developers.com/sho...postcount=6998

* [GUIDE] Making Dump Files Out of Android Device Partitions via ABD
https://forum.xda-developers.com/sho....php?t=2450045

* Updato - largest online firmware archive, fast and totally free
https://forum.xda-developers.com/gal...chive-t3413785





[FONT="Arial Black"][COLOR="Red"][URL="https://t.me/Samsung_Galaxy_Oreo_Guides]Click Here To Join The " Samsung Galaxy Oreo Guides Channel " in Telegram[/URL][/COLOR][/B][/FONT][/SIZE]

[/CENTER]

[B][U][SIZE="4"]XDA:DevDB Information
[/U]
[Guides][Mods][TouchWiz]Android 8 Oreo Mods, ROM for the Android General

Contributors
yash92duster
ROM OS Version: 8.x Oreo
ROM Firmware Required: TouchWiz Devices Only

Version Information
Status: Stable
Stable Release Date: 2018-08-07

Created 2018-08-07
Last Updated 2018-08-07
The Following 44 Users Say Thank You to yash92duster For This Useful Post: [ View ] Gift yash92duster Ad-Free
 
 
2nd April 2018, 01:36 AM |#5  
yash92duster's Avatar
OP Recognized Contributor
Flag Chennai
Thanks Meter: 7,984
 
Donate to Me
More
Guide to Remove High Volume Warning:

Decompile SystemUI.apk

Locate to
com/android/systemui/volume/VolumeDialogControllerImpl.smali

Find the method and replace it fully with new method

From
Code:
.method private onShowSafetyWarningW(I)V
    .locals 2

    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

    if-eqz v0, :cond_0

    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

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

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

    return-void

    :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

    return-void
.end method
To
Code:
.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

This Guide is optimized from
https://forum.xda-developers.com/sho...5&postcount=46
Thanks to Grouxho
The Following 10 Users Say Thank You to yash92duster For This Useful Post: [ View ] Gift yash92duster Ad-Free
2nd April 2018, 02:04 AM |#7  
Senior Member
Flag /home
Thanks Meter: 648
 
Donate to Me
More
Thanks for make this thread.... it can be lot of helpfull

These guides still working on Oreo : (I mean the functionallity, the examples will not be the same)

GearUtils (Global context)
Content observer
SysScope patch (Device official)

Of course all the credits for the original developers...
The Following 4 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
8th April 2018, 02:09 PM |#8  
jack allen's Avatar
Senior Member
Flag llanelli
Thanks Meter: 390
 
More
Deleted
9th April 2018, 02:40 AM |#9  
a.raul's Avatar
Senior Member
Flag Mordor
Thanks Meter: 367
 
More
Guide menu reset and off on samsung oreo
GUIDE MENU RESET AND OFF ON SAMSUNG OREO

WITH FIX FOR RECOVERY, DOWNLOAD AND TORCH from @AbrahamGC and DeluxRom

Your work here:

https://www.htcmania.com/showthread.php?t=1404819

EVERYTHING USED HERE IS FROM THE DELUXROM DEVICE, ANY DEV THAT YOU WANT TO USE IN
YOUR ROMS SOMETHING ABOUT THIS WORK, YOU MUST CONTACT ME OR @AbrahamGC

ANY QUESTIONS ARE ASKED IN THE THREAD AND NO PERSONAL MODIFICATIONS ARE MADE,
IF YOU ARE HERE IT IS BECAUSE YOU KNOW HOW TO DISCOVER IN THE MODIFICATIONS ....



IF YOU FOLLOW THE GUIDE TO THE FOOT OF THE LETTER, THERE WILL BE NO PROBLEM IN MOD.

I DO NOT BE RESPONSIBLE FOR THE BAD UTULIZATION OR INTERPRETATION OF THE MOD.

THIS MOD CONSISTS OF VARIOUS PARTS AND WE WILL USE framework-res.apk, SystemUI.apk and ScreenRecorder.apk

THE GUIDES ARE MADE IN SPANISH AND ENGLISH IN * .smali FOR A BETTER UNDERSTANDING AND WITH THE BEST POSSIBLE TRANSLATION. THEY ARE WITHIN THE .RAR

menu_extendido_reinicio_Oreo_Samsung.rar

WITH ScreenRecorder.apk WE WILL HAVE ACCESS TO THE ADJUSTMENTS OF THE APPLICATION IN THE APPLICATION DRAWER
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180409-025431.jpg
Views:	2494
Size:	113.1 KB
ID:	4470968   Click image for larger version

Name:	Screenshot_20180409-025442.jpg
Views:	2492
Size:	121.0 KB
ID:	4470969   Click image for larger version

Name:	Screenshot_20180409-025956.jpg
Views:	2462
Size:	96.5 KB
ID:	4470970  
Attached Files
File Type: rar menu_extendido_reinicio_Oreo_Samsung.rar - [Click for QR Code] (1.92 MB, 1078 views)
The Following 6 Users Say Thank You to a.raul For This Useful Post: [ View ] Gift a.raul Ad-Free
12th April 2018, 08:22 AM |#10  
corsicanu's Avatar
Senior Member
Flag București
Thanks Meter: 4,752
 
Donate to Me
More
Some OMC manipulation tips
Please take some time to read patiently everything. As always i`m not responsable for any damage that you do to your device.
Hello guys, i want to share some info with you. As recognised devs say from time to time, we just need to think outside the box, everything is there for us to read/learn. I`m gonna debate in this post 2 issues that i had and the workaround for them:

1. OMC code changing wants to wipe data..
But who will agree to that without a fair fight? I investigated the frameworks and found out that samsung sets country code to use from the mcc/mnc of the sim card inserted. Inside efs/imei should be a country code file named mps_code.dat, which it contains some code. Usually at the first boot framework is creating a new file in there named omcnw_code.dat containing sim card code.. After booting, it compares both files mps_code.dat and omcnw_code.dat and if the string inside doesn`t match, it prompts for a reboot to apply the country or reboot to factory reset to use new sim. Now, if you don`t have stock recovery to securely perform the wipe, you`ll probably end in bootloop. First time i ended in bootloop because of twrp, second time i mounted efs from twrp and manually changed the mps_code.dat according to sim country. Booted up and all just was ok, without the wipe that samsung added.
Therefore i tried to make a method inside SystemServer.smali (services.jar/smali/com/android/servers) that loads at boot, looks for the omcnw and if it`s found, it will delete mps_code.dat and rename omcnw_code.dat to mps_code.dat, so you won`t feel the change but also no more wipe prompt.
Under the # direct methods, anywhere after .method public constructor <init>()V i added this method:
Code:
.method private static deleteOmcnw()V
    .locals 5

    const-string/jumbo v2, "/efs/imei/omcnw_code.dat"

    const-string/jumbo v3, "/efs/imei/mps_code.dat"

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    invoke-virtual {v0, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    :goto_0
    return-void

    :cond_0
    const-string/jumbo v0, "omcnw"

    const-string/jumbo v1, "Some log lines, blah blah blah"

    invoke-static {v0, v1}, Lcom/android/server/utils/sysfwutil/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method
And ofc now we need an invoke for this method.
I added it in .method private run()V after loading libandroid_servers
Code:
    invoke-static {v0}, Landroid/os/Process;->setCanSelfBackground(Z)V

    invoke-static {}, Landroid/os/Looper;->prepareMainLooper()V

    const-string/jumbo v0, "android_servers"

    invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

    invoke-static {}, Lcom/android/server/SystemServer;->deleteOmcnw()V

    invoke-direct {p0}, Lcom/android/server/SystemServer;->performPendingShutdown()V

    invoke-direct {p0}, Lcom/android/server/SystemServer;->createSystemContext()V

    new-instance v0, Lcom/android/server/SystemServiceManager;
After this, no more prompt about wipe to use the sim.

2. OMC is a pain when it comes to add features..
I wanted to add csc features but either omc was encrypted (which has a solution now), or either way too many xmls to edit.. Investigated a bit SemCscFeature.smali (framework.jar/smali_classes3/samsung/android/feature) and gave me an idea that actually worked.
The point was to duplicate loadNetworkFeatureFile method, rename it, point it to certain location where we will add a single xml file containing all the features we want and add the invoke right after loadNetworkFeatureFile invoke. By doing this, doesn`t matter what csc is loaded, the system will load our custom xml too. Less time to add features, cleaner way to load, and it doesn`t even need to decrypt omc. And by using a duplicate of loadNetworkFeatureFile we can encrypt our xml too .
I`m gonna post my methods too, might be a bit sloppy code, i lost myselff inside of it, but as long as it does what it`s supposed, doesn`t matter anymore
Gonna hide the method as it is a long one
Code:
.method private loadHadesFeatureFile(ZLjava/lang/String;)V
    .locals 24

    const/16 v16, 0x0

    const/4 v12, 0x0

    const/4 v14, 0x0

    const/4 v7, -0x1

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v10, 0x0

    const-string/jumbo v10, "/system/etc" # custom xml path here

    :try_start_0
    new-instance v11, Ljava/io/File;

    new-instance v20, Ljava/lang/StringBuilder;

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

    move-object/from16 v0, v20

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

    move-result-object v20

    const-string/jumbo v21, "/hades.xml" # custom xml name here

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

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

    move-result-object v20

    move-object/from16 v0, v20

    invoke-direct {v11, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11}, Ljava/io/File;->exists()Z

    move-result v20

    if-eqz v20, :cond_0

    invoke-virtual {v11}, Ljava/io/File;->length()J

    move-result-wide v20

    const-wide/16 v22, 0x0

    cmp-long v20, v20, v22

    if-gtz v20, :cond_1

    :cond_0
    return-void

    :cond_1
    invoke-static {}, Lorg/xmlpull/v1/XmlPullParserFactory;->newInstance()Lorg/xmlpull/v1/XmlPullParserFactory;

    move-result-object v9

    const/16 v20, 0x1

    move/from16 v0, v20

    invoke-virtual {v9, v0}, Lorg/xmlpull/v1/XmlPullParserFactory;->setNamespaceAware(Z)V

    invoke-virtual {v9}, Lorg/xmlpull/v1/XmlPullParserFactory;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v16

    new-instance v13, Ljava/io/FileInputStream;

    invoke-direct {v13, v11}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_0 .. :try_end_0} :catch_b
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_d
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_f
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    move-object/from16 v0, p0

    invoke-direct {v0, v11}, Lcom/samsung/android/feature/SemCscFeature;->isXmlEncoded(Ljava/io/File;)Z

    move-result v20

    if-eqz v20, :cond_3

    invoke-virtual {v13}, Ljava/io/FileInputStream;->available()I

    move-result v18

    move/from16 v0, v18

    new-array v0, v0, [B

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    invoke-virtual {v13, v0}, Ljava/io/FileInputStream;->read([B)I

    invoke-virtual {v13}, Ljava/io/FileInputStream;->close()V

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-direct {v0, v1}, Lcom/samsung/android/feature/SemCscFeature;->decode([B)[B

    move-result-object v17

    new-instance v15, Ljava/io/ByteArrayInputStream;

    move-object/from16 v0, v17

    invoke-direct {v15, v0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
    :try_end_1
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/16 v20, 0x0

    :try_start_2
    move-object/from16 v0, v16

    move-object/from16 v1, v20

    invoke-interface {v0, v15, v1}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V
    :try_end_2
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_2 .. :try_end_2} :catch_c
    .catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_e
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_10
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    move-object v14, v15

    :goto_0
    :try_start_3
    invoke-interface/range {v16 .. v16}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v7

    :goto_1
    const/16 v20, 0x1

    move/from16 v0, v20

    if-eq v7, v0, :cond_c

    const/16 v20, 0x2

    move/from16 v0, v20

    if-ne v7, v0, :cond_6

    invoke-interface/range {v16 .. v16}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;
    :try_end_3
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_5
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-result-object v2

    :cond_2
    :goto_2
    :try_start_4
    invoke-interface/range {v16 .. v16}, Lorg/xmlpull/v1/XmlPullParser;->next()I
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_7
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_4 .. :try_end_4} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    move-result v7

    goto :goto_1

    :cond_3
    const/16 v20, 0x0

    :try_start_5
    move-object/from16 v0, v16

    move-object/from16 v1, v20

    invoke-interface {v0, v13, v1}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V
    :try_end_5
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_5 .. :try_end_5} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_5 .. :try_end_5} :catch_2
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v6

    move-object v12, v13

    :goto_3
    :try_start_6
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v6}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    if-eqz v12, :cond_4

    :try_start_7
    invoke-virtual {v12}, Ljava/io/FileInputStream;->close()V

    const/4 v12, 0x0

    :cond_4
    if-eqz v14, :cond_5

    invoke-virtual {v14}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_9

    :goto_4
    const/4 v14, 0x0

    :cond_5
    :goto_5
    return-void

    :cond_6
    const/16 v20, 0x4

    move/from16 v0, v20

    if-ne v7, v0, :cond_2

    :try_start_8
    invoke-interface/range {v16 .. v16}, Lorg/xmlpull/v1/XmlPullParser;->getText()Ljava/lang/String;

    move-result-object v3

    if-eqz v2, :cond_2

    if-eqz v3, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/samsung/android/feature/SemCscFeature;->mFeatureList:Ljava/util/Hashtable;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v2}, Ljava/util/Hashtable;->containsKey(Ljava/lang/Object;)Z
    :try_end_8
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_8 .. :try_end_8} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_8 .. :try_end_8} :catch_2
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    move-result v20

    if-eqz v20, :cond_8

    :try_start_9
    invoke-interface/range {v16 .. v16}, Lorg/xmlpull/v1/XmlPullParser;->next()I
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_1
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_9 .. :try_end_9} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_9 .. :try_end_9} :catch_2
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    move-result v7

    goto :goto_1

    :catch_1
    move-exception v5

    :try_start_a
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_a
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_a .. :try_end_a} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_a .. :try_end_a} :catch_2
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_5
    .catchall {:try_start_a .. :try_end_a} :catchall_0

    goto :goto_1

    :catch_2
    move-exception v4

    move-object v12, v13

    :goto_6
    :try_start_b
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v4}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_1

    if-eqz v12, :cond_7

    :try_start_c
    invoke-virtual {v12}, Ljava/io/FileInputStream;->close()V

    const/4 v12, 0x0

    :cond_7
    if-eqz v14, :cond_5

    invoke-virtual {v14}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_c
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_3

    goto :goto_4

    :catch_3
    move-exception v5

    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_5

    :cond_8
    :try_start_d
    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/samsung/android/feature/SemCscFeature;->mFeatureList:Ljava/util/Hashtable;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v2, v3}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_4
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_d .. :try_end_d} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_d .. :try_end_d} :catch_2
    .catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_5
    .catchall {:try_start_d .. :try_end_d} :catchall_0

    goto/16 :goto_2

    :catch_4
    move-exception v8

    :try_start_e
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v8}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_e
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_e .. :try_end_e} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_e .. :try_end_e} :catch_2
    .catch Ljava/io/IOException; {:try_start_e .. :try_end_e} :catch_5
    .catchall {:try_start_e .. :try_end_e} :catchall_0

    goto/16 :goto_2

    :catch_5
    move-exception v5

    move-object v12, v13

    :goto_7
    :try_start_f
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_f
    .catchall {:try_start_f .. :try_end_f} :catchall_1

    if-eqz v12, :cond_9

    :try_start_10
    invoke-virtual {v12}, Ljava/io/FileInputStream;->close()V

    const/4 v12, 0x0

    :cond_9
    if-eqz v14, :cond_5

    invoke-virtual {v14}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_10
    .catch Ljava/io/IOException; {:try_start_10 .. :try_end_10} :catch_6

    goto/16 :goto_4

    :catch_6
    move-exception v5

    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_5

    :catch_7
    move-exception v5

    :try_start_11
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_11
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_11 .. :try_end_11} :catch_0
    .catch Ljava/io/FileNotFoundException; {:try_start_11 .. :try_end_11} :catch_2
    .catch Ljava/io/IOException; {:try_start_11 .. :try_end_11} :catch_5
    .catchall {:try_start_11 .. :try_end_11} :catchall_0

    goto/16 :goto_1

    :catchall_0
    move-exception v20

    move-object v12, v13

    :goto_8
    if-eqz v12, :cond_a

    :try_start_12
    invoke-virtual {v12}, Ljava/io/FileInputStream;->close()V

    const/4 v12, 0x0

    :cond_a
    if-eqz v14, :cond_b

    invoke-virtual {v14}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_12
    .catch Ljava/io/IOException; {:try_start_12 .. :try_end_12} :catch_a

    const/4 v14, 0x0

    :cond_b
    :goto_9
    throw v20

    :cond_c
    if-eqz v13, :cond_d

    :try_start_13
    invoke-virtual {v13}, Ljava/io/FileInputStream;->close()V
    :try_end_13
    .catch Ljava/io/IOException; {:try_start_13 .. :try_end_13} :catch_11

    const/4 v12, 0x0

    :goto_a
    if-eqz v14, :cond_5

    :try_start_14
    invoke-virtual {v14}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_14
    .catch Ljava/io/IOException; {:try_start_14 .. :try_end_14} :catch_8

    goto/16 :goto_4

    :catch_8
    move-exception v5

    :goto_b
    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_5

    :catch_9
    move-exception v5

    const-string/jumbo v20, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_5

    :catch_a
    move-exception v5

    const-string/jumbo v21, "SemCscFeature"

    invoke-virtual {v5}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v22

    invoke-static/range {v21 .. v22}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_9

    :catchall_1
    move-exception v20

    goto :goto_8

    :catchall_2
    move-exception v20

    move-object v14, v15

    move-object v12, v13

    goto :goto_8

    :catch_b
    move-exception v6

    goto/16 :goto_3

    :catch_c
    move-exception v6

    move-object v14, v15

    move-object v12, v13

    goto/16 :goto_3

    :catch_d
    move-exception v4

    goto/16 :goto_6

    :catch_e
    move-exception v4

    move-object v14, v15

    move-object v12, v13

    goto/16 :goto_6

    :catch_f
    move-exception v5

    goto/16 :goto_7

    :catch_10
    move-exception v5

    move-object v14, v15

    move-object v12, v13

    goto/16 :goto_7

    :catch_11
    move-exception v5

    move-object v12, v13

    goto :goto_b

    :cond_d
    move-object v12, v13

    goto :goto_a
.end method

And the invoke:
Code:
...

    invoke-direct {p0, v2, v4}, Lcom/samsung/android/feature/SemCscFeature;->loadFeatureFile(ZLjava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    invoke-direct {p0, v2, v3}, Lcom/samsung/android/feature/SemCscFeature;->loadNetworkFeatureFile(ZLjava/lang/String;)V

    invoke-direct {p0, v2, v3}, Lcom/samsung/android/feature/SemCscFeature;->loadHadesFeatureFile(ZLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

...
The code can be simplified, i didn`t bothered to do that, feel free to manipulate it in which way you want.
Hope these tips will help someone in the future of custom roms with more features.
I will attach to this thread my modified smalis from one of my roms, i tried these methods on 7.1.1, but the idea is the same for oreo too, code might be slighlty different.
All the best
Attached Files
File Type: zip smalis.zip - [Click for QR Code] (36.8 KB, 274 views)
The Following 10 Users Say Thank You to corsicanu For This Useful Post: [ View ] Gift corsicanu Ad-Free
14th April 2018, 07:01 AM |#11  
yash92duster's Avatar
OP Recognized Contributor
Flag Chennai
Thanks Meter: 7,984
 
Donate to Me
More
CSC Tweaks:


Code:
<?xml  version="1.0" encoding="UTF-8" ?>
<SamsungMobileFeature>
  <Version>ED00006</Version>
  <Country>INDIA</Country>
  <CountryISO>IN</CountryISO>
  <SalesCode>INS</SalesCode>
  <FeatureSet>

	<!-- Common -->
    <CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
    <CscFeature_Dictionary_PopUpData>FALSE</CscFeature_Dictionary_PopUpData>	
	<CscFeature_Common_AllowExternalApkUsage>TRUE</CscFeature_Common_AllowExternalApkUsage>	
	<CscFeature_SmartManager_ConfigDashboard>dual_dashboard</CscFeature_SmartManager_ConfigDashboard>
	<CscFeature_SmartManager_ConfigSubFeatures>roguepopup|autoclean|applock|autorestart|networkpowersaving|storageclean|devicesecurity|applicationpermission|autolaunch|backgroundapp|notificationmanager|fake_base_station|appclean</CscFeature_SmartManager_ConfigSubFeatures>
	<CscFeature_Settings_FOTA>FALSE</CscFeature_Settings_FOTA>
	<CscFeature_Settings_GOTA>FALSE</CscFeature_Settings_GOTA>
	<CscFeature_Common_ConfigSvcProviderForUnknownNumber>whitepages,whitepages,whitepages</CscFeature_Common_ConfigSvcProviderForUnknownNumber>
	<CscFeature_SmartManager_DisableAntiMalware>TRUE</CscFeature_SmartManager_DisableAntiMalware>
    <CscFeature_SystemUI_SupportRecentAppProtection>TRUE</CscFeature_SystemUI_SupportRecentAppProtection>
    <CscFeature_Wifi_SupportAdvancedMenu>TRUE</CscFeature_Wifi_SupportAdvancedMenu>
	<CscFeature_Wifi_SupportMobileApOnTrigger>TRUE</CscFeature_Wifi_SupportMobileApOnTrigger>
    <CscFeature_Setting_IncludeApn4SwUpdate>FALSE</CscFeature_Setting_IncludeApn4SwUpdate>
	<CscFeature_Setting_DisableMenuSoftwareUpdate>TRUE</CscFeature_Setting_DisableMenuSoftwareUpdate>
	<CscFeature_Settings_Software_Update_Settings>FALSE</CscFeature_Settings_Software_Update_Settings>
	<CscFeature_Contact_EnableDynCallerIdMatchingDigitWithAutoSim>TRUE</CscFeature_Contact_EnableDynCallerIdMatchingDigitWithAutoSim>
	<CscFeature_Setting_CustNetworkSelMenu4>LTEONLY</CscFeature_Setting_CustNetworkSelMenu4>
	<CscFeature_Setting_EnableMenuBlockCallMsg>TRUE</CscFeature_Setting_EnableMenuBlockCallMsg>
	<CscFeature_MediaProvider_HideVoiceFilesInMusic>true</CscFeature_MediaProvider_HideVoiceFilesInMusic>
	<CscFeature_Common_ConfigYuva>powerplanning|reserve|zeroforward|mileage|dashboard|sprotect|MemorySaver|geolike</CscFeature_Common_ConfigYuva>
	<CscFeature_Setting_SupportDataUsageReminder>TRUE</CscFeature_Setting_SupportDataUsageReminder>
	<CscFeature_Setting_SupportRealTimeNetworkSpeed>TRUE</CscFeature_Setting_SupportRealTimeNetworkSpeed>
	<CscFeature_SystemUI_ConfigOverrideDataIcon>LTE</CscFeature_SystemUI_ConfigOverrideDataIcon>
	<CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>TRUE</CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>
	<CscFeature_SystemUI_ConfigOpBrandingForQuickSettingLabel>CHC</CscFeature_SystemUI_ConfigOpBrandingForQuickSettingLabel>
	<CscFeature_SystemUI_ConfigOpBrandingQuickSettingIcon>CHC</CscFeature_SystemUI_ConfigOpBrandingQuickSettingIcon>
	<CscFeature_SystemUI_ConfigQuickSettingPopup>CHC</CscFeature_SystemUI_ConfigQuickSettingPopup>
    <CscFeature_Wifi_SupportSecureWifi>TRUE</CscFeature_Wifi_SupportSecureWifi>
    <CscFeature_SystemUI_ConfigDefQuickSettingItem>Wifi,SilentMode,Bluetooth,RotationLock,Flashlight,AirplaneMode,PowerSaving,MobileData,WifiCalling,Performance,BlueLightFilter,WifiHotspot,PersonalMode,SecureFolder,Location,Nfc,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</CscFeature_SystemUI_ConfigDefQuickSettingItem>
	<CscFeature_Launcher_AddAutoRotationIcon>TRUE</CscFeature_Launcher_AddAutoRotationIcon>

	<!-- Message -->
	<CscFeature_Message_SmsInputMode>automatic</CscFeature_Message_SmsInputMode>
	<CscFeature_Message_DisableSmsToMmsConversionByTextInput>FALSE</CscFeature_Message_DisableSmsToMmsConversionByTextInput>
	<CscFeature_Message_SmsMaxByte>999</CscFeature_Message_SmsMaxByte>
	<CscFeature_Message_RecipientLimit>999</CscFeature_Message_RecipientLimit>
	<CscFeature_Message_SmsToMmsTextThreshold>999</CscFeature_Message_SmsToMmsTextThreshold>
	<CscFeature_Message_MaxSlideCount>999</CscFeature_Message_MaxSlideCount>
	<CscFeature_Message_EnableVCard>TRUE</CscFeature_Message_EnableVCard>
	<CscFeature_Message_EnableSaveRestoreSDCard>TRUE</CscFeature_Message_EnableSaveRestoreSDCard>
	<CscFeature_Message_EnableFontSize>TRUE</CscFeature_Message_EnableFontSize>
	<CscFeature_Message_EnableBlackList>TRUE</CscFeature_Message_EnableBlackList>
	<CscFeature_Message_EnableSaveVMessage>TRUE</CscFeature_Message_EnableSaveVMessage>
	<CscFeature_Common_EnableAirMessage>TRUE</CscFeature_Common_EnableAirMessage>
	<CscFeature_Message_BlockSendMmsWithOnlySubject>TRUE</CscFeature_Message_BlockSendMmsWithOnlySubject>
	<CscFeature_Message_SupportAutoDeleteSpam>TRUE</CscFeature_Message_SupportAutoDeleteSpam>

	<!-- SIP -->
	<CscFeature_Sip_UseSymbolInCMKey>TRUE</CscFeature_Sip_UseSymbolInCMKey>
	<CscFeature_SIP_EnablePreferredEnglishTypeAsUS>TRUE</CscFeature_SIP_EnablePreferredEnglishTypeAsUS>
	<CscFeature_Sip_EnableSymbolInSecondary>en_GB;en_US;af;af_NA;af_ZA;agq;agq_CM;ak;ak_GH;am;am_ET;ar;ar_001;ar_AE;ar_BH;ar_DJ;ar_DZ;ar_EG;ar_ER;ar_IL;ar_IQ;ar_JO;ar_KM;ar_KW;ar_LB;ar_LY;ar_MA;ar_MR;ar_OM;ar_PS;ar_QA;ar_SA;ar_SD;ar_SO;ar_SY;ar_TD;ar_TN;ar_YE;as;as_IN;asa;asa_TZ;az;az_AZ;az_CYRL;az_CYRL_AZ;az_LATN;az_LATN_AZ;bas;bas_CM;be;be_BY;bem;bem_ZM;bez;bez_TZ;bg;bg_BG;bm;bm_ML;bn;bn_BD;bn_IN;bo;bo_CN;bo_IN;br;br_FR;brx;brx_IN;bs;bs_CYRL;bs_CYRL_BA;bs_LATN;bs_LATN_BA;ca;ca_AD;ca_ES;cgg;cgg_UG;chr;chr_US;cs;cs_CZ;cy;cy_GB;da;da_DK;dav;dav_KE;de;de_AT;de_BE;de_CH;de_DE;de_LI;de_LU;dje;dje_NE;dua;dua_CM;dyo;dyo_SN;dz;dz_BT;ebu;ebu_KE;ee;ee_GH;ee_TG;el;el_CY;el_GR;en;en_150;en_AG;en_AS;en_AU;en_BB;en_BE;en_BM;en_BS;en_BW;en_BZ;en_CA;en_CM;en_DM;en_FJ;en_FM;en_GB;en_GD;en_GG;en_GH;en_GI;en_GM;en_GU;en_GY;en_HK;en_IE;en_IM;en_IN;en_JE;en_JM;en_KE;en_KI;en_KN;en_KY;en_LC;en_LR;en_LS;en_MG;en_MH;en_MP;en_MT;en_MU;en_MW;en_NA;en_NG;en_NZ;en_PG;en_PH;en_PK;en_PR;en_PW;en_SB;en_SC;en_SG;en_SL;en_SS;en_SZ;en_TC;en_TO;en_TT;en_TZ;en_UG;en_UM;en_US;en_US_POSIX;en_VC;en_VG;en_VI;en_VU;en_WS;en_ZA;en_ZM;en_ZW;eo;es;es_419;es_AR;es_BO;es_CL;es_CO;es_CR;es_CU;es_DO;es_EA;es_EC;es_ES;es_GQ;es_GT;es_HN;es_IC;es_MX;es_NI;es_PA;es_PE;es_PH;es_PR;es_PY;es_SV;es_US;es_UY;es_VE;et;et_EE;eu;eu_ES;ewo;ewo_CM;fa;fa_AF;fa_FA;fa_IR;ff;ff_SN;fi;fi_FI;fil;fil_PH;fo;fo_FO;fr;fr_BE;fr_BF;fr_BI;fr_BJ;fr_BL;fr_CA;fr_CD;fr_CF;fr_CG;fr_CH;fr_CI;fr_CM;fr_DJ;fr_DZ;fr_FR;fr_GA;fr_GF;fr_GN;fr_GP;fr_GQ;fr_HT;fr_KM;fr_LU;fr_MA;fr_MC;fr_MF;fr_MG;fr_ML;fr_MQ;fr_MR;fr_MU;fr_NC;fr_NE;fr_PF;fr_RE;fr_RW;fr_SC;fr_SN;fr_SY;fr_TD;fr_TG;fr_TN;fr_VU;fr_YT;ga;ga_IE;gl;gl_ES;gsw;gsw_CH;gu;gu_IN;guz;guz_KE;gv;gv_GB;ha;ha_LATN;ha_LATN_GH;ha_LATN_NE;ha_LATN_NG;haw;haw_US;iw;iw_IL;hi;hi_IN;hr;hr_BA;hr_HR;hu;hu_HU;hy;hy_AM;in;in_ID;in;in_ID;ig;ig_NG;ii;ii_CN;is;is_IS;it;it_CH;it_IT;it_SM;iw_IL;ja;ja_JP;jgo;jgo_CM;jmc;jmc_TZ;ka;ka_GE;kab;kab_DZ;kam;kam_KE;kde;kde_TZ;kea;kea_CV;khq;khq_ML;ki;ki_KE;kk;kk_CYRL;kk_CYRL_KZ;kk_KZ;kl;kl_GL;kln;kln_KE;km;km_KH;kn;kn_IN;ko;ko_KP;ko_KR;kok;kok_IN;ks;ks_ARAB;ks_ARAB_IN;ksb;ksb_TZ;ksf;ksf_CM;kw;kw_GB;lag;lag_TZ;lg;lg_UG;ln;ln_AO;ln_CD;ln_CF;ln_CG;lo;lo_LA;lt;lt_LT;lu;lu_CD;luo;luo_KE;luy;luy_KE;lv;lv_LV;mas;mas_KE;mas_TZ;mer;mer_KE;mfe;mfe_MU;mg;mg_MG;mgh;mgh_MZ;mgo;mgo_CM;mk;mk_MK;ml;ml_IN;mn;mn_CYRL;mn_CYRL_MN;mr;mr_IN;ms;ms_LATN;ms_LATN_BN;ms_LATN_MY;ms_LATN_SG;ms_MY;mt;mt_MT;mua;mua_CM;my;my_MM;naq;naq_NA;nb;nb_NO;nd;nd_ZW;ne;ne_IN;ne_NP;nl;nl_AW;nl_BE;nl_CW;nl_NL;nl_SR;nl_SX;nmg;nmg_CM;nn;nn_NO;nus;nus_SD;nyn;nyn_UG;om;om_ET;om_KE;or;or_IN;pa;pa_ARAB;pa_ARAB_PK;pa_GURU;pa_GURU_IN;pa_IN;pl;pl_PL;ps;ps_AF;pt;pt_AO;pt_BR;pt_CV;pt_GW;pt_MO;pt_MZ;pt_PT;pt_ST;pt_TL;rm;rm_CH;rn;rn_BI;ro;ro_MD;ro_RO;rof;rof_TZ;ru;ru_BY;ru_KG;ru_KZ;ru_MD;ru_RU;ru_UA;rw;rw_RW;rwk;rwk_TZ;saq;saq_KE;sbp;sbp_TZ;seh;seh_MZ;ses;ses_ML;sg;sg_CF;shi;shi_LATN;shi_LATN_MA;shi_TFNG;shi_TFNG_MA;si;si_IN;si_LK;sk;sk_SK;sl;sl_SI;sn;sn_ZW;so;so_DJ;so_ET;so_KE;so_SO;sq;sq_AL;sq_MK;sr;sr_CYRL;sr_CYRL_BA;sr_CYRL_ME;sr_CYRL_RS;sr_LATN;sr_LATN_BA;sr_LATN_ME;sr_LATN_RS;sr_RS;sv;sv_AX;sv_FI;sv_SE;sw;sw_KE;sw_TZ;sw_UG;swc;swc_CD;ta;ta_IN;ta_LK;ta_MY;ta_SG;te;te_IN;teo;teo_KE;teo_UG;th;th_TH;ti;ti_ER;ti_ET;tl;tl_PH;to;to_TO;tr;tr_CY;tr_TR;twq;twq_NE;tzm;tzm_LATN;tzm_LATN_MA;uk;uk_UA;ur;ur_IN;ur_PK;uz;uz_ARAB;uz_ARAB_AF;uz_CYRL;uz_CYRL_UZ;uz_LATN;uz_LATN_UZ;uz_UZ;vai;vai_LATN;vai_LATN_LR;vai_VAII;vai_VAII_LR;vi;vi_VN;vun;vun_TZ;xog;xog_UG;yav;yav_CM;yo;yo_NG;zh;zh_CN;zh_HANS;zh_HANS_CN;zh_HANS_HK;zh_HANS_MO;zh_HANS_SG;zh_HANT;zh_HANT_HK;zh_HANT_MO;zh_HANT_TW;zh_HK;zh_SG;zh_TW;zu;zu_ZA;</CscFeature_Sip_EnableSymbolInSecondary>
	
	<!-- Dialer -->
	<CscFeature_Setting_SupportWifiCall>TRUE</CscFeature_Setting_SupportWifiCall>
	<CscFeature_Contact_ExtendSpeedDialTo100>TRUE</CscFeature_Contact_ExtendSpeedDialTo100>
	<CscFeature_Contact_EnableCallButtonInList>TRUE</CscFeature_Contact_EnableCallButtonInList>
	<CscFeature_Contact_SupportSIMContacts>TRUE</CscFeature_Contact_SupportSIMContacts>
	
	<!-- WEB -->
	<CscFeature_Web_AddOptionToTerminate>TRUE</CscFeature_Web_AddOptionToTerminate>
	
	<!-- Camera -->
	<CscFeature_Camera_EnableCameraDuringCall>TRUE</CscFeature_Camera_EnableCameraDuringCall>
	<CscFeature_Camera_EnableSmsNotiPopup>TRUE</CscFeature_Camera_EnableSmsNotiPopup>
	<CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
	<CscFeature_Camera_CamcorderDoNotPauseMusic>TRUE</CscFeature_Camera_CamcorderDoNotPauseMusic>
	<CscFeature_Camera_DefaultQuality>superfine</CscFeature_Camera_DefaultQuality>
	<CscFeature_Camcorder_DefaultQuality>superfine</CscFeature_Camcorder_DefaultQuality>
	<CscFeature_Camera_CameraFlicker>60hz</CscFeature_Camera_CameraFlicker>

  </FeatureSet>
</SamsungMobileFeature>
The Following 7 Users Say Thank You to yash92duster For This Useful Post: [ View ] Gift yash92duster Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes