Use Android Terminal Emulator to boot TWRP image - Xiaomi Mi A1 Questions & Answers

Hello,
I don't have PC to use adb and I would like to know if it's possible to boot the TWRP image with Android Terminal Emulator? Boot to the image and flash the TWRP zip file.

Please?

You might have luck with this guide and another Android device.

_mysiak_ said:
You might have luck with this guide and another Android device.
Click to expand...
Click to collapse
Yes thanks but this is for my device, I don't have a second device to do that. I would like to boot directly to the recovery image from my phone, you know?

We7dy said:
Yes thanks but this is for my device, I don't have a second device to do that. I would like to boot directly to the recovery image from my phone, you know?
Click to expand...
Click to collapse
Sorry, not possible. You have to have a second device to issue fastboot commands.

Related

Help trying to flash amon ra

i am trying to flash amon ra,s recovery image on my nexus one. i have unlocked it and rooted. for some reason it keeps on telling me file not found. iam doing this thru the treminal app. is there any other way of doing it ?
go to Amons recovery page.... he has posted lot of ways to flash it...... if all fails come back here and ask.......
chowdarygm said:
go to Amons recovery page.... he has posted lot of ways to flash it...... if all fails come back here and ask.......
Click to expand...
Click to collapse
ive already did that still wont install
go to Amons recovery page.... he has posted lot of ways to flash it...... if all fails come back here and ask.......
Click to expand...
Click to collapse
ive already did that still wont install
Click to expand...
Click to collapse
Oh... thats really sad... did u rename the recovery image as per the commands u r giving ?
-------------------------------------
Sent via the XDA Tapatalk App
chowdarygm said:
Oh... thats really sad... did u rename the recovery image as per the commands u r giving ?
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
yea is there a way of flashing it thru terminal on mac? like the way i unlocked it and rooted
helpppppppp
flashboot-mac flash recovery recovery-RA-nexus-v1.7.0.img
is this wrong?
Hey man, it sounds like either you don't know how a filesystem works, or how a terminal works. Unless you skipped the step on downloading fastboot-mac. If you didn't skip that step, you need to actually change into the directory where you downloaded that file to be able to run it.
If you have fastboot installed. Make sure you have the recovery.img file in the same directory as fastboot to flash. Preferable in the 'tools' directory.
timal said:
If you have fastboot installed. Make sure you have the recovery.img file in the same directory as fastboot to flash. Preferable in the 'tools' directory.
Click to expand...
Click to collapse
Or you can just do fastboot-mac flash recovery *drag image onto terminal window*
I believe when you flash through terminal on mac it should be ./fastboot flash recovery ./recovery-RA-nexus-v1.7.0.img
mich11128 said:
I believe when you flash through terminal on mac it should be ./fastboot flash recovery ./recovery-RA-nexus-v1.7.0.img
Click to expand...
Click to collapse
I completely forgot about that! I modified my bash_profile so all I have to do is type adb or fastboot and then the command.
Instructions here:
http://forum.xda-developers.com/showpost.php?p=5691126&postcount=319
oh ok I hadn't tried that when I first rooted so I just stuck to typing out "./" but that's good I'll give that a try in the future

No os installed

