Related
What's currently included in this thread :-
TWRP (With/without magisk)
Installing EdXposed
Root with magisk (not recommended due to bootloops, use twrp with magisk)
RMM state Prenormal solution
Stock and combination firmware and Kernal source Gdrive links
Tools for flashing and downloading latest firmware
Post 2
Hide bootloader unlocked warning message
DeGoogle & debloat M30s and install MicroG
Enable Haptic feedback on m30s (or any other samsung phone)
BACKUP YOUR EFS PARTITION BEFORE DOING ANYTHINGIf EFSpartition is corrupted or lost, you would not be able to get calls and wifi and your IMEI will be permanently lost.
There is currently no way of restoring corrupted EFS partition since it is device specific, so flashing stock firmware will also be useless
Here is one guide. follow this or any other that works for you.
Here is another (droid view.com/restore-efs-imei-galaxy-s7/)
OR You can Backup all partitions using twrp (nandroid backup) and store in someplace safe (make sure to tick all partitions including EFS)
This is an excellent guide regarding EFS (thanks to @PlayingPoise). I HIGHLY RECOMMEND READING IT BEFORE PROCEEDING.
TWRP (With/without magisk) (huge thanks to @santhoosh)
Thread
there are two .tar files, flash the one you need
Pro Tip: I would recommend Smalipatcher module to reboot directly into magisk system.
Installing EdXposed
See This for installation video OR This Or This for installation guide.
This, for official website
And This for github!
NOTE: v0.4.6.0_beta from github requires custom magisk otherwise the system wont boot since github hosts alpha versions, so i advice to follow the video tutorial since it has installed the most stable EdXposed
Rooting with Magisk (Currently causing random bootloops since custom Kernal is req., i recommend flashing twrp with magisk)
From magisk official repo and This Link, Both are same, but i just wanted to make AIO thread)
thanks to @santhoosh and @topjohnwu
Unlocking Bootloader
Normally I wouldn’t provide instructions for this, but since things had changed drastically from previous Samsung devices, and there are some caveats, I figure this would be helpful.
* Allow bootloader unlocking in Developer options → OEM unlocking
* Reboot your device to download mode. Either use adb reboot download, or use turn off m30s, press vol+ and vol- simultaneously (while powered off) and connect to pc.
* Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.
Just when you think the bootloader is unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will reject any unofficial partitions before VaultKeeper explicitly allows it.
* Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to internet in the setup!
* Enable developer options, and confirm that the OEM unlocking option exists and grayed out! The VaultKeeper service will unleash the bootloader after it confirms that the user has the OEM unlocking option enabled.
* if there is no OEM unlock option, set phone's date to 7+ days and back and now see.
* Your bootloader now accepts unofficial images in download mode.
Instructions
* Download the firmware for your device.
* Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
* Install the latest Magisk Manager
* In Magisk Manager: Install → Install → Select and Patch a File and select the AP tar file.
* Magisk Manager will patch the whole firmware file and store the output to [Internal Storage]/Download/magisk_patched.tar
* Copy the patched file to your PC with adb pull /sdcard/Download/magisk_patched.tar. Do not use MTP as it is reported to corrupt files.
* Reboot to download mode, and flash magisk_patched.tar as AP in Odin, together with the BL, CP and HOME_CSC files. Never flash only an AP file, as Odin can shrink your /data file-system if you do.
Important: Uncheck “Auto Reboot” in Options!
* Magisk is now successfully flashed to your device! But there are still several steps before you can properly use the device.
* We now want to boot into the stock recovery to factory reset our device.
* Full data wipe is mandatory! Do not skip this step.
* Press Power + Volume Down to exit download mode. As soon as the screen turns off, immediately press the Vol up and power to boot to recovery . Since we want to boot into stock recovery, continue pressing the volume up button until you see the stock recovery screen.
* Use volume buttons to navigate through the stock recovery menu, and the power button to select an option. Choose Wipe data/factory reset to wipe the data of the device.
* This time, we can finally boot to the system with Magisk. Select Reboot system now, and immediately press the combo key to recovery. After seeing the bootloader warning screen, release all buttons so it can boot to the system.
* The device will automatically reboot for the first time it boots. This is completely normal and done by design.
* After the device is booted up, do the usual initial setup. The following steps will need an internet connection.
* You shall see Magisk Manager in your app drawer; if not, manually install the APK you downloaded in step 3 and continue to the next step. The app would be a stub and it shall automatically upgrade to the full Magisk Manager when you open it.
* Magisk Manager will ask to do additional setups. Let it do its job and the app will automatically reboot your device.
Voila! Enjoy Magisk
Additional Info
* Magisk actually patches 3 partitions on your device:
vbmeta: replace with empty vbmeta image to disable partition verification
boot: remove the signature of the image to prevent soft bricks
recovery: this is where Magisk is actually installed
* Never, ever try to restore either of the 3 images mentioned back to stock! You can easily brick your device by doing so, and the only way out is to do full Odin restore following with factory reset. Just don’t do it.
* If you want to upgrade your device, never flash the stock AP tar file with the reasons mentioned above. Always pre-patch the firmware before flashing in Odin.
* If you don’t need to patch the full firmware, you can manually create a tar file with at least vbmeta.img, boot.img, and recovery.img to let Magisk Manager patch your images in the proper way.
Due to the fact that some devices no longer uses ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to boot to recovery every time if you want Magisk. Since both Magisk and recovery lives in the same partition, what you actually end up getting when you choose to boot to recovery will be determined by how long you press volume up.
1. Powering up normally → System without Magisk
2. Power + Volume Up → Bootloader warning → Release all buttons → System with Magisk
3. Power + Volume Up → Bootloader warning → Keep holding volume up → Actual recovery
I would recommend Smalipatcher module to reboot directly into magisk system.
Updates: For each and every updates, either magisk or system update always patch the firmware with magisk and flash using odin(data will not be wiped if HOME_CSC
used instead of CSC)
RMM state Prenormal solution
Flash stock firmware
Boot up WITH sim inserted, CONNECT to internet during setup (or you can connect after setting up, but perform below operations only when connected to internet).
Enable developer options and go to them.
Now connect to internet and go to dev options, now set date 8 days back and check dev options for OEM unlocking
if it's still not there set date to today and again 8 days back and again check.
This worked for me and OEM unlocking was there and RMM state was changed to checking.
(what we are doing is fooling phone to believe that sim was inserted for more than 7 days)
Stock and combination firmware and Kernal source
Below are Gdrive links for Combination firmware for (M307FXXU1ASH9) and (M307FXXU2ASK2) and ROM M307FXXU1ASHI, M307FXXU2ASL2, M307FXXS2ATB3 (FOR INS ONLY, for other regions, use frija or samfirm).
I have also uploaded Kernal source for M307FXXU2ASL2 on gdrive for faster download.
Tools included
The following tools are also included in the shared folder, they are up to date as of FEB 2020, but i have attached links to original threads of xda to give credits and in case they are updated, you can download them from there. (As i said, this is AIO thread to find tools, none of them are my creation)
Frija, Samfirm continued and Samfirm are Tools for downloading Official firmware from samsung servers with high speed (so no to sammobile and other ****ty premium websites)
Frija thanks to @invmini, Github
SamFirm thanks to @zxz0O0, Github
SamFirm_continued, Github
Odin
Patched Odin by @realbbb
Frija not working ? install both vcredist_x00 for your device !
(check your windows settings to know which version to install)
(Microsoft Visual C++ 2010 Redistributable Package) and (Microsoft Visual C++ 2008 Redistributable Package)
https://www.microsoft.com/en-US/download/details.aspx?id=29 (x86) 2008
https://www.microsoft.com/en-US/download/details.aspx?id=5555 (x86) 2010
https://www.microsoft.com/en-US/download/details.aspx?id=15336 (64bit) 2008
https://www.microsoft.com/en-US/download/details.aspx?id=14632 (64bit) 2010
-Open Frija and type in your model (mine is SM-m307f) and your CSC : (mine is INS).
(All models on samfrew: https://samfrew.com/model/SM-M307F/).
Thanks to @BK
Other Tools
PIT Magic v1.3.10 - Samsung PIT Creator, Editor, Analyzer
Samsung firmware naming convention and explanation (Outdated)
SM-M307F - Galaxy M30s Samfrew
Extract Samsung PIT File from Samsung Firmware -> www.droid views.com/extract-samsung-pit-file-from-firmware (remove space b/w "droid" and "views")
NAND Erase Samsung Devices in Odin -> www.droid views.com/nand-erase-odin-samsung-firmware (remove space b/w "droid" and "views")
Latest Odin Downloader: https://odindownloader.com/category/download
Samsung USB Driver: https://samsungusbdriver.com/category/download
Samsung Firmware: https://firmwarefile.com/category/samsung
LinksLINK (Pm me if link is dead. If there is error like "try after some time", make a copy of file to your drive and then download)
Hide bootloader unlocked warning message
See Here
DeGoogle & debloat M30s and install MicroG
Here
Enable Haptic feedback on m30s (or any other samsung phone) (thanks to ak****)
1- download "Settings database Editor" from playstore.
2- scroll to bottom and find "haptic_feedback_enabled" and change it to 1
Just in case
great, im planning to buy this device and sell my a70, wouldn't have though a little bit of my thread would have been used there also combination files cannot be flashed anymore until a fix is found (nope Z3X Samsung tool don't work )
BK said:
great, im planning to buy this device and sell my a70, wouldn't have though a little bit of my thread would have been used there also combination files cannot be flashed anymore until a fix is found (nope Z3X Samsung tool don't work )
Click to expand...
Click to collapse
Are you talking about the frija and samfirm part?
I think i took it from some other thread which i cant find now. (maybe s10 or note10 ones)
Edit: Gave credits to you
How to flash Combination firmware?
I am trying to flash combination firmware [COMBINATION_FAC_FA90_M307FXXU1ASH9_FAC_CL16672589_QB25543275_REV00] with Odin v3.13.3B Patched but it doesn't work, giving this error on the phone
"Please get the approval to use factory binaries (PIT)"
Anyone know any way to make it work? It would be really nice to be able to downgrade to U1 binaries.
nobody_nowhere said:
I am trying to flash combination firmware [COMBINATION_FAC_FA90_M307FXXU1ASH9_FAC_CL16672589_QB25543275_REV00] with Odin v3.13.3B Patched but it doesn't work, giving this error on the phone
"Please get the approval to use factory binaries (PIT)"
Anyone know any way to make it work? It would be really nice to be able to downgrade to U1 binaries.
Click to expand...
Click to collapse
it's currently impossible to install a test/debugging firmware without a samsung dev account that work as an authorization to flash combination files.
Sm-m307f/ds
Hi i got OTG update and my phone didnt restart after that, i have been trying to find the right Stock firmware for my Samsung M30S SM-m307F/DS but i couldnt find the right one, can you please help me out with the link of the right firmware for my phone.
Thanks
Watch this video broo...you will get to know how to download all latest updated frimware
This is an advanced guidance.
I will explain exact procedure presuming other things are already known for those who are know what are they doing.
Therefore, if anything goes wrong I don't feel responsible for whatever you do.
1. Unlock bootloader
2. Device will, format itself. Do initial setup without setting anything because you will need it to format again.
3. Boot device and turn on OEM unlock and USB debugging in to developer options in system settings.
4. Reboot device again.
5. Download stock firmware (you can use FRIJA or SAMFIRM tool from XDA.)
6. Unpack firmware zip
7. Connect tablet to your PC
8. From folder of unpacked firmware COPY AP file to your tablet SDCard/Documents folder.
9. Download and install latest Magisk Manager.apk on tablet.
10. Open Magisk Manager you will see "Magisk is NOT installed" in red letters but no problem.Set it EXACTLY like on picture 1.
11.Click "install" and you will see screen on picture 2.
12. Select "SELECT AND PATCH A FILE" and select that AP firmware file you previously copied from your PC
13. Magisk will start to patch a file. When patching is done...
14. Close Magisk Manager and open your SDCard/Documents folder on tablet. You will find there "MAGISK_PATCHED.TAR" file.
15. Copy that file from tablet to PC
FLASHING
Turn off tablet and put it in download mode
1. Open on PC patched ODIN 13.3 or 13.4 and UNTICK "reboot automaticly" on ODIN settings
2. Select files for flashing BL to BL, CP to CP, CSC to HOME_CSC....
BUT EXCEPT ORIGINAL AP FILE SELECT "MAGISK_PATCHED.TAR" FILE !
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
5. Set up tablet as usually.
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
8. You have a root without TWRP
.
To keep this guide short, same video procedure I found here...It is for S10+ but applicable for this tablet as well.
ROOT WITH MAGISK
.
Thank for that clarity .. i just get an Tab s6 and i needed i simple and recent tutorial.
This guide worked perfectly. The one with twrp didn't.
Thank you.
This didn't work for me.
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
I can't get into Recovery Mode to format. It freezes on the boot logo, I'll hold Volume Down + Side Key to power off, Volume Up + Side Key to boot into Recovery Mode but it just tried to boot normally and freezes on the boot logo.
Is it better to root first or flash TWRP.
EDIT: Duh!!
tin2404 said:
This is an advanced guidance.
I will explain exact procedure presuming other things are already known for those who are know what are they doing.
Therefore, if anything goes wrong I don't feel responsible for whatever you do.
1. Unlock bootloader
2. Device will, format itself. Do initial setup without setting anything because you will need it to format again.
3. Boot device and turn on OEM unlock and USB debugging in to developer options in system settings.
4. Reboot device again.
5. Download stock firmware (you can use FRIJA or SAMFIRM tool from XDA.)
6. Unpack firmware zip
7. Connect tablet to your PC
8. From folder of unpacked firmware COPY AP file to your tablet SDCard/Documents folder.
9. Download and install latest Magisk Manager.apk on tablet.
10. Open Magisk Manager you will see "Magisk is NOT installed" in red letters but no problem.Set it EXACTLY like on picture 1.
11.Click "install" and you will see screen on picture 2.
12. Select "SELECT AND PATCH A FILE" and select that AP firmware file you previously copied from your PC
13. Magisk will start to patch a file. When patching is done...
14. Close Magisk Manager and open your SDCard/Documents folder on tablet. You will find there "MAGISK_PATCHED.TAR" file.
15. Copy that file from tablet to PC
FLASHING
Turn off tablet and put it in download mode
1. Open on PC patched ODIN 13.3 or 13.4 and UNTICK "reboot automaticly" on ODIN settings
2. Select files for flashing BL to BL, CP to CP, CSC to HOME_CSC....
BUT EXCEPT ORIGINAL AP FILE SELECT "MAGISK_PATCHED.TAR" FILE !
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
5. Set up tablet as usually.
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
8. You have a root without TWRP
.
To keep this guide short, same video procedure I found here...It is for S10+ but applicable for this tablet as well.
ROOT WITH MAGISK
.
Click to expand...
Click to collapse
Before step 10 ensure that you have a Wi-Fi connection. I think Magisk requires it. Magisk would not produce the drop-down till I connected to the internet. Then everything worked fine.
Good man, thanks so much!
Sent from my Pixel 4 XL using Tapatalk
I wish this worked for the TMobile version
noxarcana said:
This didn't work for me.
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
I can't get into Recovery Mode to format. It freezes on the boot logo, I'll hold Volume Down + Side Key to power off, Volume Up + Side Key to boot into Recovery Mode but it just tried to boot normally and freezes on the boot logo.
Click to expand...
Click to collapse
You need to restart tab after flashing BUT again in DOWNLOAD MODE...not in recovery ! Then flash TWRP and restart in twrp recovery.You need to untick AUTO REBOOT in Odin before flashing TWRP.
Not able to shutdown
After rooted with Magisk,my Tab S6 is not able to shutdown,no matter which methode I use,it just restart itself.
Does anyone have this issue?
worked perfect on oneui 3.1 aswell thank you
I rooted my Galaxy Tab S6 using the Magisk-only method after updating to Android 11. I had trouble with the post-Odin step (pressing power and volume up right after screen turns off) so I had to do the flash a couple more times before I got that right, and everything shows as rooted now.
However, my 256GB internal storage is only showing up as 32GB! Is that a firmware thing, or a partitioning thing? How can I fix it?
Used ther same method on my rooted tab with the May update (T865XXU4CUE1_T865OXM4CUE1_DBT) - magisk-patch AP, flash all files in Odin, after reboot the device is rooted.
BUT after another reboot (or rather shutdown and boot), root access is lost and cannot be restored in any way until I re-flash the device with the same firmware again.
Any solution to this?
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
Click to expand...
Click to collapse
This never happens. I even uninstalled Magisk Manager after patching, flashed the firmware, reinstalled the latest Canary Manager, still no patching or reboot happening.
Edit: just rebooted and shutdown a few times, root sticks. Before, I held VolUp as described in many guides until the "secured by Knox" logo appears, now didn't touch any button except Power.
Oh well...
Android 10/11 (tested on latest weekly rom MIUI 12.2 (20.10.16)
Hello, i want to share with u a simplefied tutorial how to:
I AM NOT RESPONSIBLE FOR ANY DAMAGE, DO IT AT YOUR OWN RISK !!!
TWRP
Before installing custom recovery called TWRP u need to unlock bootloader. Be sure that u enable developer options and inside enable USB debugging.
1. Turn OFF your phone (wait few seconds) and then press VOLUME DOWN + POWER till u see fastboot on the screen.
2. Connect phone with PC.
3. Download TWRP image and adb. DOWNLOAD
4. Extract ZIP anywhere.
5. Open cmd window in the same folder where are extracted files.
6.Type fastboot flash recovery TWRP_umi.img.
Done
MAGISK / ROOT
After u install TWRP u now have custom recovery so u can do whatever u want.
1. Download magisk.
20.4 version (Android 10) DOWNLOAD
21.0 version (Android 11) DOWNLOAD
21005 version (Android 11) DOWNLOAD
2. Copy that zip to your phone/sd card/usb.
3. Run TWRP recovery (turn OFF phone, wait few seconds, press VOLUME UP + POWER, wait 2 vibrations than release).
4. Click INSTALL button, locate your zip file called magisk_20.4.zip or Magisk-v21.0.zip, select that zip and flash.
5. Reboot System.
6. Download Magisk Manager. DOWNLOAD
7. Install it.
8. Run installed magisk.
9. Update magisk or magisk manager (if update is avaliable).
10. Press "Check SafetyNet" button. If is failed go to settings (home screen of magisk manager, press upper right button, scroll down and find MagiskHide and enable it).
11. Press again "Check SafetyNet" and it shoud be success.
U are done, u have root over magisk.
TIP: If u get any problems (bootloop) or u want totaly to remove magisk u can use uninstaller and flash it over TWRP just like u did for installation
Uninstaller 20.4 version DOWNLOAD
Uninstaller 21.0 version DOWNLOAD
Uninstaller 21005 version DOWNLOAD
XPOSED / EDXPOSED
EdXposed is a Magisk & Riru module that provides original Xposed frameworks on latest Android ART devices. With this module u can load bunch cool modules including
CustoMIUIzer.
1. Go to your magisk manager, u will find 4 buttons at bottom middle screen (home, superuser, logs, modules). Press modules.
2. search for riru. Install Riru (Riru - Core) v21.3 by Rikka.
3. After flashing riru press reboot button.
4. After reboot check modules tab in magisk and check did riru core is successfully installed. If yes everything is ok.
5. Download EdXposed Manager. DOWNLOAD
6. Install EdXposed Manager.
7. Run it.
8. U will get red warning that says "EdXposed Framework is not installed". Dont worry.
9. Go to CANARY tab and choose in framework EdXposed-YAHFA-V0.5.0.6 (IMPORTANT IS TO CHOOSE YAHFA not SANDHOOK) if u choose sandhook by mistake u will lose SafetyNet then scroll down to SafetyNet part.
10. So u choose YAHFA, Press INSTALL/UPDATE (zip will be downloaded to your download folder on your phone).
11.Open Magisk Manager go to modules tab and press install from storage button.
12. Find YAHFA zip and flash it. After installation press reboot button and wait a phone to get rebooted.
13. When your phone boot go to EdXposed Manager and check did framework says that its installed.
14. If u get warning "EdXposed Framework is installed, but not active". please reinstall EdXposed Manager. It shoud says "EdXposed Framework is active".
Done !
SAFETYNET
If u by accident or any other reason install sandhook framework, u will get safetynet problem. And even if u uninstall it u will still get warning. To solve that u need to remove sandhook traces over (root explorer, or explorer in TWRP). I personaly use Root Browser from play store.
Open root explorer, and go to /data/user_de/0/ search sandhook ( u shoud get 111 folders and im think about 50kb size for delete). remove all and reboot a device. Be aware that some modules can make safetynet problem too.
BOOTLOOP
If u get a bootloop in any part of this tutorial (except TWRP) u can manualy over TWRP recovery mode (VOLUME UP + POWER) manualy delete xposed or magisk modules.
Run TWRP, go to advanced go to file manager, go to /data/adb/modules and remove modules. Then go to data/misc/riru and delete that folder. Reboot and u are ok to try again.
TIP: Every time when u install/upgrade firmware u have a possibility to keep old battery information. So its good to go to TWRP then go to Advance then find RM battery-info and remove it and reboot a device. Personaly i repair battery drain on my mi 10 with this.
I hope this tutorial will help someone. I tried to make it as simple as possible.
Special thanks to meowcat
TWRP doesnt work. I have a bootlop/brick
What model of cell phone u have?
UPDATE
- Added latest magisk version (and his uninstaller) and tested on latest weekly rom (20.10.22 )
10. Press "Check SafetyNet" button. If is failed go to settings (home screen of magisk manager, press upper right button, scroll down and find MagiskHide and enable it).
11. Press again "Check SafetyNet" and it shoud be success.
No success error SafetyNet ctsProfile
I just tried this, and it's not working on the stable MIUI 12 12.2.2 . Holding Vol. Down plus Power or Up plus Power rebooted to fastboot.
xterminater07 said:
I just tried this, and it's not working on the stable MIUI 12 12.2.2 . Holding Vol. Down plus Power or Up plus Power rebooted to fastboot.
Click to expand...
Click to collapse
Same here, well I'm on MIUI 12.0.3 (Stable)
TWRP
Before installing custom recovery called TWRP u need to unlock bootloader. Be sure that u enable developer options and inside enable USB debugging.
1. Turn OFF your phone (wait few seconds) and then press VOLUME DOWN + POWER till u see fastboot on the screen.
2. Connect phone with PC.
3. Download TWRP image and adb. DOWNLOAD
4. Extract ZIP anywhere.
5. Open cmd window in the same folder where are extracted files.
6.Type fastboot flash recovery TWRP_umi.img
I think there is an important step after this
then type fastboot reboot while click volume up on phone press enter
it's successfully going to twrp recovery and then I instal magisk and succesfully rooted the phone
How to Root Samsung Galaxy A7 2018 (a750fn) + Working Secure Folder & Samsung Health
Hello, this is a guide on how to root Samsung galaxy A7 2018 (a750fn). I've tried to simplify the guide as much as I can but I still suggest to root your phone only if you know what you are doing! Also if you have any questions or problems, just ask.
Note: Sorry for any grammatical or spelling mistakes. English is not my native language.
!Disclaimer!
- You do this at your own risk! I am NOT responsible for bricked devices, stuck on bootloop etc.!
- Backup your device before proceeding forward!
- This guide WILL trip Knox so your warranty will be void!
- The Knox-dependent applications like Secret Folder and Samsung Health will stop working but in this guide, there are two other miniguides that will explain how to enable them even after tripped Knox. - All of these steps have been tested on my phone - Samsung Galaxy A7 (2018) (a750fn) where they worked without problems.
Required Software/Resources:
- Odin (for flashing) - Download
- Samsung USB Drivers - Download
- 7zip (for archives) - Download
- Firmware with the last security patch from 2020 (for me, the patch was from November 2020) - Download
- TWRP Recovery - Download
- Magisk (for root) - Download
- DM-VERITY, FORCED ENCRYPTION, AND DISC QUOTA DISABLER (Disable_Dm-Verity_ForceEncrypt.zip) - Download
- A MicroSD card
Setup the Software/Resources:
1. Install 7zip
2. Install the Samsung USB Drivers
3. Extract Odin to a folder and put it on the Desktop
4. Extract the firmware to a folder and put it on the Desktop
In the firmware there'll be 5 files:
- BL_FIRMWAREVERSION
- AP_FIRMWAREVERSION
- CP_FIRMWAREVERSION
- CSC_OMC_OXM_FIRMWAREVERSION
- HOME_CSC_OMC_OXM_FIRMWAREVERSION (delete this one)
Delete the files starting with HOME_CSC.
5. Change the Magisk extension from .apk to .zip (Ex. Magisk_ver.apk --> Magisk_ver.zip)
6. Put the Magisk_ver.zip in the MicroSD card
7. Put the Disable_Dm-Verity_ForceEncrypt.zip in the MicroSD card as well
8. Insert the MicroSD card in the phone
Steps to Root:
NOTE: BEFORE PROCEEDING FORWARD, BACKUP YOUR DEVICE!
1. Enable Developer Options (by clicking 7 times the build number of your phone)
2. Open Developer Options and find the option OEM Unlock
3. Enable OEM Unlock (this will factory reset the phone)
- After the factory reset the OEM Unlock option will be enabled and this will allow
flashing custom recoveries and etc. to the phone.
4. After the factory reset, when the phone boots up, turn it off
5. Connect the phone to you PC/Laptop via USB cable
6. While the phone is completely turned off, hold the buttons Volume UP + Volume DOWN until Download mode shows up
7. Press Volume UP again to confirm that you'll be modifying your device
8. On your PC/Laptop open Odin
9. On the left side in Odin there are 3 tabs: Log, Options and Pit
10. Open Options and remove the checkmark on the Auto Reboot option, then go back to Log
11. In the middle of the program there are 5 slots:
- BL (Bootloader)
- AP (Application Processor)
- CP (Modem)
- CSC (Consumer Software Customization)
- USERDATA
12. Click the first slot and navigate to the location where you extracted the firmware
- The start of the names of each firmware file corresponds to the names of the slots in Odin
13. Place each firmware file in the correct Odin slot that corresponds to their names
(Ex. BL_FIRMWAREVERSION is inside the BL slot)
14. With your phone connected, press the Start button to flash the firmware
- After the firmware has been flashed successfully, your phone will be downgraded to the last security patch from 2020 which fixes possible bootloops or other issues when rooting/disabling forced encryption.
- The firmware is successfully flashed when the top left bar is green and above says PASS!
After flashing the firmware DON'T boot in Android yet!
15. After flashing, hold the Volume DOWN + Power button for around 7 seconds, immediately when the screen goes black switch to holding Volume UP + Volume DOWN
- You will enter back in Download mode
16. In Odin, press the Reset button and again uncheck Auto Restart in Options
17. In the AP slot, select the TWRP Recovery (which is in .tar archive)
18. With your phone connected to your PC/Laptop in Download mode, press Start on Odin
- This will flash the custom recovery to the phone
19. You can now disconnect the phone from your PC/Laptop
Again, after flashing the recovery, do NOT boot into Android yet!
20. After flashing the custom recovery, hold the Volume DOWN + Power button for around 7 seconds, immediately when the screen goes black switch to holding Volume UP + Power button
- This will boot the phone into the custom recovery (TWRP in this case)
22. Inside TWRP Recovery, go to Wipe, select Format Data and type 'yes' to confirm
23. After the format, go to Install, select the MicroSD card and find where you've put the Magisk_ver.zip file, select it and install it
- This will root to the device!
24. After you have installed Magisk, go back to Install, select the MicroSD card and find where you've put Disable_Dm-Verity_ForceEncrypt.zip and install it
- This will disable the forced encryption!
- If there's an error when installing the zip that says 'Failed to mount '/odm' (no such file or directory)", simply ignore it and proceed forward.
25. Go to Reboot, select System and wait around 5-10 minutes till Android fully loads
- After Android has loaded, proceed through the setup process.
26. Go to all apps and find the application called Magisk
- When you open it, it'll ask you to complete the installation of the Magisk app.
- It may also ask to reboot, to fully complete the installation.
27. After the application has been fully installed, your device will be Rooted and with disabled forced encryption!
Fix Secure Folder & Samsung Health
Note: TWRP Backup is recommended in case something fails
Samsung Health:
Required Software:
- A build.prop editor like this
Steps:
1. Install a build.prop editor from the play store
2. Give the build.prop editor root access
3. Open the editor and search for the line - ro.config.tima=1
4. Change the 1 to 0
(Ex. ro.config.tima=1 --> ro.config.tima=0)
5. Save and Reboot the device
6. After the reboot Samsung Health should work as expected
Secure Folder:
Required Software:
- Smali Patcher - Download
Steps:
2. Extract Smali Patcher.zip into a folder
3. Run as administrator
- Wait until it says 'idle..' at the bottom left of the program
4. Uncheck everything checked (like Mock locations, Mock providers, High volume warning etc.)
5. Check Samsung Knox
6. Enable USB Debugging on your phone
7. Connect your phone to your PC/Laptop
8. Press the ADB PATCH button
- A prompt will appear on your phone that asks if you allow your pc to do debugging mode operations on your phone.
9. Press allow on the prompt on your phone
- Wait until Smali Patcher is done.
- After Smali Patcher is done there should be a Magisk module inside it's folder.
10. Copy the Magisk module created by Smali Patcher to your phone
11. Open Magisk and go to Modules (the puzzle piece icon)
12. Tap on the button saying 'Install from storage'
13. Find the location where you've copied the module
14. Install the module
15. Restart your phone
16. If all done correctly, you should be able to set up and use Secure Folder
everything worked, thank you for the nice explanation and your help (A750F)
beytullahgol said:
everything worked, thank you for the nice explanation and your help (A750F)
Click to expand...
Click to collapse
Glad I could help
this one works! thx
Ive no idea which firmware link ot try
*EDIT* Im just waiting for first boot now. So far so good. IIRC first boot takes a while after all this so hopefully job done.
Thanks for guide
Ah ****e, magisk isnt working, says NO for ramdisk.
Root works though so I dunno what the craic is.
Works perfect, thanks!
Thanks, everything works perfectly.
Hello,
I have problem with:
26. Go to all apps and find the application called Magisk
Where I can find it, maybe I'm looking wrong, I can't find it. I didn't have error during install Magisk by TWRP, I don't have root device, what's going on, any can help me?
I installed the same firmware (the patch was from November 2020).
Tubeczka said:
Hello,
I have problem with:
26. Go to all apps and find the application called Magisk
Where I can find it, maybe I'm looking wrong, I can't find it. I didn't have error during install Magisk by TWRP, I don't have root device, what's going on, any can help me?
I installed the same firmware (the patch was from November 2020).
Click to expand...
Click to collapse
Did you flash Magisk v21.4 via TWRP?
Zanci19 said:
Did you flash Magisk v21.4 via TWRP?
Click to expand...
Click to collapse
Yes, I had to restart phone (or I have to longer waiting after configure and first start system)
Maybe someone will have a similar problem
5. Change the Magisk extension from .apk to .zip (Ex. Magisk_ver.apk --> Magisk_ver.zip)
Click to expand...
Click to collapse
I have to change on android (win10 I have a problem)
17. In the AP slot, select the TWRP Recovery (which is in .tar archive)
Click to expand...
Click to collapse
I selected ZIP file, not .tar
how to knw which firmware download its 2022
thanks for this guide! work well after 2 tried, also to answer the comment above me, you have to download the firmware from november 2020.
Спасибо!
I AM NOT RESPONSIBLE FOR ANY MISHAPS OR YOU BEING CLUMSY BEFORE DOING ANYTHING I HIGHLY ADVISE YOU TO BACKUP THE NECESSARY DATA STORED ON YOUR PHONE
Before we proceed we must first unlock the phone's bootloader or otherwise you'll encounter "Only official binaries are allowed to be flashed" that being said let's go!
Unlocking Bootloader
Unlocking the bootloader on modern Samsung devices have some caveats. The newly introduced VaultKeeper service will make the bootloader reject any unofficial partitions in some cirumstances.
Allow bootloader unlocking in Developer options → OEM unlocking
Reboot to download mode: power off your device and press the download mode key combo for your device
Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode
PBRP installation
First and foremost PBRP doesn't seem to work properly on the latest build of the OS so we might have to downgrade on an older build of the OS which is from 20200817105004 with a security patch level of 2020-08-01 otherwise we'll encounter issues that users have experienced on the latest build of the OS, so let's get started
Use either samfirm.js, Frija, samfw or Samloader to download the older build firmware zip of your device directly from Samsung servers.
Reboot to download mode. Open Odin on your PC, and flash AP, together with BL, CP, and CSC.
Your device should reboot automatically once Odin finished flashing.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out.
Download this file.
Reboot to download mode. Open Odin on your PC and flash the downloaded file.
Reboot to recovery and voila! You now have PBRP.
Root installation
Use the firmware zip you installed earlier.
Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
Rename AP_[device_model_sw_ver].tar.md5 to AP_[device_model_sw_ver].tar
Open and extract boot.img.lz4 which it will leave you boot.img
Copy the extracted boot.img file to your phone.
Press the Install button in the Magisk card.
Choose “Select and Patch a File” in method, and select boot.img
The Magisk app will patch the file to [Internal Storage]/Download/magisk_patched_[random_strings].img
Copy the patched boot.img file to your PC.
Rename the magisk_patched_[random_strings].img to boot.img and repack it as tar file format.
Reboot to download mode. Open Odin on your PC, and flash boot.img.tar as AP.
Your device should reboot automatically once Odin finished flashing.
Install the latest Magisk app and launch the app. It should show a dialog asking for additional setup. Let it do its job and the app will automatically reboot your device.
Voila! Enjoy Magisk
Credits
@topjohnwu - For magisk
@itmr - For compiling and making PBRP.