[A320FL] from stock to GSI

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hello.
I bought a refurbished a3y17lte and expect it will run /e/ in GSI flavor (no official nor unofficial build yet).

- OEM unlock enabled > FRP LOCK: OFF in download mode,
- manual updated to latest 'Orange Télécom' version from device itself,
- then I flashed latest stock ROM with Heimdall (Debian Buster),
-
Code:
a3y17lte:/ $ getprop ro.treble.enabled
false
so I posted > there <.

I've got any more 'n00b' questions...

While unzipping stock image, Xarchiver just needs
Code:
~# apt install lz4
Then, in CSC folder I've got an A3Y17LTE_EUR_OPEN.pit file. May I flash it too ? Stock partitioning shows:
Code:
--- Entry #2 ---
Binary Type: 0 (AP)
Device Type: 2 (MMC)
Identifier: 70
Attributes: 5 (Read/Write)
Update Attributes: 1 (FOTA)
Partition Block Size/Offset: 34
Partition Block Count: 16
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: PIT
Flash Filename: -
FOTA Filename:
======​
I tried to flash TWRP and install LOS 16.0; 3.3.1 worked with difficulty (needs to choose 'Don't install' twrp as sytem app), 3.3.0 works, 3.4.0 return 'ERROR 7', so I went back to stock (heimdall flash). May I prefer OrangeFox recovery ?

Expecting this Exynos 7870 will run GSI, may I install 'Repartition' script or try H-Vendor (both by @Astrako ) ? I'm not sure to understand well how to use. What are the proper steps to avoid brick ?

Thanks a lot.

P.S.: I'm reading this (old) thread...
P.S.2: and this other one. I will become fan of @Astrako :D
 
Last edited:

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hello.

Well, well, well, I don't want 'another brick'... so fast replies on telegram Pruh 7870 don't match with my poor knowledge. I'm coming from Moto, easy to use with twrp and adb/fastboot...

My pit contains CARRIER instead of VENDOR (certainly why Shelter points a 'custom ROM'), so I probably need to flash europe_open.pit from stock ROM first. Then, I'm not sure what exactly do:
- flash custom recovery (twrp, orangefox, skyhawk?) first,
- universal-repartitioner_7870 (or older?),
- treble,
- a a_only gsi (e-pie-gsi),
- gsi_patch.

I will wait for advice and read again and again @starbright_ (#58) to understand how to proceed...
Note I want to try e-pie first (full build) then Q (light custom build).
Thanks.

P.S.: found last twrp custom 3.4.0-0-a3y17lte, thanks.
 
Last edited:

starbright_

Senior Member
Apr 11, 2010
1,091
174
83
Hello.

Well, well, well, I don't want 'another brick'... so fast replies on telegram Pruh 7870 don't match with my poor knowledge. I'm coming from Moto, easy to use with twrp and adb/fastboot...

My pit contains CARRIER instead of VENDOR (certainly why Shelter points a 'custom ROM'), so I probably need to flash europe_open.pit from stock ROM first. Then, I'm not sure what exactly do:
- flash custom recovery (twrp, orangefox, skyhawk?) first,
- universal-repartitioner_7870 (or older?),
- treble,
- a a_only gsi (e-pie-gsi),
- gsi_patch.

I will wait for advice and read again and again @starbright_ (#58) to understand how to proceed...
Note I want to try e-pie first (full build) then Q (light custom build).
Thanks.

P.S.: found last twrp custom 3.4.0-0-a3y17lte, thanks.
What is a e-pie?
Custom Recovery (I thing which one is not important) is first. But isn't order explained in my post? All custom ROMs have some deficits. I try to modify a stock now, but I ma just facing some problems with location... (look for the deploat thread if you like). So frustrating....
 

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Thanks.

Sorry, e-pie is /e/ OS based on LOS-Pie. No build for a3y17lte except a GSI one.

Your post (linked above) is fine, but I'm not sure about some details, as 'install just system' (about flashing GSI ROM)...

May I follow straight or adapt with new tools (H-Vendor, universal_repartitioner)? I don't already see what's happen at each step.
 

starbright_

Senior Member
Apr 11, 2010
1,091
174
83
Thanks.

Sorry, e-pie is /e/ OS based on LOS-Pie. No build for a3y17lte except a GSI one.

Your post (linked above) is fine, but I'm not sure about some details, as 'install just system' (about flashing GSI ROM)...

May I follow straight or adapt with new tools (H-Vendor, universal_repartitioner)? I don't already see what's happen at each step.
Repartition is needed in both cases. Treble is for GSI Pie (A only) and H-ROM for A/B Q. Is this answering you question?
 

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hello.
First of all, after 'Custom rom' message from Shelter, it seems I need to flash eur_open.pit (entries 24 to 27 are slightly different) to complete 'stock' flash. I have the right a3y17lte_eur_open.pit from Samsung stock rom, but didn't know how to flash safely the pit. I already extracted and saved on PC the 'factory' (Orange Telecom) pit with Heimdall...

I found on web, to flash the pit:
Code:
heimdall flash --repartition -- --pit my-samsung-file.pit
- Can I flash lonely, boot in download mode (buttons) then reboot system?
- May I add a new flash of all files extracted from Samsung's stock ROM (already flashed)?.
Thanks in advance.
.
P.S.: don't know where adv-env.img has to be flashed...
 
Last edited:

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hi.

Code:
heimdall flash --repartition --PIT A3Y17LTE_EUR_OPEN.pit --no-reboot
Code:
Uploading PIT
ERROR: Failed to receive PIT file part response!
ERROR: PIT upload failed!
:confused:
 

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hello.
Back to 'seller' ROM (fr. Orange telecom) but still 'PIT upload failed' while flashing stock standard ROM and nor more buttons-mode recovery acces, with 'No command' response.
TWRP (unofficial from Pruh 7870) was running buggy, too...
'Orange' has a A3Y17LTE_EUR_OPEN_HIDDEN200M.pit (and ROM has a lot of bloatwares).

PS: same while launching command as root, with 'Can't open ---.pit file'

:mad: Édith used a w$ PC (with Odin 3.14.4) and then device now runs stock 'standard' ROM with repartition OK :mad: I will begin to flash treble...
 
Last edited:

trefix

Member
Feb 25, 2018
22
0
0
old mountains
Hello.

Well, trying 'pie' method, I've always have an issue during process: one or other partition falls 'unmountable', despite a reboot in Recovery after each successful flash.
- I'd first flash Disable_DM-verity_ForceEncrypt_03.04.2020.zip with twrp-3.3.1-0 (didn't work with twrp-3.4.0-0-astrako),
- when 'repartitioner' works (with /vendor seen 'mountable' in Advanced > Mount), treble's installation ends with " unable to mount '/vendor' ",
- installing only System (choose rom.img > 3 checkboxes Boot / Recovery / System) ends in a bootloop,
- flashing gsi-patch doesn't solve and ends in bootloop too...

Strange thing, despite a full wipe and format data, date/time remain after flashing stock ROM (with *.pit) and twrp-3.3.1-0 sometimes comes back by itself, replacing 3.4.0-0-astrako.

Now I presume this device (version needing to disable DM-verity) asks for an other flash sequence. Perhaps something like:
disable_DM > Repartitioner > GSI-patch > Treble > ROM.

???

Advises are welcome.

P.S.: Treble always return " failed to mount '/vendor' ", all tests went to bootloop.
PS2: two consecutive 'Repartition' whit reboot in Recovery, first 'failed... vendor', second OK but recovery 3.4.0-0 self downgrade to 3.3.1-0 :eek:
PS3: twrp-3.4.0-0-astrako doesn't show re-partition (no more /vendor, from Advanced > Mount), 3.3.1-0 does :confused: I will try with another recovery, because it seems something isn't stable...
 
Last edited: