A trick to dual boot Android and Ubuntu or other OS - Shield Android TV General

I found a trick to enter hardware recovery mode without connecting SATV to PC.
In the past, I had to connect SATV to a PC using microUSB to USB cable to enter recovery mode by hold power button for ~3 seconds.
After flashed rooted ROM 3.0 I found behavior of HW recovery mode changed, i.e., I need to hold power button much longer than 3 seconds after power light turns green until entering recovery mode.
Then I found by accident, if I left a micro USB OTG cable like this connected to the SATV:
http://www.walmart.com/ip/27420736?wmlspartner=wmtlabs&adid=22222222222018938306&veh=sem
I can enter recovery mode without connecting to a PC.
Regular Micro USB Cable - A to Micro B cable like this needs to be connected to a PC to enter recovery mode:
http://www.amazon.com/StarTech-com-Micro-USB-Cable-UUSBHAUB6/dp/B0017K4CJC
I have Android in recovery partition and ubuntu in boot partition, I can boot to ubuntu after power up by default, or hold power button to enter recovery mode to boot to Android from recovery mode menu without connecting SATV to a PC.
It can also be done by leaving Android in boot partition and other OS in recovery partition to boot to Android by default.

yahoo2016 said:
I found a trick to enter hardware recovery mode without connecting SATV to PC.
In the past, I had to connect SATV to a PC using microUSB to USB cable to enter recovery mode by hold power button for ~3 seconds.
After flashed rooted ROM 3.0 I found behavior of HW recovery mode changed, i.e., I need to hold power button much longer than 3 seconds after power light turns green until entering recovery mode.
Then I found by accident, if I left a micro USB OTG cable like this connected to the SATV:
http://www.walmart.com/ip/27420736?wmlspartner=wmtlabs&adid=22222222222018938306&veh=sem
I can enter recovery mode without connecting to a PC.
Regular Micro USB Cable - A to Micro B cable like this needs to be connected to a PC to enter recovery mode:
http://www.amazon.com/StarTech-com-Micro-USB-Cable-UUSBHAUB6/dp/B0017K4CJC
I have Android in recovery partition and ubuntu in boot partition, I can boot to ubuntu after power up by default, or hold power button to enter recovery mode to boot to Android from recovery mode menu without connecting SATV to a PC.
It can also be done by leaving Android in boot partition and other OS in recovery partition to boot to Android by default.
Click to expand...
Click to collapse
Hi, nice finding!
May I ask for some assistance? I'd like to dual boot the stock rom (for video watching) and a full android rom (for unsupported games and apps). Do you think it's possible using your trick? I don't mind having to enter recovery to boot my second rom.
Thank you!

grievous2004 said:
Hi, nice finding!
May I ask for some assistance? I'd like to dual boot the stock rom (for video watching) and a full android rom (for unsupported games and apps). Do you think it's possible using your trick? I don't mind having to enter recovery to boot my second rom.
Thank you!
Click to expand...
Click to collapse
I have ubuntu kernel in boot partition and stock SATV ROM 3.0 in recovery because I mainly use ubuntu, I occasionally try stock SATV.
I believe you can leave kernel of stock ROM in boot partition and put kernel of alternative OS in recovery partition. Some versions of ROM had a bug that any alternative OS in recovery partition gets replaced after power cycle. I have not tried to put alternative OS in recovery partition.

This is fantantasic, I've been following your prior posts and links for booting Ubuntu, is this image stable enough to use as a daily PC, and I take it the GPU does not work yet? Or do the aarch64 drivers enable it on the satv

Afeld88 said:
This is fantantasic, I've been following your prior posts and links for booting Ubuntu, is this image stable enough to use as a daily PC, and I take it the GPU does not work yet? Or do the aarch64 drivers enable it on the satv
Click to expand...
Click to collapse
As far as I know, SATV ROM 3.0 and ubuntu kernels base on CM13 or L4T23.1 are stable for dual boot. I have not updated to SATV ROM 3.1 and L4T kernel 23.2. I have run Nvidia Cuda samples without issues. Bluethooth is not working and remote controller is not usable under ubuntu.

