[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] x1123:
Background

Samsung Galaxy A3-2017 SM-320Y model only able to boot on Download Mode. i have no windows machine, only Debian linux PC. This is 2019 and the phone is Two Years old. Probably no many people using for daily gadget. However some "Small screen Lovers" have no many choice today. Thus this phone is still valuable.

Tools

- Working Debian linux pc with minimal android tools installed : adb, fastboot and Heimdall ( Odin friend on linux ), lz4 archive tools.

Note : working to poke android device, required extra effort in linux.

Download any stock rom for your device from any source. But i provide ready for use for SM-320Y indonesian Rom : Download via Mega

Extract to any path you have write access.

Connect SM-320Y on Download mode via USB port and in terminal navigate to the folder which downloaded file extracted > i.e ~/sm-320y/$

1. ~/sm-320y $ ls
to ensure you have required files :
boot.img
cache.img
cm.bin
hidden.img
modem.bin
param-stock.bin
recovery.img
sboot.bin
system.img
userdata.img
All this files are extracted from stock rom [B]XID-A320YDXU3CRL3-20190104155058[/B]
added other files : twrp-3310-sm320y.img ( I got from this forum), param-android.bin and param-jonsnow.bin just for fun
2.Flash SM-320Y with oreo stock rom by heimdall with the following command
~/sm-320y $ heimdall detect
this is to ensure that connection between phone and pc is working well, if the out put is [B] device detected [/B] then you are safe to proceed

~/sm-320y $ heimdall flash [B]--BOOTLOADER sboot.bin --CACHE cache.img --USERDATA userdata.img --RADIO modem.bin --HIDDEN hidden.img --CM cm.bin --PARAM param-stock.bin --RECOVERY recovery.img --SYSTEM system.img --BOOT boot.img --no-reboot[/B]

if you wish the phone reboot after flashing --no-reboot command is not needed.

Upon device reboot : you will have working SM-320Y with completely oreo stock rom. if you were satisfy with this. the device is usable for daily driver.

Small Fun

If you flash --PARAM partition with file param-android.bin you will get black boot splash with ANDROID letters if you choose param-jonsnow.bin you will get Jon Snow as boot splash replacing stock boot splash.

Next Fun

I do not like bloated device with too many google and samsung stuffs which I did not use them. I found THIS A3-2017 XDA THREAD by XDA Member [MENTION=417642]poto[/MENTION]ilo Thanks to him for cooked oreo fast, minimum, debloated rom.

Discusssion

Target is run SM-320Y on fast, debloated, minimal rom. The guide by Potoilo is easy to understand, however for noob, this not so easy sometimes. Start from SM-320Y live with oreo stock rom.

Set device a developer option, OEM unlock, debugging and stuffs.

Boot into download mode (FROM device OFF ) push and hold Vol Down, Power and Home Buttons simultaneously, look like we need our both hands.

Connect device on download mode to PC and again we will need heimdall help.

Open terminal on pc and do standard check with command >

$ heimdall detect
$ heimdall flash --RECOVERY twrp-3310-sm320y.img [COLOR="Red"]--no-reboot[/COLOR]
this --no-reboot option is [B]Mandatory[/B] in this case to prevent the device rebooting itself after flashing as heimdall default behaviour.

Switch off device (from Download Mode) by push and hold Vol Up, Vol Down, Power and Home Buttons simultaneously.

Once device OFF, Released Vol Down button while Vol Up, Power and Home Buttons still pushed and hold. > device will boot in TWRP Recovery mode (should be Yellow color ).

On some case, data is not accessible by TWRP, thus good idea to wipe ( Factory reset option ) and reboot to Recovery TWRP again.

Connect device (in recovery mode) to PC and ceck with terminal command > adb devices, upon device recognized it is good to proceed.

As instructed to put oreo minimal stock room by Potoilo, we need to put extracted rom file to device at /sdcard/TWRP/Backups folder.

In PC create a folder named Backups > put Potoilo extracted file to this folder then > we can create with file explorer in PC for less hazzle.

Open terminal and navigate to path where folder named Backups exist

$ adb push Backups /sdcard/TWRP/
adb will send folder Backkups to phone

Optional, reboot device to recovery again.

Follow the guide at Potoilo thread in installing Potoilo rom to device with Restore/ option

Have nice tweaking