Monday, November 19, 2018

How to flash boot image file using ODIN

How to flash boot image file using ODIN

1. Get the stock boot image file for your device. To get the stock boot.img file download the latest firmware from sammobile or updato. Extract the file and you will get the files as shown in the below image.



2. The boot image file is contained in the file starting with AP_G935F........... So extract this file and you get boot.img as one of the files. Recent firmware files from Samsung uses a new compression method known as lz4 so if you end up some thing like boot.img.lz4 then you need to extract the lz4 file using 7zip. Now finally you will have boot.img. 

3. ODIN needs files in .tar format. So use 7zip and archive/compress to .tar format. You can even rename the file as boot.img.tar as shown in the below screenshot


4. Open ODIN and plug your phone to your computer via USB cable. Your phone should be detected by ODIN. Click the AP button and select the boot.img.tar file from your computer. Hit 'Start'. The flashing will be done in seconds as shown in the below screenshot.






Sunday, November 18, 2018

Systemless Root for Samsung Galaxy phones using Magisk

Systemless Root for Samsung Galaxy phones using Magisk



Brief Intro about Magisk:
Magic Mask is know as Magisk. “Systemless” root can be achieved by Magisk. It is a way to modify the system without actually modifying it. Modifications are done in a duplicate boot partition instead of modifying the real system files. Modifications are undetected by SafetyNet since the original files remains unchanged. This is an alternate for SuperSU. 

Let's get started 👍

Prerequisites:

  • Read this post at least twice before starting. You agree that you are performing this at your own risk.Warranty may be void. 
  • Take a full backup of your phone. Need to do a factory reset during the process.
  • Stock boot image file of your device
  • Magisk Manager
  • ODIN

This method is applicable for all Android phones and I am taking Samsung Galaxy S7 Edge as an example to show the demo. There are many ways available to root a phone but the way we are gonna achieve root does not require custom recovery. In other words, flashing Masigk without root and does not require a custom recovery. 

1. Get the stock boot image file for your device. I am taking Galaxy S7 Edge as an example here. Download the latest firmware from sammobile or updato. Extract the file and you will get some files as shown in the below image.



2. The boot image file is contained in the file starting with AP_G935F........... So extract this file and you get boot.img as one of the files. Recent firmware files from Samsung uses a new compression method known as lz4 so if you end up some thing like boot.img.lz4 then you need to extract the lz4 file using 7zip (get 7zip from here). Now finally you will have boot.img. 

Get the Stock boot image file for Samsung Galaxy S7 edge here or here

3. Now download the Magisk Manager. Get it here and install it in your device. 

4. Move the extracted boot.img file to your SD card

5. Open Magisk Manager and go to Settings -> Update Settings -> Patched Boot Output Format, and select .img.tar

6. Go to the homepage of the Magisk and select Install -> INSTALL -> Patch Boot Image File -> Select your stock boot image file(boot.img) from the SD card

7. Magisk Manager will now patch the boot image and stores in Internal Storage/Download/patched_boot.img.tar

8. Copy this patched_boot.img.tar file to your desktop

9. Download the latest ODIN from here

10. Put the phone in Download mode(For S7 Edge -> Press Home key + Power button + Volume down simultaneously and continue to Download mode) Connect the phone to the PC via USB cable and open ODIN

11. Your phone should be detected by ODIN. Click the AP button and select the patched_boot.img.tar file from your desktop. Hit 'Start'. The flashing will be done in seconds. Below image is for reference.




12. Your phone will now reboot and asks you to to do a reset. After Resetting, you are Done. 

13. Go to the app drawer and you can find the Magisk Manager. Open it and follow the on screen instructions which requests you to Install Magisk. 

14. Now your phone is rooted systemless-ly. You will still be eligible to receive official OTA updates. 

Note: You may receive a warning message by 'Device Security' as shown in the below screenshot. Do not restart phone from here. Ignore it.