How To Guide safetynet fix on 4.23 - Nubia Red Magic 6

install "Busybox for android NDK","magiskhide props config" in magisk.
download and install this file https://t.me/RedMagic6/13653
then reboot
click stettings for magisk, then click "hide the magisk app"
click magiskhide, tick "play store","play services"
downlaod termux for play store
open tremux
key "su"
key "props"
key "1"
key "f"
key "30"
key "1"
key "y"
key "y"
clean "play store"and"play services" data
then the safety have been pass
thx for qtr1st & jokono421

Related

Data Recovery - Internal for Sprint Note II

Hello here is a guide to Recover Deleted files from the internal memory for your Note II
You Need
1.Rooted Android phone ( In my case i used Note 2 SPH-L900 )
2.Install busybox ( Note : my busybox is installed at system/xbin )
3.Drivers Installed on your computer
4.Download Cygwin [ http://www.cygwin.com/install.html ] install to C:\cygwin - make sure you install with pv and util-linux - Make sure to open Cygwin once to make sure that the /bin folder is created. Also create a folder called "NoteII" under C:\cygwin...this will come in use later for the export of the .RAW file
5. Download Recuva [ http://www.piriform.com/recuva/download ]. This is the Software going to recover your file , or you can use your favourite Data recovery software . But i suggest Recuva
6. Install android SDK tool kit so you have access to ADB - I installed mine inside the root of Cygwin - C:\cygwin\android-SDK
Steps :
1. Take your rooted phone . Go to Setting->Developer Options -> Tick on Stay awake and USB debugging
2.Connect your Phone to the Computer , Let the driver Install .
3.Click Start -> Run ,
Type " CMD " Press Enter
5.Dos Window will open up Now Type " cd c:\cygwin\android-SDK\platform-tools " Press Enter (note the path is where you installed SDK on C:\)
6. Type " adb devices " Press Enter
** Make sure it returning out Some numbers (IMEI) under list of devices
7.Type " adb Shell mount " Press Enter
Now this is something important , After the command adb shell mount it will give a long List you need to fine "dev/block/mmcblkop"xx" /data(or user data "
Note : The xx can be any number
In SPH-L900 its " mmcblk0p17 " = userdata Partition .
The last two number (xx) will change from mobile to mobile . Just note the partition name . In our case its " mmcblk0p17 "
You can also download Partition Table apk from the market and it will give you a layout of what each partition is.
8.Close the CMD window . Go to My Computer->C:/->cygwin->Open Cygwin Terminal - this is where you installed the Cygwin terminal and click on the Cygwin.bat to launch terminal
9.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
10.Type " adb forward tcp:5555 tcp:5555 " Press Enter
11.Type " adb shell " Press Enter
12.Type " su " Press Enter
13.Grant Superuser Right on your Phone
14.Type " /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p17 " Press Enter
15.Minimize the window , Open another cygwin Terminal i.e. My Computer->C:/->cygwin->Open Cygwin Terminal
16.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
17.Type " adb forward tcp:5555 tcp:5555 " Press Enter
18.Type " cd /NoteII " Press Enter
19.Type " nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p17.raw " Press Enter
20. Now let it Run this will take long time for me it took me One hour to complete
21.After it Compltes Click start->Run Type " cmd " Press Enter
22. Type " cd c:\cygwin\NoteII\ " Press Enter
23.Type " VhdTool.exe /convert mmcblk0p17.raw " Press Enter
24.Now Close Everything .. Right Click My Comuter->Manage
25.Now Select Storage-->Disk Management.
26.In the menu select Action-->Attach VHD.
27.For Location enter " c:\cygwin\NoteII\mmcblk0p17.raw " and select the OK button.
28.Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select Initialize Disk.
29.Select the GPT (GUID Partition Table) radio button and select the OK button.
30.Right-click on the Unallocated space and select New Simple Volume...
31.In the Wizard select Next>, leave the default for the volume size, select Next>, select a drive letter (e.g. K), select Next>, MAKE SURE to select
the 'Do not format this volume' radio button, select Next>, select Finish.
32.A box will pop up asking you to format the drive. You DO NOT want to format the drive at this time.
33.Right-click on the RAW space and select Format... MAKE SURE to change the File system to FAT32. Set the Allocation unit size dropdown to 'Default.' MAKE SURE that the Perform a quick format checkbox is CHECKED. You do not want to overwrite the entire new drive with all zeroes (0's) and destroy your data. Quick Format means that it will only attempt to destroy the index for the drive by establishing a new index. Without this box checked the Windows operating system will write zeroes (0's) across the entire volume, potentially destroying your data. Select the OK button.
34.A box will pop up saying that Formatting this volume will erase all data on it. That would be doubly true if you actually didn't check the 'Perform a quick format' checkbox. Double check that you actually did check the box and select the OK button.
35.Open the Piriform Recuva application. In the wizard select the 'Next >' button. Select the 'Other' radio button and select Next >. Select the 'In a specific location' radio button and enter: k:\ (assuming K is the drive letter you chose...) Select the Next > button. Select the Enable Deep Scan checkbox.
36.The application may take about an hour to do the 'Deep Scan.'
37.Once the application has returned its results you can choose which files to recover using the checkboxes. Select the 'Recover...' button and choose the location to which you wish to output your files.
This is not my work , i just gathered information and used some Copy/Paste. Have a nice day - followed instructions from this thread and modified some steps for our phone - http://forum.xda-developers.com/showthread.php?t=2140410
Note : Im not Responsible if you brick your phone . I did this and it worked for me . So im Sharing with you guys. Hit the thanks button if it helped at all!

[FIX] [SCRIPT] Google Services battery drain

For anyone suffering from huge battery drain since latest Google Play update (a few weeks ago) caused by System Update Service, here is a fix that worked for me.
NOTE: all credit goes to effgee at OnePlus One forums (I can't post links yet, so you'll have to google it)
This fix REQUIRES root
1. Install Script Manager (SManager) from Play Store
2. Enter Advanced > Configuration and enable Browse as Root
3. From SManager, create a New Script in /data/local/ called startsysupservice
4. Tap the script you just created and tap Edit, the Arguments field should be blank
5. If it tells you do not have access permission over this file, tap Create copy
6. Below the line #!/system/bin/sh add the following line:
su -c "pm enable com.google.android.gms/.update.SystemUpdateService"
7. Save the script (top right corner) and mark the following options: Su, Boot, Bg
8. Hit Save
9. Run the script make sure it runs correctly.
After creating this script, can Script Manager be uninstalled and will the script continue to run on its own? Or does Script Manager needs to be installed permanently in order to start at boot and then run the script at boot?

Magisk Can't Pass Safety Net

This guide is for "ctsProfile: false" and "basicIntegrity: true".
First download "busybox for android ndk" and "magiskhide props cofig" from magisk repo
after reboot type to adb
adb shell-su-props-1-f-18-10-y-n
and finished, reboot your phone and now safety net is completely passed
CHANGEABLE THINGS:
for another device owners
adb shell-su-props-1-f-18-<avaible devices>-y-n then reboot
At least it worked for me
mihhut said:
This guide is for "ctsProfile: false" and "basicIntegrity: true".
First download "busybox for android ndk" and "magiskhide props cofig" from magisk repo
after reboot type to adb
adb shell-su-props-1-f-18-10-y-n
and finished, reboot your phone and now safety net is completely passed
CHANGEABLE THINGS:
for another device owners
adb shell-su-props-1-f-18-<avaible devices>-y-n then reboot
At least it worked for me
Click to expand...
Click to collapse
you can also just install the SafetyPatch module in Magisk
InfinityXDA said:
you can also just install the SafetyPatch module in Magisk
Click to expand...
Click to collapse
I tried that module but it didn't work.
Im having this problem now, ive tried changing fingerprint, cts and other one fail even with magisk safetynet.

Google Pay working on custom ROM?

I've been using soldier room on my s9 for a long time now and Google play stoped working a few months ago. Back then I didn't manage to get it working but my bank app does work with magisk hide.
Is it possible to have gpay working again with a pie custom ROM? I've been reading a little bit but just wanted to make sure before I spend a few hours investigating.
Thanks
frozst said:
I've been using soldier room on my s9 for a long time now and Google play stoped working a few months ago. Back then I didn't manage to get it working but my bank app does work with magisk hide.
Is it possible to have gpay working again with a pie custom ROM? I've been reading a little bit but just wanted to make sure before I spend a few hours investigating.
Thanks
Click to expand...
Click to collapse
https://forum.xda-developers.com/apps/magisk/magisk-google-pay-gms-17-1-22-pie-t3929950/post79643248
Ok I managed to get this working now:
https://forum.xda-developers.com/apps/magisk/magisk-google-pay-gms-17-1-22-pie-t3929950
A few tweaks:
1) download a SQL database editor. I used
https://play.google.com/store/apps/d...ditor&hl=en_US
2) download a terminal emulator program. Terminal emulartor by Jack PAlevich should be easier to use for this matter.
3) make sure Google pay is forced close, if it is open.
4) open SQL editor. Navigate to /data/data/com.google.android.gms/databases
5) open dg.db
6) change any value that contains "attest" in its name in the name (first column) to 0 in the third column. Mine was showing a value of 10 in the third column for each of these values. (Column c for sqlite database editor I used)
7) open the terminal emulator.
8) get root access (su) - meaning, type "SU" and Magisk should automatically grant root access to your terminal app
9) cd /data/data/com.google.android.gms/databases
10) type: chmod 440 dg.db
This makes dg.db read only (for owner and group, and no access for world.)
11) reboot
frozst said:
Ok I managed to get this working now:
https://forum.xda-developers.com/apps/magisk/magisk-google-pay-gms-17-1-22-pie-t3929950
A few tweaks:
1) download a SQL database editor. I used
https://play.google.com/store/apps/d...ditor&hl=en_US
2) download a terminal emulator program. Terminal emulartor by Jack PAlevich should be easier to use for this matter.
3) make sure Google pay is forced close, if it is open.
4) open SQL editor. Navigate to /data/data/com.google.android.gms/databases
5) open dg.db
6) change any value that contains "attest" in its name in the name (first column) to 0 in the third column. Mine was showing a value of 10 in the third column for each of these values. (Column c for sqlite database editor I used)
7) open the terminal emulator.
8) get root access (su) - meaning, type "SU" and Magisk should automatically grant root access to your terminal app
9) cd /data/data/com.google.android.gms/databases
10) type: chmod 440 dg.db
This makes dg.db read only (for owner and group, and no access for world.)
11) reboot
Click to expand...
Click to collapse
i, in no way, doubt the veracity of your claim on having figured this out, but if youre right about this, it could be helpful to many people. i see this asked about every so often and people get it taken care of with with magisk, nice to have an alternative for when it becomes problematic tho

