Need some help with custom recovery

samsung-galaxy
build-issues

#21

The md5sum of the Twrp I’ve flash in october is
twrp-3.2.3-1-a5y17lte.img.md5 file content :
9a5bed8e6d5483bc1595169162c58540 twrp-3.2.3-1-a5y17lte.img

It’s downloadable with the image, you can check it with command :
$md5sum -c twrp-3.2.3-1-a5y17lte.img.md5

or to calculate it :
$md5sum twrp-3.2.3-1-a5y17lte.img

If different try to download it another time (download corrupt)?
Why not try with the tar file (then untar it, and flash) or try with an older version ?

If not try with adb like @harvey186 suggest.

No more idea…


#22

Explain me pls what I should do with adb :wink:


#23

Better ask to @harvey186.
I do not know this method.

But i can help you install adb and fastboot if you haven’t yet install them :

adb and fastboot linux install

$sudo apt-get install android-tools-adb android-tools-fastboot
$wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
$sudo unzip -d /usr/local/sbin platform-tools-latest-linux.zip
$sudo wget -O /usr/local/sbin/adb https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/adb

$sudo wget -O /usr/local/sbin/fastboot https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/fastboot

$sudo chmod +x /usr/local/sbin/platform-tools/adb /usr/local/sbin/adb
$sudo chmod +x /usr/local/sbin/platform-tools/fastboot /usr/local/sbin/fastboot

$adb version

Udev rules :
$sudo wget -O /etc/udev/rules.d/51-android.rules https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/51-android.rules
$sudo chmod a+r /etc/udev/rules.d/51-android.rules
$sudo service udev restart

Hope it can help you.


#24

Hi @FreeSpace check this link https://gitlab.com/BenjaminDobell/Heimdall/issues/482 he mentioned his OEM unlock was on. Pl can you check


#25

here is a full guide https://www.xda-developers.com/how-to-install-twrp/


#26

Apparently @Manoj you were right. I can go further now, I can reach the recovery mode which is like the picture below. So, how to install /e/ with that (https://gitlab.e.foundation/e/wiki/en/wikis/device/a5y17lte/install -> the part “Installing /e/ from custom recovery” seems to be written for the use of Official TWRP App, don’t it?)? Should I restart from the beginning or not?

Thank you :wink:

Galaxy_A5_2017_Recovery_Mode-700x467


#27

Not sure as I do not have a samsung device.
@rhunault any help here. @FreeSpace now seems to be in the default recovery mode and not TWRP. Can the /e/ rom be placed on the sdcard (if available) and flashed with the Apply update from SD card option.


#28

The /e/ rom is already on the sdcard. I did it earlier.


#29

Ok have you tried to run it by selecting the option given on your screen ‘Apply update from SD card’ what is the error you are getting


#30

No, I haven’t tried. But I think I have understood what’s wrong. I checked and the device is not rooted (so I cannot used TWRP) however I did the following steps before :
The enable developer mode procedure:

Go to Settings.
Scroll down to "About Phone".
Software Information.
Look for the infobox "Build number".
Tap this 7 times, after 3 times you will get a notification "you are x tabs away etc"
Head back to "Settings".
Scroll Down.
Select "Developer options".
Enable: "OEM unlock".
Enable: "USB debugging".  

@rhunault If you want we can continue this conversation in pm.


#31

You can use TWRP without rooting device. But you have to enable OEM unlock. Now you did that, it should work.


#32

I did it without rooting my phone.


#33

I think you don’t know the defiifernt between rooting and unlocking. For TWRP and/or flashing a custom rom there is no need for rooting. But the boozloader must be unlocked. And I think your bootloader is NOT unlocked nd that’s the problem


#34

You’re right. Also, I can tell you there’s something wrong with fastboot. Adb detects my device but not fastboot.


Impossible to Unlock bootloader redmi note 5 pro with mi unlock device not detect the phone
#35

I’m still searching for a solution. What do you think about flashing the recovery image with heimdall-frontend?


#36

Seem to have only recovery and download modes on Samsung .: See last comment here.


#37

fastboot detects your phone only when you are in bootloader mode. Try using adb reboot bootloader from your device with adb enabled.

Also, when you are in bootloader, adb is not available.


#38

Still no change.

When I tried to use the recovery mode I went to default recovery mode and I got this following message at the bottom of the screen :

#fail to open recovery_cause (No such file or directory)#

#Reboot Recovery is [UNKNOWN]#
No Support SINGLE-SKU

File-Based OTA
Supported API: 3

# MANUAL MODE V1.0.0#

Successfully verified dmverity hash tree
E: Failed to clear BCB message: failed to find /misc partition

#39

I read again the thread and as you work with a Samsung device, you can’t use fastboot (use heimdall instead).

When your device is on download mode (the blue screen), do the following:

  1. run heimdall print-pit
  2. your device will reboot automatically. You have to manually reboot in download mode
  3. run heimdall flash --RECOVERY twrp-x.x.x-x-a5y17lte.img --no-reboot
  4. When it’s done, you have to reboot your device into recovery mode
    • hold home + power + vol up + vol down
    • when screen becomes black, release vol down and continue holding home + power + vol up until you see TWRP logo

If you see TWRP logo, you succeeded! Otherwise, you have to try again all the process.


#40

Thank you a lot, I’ve succeed in installing /e/. Also, thank you to all guys who helped me earlier. But… I have these problems: