• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Issues rooting Samsung Galaxy On5 on Linux OS

Quantum88

Lurker
Nov 12, 2016
4
4
So some info:
Phone - Samsung Galaxy On5 (T-Mobile)
Computer OS: Arch Linux
SuperSu file used - http://download.chainfire.eu/supersu-stable
TWRP Image used - https://twrp.me/devices/samsunggalaxyon5tmobile.html
Flashing Utility used - Heimdall

So I downloaded both the SuperSu file and the TWRP Image.
Stored the SS file on my sdcard.
Enabled usb debugging.
Used adb to reset my phone into Download Mode.
Then used 'sudo heimdall -detect' to verify that it is visible.
Then used 'sudo heimdall flash --RECOVERY twrp-3.0.2-0-on5ltetmo.img'.

[quantum@quantum Downloads]$ sudo heimdall flash --RECOVERY twrp-3.0.2-0-on5ltetmo.img
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading RECOVERY
100%
RECOVERY upload successful

Ending session...
Rebooting device...
Releasing device interface...

[quantum@quantum Downloads]$​

It seemed to work. I rebooted my phone and held the home button power button and volume up button to boot in recovery mode.
First I get this 'Insalling system update...'
android-installing-system-update-android5.jpg


For about 15 secs

Next I get this screen 'No command...'
Google-Nexus-5-hard-reset-4.jpg

For about 2 secs

Then I get this screen
http%3A%2F%2Fwww.revu.com.ph%2Fwp-content%2Fuploads%2F2015%2F11%2FCherry-Mobile-One-G1-Marshmallow-update-revu-philippines-1.jpg

I did both "Apply update from ADB" (by sideloading the ss file) and "Apply update from SD card" and I get the same message:

Finding update package ...
Opening update package ...
Verifying update package ...
E:failed to verify whole-file signature
E:signature verification failed

Finding update package ...
Opening update package ...
Verifying update package ...
E:failed to verify whole-file signature
E:signature verification failed

Installation aborted.​

No idea what to do from here.
Help please.
 
No idea what to do from here.
Help please.

Not familiar with the On5. Try holding power and volume up. See if you can power it down. You cannot use the "Apply update from SD card" function with the stock recovery. If you can get back into recovery, try a factory reset. Let me know.
Also, I'm assuming an internal battery. If not ....pull it.


Edit: Yes, just found it. Battery pull. Then try to boot into Android.
 
Last edited:
Upvote 0
The recovery you flashed didn't work. Did you check the OEM Unlock selection in developers options?
If there is any way for you to get onto a windows machine......Odin is a little more reliable. Then you can follow the real thread.
http://forum.xda-developers.com/android/general/root-samsung-galaxy-on5-t3435457


  1. On the phone go to Settings->About and tap "Build Number" 10 times to enable Developer Mode.
  2. Go to Settings->Developer Mode and select "Enable OEM Unlock"
  3. Then power off the device.
  4. With the device powered off hold "VOL-DOWN + HOME + PWR" until Download mode appears.
  5. Plug the phone into the computer and start ODIN with Administrator Rights.
  6. Open Odin and place that TWRP TAR file in the [AP] slot, under Options tab disable Auto Reboot, then press [Start]
  7. When ODIN says the flash is complete in the log window, pull the battery and put the battery back in.
  8. Before turning back on hold "VOL-UP + HOME + PWR" to enter recovery.
  9. Once in recovery go to Mount->Enable USB Mass Storage
  10. Copy the SuperSU zip to the phone's storage
  11. Disable USB Mass Storage
  12. Go to Backup->Start Backup to backup the phone IN CASE OF ISSUES!!
  13. Go to Install->Select SuperSU zip file and wait.
  14. Once done, reboot the phone and you should be good!
 
Upvote 0
Just an obscure comment but when you're connecting your On5 to your Arch box, are you plugging the USB cable directly into a port or into a USB hub? Can't find the exact reference but a while back I read of an issue Heimdall has with the 'libusb' library where there could be a problem when connecting through a hub.
http://libusb.org/
As those error messages appear to be tied to some unverified package, maybe it's just a matter of an initially bad file transfer.
 
Upvote 0
Òdin is built for Samsung by Samsung so always best to use it
Odin is a Windows executable, the OP is not running Windows.
Odin itself was presumably leaked software from Samsung and currently maintained independent of Samsung. Heimdall on the other hand, is an Open Source project with no direct ties to Samsung in any way. As for Odin being '...best to use' that's a subjective opinion. Most of us use it as it's free and very easily obtainable but most consumers care nothing about proprietary issues (well, unless we get caught in a software audit). But for any commercial venture Heimdall is a better option as it's unencumbered by any licensing issues, while Odin is a black hole as far as licensing, it's originally proprietary software but that's a legacy as it no longer has any ties to Samsung. It's 'leaked' software, Samsung never Open Sourced its code, nor did it even release it as freeware or shareware.
 
  • Like
Reactions: Quantum88
Upvote 0
Without buying a new computer i will never have access to a windows machine with superuser privaledges... That being said I really need an option that will work for linux... Is there a way to get this done using wine?
NO. [emoji33] No Wine. Becomes a drivers issue.. Oh! You could try a VirtualBox and run Windows within.. [emoji41]
 
Upvote 0
Only other suggestion would be as @Bg260 stated earlier. After you flash recovery, disconnect phone and pull the battery for a few seconds. Replace battery then use the button combination to boot into recovery.
Sometimes the stock recovery will overwrite TWRP on reboot. The battery pull trick prevents this and after you flash SuperSU update zip in TWRP, it should stick.
 
Upvote 0
There is an Odin version for Linux I have never used it as I have a win pc but it is definitely available
Any valid links to this? AFAIK the source code has never been released for Odin so if there is a Linux version it wouldn't be compiled from source, it would be a hacked version of the executable. I still recommend Heimdall for non-Windows users.
http://glassechidna.com.au/heimdall/
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones