• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Root/custom rom a320fl a3 2017 with linux

Search This thread

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
Hi all,

I am trying to update my phone for three days now. Samsung a3 2017 aka a320fl

my constraints:
I only have a linux laptop running sparky (debian derivate)
Windows work laptop with win 10

My windows laptop always deletes necessary files (anti virus scan) and there is nothing i can do about it.

So i switched to my linux.

What i did:
I can get access to the regular adb shell, fastboot would just reboot not get me into download mode
I get my phone into that download screen (vol down-power-home), but then no connection possible
I turned on oem unlock / usb debugging
I tried heimdall but missing some files and i suppose the connection is not setup right
I found a linux version for odin... still no luck error 71
some adb commands that i found rely on "su" which is not available yet

so basically i am stuck at the first step

I would want a newer os since my rom is too old. Android 7.0 and one of my apps need at least 7.1

I would try lineage 17. But there are plenty of steps that i cannot get to work. Like orange/bootloader/....
But first things first.

So is there any one that could help me with the very first step?
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
this is what i would like to use

i found odin here:

i already found them days ago, but no luck in going through the process

my prior phone was a galaxy s3 mini, on which i installed cyanogen (the one with android 5, the newer ones were not really stable back then)

i have a a3 2017 with stock rom android 7.0 (not branded) and rooted.
now i was afraid of losing data while updating and got me a new a3 2017 to basically play around and test the install process. this one already has android 8.0.

but both of them are bloated as hell...

so my hopes:
- support the apps i like (sportractive in particular), it does not support android 7.0 anymore
- better battery life (i found that android 7.0 is not the best in dealing with bad cellular service, i have to switch to 2g manually to get me throug the day, 4g consumes over 100mA in standby)
- i would want to keep my message history of whatsapp and signal
- i bought drift racers(https://www.sturmkind-shop.com/dr-ft-racer-kaufen/), which would not work with my android 7.0
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
Hi all,

i asked a friend to let me do some playing around.
I have odin on his pc.

odin seems to be able to connect to device (ID:COM is filled) when the device is turned on.

i switched (as mentioned before both OEM and USB Debugging to on in developer options.

but as soon as i put the device in "download mode" i cannot see the device anymore.

so the same behavior as with adb shell.

is there anything else i need to pay attention to?

should i boot with louder/home/power and trigger a process to load a file from sd?
i read that the file should be named recovery.img, is that correct?
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
Hi all,

so i was finally able to get everything done.
most of the stuff could be done on the phone... so it does not matter if you have linux or not as a pc operating system.

first install the bootloader (twrp). (herefore i had to use odin, but unfortunately the linux version did not work for me)
great video here:

then with the bootloader (twrp) install orangefox bootloader.
with orangefox flash repartition script.
these steps are described here as well (thats the image i used/installed):

thats it for the system.


to get root access to your phone, this is a pretty good desciption:

i followed the steps:
- get boot.img
- patch it
- flash it (with orangefox)
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt

this looks like changing the bootloader was done with fastboot.
i will try to look at it later, but that seems like a way that is less related to the os of the pc you are using.

maybe (eventually) samsung is going to be a bit differen... but still a way without WINDOWS :cool:
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
so my hopes:
- support the apps i like (sportractive in particular), it does not support android 7.0 anymore
- better battery life (i found that android 7.0 is not the best in dealing with bad cellular service, i have to switch to 2g manually to get me throug the day, 4g consumes over 100mA in standby)
- i would want to keep my message history of whatsapp and signal
- i bought drift racers(https://www.sturmkind-shop.com/dr-ft-racer-kaufen/), which would not work with my android 7.0

YEY!

all of my hopes were fulfilled :)
for all that are interested in that info
 

subbamaggus

Member
Oct 21, 2021
18
1
near frankfurt
As i wrote in the ROM thread.

As of now i would recommend to keep AOD of.
On my device it never gave the CPU the chance to get in deep sleep mode.

which is why i ended up with like 5% per hour with no usage.

with the deep sleep i get pretty close to 1% per hour.

after a couple of hours that changed a bit...
i started a new thread for that purpose.
 
Last edited: