yashsingh1/xdaforums huggingface dataset:
[Android General] yash92duster:
Guide To Fix SafetyNet CTS & Basic Integrity Failure in Magisk Root

Some of you might faced "CTS or BasicIntegrity" Failure in Magisk Root

Fix is Below:

In System/Build.prop:

Add the below line

#SafetyNet Fix

ro.knox.enhance.zygote.aslr=1

Note: If Set To 0 - CTS and BasicIntegrity Fails

Tested on Galaxy:

S8 S8+ & Note 8:

/System/build.prop

(Default S8 S8+ N8 Don't have ro.knox.enhance.zygote.aslr Code, After Adding the Code Both Start To Pass in Magisk )

S9 S9+:

/Vendor/build.prop

S9 -->> Set to 0

S9+ -->> Set to 1

S7 S7E:

This Fix is Not Needed

( /System/build.prop Don't have ro.knox.enhance.zygote.aslr Code, If you Add the Above line Both will Fail to Pass )

Note 9:

This Fix is Not Needed

( /Vendor/build.prop & /System/build.prop Don't have ro.knox.enhance.zygote.aslr Code )

Guide by [MENTION=6377149]yash92duster[/MENTION]​
[Android General] Albe96:
Wow.Nice find out!
[Android General] yash92duster:
Guide To Bypass Google Pay App - Magisk Hide

In Magisk Hide Menu,

Hide The Following Apps:

Google Pay

com.google.android.apps.nbu.paisa.user

Google Play Store

com.android.vending

Google Services Framework

com.google.android.gsf

Dailer Storage

com.android.providers.telephony

Samsung Phone

com.android.phone

Now Google Pay App Will work fine

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

Don't quote full post - i keep editing 1000x times

Add headline and reply always:cool:
[Android General] zain.ahmad:
Hi when i do it and follow properly and push framework to phone it goes into bootloop same thing for fresh install

thanks
[Android General] ragassagar:
Doesn't work for me

Didnt work for me
[Android General] zain.ahmad:
it works for me even tho i dont do this hide :)
[Android General] yaibakt:
can we have a simple flashzip for this? Thank you.
[Android General] yash92duster:
Read post 1

It's for you specially
[Android General] juanpablo123:
Después de flashear con Twrp y la otra Rom puedo poner de nuevo la fecha correcta y reiniciar o pasa algo???

mod edit -translation added as per Forum Rules

-=-=-

After flashing with Twrp and the other Rom I can put back the correct date and restart or something happens ???

-=-=- [MENTION=8475903]juanpablo123[/MENTION]
[Android General] yash92duster:
""After flashing with Twrp and the other Rom can I put the correct date again and restart or something happens? ""

This is not rom thread
[Android General] wlryss:
Grouxho

Many thanks for the instruction..

This type of a blur is dominating in system and is superimposed on earlier made modifications of a background of a panel of notification (if they were made) - for example the User background in the Panel of Notification - the Image, the Gradient, Solid color or Animation of Matrix.

Therefore for an opportunity to disconnect this Blur and to make possible application of earlier made modifications is represented logical to make this type of a blur with the switch - as according to the original guide even if the intensity of a blur Amount in 0, then itself Blur works.

For a start we add GearUtils to SystemUI (if earlier it wasn't made).

In smali/com/android/systemui/statusbar/phone/StatusBarWindowManager.smali

in .method private apply(Lcom/android/systemui/statusbar/phone/StatusBarWindowManager$State;)V

we increase quantity of locales from .locals 4 to .locals 6

Further we add a part of a code from your guide so (the added lines - with +):

invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;->applyHasTopUi(Lcom/android/systemui/statusbar/phone/StatusBarWindowManager$State;)V

+const-string/jumbo v4, "b_ga_panel_blur_enable"

+const v5, 0x0

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

+move-result v4

+if-eqz v4, :cond_next

+invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;->grx_applyQSColoringBlurEffect()V

+:cond_next

const-class v1, Lcom/android/systemui/coloring/QSColoringServiceManager;

We add the next lines to Rom Control (as an example):

<PreferenceCategory android:title="Nativ Blur" />
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Nativ Blur" android:key="b_ga_panel_blur_enable" android:defaultValue="false" android:summaryOn="Enabled" android:summaryOff="Disabled" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Nativ Blur Amount" android:key="b_ga_panel_blur" android:dependency="b_ga_panel_blur_enable" android:defaultValue="0" app:minValue="0" app:maxValue="35" app:unitsValue="dp" />

I apologize for my English

Screenshots for RC in Russian
[Android General] Grouxho:
Upps, it seems i annoyed you, omg, do not get annoyed mate,
[Android General] wlryss:
No, no ..

I only appreciate your knowledge and I try to follow your advice
[Android General] wlryss:
I think that you found the best solution of this question. Thanks a lot. I have very difficult my own firmware with many modifications and I generally don't use GoodLock. But I understand that the method shall suit those users who use it.
[Android General] whitelightning76:
[MENTION=4985020]Grouxho[/MENTION]

I hope you can help me! I have been trying out your power button mod from espdroids.

First let me thank you for sharing!

Unfortunately i am unable to get it working , SystemUI is crashing. Is that section still valid in the guide ? it is very clear and i did exactly what you wrote there. (even the winrar part).

could you perhaps take a brief look at it, to see what could be wrong ?
[Android General] yaibakt:
thanks. your reply is so useful.
[Android General] ShaDisNX255:
Just FYI, the Gear Utils file needs to be placed on SystemUI/smali/com/android/wubydax/ or else you will get a crash :P​
[Android General] AbrahamGC:
Yes a mod that require GearUtils, need the smalis in their place... :confused:
[Android General] ShaDisNX255:
lol yeah, I'm saying this because I just copied and pasted and didn't even notice until SystemUI started Force Closing :silly:

The guide doesn't mention it so I didn't bother to read the code xD

Next time I'll pay more attention :P
[Android General] Dovanchuc7521:
Hide the power menu on the lock screen with the option in RC

Hello!!

Today I want to present a simple way to better protect your phone. That is, we can hide the power menu when locking the screen. This can be known to many people. But I still write here because maybe someone will need it. Lets start!1

GearUtils is required

Decompile SystemUI

Goto smali/com/android/systemui/globalactions/GlobalActionsDialog$PowerAction.smali

We search

.method public showDuringKeyguard()Z

and replace this method with:

.method public showDuringKeyguard()Z
.locals 2

const-string v0, "prime_rebootmenu_lock"

const/4 v1, 0x0

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

move-result v1

return v1
.end method

Do the same with the smali for the restart button, recovery button, etc.

And "prime_rebootmenu_lock" is key for RomControl.

Thanks!
[Android General] C.B.D.M:
This guide doesn't work on Samsung Galaxy Note 5 oreo :(

SOLVED... :D
[Android General] yash92duster:
Good

It's in advance settings since nougat time:cool:
[Android General] yash92duster:
Guide To Add Single CSC & Remove OMC_ODM

Hello Users,

As Some Requested - How To Add Single CSC To ROM

Here it is,

Steps:

#1

First Do This,

* Download Template Zip

* Download Your Country Stock Firmware

* Extract the CSC Folder Using Any Kitchen Tools

* Now Look Inside The Template Zip And Check For What Files/Folders I've Added Exactly

* Get The Same Files From Stock Firmware From /System/CSC/

* Get HWRDB and SIPDB Folders - Get These From Stock /System/CSC Folder or /System/

(These 2 Folders Needed For Samsung Keyboard Languages To Work)

Now Add All The New Files To The Template Zip

#2

Now Do This,

* Flash Your Custom ROM ( Don't Reboot Device)

* Flash Your New Single CSC Zip

( Zip Will Remove Old CSC/OMC/ODM Folders If Found Inside /system/ )

Enjoy :)​
[Android General] Er. Aditya:
thanks everyone for making our life's easier
[Android General] Albe96:
*Making our works easier
[Android General] Voytec83:
Hallo Sir,

Looking into updater script I have some doubts if this will work 100% ? In OMC folder for Note 8, there is also HWRDB folder where languages for Spen are kept. Pls correct me if I am wrong and my apologies in such case.
[Android General] yash92duster:
fixed ?
[Android General] rinaldi14:
Thanks Dev for this guide

I already following the 3 methods as you explained above..but I got black screen..

Please corrected if I'm doing something wrong..from my attached files..
[Android General] SkylineDriver:
Not sure if this is the best place to ask, but since we are modifying the same apk's (framework, secsettings, etc.) it never hurts to ask.

Does anyone have any ideas on how to reinstate the ORIGINAL NightClock feature that was taken away in Oreo? By original I refer to the cocktailbarservice version and NOT the useless AOD edge clock that Oreo brought.

By editing floating_feature.xml the night clock settings returned but the actual clock does not turn on at the scheduled time. I've looked through all the apk's and the codes are there, but ultimately I am missing something. Any direction is greatly appreciated!
[Android General] AbrahamGC:
I need to edit the guide, the right is android:id="@+id/..." and not "+@id" ;)
[Android General] studywes:
Hello,

I need help, I got my service.jar file that I renamed in service.zip and uncompressed but I can not find any file /com/android/server/StorageManagerService.smali

But I have three folders with names that have nothing to do! Can you help me please?
[Android General] Eleo:
You should not uncompress jar file by renaming it to zip. You should baksmali or decompile it. Please head to OP to find "general tools" part.
[Android General] BlackMesa123:
Read again the guide... :o
[Android General] studywes:
Ok thanks i understand! The problem I can not find a tutorial to decompile my service.jar I tried baskmali and smali but I can not launch them! some soft like android multitool tell to extract the dex file contained in the service.jar but I do not have any dex file! Sorry if my question seems stupid but I have never decompiled jar! There is a beginning to everything :)

Can you help me!?
[Android General] zain.ahmad:
any1?
[Android General] rinaldi14:
Anw..,could you check my attachment before

Is it correct that I add it as directed...thanks
[Android General] AbrahamGC:
As I said, replace +@id with @+id, the rest is fine.
[Android General] rinaldi14:
Anw could you also guide me how to put days on center clock.. like yours..thanks
[Android General] msubhani:
Hi this is very good thread for learners can anybody share guide for how to add virtual buttons with or without rom control.
[Android General] Eleo:
:confused:

Please check "general tools" and separate mods (which you are interested) in OP.

Some guides are same as in previous android versions which you can find here:

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

And here:

https://xdaforums.com/galaxy-s6/sam...ified-development/devs-helpingd-devs-t3321679
[Android General] pink01:
helpme. bug recom sytemui

[*] Recompiling SystemUI

I: Using Apktool 2.3.4_0503

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

W: ERROR: 9-patch image C:\BatchApkTool\_INPUT_APK\SystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png malformed.

W: No marked region found along edge.

W: Found along left edge.

W: ERROR: Failure processing PNG image C:\BatchApkTool\_INPUT_APK\SystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ACER\AppData\Local\Temp\BAT_temp\brut_util_Jar_4726218486706500169.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 20171030, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\ACER\AppData\Local\Temp\BAT_temp\APKTOOL6667805413942517725.tmp, -0, arsc, -0, webp, -0, arsc, -I, bin\framework\1.apk, -S, C:\BatchApkTool\_INPUT_APK\SystemUI\res, -M, C:\BatchApkTool\_INPUT_APK\SystemUI\AndroidManifest.xml]

[*] ---> Error recompiling "SystemUI"
[Android General] kin201303:
drawable-xxxhdpi

del pip_dismiss_scrim.9.png

change pip_dismiss_scrim.png

del the stock SystemUI pip_dismiss_scrim.9.png
[Android General] pink01:
thanks. and bug framework. help me

[*] Installing framework framework-res.apk

I: Framework installed to: bin\framework\1.apk

[*] Recompiling framework-res

I: Using Apktool 2.3.4_0503

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

W: C:\BatchApkTool\_INPUT_APK\framework-res\res\values\styles.xml:2453: error: Resource entry Theme.DeviceDefault already has bag item dropdownListPreferredItemHeight.

W: C:\BatchApkTool\_INPUT_APK\framework-res\res\values\styles.xml:2452: Originally defined here.

W:

brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ACER\AppData\Local\Temp\BAT_temp\brut_util_Jar_3279837757993029886.tmp, p, --forced-package-id, 1, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\ACER\AppData\Local\Temp\BAT_temp\APKTOOL6350704569881935644.tmp, -x, -0, arsc, -0, arsc, -S, C:\BatchApkTool\_INPUT_APK\framework-res\res, -M, C:\BatchApkTool\_INPUT_APK\framework-res\AndroidManifest.xml]

[*] ---> Error recompiling "framework-res"