so is there a way to dual boot stock android tv ROM & custom ROM with full android support??

Slayerkodi said:
so is there a way to dual boot stock android tv ROM & custom ROM with full android support??
Click to expand...
Click to collapse
You will need to put full android kernel + ram disk in RECOVERY partition and put full android file system in external SD card (or USB drive) and use the trick to switch between stock SATV and alternative OS at power up.
The ram disk should have init file to load file system from external SD or USB drive.
The kernel for alternative OS should be compatible with stock SATV boot loader and device tree.

im sorry is there a guide i can follow as i partially understand what you mean but i have no idea how to do it, but would love this as i have the same adapter so can do the trick hopefully

I can't make this properly work.
Any news about U-boot? Want to use L4T24 and stock Android together smoothly.

I'd like a solution to dual boot too...

Related

[Q] Root challenge: Zipatile ATM705X automation hub, android 5.0.2, selinux disabled

I got an android 5.0.2 based automation hub which I would like to root. It is quite customized system, which is why it is challenging to root and exceeds my capability.
- selinux is off.
- ADB is enabled, but the usb ports are in permanent host mode, and as such ADB is only accessible through wifi
- no usb drivers available, and given the host mode, computer does not detect it.
- it can be booted into stock recovery <3e> which has options to flash a file from sdcard or ADB, but verifies signature.
- ADB in recovery is either not enabled or not detectable due to the permanent host mode.
- when booted to fastboot/bootloader the screen is obscured with a picture and fastboot is not detected
Kindly asking for strategies to approach rooting this device? For any substantial help a generous donation is appropriated!
thanks
Hello Ileo,
I also wrote on another thread: which is the procedure to boot Zipatile into stock recovery?
Thank you
nurachese said:
Hello Ileo,
I also wrote on another thread: which is the procedure to boot Zipatile into stock recovery?
Thank you
Click to expand...
Click to collapse
Hold the left volume button + power and release power while still holding the left volume button.

How to rescue data from J2 Prime stuck on boot-loop with no access to recovery mode?

Hi, hope someone can help me!
I accidentally got my Samsung Galaxy J2 Prime SM-G32M stuck in a boot loop, it happened after i tried to put a micro-sd card in it, after i removed the micro-sd it stayed on boot loop and couldn't boot into recovery (in Enigma NL for J2 Prime there is a bug where you need to enter TWRP and reboot into system for it to turn on properly because when you turn it off the Kernel dies)
It seemed like it couldn't boot into download mode as well but i eventually got it to enter download mode, my computer does not recognize the device, i am not sure but i assume usb debugging is not enabled due to that, it doesn't have root and it uses Enigma NL Custom ROM: https://forum.xda-developers.com/t/rom-6-01-stable-g532xx-enigmanl-port-rom-for-j2-prime.3951387/ and this TWRP port: https://forum.xda-developers.com/t/...axy-j2-grand-prime-plus-sm-g532f-g-m.3616589/
The home button is a little bad and doesn't work from time to time but i don't think it is the reason of it not being able to enter TWRP. The only thing i've got is download mode, no recovery and probable no usb debugging as well, i really need the data inside but i haven't found a way of rescuing it that doesn't require USB debugging or entering recovery mode . Is there a way that i can either access recovery mode or rescue the data inside the phone without it?
I really need the data inside the phone and programs like Samsung Switch said they couldn't connect to the phone properly, plsss help
(I also tried ADB to enter recovery mode using the command line but ADB does not recognize my device even when it is turned on(on boot loop) and also when it is on download mode.)
My computer does not recognize the device.
Click to expand...
Click to collapse
Did you install Samsung drivers correctly on your PC? If not then this would explain why your PC failed to recognize your device.
I suggest you install those drivers right away, and test to see if it works.

[HELP][SOLVED] Recovery and Download Modes Not Working After Android 11 Update.