Guys help me!
I install android 4.3 on my phone, however I did not do the backup and by mistake I've downloaded the wrong rom, now my phone a message appears in the bootloader "in the OS installed"
I'm desperate with my phone only in recovery mode, please help me fix!
sprafael said:
Guys help me!
I install android 4.3 on my phone, however I did not do the backup and by mistake I've downloaded the wrong rom, now my phone a message appears in the bootloader "in the OS installed"
I'm desperate with my phone only in recovery mode, please help me fix!
Click to expand...
Click to collapse
Do you have a custom recovery installed? If so, load a .zip rom and push it via custom recovery...
.... If not, use ADB to push a reflash of a clean install of 4.3
instructions here my thread
http://forum.xda-developers.com/showthread.php?t=2376681
More info.what Phone mark modelo etc ?
Sent from my XT910 using Tapatalk 4 Beta
mc704 said:
Do you have a custom recovery installed? If so, load a .zip rom and push it via custom recovery...
.... If not, use ADB to push a reflash of a clean install of 4.3
instructions here my thread
http://forum.xda-developers.com/showthread.php?t=2376681
Click to expand...
Click to collapse
i do not have a custom recovery, the only thing it has in the cell and the image I downloaded wrong, my phone is in recovery screen that comes with it when I turn the volume button, after that I do not know what else to do, because I have no how to transfer the image to the correct cell to update, so I need to know how to transfer the image to the correct device
sprafael said:
i do not have a custom recovery, the only thing it has in the cell and the image I downloaded wrong, my phone is in recovery screen that comes with it when I turn the volume button, after that I do not know what else to do, because I have no how to transfer the image to the correct cell to update, so I need to know how to transfer the image to the correct device
Click to expand...
Click to collapse
if you are able to boot to recovery. you have to be in fast boot...
you can either use fastboot to flash over
or
boot into recovery and apply a rom via ADB sideload
mc704 said:
if you are able to boot to recovery. you have to be in fast boot...
you can either use fastboot to flash over
or
boot into recovery and apply a rom via ADB sideload
Click to expand...
Click to collapse
how to apply the room via ADB SIDE load, because I saw that option, so I do not know how to use
sprafael said:
how to apply the room via ADB SIDE load, because I saw that option, so I do not know how to use
Click to expand...
Click to collapse
open command prompt with adb loaded
type adb sideload romname.zip
the rom should be in the same folder the adb/fastboot tools are located
mc704 said:
open command prompt with adb loaded
type adb sideload romname.zip
the rom should be in the same folder the adb/fastboot tools are located
Click to expand...
Click to collapse
the fastboot do you explain this link??
http://forum.xda-developers.com/showthread.php?t=2376681
I'm downloading the android SDK at this time
let's see if I understand
put the phone in adb sideload
will open the CMD in the fastboot folder,
type in adb sideload image-occam-jwr66v.zip
Flashable zip not factory image, try cm10
Sent from my Nexus 4 using xda app-developers app

my friend (soft?)bricked his nexus 4...help?