DONE with 1 ERRORS.
[Android General] rajkabul:
How to permanently disable annoying popup windows (rooted S8+)

"Allow access to phone Data" as seen in attached thumbnail.
[Android General] thereassaad:
This it's in mobiledatatile.smali or in cellular it's in 1 of this 2 smali but my question is how u got this pop up alert ? I tried to get it just for doing that switch rc for disable this but here on my s9+ no go to get it this alert ..
[Android General] yash92duster:
Edit mtp application.apk

I don't know how exactly check some threads if any guide available
[Android General] kin201303:
framework-res\styles

del the same line
[Android General] rajkabul:
Thanks Bru
[Android General] a.raul:
Out of curiosity, have you tried to go through post 1 and read something that is there exposed? and especially in the Uncategorized tab:
[Android General] Grouxho:
How to disable mtp usb pop-up

1.- Decompile Mtpapplication.apk

2.- Do changes marked with ### in the attached file.

(compare your smali with this one or replace yours with the attached one - NOTE: this is taken from s7e, so have a look before replacing, anyway, the mod takes 3 mins).
[Android General] pinktbh:
i mod night mode but not working. and no show buton on statusbar
[Android General] djb77:
Works on S9, just did this mod and works perfect :)
[Android General] Douglas Gomes:
I tried to put my logo in my oreo ROM 8.1.0 and the settings do not open anymore. Any idea?
[Android General] djb77:
Are you preparing your SecSettings.apk file properly before modding?