Guide to fix safety net in RUI (Tested in f07,f08,f09)

Follow these steps:-
1. Turn on magisk hide from magisk setting
2. Change magisk manager name from magisk setting
3. Flash busybox for Android NDK module (search on magisk download section)
4. Flash magisk hide prop config module (search on magisk download section)
5. Flash Coralfingerprint zip (this will change your device fingerprint to Google pixel 4xl)
6. Reboot
7. Download terminal emulator from play store
8. Open terminal emulator and make sure your data connection is on then follow below steps
(1.) Type su and give root permission
(2.) Type
Code:
props
(3.) Type
Code:
1 to edit device fingerprint
(4.) Type
Code:
f to pick certified fingerprint
(5.) Type
Code:
7 to select Google
(6.) Type
Code:
23 to select google pixel 4xl fingerprint
(7.) Type
Code:
y to select it
(8.) Type
Code:
y to reboot device
9. Now after reboot check cts profile in magisk manager it will pass
Note:-
(1.) if cts doesn't pass then remove all magisk module and follow this guide again
(2.) If you are using xposed or edxposed module then your cts will not pass so better remove it if want to pass cts
Download link:- (telegram)
https://t.me/realme2proXDA/509538
Video guide link how to use magisk hide prop module:- (telegram)
https://t.me/rm2pro_updates/1252

Categories

Resources