So he was following some random youtube video that was years old so it probably was outdated...
the phone state is currently unlocked, not unrooted yet..but with clockwork mod .
it responds to fastboot commands using the nexus toolkit by wugfresh but i can't get adb to work? all the guides i see say you have to have the phone booted normally before installing it and we can't do that
any help is appreciated
Your situation is a bit unclear, Is the phone boot looping? What you can do is flash a factory image while the phone is on the bootloader mode using Ncry toolkit or something similar. This way doesn't require the phone to be on or have any flash files already on the phone.
hey thanks for relying so fast, yes it is boot looping, ill try what you said now and update status, thanks again
edit: where would i get the factory image? does that toolkit download it for you?
colonelcack said:
hey thanks for relying so fast, yes it is boot looping, ill try what you said now and update status, thanks again
edit: where would i get the factory image? does that toolkit download it for you?
Click to expand...
Click to collapse
you didn't go into the stock recovery after unlocking bootloader
here is the factory images page - https://developers.google.com/android/nexus/images
you could probably just flash the recovery.img in the image-*.zip file to recovery, then go into recovery, wait for it to do it's thing then flash clockworkmod, philz or TWRP with the toolkit and do root etc.
you can also just flash the factory image, then do the stuff with the toolkit (easier)
sorry if I've confused you o.o
Easiest way to do this is to use Ncry (http://goo.gl/l0iuEn):
1. Put phone in bootloader an connect phone to pc with Ncry ON.
2. Click on the one click menu.
3. click SR mode.
The programme will automatically download the files and do the flashing, when finished the phone will auto boot.
MameTozhio said:
you didn't go into the stock recovery after unlocking bootloader
here is the factory images page - https://developers.google.com/android/nexus/images
you could probably just flash the recovery.img in the image-*.zip file to recovery, then go into recovery, wait for it to do it's thing then flash clockworkmod, philz or TWRP with the toolkit and do root etc.
you can also just flash the factory image, then do the stuff with the toolkit (easier)
sorry if I've confused you o.o
Click to expand...
Click to collapse
he needs to get it to be recognized as an adb device right? where would i get windows 8 x64 adb drivers?
colonelcack said:
he needs to get it to be recognized as an adb device right? where would i get windows 8 x64 adb drivers?
Click to expand...
Click to collapse
I Use: Wug's Nexus Root Toolkit v1.7.9
And Do the Universal Drivers, and its worked for me.
ok great thanks man it worked, really appreciate your time. only thing is that it wont show up on windws 8 pc but it does show up on windows 7 pc, you really helped my buddy out of a jam thanks again

Full Unroot

Here's the obligatory unroot/factory reset instructions, since the unlocked version is getting Pie next week
1) Since you need to unroot, you already have the firmware unzipped. Boot into fastboot (Vol Down + Power).
2) Type this in Terminal/Command Line on your computer:
fastboot flash boot boot.img
Click to expand...
Click to collapse
3) After you flash boot, type this in:
fastboot flashing lock
Click to expand...
Click to collapse
and it's just that easy
blackknightavalon said:
Here's the obligatory unroot/factory reset instructions
1) Since you need to unroot, you already have the firmware unzipped. Navigate to the root of the unzipped firmware directory and run the flash-all bat/sh.
2) Step 1 caused a bootloop, so I had to flash the unaltered boot and system images separately. The Treble partitions didn't give me any problems in this step
Click to expand...
Click to collapse
Would it be possible to get a step by step set of instructions?
kirschdog1 said:
Would it be possible to get a step by step set of instructions?
Click to expand...
Click to collapse
I should be detailed enough in my edit. Did it help?
blackknightavalon said:
I should be detailed enough in my edit. Did it help?
Click to expand...
Click to collapse
How do you individually flash image and boot?
kirschdog1 said:
How do you individually flash image and boot?
Click to expand...
Click to collapse
fastboot flash boot path/to/boot.img
what the hell do i do if fastboot is not detected on my razer phone 2!?!?!? i have reinstalled windows 5 times factory reset my razer phone 11 times and nothing is working
smithmunki said:
what the hell do i do if fastboot is not detected on my razer phone 2!?!?!? i have reinstalled windows 5 times factory reset my razer phone 11 times and nothing is working
Click to expand...
Click to collapse
Make doubly sure you have the fastboot drivers as detailed by Razer's flashing guide here: https://developer.razer.com/razer-p...0.2034022508.1549703537-1609614234.1544074767
If push comes to shove, you can perhaps use a Linux bootable image (Which I've found is many times more reliable).
smithmunki said:
what the hell do i do if fastboot is not detected on my razer phone 2!?!?!? i have reinstalled windows 5 times factory reset my razer phone 11 times and nothing is working
Click to expand...
Click to collapse
Use the latest platform-tools download from Google, unzip the file, put the ADB and Fastboot binaries in a different folder, then use this link (if you're on Windows) to get the command line to read ADB and Fastboot from any directory. If you're on Linux or Mac, drop the Unix binaries into /usr/bin then chmod their permissions to a+rwx to get the Terminal to read it from any folder
Instructions updated due to incoming Pie
does this remove the warning message at boot?
2me3 said:
does this remove the warning message at boot?
Click to expand...
Click to collapse
Yep!
CurtisMJ said:
Make doubly sure you have the fastboot drivers as detailed by Razer's flashing guide here: https://developer.razer.com/razer-p...0.2034022508.1549703537-1609614234.1544074767
If push comes to shove, you can perhaps use a Linux bootable image (Which I've found is many times more reliable).
Click to expand...
Click to collapse
use minimal adb installer. it fixed my fastboot issues...
CurtisMJ said:
Make doubly sure you have the fastboot drivers as detailed by Razer's flashing guide here: https://developer.razer.com/razer-p...0.2034022508.1549703537-1609614234.1544074767
If push comes to shove, you can perhaps use a Linux bootable image (Which I've found is many times more reliable).
Click to expand...
Click to collapse
lol i just ordered was looking and saw this aid well thats differnt glad i chooise to be smart . thats a diferent pollicy then samsung.
Where are you getting the stock boot.img ?
cory733 said:
Where are you getting the stock boot.img ?
Click to expand...
Click to collapse
Extract it from official factory image zip package
Just flashing boot.img won't allow OTA updates.
Better off following this one:
https://forum.xda-developers.com/razer-phone-2/how-to/razer-phone-2-unroot-step-step-t3896529

Lenovo TB-X306F and TWRP

Hi
I have been unable to find a TWRP build for my Android device (a Lenovo TB-X306F) anywhere online. I'd like to get into custom romming, which is pretty much impossible without TWRP. Does anyone know if there's a stable, reliable build of TWRP that has been tested to work with this device that carries the smallest risk of bricking my hardware or getting caught in a boot loop, and will allow me to interface with TWRP via ADB shell?
Thanks in advance!
SeedyTeevee said:
Hi
I have been unable to find a TWRP build for my Android device (a Lenovo TB-X306F) anywhere online. I'd like to get into custom romming, which is pretty much impossible without TWRP. Does anyone know if there's a stable, reliable build of TWRP that has been tested to work with this device that carries the smallest risk of bricking my hardware or getting caught in a boot loop, and will allow me to interface with TWRP via ADB shell?
Thanks in advance!
Click to expand...
Click to collapse
me too! did you have any luck?
tkalfaoglu said:
me too! did you have any luck?
Click to expand...
Click to collapse
I'm trying to root my device do you have any suggestions?
Hello231 said:
I'm trying to root my device do you have any suggestions?
Click to expand...
Click to collapse
yeah it was very easy -- download the current firmware for your tablet, extract the boot.img
install the magisk app, then run it..
copy the boot.img to the tablet, tell the app to patch it, download the patch BACK to your pc..
then put the device into fastboot, and run
fastboot flash boot boot_patched.img
BTW, I could not find a TWRP that worked with our device.. it was not necessary anyway.. flashing the boot partition was enough
tkalfaoglu said:
yeah it was very easy -- download the current firmware for your tablet, extract the boot.img
install the magisk app, then run it..
copy the boot.img to the tablet, tell the app to patch it, download the patch BACK to your pc..
then put the device into fastboot, and run
fastboot flash boot boot_patched.img
Click to expand...
Click to collapse
Ok a bit more information for what I tried like 3 months ago
- I downloaded adb and fastboot
-adb was working fastboot was not
-i read about mtk drivers and that they are the problem I did download them but still my tablet doesn't show up in the pc (fastboot devices)
I can't get past that step
when you say that fastboot is not running, why is that?
what error do you get? you know you need to put the tablet into fastboot mode before fastboot will be useful,, right?
tkalfaoglu said:
when you say that fastboot is not running, why is that?
what error do you get? you know you need to put the tablet into fastboot mode before fastboot will be useful,, right?
Click to expand...
Click to collapse
I do exactly this
I open my tablet connect to PC run adb devices it finds my device good
I run adb reboot bootloader it goes on fastboot good
I run fastboot devices it gets stuck at waiting for devices
That is my problem
Hello231 said:
I do exactly this
I open my tablet connect to PC run adb devices it finds my device good
I run adb reboot bootloader it goes on fastboot good
I run fastboot devices it gets stuck at waiting for devices
That is my problem
Click to expand...
Click to collapse
Try different cables (or drivers if you are using windows).. they make a big difference.
tkalfaoglu said:
Try different cables (or drivers if you are using windows).. they make a big difference.
Click to expand...
Click to collapse
Do you have any suggestions on drivers?
Hello231 said:
Do you have any suggestions on drivers?
Click to expand...
Click to collapse
No sorry - I use Linux which doesn't need drivers.

Categories

Resources