https://xdaforums.com/showpost.php?p=76259533&postcount=40
[Android General] rajkabul:
Request to Devs:

Shall be grateful if any Dev, provide us a mod or moded AOD so that we can see the urgent message/notification on AOD screen itself instead of opening phone and than hide it as can be seen in thumbnail.

[Note: There are some apps on play store for it, but would like to have this mod on original AOD]
[Android General] PitOnthel:
hello, does anyone have a guide to add reboot recovery on the power menu? :highfive:
[Android General] yash92duster:
Read post 1 :cool:
[Android General] hanablestsa:
Noob alert

i have a s7 edge that i recently rooted in a G935V. but the only problem is that im in toronto and the freedom mobile company only uses LTE on RF Band 66. which is not avail on the 93xV platform as far as i can see. so i need a G93xU platform. at least thats what my couple days of research and trial and errors have got me to. Long story short will i be able to use this 8.0 with mods while being capable of RF band 66 ?? sry if its a stupid question in advance. just getting a feel for this stuff in the last few months. ALSO the phone is original verzion carrier. so i know that snapdragon makes it a little more tricky.

:good::good: Cheers,
[Android General] ShaDisNX255:
Hmmmmm, so I think my Samsung doesn't have it by default. Are there any libraries or smalis this needs to work?

I am pretty sure Samsung eliminated it from this device

(J600G) (2018)
[Android General] Cheemaa:
When I try to copy files from one apk to another with 7zip. It says "not implemented".
[Android General] Er. Aditya:
try winrar or reinstall 7 zip
[Android General] Cheemaa:
Tried with winter and getting errors. BTW I have tried wit multiple apks..... What is the problem. I will try with 7zip after reinstall but I doubt it will work ...
[Android General] djb77:
Try using WinRAR instead
[Android General] Cheemaa:
i have a new error listed above
[Android General] Er. Aditya:
1. Ubuntu and tma ? Afaik tma is just for windows

2. You need to have samsung framrworks installed
[Android General] Cheemaa:
Ubuntu(apktool) and tma. I put framework folder. Priv app folder and build prop and decompiled, replace the 9.png file and tried to recompile. But I am not sure how to install the framework. Can I install the framework iwth a folder and without a device?

---------- Post added at 06:35 AM ---------- Previous post was at 06:20 AM ----------

finally got systemui to recompile

here is the log. can someone please tell me if this is okay?

------->

Recompiling "SystemUI.apk" With Original Signature, using original "AndroidManifest.xml"

in work area "_WorkArea1", using "apktool_2.3.4.jar"

With Tickle My Android 15.5.0.1

