[Samsung Galaxy A70 Guides, News, & Discussion] fizzingbees:
purpose of this post is to share an alternative method for those who fail to root using [MENTION=4470081]topjohnwu[/MENTION] recommended method or the method posted by [MENTION=4443334]Grarak[/MENTION] here on A70 forum that involves patching recovery.img in magisk and then flashing that in twrp>install to boot.

failing to root means either bootloops or unstable magisk root or magisk root disappearing randomly or after a module installation.

this is

not my original guide

, i was told this method by [MENTION=7578590]raeumler[/MENTION] via PM and i am sharing it on A70 forums incase other methods dont work.Some of the steps may not be neccesary , but i did them ritually anyway

my phone model is SM-A705FN /DS and firmware version is A705FNXXU5ASL4( with 1st jan 2020 updates) . country is PAK

do this at your own risk! i will not be responsible for any negative consequences

appropiate links and files will be posted as attachments

rooting procedure( read each step twice)

1- UNLOCKING BOOTLOODER= this will factory reset device . backup your data

read step 02 of this linked guide https://xdaforums.com/galaxy-a70/development/recovery-twrp-galaxy-a70-t3955984

DOWNLOAD FIRMWARE AND ATTACHMENTS= now i am assuming you have stock samsung android 9. if not, download your firmware via SamFirm windows program and flash in odin to go to stock[ program available in attachements]. Download other attachements too

2-Find vbmeta.tar in downloaded attachments and unpack it. you will get vbmeta.img file.

3. unzip stock Samfirm downloaded firmware. you will get 5 files in it (BL,AP,CP,CSC and CSC_HOME).open the AP File from the factory rom with 7zip

4. remove userdata.img, vendor.img and system.img from the AP file

5. replace vbmeta.img with the one you have downloaded in step 2.

6. repack AP as AP.tar [ use 7zip or peazip. i used peazip windows program, ensure file type is TAR]. transfer this AP.tar to your phone

7. install magisk manager 7.5.1 on your phone and open it. connect your phone to internet.

8. hit the upper install button and choose "patch a file"

9. choose the repacked AP file and patch it[ this requires active internet as magisk needs to download its zip file]

10. copy the AP file which magisk creates in internal storage/download/magisk_patched.tar back to your pc (better keep it named as such for differentiation, its irrelevant how the file is named as long its a tar file)

11. download,unzip and open Odin 3.1.3.1[available in attachements]. i used Odin3+v3.13.1_3B_PatcheD.exe , there is a simple version too inside the zip

12. go into download mode on your phone (shut down completely then hold vol+ vol- togather and plug in cable connected to PC ). Odins should show Com port X as blue

13. in odin: put the BL, CP and HOME_CSC in its place (the files from the factory firmware you downloaded in step 1 from SamFirm windows program) and place the magisk patched AP on AP

16. check if you want autoreboot or not, its your own taste (some feel safer with autoreboot unchecked, both works)[ i kept autoreboot checked]

15. hit start and let it finish (when it stucks on something try another cable and install latest samsung adb driver.)

16. let the system reboot

17. if you get stuck in bootloop or freeze >10 min on samsung logo, try to force reboot.press volume down + power till screen turns blank then press volume + and power till bootloader unlock screen appears and then let go of all keys.

if still it doesnt boot, then press volume down and power togather to force shutdown and then press volume up and power till stock recovery boots up. Mine at this stage said firmware is corrupt ,factory reset needed so thats what i did in stock recovery. power off system in stock recovery and then press volume+ and power till bootloader warning screen , let go of all buttons, it should now boot up fine with magisk manager app in app drawer. DONT OPEN IT YET

download this app from play store https://play.google.com/store/apps/details?id=fr.petrus.tools.reboot&hl=en_US. open app and press reboot. No need to press any keys

on reboot complete ,connect to internet,open magisk, let it check for updates, it should say installed in both portions. magisk will do additional enviromental steps and then reboot. on booted up, use the linked reboot app to reboot again.

now magisk should be installed all fine

for viper4android>open magisk>swipe left and tap downloads> installed 2.7.1.6> reboot with linked app

on reboot check if app is installed, if not > install and login on xda labs and download viper4android 2.7.1.6> open app> give it root accesss> let it reboot device on installtion> on bootied up reboot again with linked app and then check drivers on viper4android[ make sure master switch is on and then play some music ,tap the chip icon to see driver status and processing status

from here onward,

always use the linked reboot app to reboot device

. if an app or module reboot device automatically( like viper4android does ) then on boot complete,reboot again with the linked app

Credits to [MENTION=4443334]Grarak[/MENTION] for his original work and files
[MENTION=7578590]raeumler[/MENTION] for his guide.