rooting – lineage na telefon Samsung A3 / a3ultexx sma300fu / SM-A300FU

1) adb reboot bootloader does not work well. Android is not lying on back, it is standing and it is download mode. flashboot devices does not show anything

2) https://android.stackexchange.com/questions/162664/fastboot-on-samsung-devices says that flashboot is not available on this device. Trying file from https://autoroot.chainfire.eu/ and heimdall which is installed from ubuntu repo for flashing

  1. Got the CF-Auto-Root-xxxx-xxxxx-gti9515.zip from : https://autoroot.chainfire.eu/
  2. unzip CF-Auto-Root-xxxx-xxxxx-gti9515.zip
  3. mv CF-Auto-Root-xxxx-xxxxx-gti9515.tar.md5 CF-Auto-Root-xxxx-xxxxx-gti9515.tar
  4. tar xvf CF-Auto-Root-xxxx-xxxxx-gti9515.tar
  5. Put the device on Download mode ( Vol Down + Home + Power then Vol Up)
  6. sudo heimdall flash –RECOVERY recovery.img –CACHE cache.img.ext4
  7. after testing you have root rights ( adb shell & su )
  8. sudo heimdall flash –RECOVERY recovery.img ( TWRP )

Then you can go to recovery mode and use TWRP to install custom ROMs.

3) getting error https://github.com/Benjamin-Dobell/Heimdall/issues/292 with ERROR: Failed to send request to end PIT file transfer! , and it says that it is resolved in 1.4.2 . Repository has 1.4.1

4) building according https://github.com/Benjamin-Dobell/Heimdall/wiki/Build-instructions-(Linux) but with change of git repo to https://gitlab.com/BenjaminDobell/Heimdall

sudo apt-get install heimdall-flash heimdall-flash-frontend
$ git clone git://github.com/Benjamin-Dobell/Heimdall.git $ mkdir -p Heimdall/build $ cd Heimdall/build $ cmake -DCMAKE_BUILD_TYPE=Release .. $ make $ sudo cp bin/* /usr/local/bin
5) success! roots
reboots into boot-loader, can get there with vol up + power + main button
I can get back to download with vol down + power + main button
6) Installing image from:
https://forum.xda-developers.com/samsung-a-series/development/rom-lineageos-14-1-unofficial-samsung-t3532574
(14.1 = android 7.1)
according steps:

* Steps for a Clean Install:
1) Put the .zip file in Internal or External Storage.
2) Reboot in Recovery Mode (Using TWRP/CWM Recovery)
3) Wipe Data, Cache, Dalvik Cache and format /System
4) Install the ROM.
5) Flash the Google Apps.
6) Reboot and Enjoy!
7) also, downloading gapps, common google play applications from https://opengapps.org/ = ARM/7.1/micro (171mb)
8) But, now how-to for image says to use TWRP. I can't find TWRP for my device on official site. Trying one from:
https://forum.xda-developers.com/samsung-a-series/development/recovery-twrp-3-0-0-0-samsung-galaxy-a3-t3322907
./heimdall flash –RECOVERY twrp-3.0.0-0-20160225-a3ltexx/recovery.img
Works! Reboot to recovery shows TWRP.
9) copying images to phone
10) cleaning cache, installing image. Fails. Found on forum notes that I need TWRP 3.0.2
in the same way as before
11) cleaning cache, installing works – now in 5 seconds I can see graphical installer
12) after installation go again to TWRP and install gaps zip
13) reboot
Notes:
* Phone battery can't be detached, so hard reboot is done by volume down + power button