(tinyurl.com\ticklemyandroid)

----------------

Installed Framework File(s):

framework-res.apk [1.apk]

----------------

I: Using Apktool 2.3.4

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

I: Smaling smali_classes2 folder into classes2.dex...

I: Building resources...

W: fakeLogOpen(/dev/log_events) failed

W: fakeLogOpen(/dev/log_system) failed

W: fakeLogOpen(/dev/log_crash) failed

W: fakeLogOpen(/dev/log_stats) failed

W: fakeLogOpen(/dev/log_system) failed

W: fakeLogOpen(/dev/log_crash) failed

W: fakeLogOpen(/dev/log_stats) failed

W: fakeLogOpen(/dev/log_system) failed

W: fakeLogOpen(/dev/log_crash) failed

W: fakeLogOpen(/dev/log_stats) failed

W: fakeLogOpen(/dev/log_system) failed

W: fakeLogOpen(/dev/log_crash) failed

W: fakeLogOpen(/dev/log_stats) failed

W: warning: string 'kg_too_many_failed_countdown_by_biometrics' has no default translation.

W: warning: string 'kg_too_many_failed_countdown_by_fingerprint' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning_china' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning_jpn' has no default translation.

W: warning: string 'screenshot_failed_to_capture_text' has no default translation.

W: warning: string 'screenshot_failed_to_save_text' has no default translation.

W: warning: string 'screenshot_failed_to_save_unknown_text' has no default translation.

I: Copy original files...

I: Copy AndroidManifest.xml...

I: Copy META-INF...

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

----------------

Recompile Successful!
[Android General] a.raul:
Good morning

If you follow the steps that I explain in the post, at the bottom of the letter, you do not have to have any problems.

My advice is that you use apktool 2.3.2

Regards
[Android General] Cheemaa:
Could you link me the post?
[Android General] Cheemaa:
If someone could answer these questions. Would be appreciated.

If I download this flashable zip linked in the thread.

1.can I flash a deodexed systemui on a odexed system?

2. Do I need change the updater script to delete the odex files in the systemui folder if I am able to flash a deodexed systemui.

3.how would I change the permissions? If anyone could show me an example script. Thanks.
[Android General] msubhani:
[MENTION=7393522]AbrahamGC[/MENTION] thank you very much for fix. Applied and its works. Great [emoji106]
[Android General] NaJeEb303:
Hello, can i have a flashable zip file for it? or it ain't possible via zip?
[Android General] AbrahamGC:
Read the OP mate...
[Android General] PitOnthel:
hello I want to ask

why every time I recompile framework is always an error and always a problem with the image ending in .9

I deleted the .9 but still error

Is there a solution for this?

can anyone help me:cowboy:
[Android General] Cheemaa:
Does someone have a better fix than the one thats in the guide. It is not working for me at all. When I move files into the new .apk . The size becomes smaller than it was before.....
[Android General] yash92duster:
No solution if you don't read post 1

Post 1 has mods/fixes/tools linked up
[Android General] Cheemaa:
I tried the fix man but it doesn't work(I read the whole thread). I am having a hard time understanding it to be honest....Could you put it in better words. I know that's alot to ask for but maybe just give short and simple instructions. Sorry for bothering you man and thanks for this awesome guide. If it wasn't for this systemui.apk smh
[Android General] PitOnthel:
I've read or maybe I don't understand the programming language, I use ROM exyking for note 5 but there is a problem with the audio jack :victory:
[Android General] ShaDisNX255:
I had the same problem. I deleted the .9 file that was causing the problem (even though it may not be the right thing to do) and I deleted the line on public.xml, otherwise you will not be able to recompile because it is still declared there.
[Android General] Albe96:
That's why reading OP is highly required: https://xdaforums.com/showpost.php?p=76361966&postcount=49
[Android General] PitOnthel:
But in the framework there are more files that end .9 sir... :laugh:
[Android General] a.raul:
This sounds have cachondeo and, following these post and not have any problem, to the letter, letter...

Uncategorized:

* How to Modify SystemUI.apk, Secsettings.apk, framework-res.apk and the * .jar of Samsung Oreo

USE APKTOOL 2.3.2
[Android General] PitOnthel:
Okay

BIG thanks for all user :svetius: