Flashing TWRP on Samsung Tab2 10.1 using linux can brick your device
and I’m not responsible for any issues you might face.
As Samsung doesn’t have a “”fastboot”” mode but only “”download”” mode
you need Heimdall/Odin to flash TWRP onto the device.
As many members of my family have samsung tab2 tablet which are not getting
any updates from Samsung anymore they are getting slower and slower with
any app that’s updated.
As the tablets are in pefect working order and the problem is software related
it’s much better and cheaper to just replace the samsung OS with LineageOS to
gave them a second live 🙂
Put device into download mode (odin mode)
Power button and volume up (is the right side of the button)
Then push volume down (left side) and make sure the device says “”Downloading…””
Now connect device by USB to your linux machine.
On your Linux machine:
sudo apt-get install heimdall
sudo heimdall detect
sudo heimdall print-pit --no-reboot
(Device might reboot without –no-reboot)
Go into download mode again
In the output of the ‘print-pit’ look for
“”Partition Name: RECOVERY””
Use that as your partition name, sometimes it could be in small caps, then
use small caps.
sudo heimdall flash --RECOVERY twrp-3.1.0-0-p5110.img --no-reboot
Disconnect USB cable
Now reboot into recovery by using keep pressed the buttons power + volume down (left side)
your device will reboot after 10 seconds and as soon as you see the samsung name on the screen
release the power button.
You are now in TWRP recovery and “”swipe to allow modifications”” to sideload a custom rom like LineageOS.
(original posted: 2013)
As any mobile device without root access is pretty useless I decided to unlock and root my new Nexus 7 with 3G as my live isn’t complete without root access on all my devices 🙂
Warning: you can screw your device, and the rest of the standard bla bla
But lets be honest, a device without a root shell is basically screwed in the first place so lets go ‘unscrew’ your device 🙂
As the unlocking is somewhat drastic, it will basically reset the device to the factory state, it’s best to do it as soon as possible.
Everything you put onto the device will be removed.
On the upside, Nexus devices are very easy to unlock, nothing special about it as Google considers removing root just a way to protect stupid users from themselves so there’s no need for real hacking.
We will just use regular developers tools.
Here we go:
First you must have the adb tool which is part of the android-sdk.
Now get your “”developer options”” back under ‘settings’ on your device.
With android 4.2 the dev options are hidden but they are easy uncovered:
Go to Settings -> about tablet -> Now hit ‘build number’ 7 times. For real, no joke, lets say the guys at Google still have a sense of humor 🙂
You now have “”developer options”” back in your settings menu.
In settings -> developer options -> enable USB debugging.
Now go into the SDK -> platform-tools.
First check to see that the device is found:
~/android-sdk-linux/platform-tools$ ./adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 015d4********** device
~/android-sdk-linux/platform-tools$ ./adb reboot bootloader
Use the power button on the nexus to say yes.
Now we can talk to it with ‘fastboot’. (Do this only once unless you want to reverse it)
~/android-sdk-linux/platform-tools$ sudo ./fastboot oem unlock [sudo] password for stas: ... (bootloader) erasing userdata... (bootloader) erasing userdata done (bootloader) erasing cache... (bootloader) erasing cache done (bootloader) unlocking... (bootloader) Bootloader is unlocked now. OKAY [ 24.176s]finished. total time: 24.176s
It’s now unlocked and stays unlocked, no update will lock it again.
When you device get unresponsive or whatever, hold down the power button for some time until the device switches off.
Then restart it by holding down the volume down button and powerbutton at the same time until you are back in the bootloader
Now we must wipe the data.
Use the volume down to select “”recovery mode””
Use the power to select it.
You will see a android with a red exclamation mark.
While holding down Power, press Volume Up.
Use the volume keys to scroll to “”wipe data/factory reset”” and press Power to select it.
Installing clockwork recovery image
Download the correct image for the Nexus 7 to the adb directory: http://download2.clockworkmod.com/recoveries/recovery-clockwork-188.8.131.52-grouper.img
(the touch variant didn’t work on my device)
Download to the adb directory the ‘root’ binary, SuperSu : http://download.chainfire.eu/310/SuperSU/UPDATE-SuperSU-v1.04.zip
Now connect device again to your computer as a ‘camera’ because my Linux system doesn’t handle the default “”MTP”” protocol very well.
Copy the SuperSu program to your device:
I use the adb as the Nexus doesn’t expose itself as a usb device so the mormal access to the device filesystem is limited from a computer.
~/android-sdk-linux/platform-tools$ ./adb push UPDATE-SuperSU-v1.04.zip /mnt/sdcard/Downloads/UPDATE-SuperSU-v1.04.zip 761 KB/s (899752 bytes in 1.154s)
Shutdown the device and restart it into recovery mode (powerdown and volume down)
Flash the recovery image:
~/android-sdk-linux/platform-tools$ sudo ./fastboot flash recovery recovery-clockwork-184.108.40.206-maguro.img sending 'recovery' (5990 KB)...OKAY [ 0.722s]writing 'recovery'...OKAY [ 0.635s]finished. total time: 1.357s
Reboot it into bootloader again:
~/android-sdk-linux/platform-tools$ sudo ./fastboot reboot-bootloader
Go into recovery:
Install zip from sdcard -> choose zip from sdcard -> 0/ -> Downloads -> UPDATE-SuperSU
Check the output for errors.
Choose Go back -> reboot system
Install a terminal app, Android Terminal Emulator from Jack Palevich is a good one.
Start the terminal and type at the prompt “”su””
The program SuperSu should ask you if you want to grant superuser permission, say yes.
And you have a root shell 🙂
Yeahhh a black screen with a # as prompt, now your live is complete again 🙂