[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] leo31:
ok guys, this is the easiest method for u guys who own a320y (ds) , maybe works with a320f version.

i have read many threads here according to gaining root for this device, but i got problem with twrp after flashing rom with odin. twrp cant mount /data

okay, here is the solution for u guys who dont have external sd card.

(READ IT CAREFULLY)

1. Download stock firmware related to your device (in this case, a320y/DS. but i think i t will working fine for a320f version)

2. Download Latest odin version from here https://odindownload.com/, and intall on your pc

3. Make sure u have adb installed on your pc, and also have samsung usb driver installed too. u can find it here

4. connect your device to pc on download mode (hold volume down , home, and power button until you see blue screen and press volume up button to go to download mode)

5. extract your firmware you download wherever you want.

6. open odin and you will see your device there. (something like 0:[com6])

7. choose the file you extracted (AP - AP , CSC - HOME CSC , BL - BL , CP - CP) , then un-tick the auto-reboot.

8. press start.

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

9. when its done, disconnect your device, and connect it again.

10. press reset on odin

11. press ap button and select twrp file (.tar) = u can download twrp for our device here

12. untick auto reboot option again

13. press start.

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

14.. when its done, force restart your device by pressing and hold vol down , home , power button until the screen is gone black. and the device will reboot to system.

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

15. finish the setup for the first time, and enable the developer setting (go to about phone, software information and press build number 5-10 times)

16. press back button 2 times, and u will see developer option on the lowest screen.

17. go to developer option and enable OEM UNLOCK, disable auto update system, ENABLE USB DEBUGGING. see your phone screen, it will asking for usb debugging authorization. press yes

18. now go back to TWRP turning off your device, after the screen goes off, hold volume up, home button, and power button until u get inside twrp again.

19. download magisk zip here

20. press advanced button, and press sideload and enable it.

21. disconnect and reconnect your device to pc.

22. open CMD (win + R , and type CMD), now in command screen, type this

23. after the progress done, u can reboot your phone.

24. download magisk manager here and install on your phone, give permission to install the .apk file.

25. now your device is ROOTED, WITHOUT ANY LAG ON LOCKSCREEN, AND WITHOUT ANY PROBLEM WITH TWRP RECOVERY.

==i make this tutorial because i myself had facing the problem when installing twrp. after flashing the firmware and straight reboot to twrp, the /data folder is still mounted, but after reboot to system and back to twrp, it cant mount the /data anymore. so i need to wipe the data again and again. but after installing twrp and flashing the magisk.zip file , the problem with /data is gone. i dont need to wipe /data anymore :victory: and some people are facing the lag while unlocking screen with secured lockscreen (pattern/password) after rooting using chainfire.zip . but with magisk.zip , the lagg is gone forever ==

sorry for my english, but i think u guys can understand it.

Feel Free to ask me if u guys facing problem with this tutorial, i will help!

because many people here are helped me a lot for every problem i had, so i think this time is my time to helping others too :)