Hi, so I've updated to android 11 OneUI core 3 on my M31 but since I can't enter neither download or recovery modes. I press Power+Vol Up but it just boots as usual with no signal of recorery mode. If I press Power+Vol Down the phone keeps rebooting but never actually goes to download mode.
I do can enter recovery mode using ADB via PC but that's a very inconvenient way of doing it as it need the phone to be turned on and woking normally so if the phone break and I ever need to flash an image with Odin that's a no no.
Please share with me if you are having this problem. I didn't factory reset it yet because I don't want to go to the bank and register my phone again xD
EDIT: Ok... I found the issue.
Looks like sammy changed the way you get into recovery mode on Android 11(WTF?? why would you even do that??) and now you have one extra step to do (I would be very grateful if they've put a message about it after you update). In resume you don't need to worry your phone will break if you update to android 11, only the method officially changed.
To boot into recovery now you need to plug your phone on your PC, THEN press vol up + power.
Reference article: How to Boot into Recovery Mode on Samsung's One UI 3.0 Android 11 Update (New Method) (androidsage.com)
Well, i got a update too... but i was too lazy to download and install... so i'm good
Also, thanks for informing here. you saved many android devices.
Btw, i have no answer to your problem
But i hope everything will be solved and you will be good to go
Happy Androiding...........
In my case (UI 3.0 Android 11 DBT) I now need to have USB cable connected to PC before entering Recovery with VOL up and Power button. Download mode same as before with Vol up and Vol down and then plug in USB cable.
I had installed Android 11 but for some reason I had to go back to android 10. But after downgrading to android 10, I am not able to access Recovery or Bootloader.
Anybody please help.

How to shutdown w/o touch input

So my Note 10+ screen broke so that I can only see the top 15% and only touch the bottom 60%. I booted into TWRP to backup everything, and now I'm in a situation where I can't turn the thing off. I am unable to press the shutdown button, only the download mode and recovery mode buttons. I am also unable to press the ADB side load button to send a shutdown command. It will be quite some time before I am able to fix the screen, so I don't want the phone battery to be sitting dead and degrading for a month or more. I already tried draining the battery and then plugging it in to charge, but the phone automatically booted into TWRP.... hardware key combos only reboot, they won't shut down...
Does anybody have an idea how to power off my device? Or to reboot into system or gain ADB access without being able to use the touchscreen? Thanks for the help
TWRP should allow you to use adb commands already.
You can use fastboot continue
XDHx86 said:
TWRP should allow you to use adb commands already.
You can use fastboot continue
Click to expand...
Click to collapse
I am trying to use adb from another Android device to the broken device using an otg cable, but the ADB otg app does not recognize it. From my memory, when I had tried to use adb in TWRP I always had to go into advanced and press the ADB side load button, but maybe this is different with fastboot? Unfortunately I do not have access to a computer right now, or a mouse for that matter.
AllanRSS said:
I am trying to use adb from another Android device to the broken device using an otg cable, but the ADB otg app does not recognize it. From my memory, when I had tried to use adb in TWRP I always had to go into advanced and press the ADB side load button, but maybe this is different with fastboot? Unfortunately I do not have access to a computer right now, or a mouse for that matter.
Click to expand...
Click to collapse
What are you trying to do exactly?
A bit convoluted but ...
Volume down + Power - forced reboot, right after vibration with USB cable on switch to Volume Up + Power . maybe boot to recovery !?
Odin - Set get system Info on - force reboot ?
Bomn said:
A bit convoluted but ...
Volume down + Power - forced reboot, right after vibration with USB cable on switch to Volume Up + Power . maybe boot to recovery !?
Odin - Set get system Info on - force reboot ?
Click to expand...
Click to collapse
Thanks for the recommendation, but the problem is that I am stuck in recovery mode. I am able to boot into recovery and download modes, but not into the normal system mode. If I could boot into system mode I should be able to use the lower half of the screen to shutdown the device, or use adb.
AllanRSS said:
Thanks for the recommendation, but the problem is that I am stuck in recovery mode. I am able to boot into recovery and download modes, but not into the normal system mode. If I could boot into system mode I should be able to use the lower half of the screen to shutdown the device, or use adb.
Click to expand...
Click to collapse
Yes, I understood that, last opcional on recovery is shutdown?
Just press up and then power?
Bomn said:
Yes, I understood that, last opcional on recovery is shutdown?
Just press up and then power?
Click to expand...
Click to collapse
Unless you can't boot to the default recovery? That's why I suggested Odin.

Surface RT stack on BSOD's 0xc000000f & 0xc0000428

Hello! Last week I bought used Surface RT 64 Gb Model: 1516 with next problem:
BSOD
Recovery​​Your PC needs to be repaired.​​A required device isn't connected or can't be accessed.​Error code: 0xc000000f​​You'll need to use the recovery tools on your installation media. If you don't have any​installation media (like a disc or USB device), contact your system administrator or PC manufacturer.​
If I try to press the Windows key to "try again", I get:
BSOD
Recovery​​Your PC needs to be repaired.​​Windows cannot verify the digital signature for this file.​​File: \WINDOWS\System32\winload.efi​Error code: 0xc0000428​
You'll need to use the recovery tools on your installation media. If you don't have any
installation media (like a disc or USB device), contact your system administrator or PC manufacturer.
I've tried download the Recovery Image from Microsoft for my Surface RT (using serial number). Use official manual for creating Recovery USB (format flash in FAT32 and copy files from downloaded archive, Press Volume- & Power Release & Release Volume- after Surface logo shown). Trying to boot from USB - nothing happen, I got BSOD! Trying to enter UEFI/BIOS (Press Volume+ & Power Release & Release Volume+ after UEFI/BIOS shown) - nothing happen, I got BSOD! Everytime I got same errors: first 0xc000000f and 0xc0000428 after pressing Win Key.
I use different Recovery Images for different regions with Win 8.0RT and Win 8.1RT, find & download ready custom images and trying to boot from... Use USB flash-drive 2.0 and 3.0 (different sizes 8 Gb, 32 Gb)
The tablet does not respond to connected USB flash-drive (but USB port is Ok). I've tried to boot from MicroSD :/ And nothing again!
I am tired please help me to solve this problem
silkway said:
Hello! Last week I bought used Surface RT 64 Gb Model: 1516 with next problem:
BSOD
Recovery​​Your PC needs to be repaired.​​A required device isn't connected or can't be accessed.​Error code: 0xc000000f​​You'll need to use the recovery tools on your installation media. If you don't have any​installation media (like a disc or USB device), contact your system administrator or PC manufacturer.​
If I try to press the Windows key to "try again", I get:
BSOD
Recovery​​Your PC needs to be repaired.​​Windows cannot verify the digital signature for this file.​​File: \WINDOWS\System32\winload.efi​Error code: 0xc0000428​
You'll need to use the recovery tools on your installation media. If you don't have any
installation media (like a disc or USB device), contact your system administrator or PC manufacturer.
I've tried download the Recovery Image from Microsoft for my Surface RT (using serial number). Use official manual for creating Recovery USB (format flash in FAT32 and copy files from downloaded archive, Press Volume- & Power Release & Release Volume- after Surface logo shown). Trying to boot from USB - nothing happen, I got BSOD! Trying to enter UEFI/BIOS (Press Volume+ & Power Release & Release Volume+ after UEFI/BIOS shown) - nothing happen, I got BSOD! Everytime I got same errors: first 0xc000000f and 0xc0000428 after pressing Win Key.
I use different Recovery Images for different regions with Win 8.0RT and Win 8.1RT, find & download ready custom images and trying to boot from... Use USB flash-drive 2.0 and 3.0 (different sizes 8 Gb, 32 Gb)
The tablet does not respond to connected USB flash-drive (but USB port is Ok). I've tried to boot from MicroSD :/ And nothing again!
I am tired please help me to solve this problem
Click to expand...
Click to collapse
Hi I have same problem and have tried everything you have did you fix it
There is a bare metal recovery guide here:
Bare Metal Recovery - Windows
Resetting a Windows RT device using a recovery image
jwa4.gitbook.io
The device is not bootable from SD and it will only boot from USB if holding volume - while powering on.
jwa4 said:
There is a bare metal recovery guide here:
Bare Metal Recovery - Windows
Resetting a Windows RT device using a recovery image
jwa4.gitbook.io
The device is not bootable from SD and it will only boot from USB if holding volume - while powering on.
Click to expand...
Click to collapse
Thanks buddy I will give it a go

Categories

Resources