How to Install TWRP - Xiaomi Mi A2 / 6X Questions & Answers

I need easy instruction for installing TWRP in MI A2 Pie.
i have tried fastboot boot twrp.img i boots but i cant find flashable zip in Storage and it shows many disgusting folders.
so how to Permanently install TWRP in Mi A2 PIE??

I don't think you can right now. I'm getting either the bugged folders or a full black screen.
Sad. Just sad.
Sent from my Mi A2 using XDA Labs

Cuesta4 said:
I don't think you can right now. I'm getting either the bugged folders or a full black screen.
Sad. Just sad.
Sent from my Mi A2 using XDA Labs
Click to expand...
Click to collapse
'bugged folders' is it random letter and numbers? I'm getting a black screen from both TingyChen and Manish twrp, but when I try to access via ADB from PC, I see folders with random letter and numbers, like it's encrypted or something.

elzafir said:
'bugged folders' is it random letter and numbers? I'm getting a black screen from both TingyChen and Manish twrp, but when I try to access via ADB from PC, I see folders with random letter and numbers, like it's encrypted or something.
Click to expand...
Click to collapse
It's bugged graphics. The options don't render properly. It's that or black screen.
Sent from my Mi A2 using XDA Labs

Solution for black screen after
"fastboot boot recovery.img":
while beeing in black screen use following commands:
adb shell
twrp sideload
adb sideload (filename).zip

twrp xiaomi mi a2
hello the reason why you see the folders with numbers without any sense is because you have updated the xiaomi mi a2 in fact with the last update the partitions are encrypted and you have to decrypt them but know that once this is done the smartphone must be formatted

Related

Full Panic Mode. Boot Issues + Format

Hey guys,
I done ****ed it all up.
Was in my TWRP recovery on my One, was wiping the phone to prepare for a new rom. Unfortunately, I was stupid and didn't realize that I was formatting it instead of wiping it. Now, I have a useless chunk of beautiful metal.
I can get into TWRP, but cant really do anything from there. It wont connect to my PC ( I dont see it under My Computer ) so I cant move any roms over to flash. I feel like I'm missing something very simple here.
Any ideas?
Adb sideload from recovery, advanced option.
Sent from my HTC One using Tapatalk 4
Dont panic as pablo11 have said, you can use adb sideload to sideload a rom.
Boot into twrp go to advanced, then adb sideload and swipe then on your computer open a command line where you have your folder for rooting the htc one (where fastboot is etc) and put the ROM you want to flash in that folder and type adb sideload ROM.zip and you should be good to go!
ADB Sideload
What is ADB*sideload?
ADB*sideload is a new feature that was added to AOSP*recovery in Jelly Bean.* As of version 2.3, TWRP*now supports ADB*sideload mode.* ADB*sideload is a different ADB*mode that you can use to push and install a zip using one command from your computer.* Most likely*ADB*sideload won't be very useful for your average recovery user, but ADB*sideload can be a huge time-saver for a ROM developer.
How do I*use ADB*sideload?
Have a recovery installed on your device that supports ADB*sideload like TWRP*2.3 or higher
Have newer ADB binaries installed on your computer.* If it's been a while since you installed ADB on your computer, you may need to get the latest ADB binaries in platform-tools from*the Android*SDK.* You will need version 1.0.29 or higher.* You can find your current version by typing*"adb version" at the command line.
Set the device into ADB*sideload mode. In TWRP*you do this by going to Advanced then ADB*Sideload.
From the command line, type adb sideload /path/to/rom.zip
The file will be copied to your device to whatever the current storage location is that you have selected in the mount page.* It will always be placed in the root of that storage location and named sideload.zip (e.g. /sdcard/sideload.zip) and it will automatically delete / overwrite any existing sideload.zip you may have on your device.* As soon as the file is copied to your device, it will automatically be installed.* When the install is finished you will be presented with a reboot system button so that you can reboot to test your zip.
Note that sideload mode is a separate ADB*mode. While in sideload mode, regular ADB commands will not work. Once the zip has been copied to the device and the install starts (or if you hit the cancel button) regular ADB mode will resume.
Sent from my HTC One using Tapatalk 4
Instructions:
http://forum.xda-developers.com/showthread.php?t=2325853&highlight=sideload
All fixed last night. Thanks guys, got my phone running again! Now to fix that radio...
Sent from my Nexus 7 using XDA Premium 4 mobile app
yasha.sinitski said:
All fixed last night. Thanks guys, got my phone running again! Now to fix that radio...
Sent from my Nexus 7 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Happy to hear it and glad to help!

[Q] No OS - Please help - TWRP - 4.2.2 - Rooted

Hey everyone,
So about 1 hour ago I attempted to install a kernel onto my rooted HTC One through Team Win Recovery Project. I got onto the kernel and loaded it
Once I was finished i went to reboot my phone and it shows the HTC splash screen and does nothing. I waited but with no response.
I got back onto the recovery screen to find out i no longer had an OS.
My computer (Windows 7 64-bit) cannot detect my HTC One. I have a couple of save backups i had done through TWRP available on my computer, but not on my One.
I have attempted to boot into the HTC screen (Power + Volume down) and tried a factory reset,but it just sent my back to the TWRP.
How can i reload my OS? Im not very experienced with android so step by step instructions would be just great.
Thank you very much
Also, i forgot to mention. I was running the stock ROM.
Youssef26500 said:
Hey everyone,
So about 1 hour ago I attempted to install a kernel onto my rooted HTC One through Team Win Recovery Project. I got onto the kernel and loaded it
Once I was finished i went to reboot my phone and it shows the HTC splash screen and does nothing. I waited but with no response.
I got back onto the recovery screen to find out i no longer had an OS.
My computer (Windows 7 64-bit) cannot detect my HTC One. I have a couple of save backups i had done through TWRP available on my computer, but not on my One.
I have attempted to boot into the HTC screen (Power + Volume down) and tried a factory reset,but it just sent my back to the TWRP.
How can i reload my OS? Im not very experienced with android so step by step instructions would be just great.
Thank you very much
Click to expand...
Click to collapse
Since you can still access recovery..
1. Find a guide on how to 'adb push' or 'adb sideload' a ROM to your phone.
2. I'd recommend a ROM that doesn't require AROMA installer, it makes it a little easier. For now, CM 10.1 will be fine.
3. Once you can access your phone again, put your backups onto your phone from your computer.
4. Restore your backup in recovery.
Or you could just buy a USB-OTG cable and put the backup on a USB and restore in it TWRP.
Sent from my HTC One using XDA Premium 4 mobile app
Or, instead of redbull's approach, you can boot the phone into recovery, then (after reading about how to install and run ADB), use "adb push" to push the recovery files to the phone:
Code:
adb push /path/to/TWRP /data/media/0/TWRP
If that directory doesn't exist, you can probably push to /data/media/TWRP instead. After this, you should see your backups in TWRP and can recover them.
fenstre said:
Or, instead of redbull's approach, you can boot the phone into recovery, then (after reading about how to install and run ADB), use "adb push" to push the recovery files to the phone:
Code:
adb push /path/to/TWRP /data/media/0/TWRP
If that directory doesn't exist, you can probably push to /data/media/TWRP instead. After this, you should see your backups in TWRP and can recover them.
Click to expand...
Click to collapse
I have tried both methods now.
For redbull's approach, as i try to put my phone into ADB Sideload mode through TWRP, TWRP simply says Starting ADB Sideload Feature... but does nothing. I have left it for a little while to no avail.
I have noticed when i put in the command "adb devices" it shows my device as a "host" and i checked on another thread and i believe it should show up as "device". Any ideas?
Worst case scenario i will have to wait a few more days for my OTG Cable to arrive from eBay and then hope that it works from there.
Youssef26500 said:
I have tried both methods now.
For redbull's approach, as i try to put my phone into ADB Sideload mode through TWRP, TWRP simply says Starting ADB Sideload Feature... but does nothing. I have left it for a little while to no avail.
I have noticed when i put in the command "adb devices" it shows my device as a "host" and i checked on another thread and i believe it should show up as "device". Any ideas?
Worst case scenario i will have to wait a few more days for my OTG Cable to arrive from eBay and then hope that it works from there.
Click to expand...
Click to collapse
Once you start the sideload, that's when you command 'adb sideload name_of_rom.zip'. Make sure the rom zip is in the same folder as your adb and fastboot files. Or 'adb sideload ' then drag your zip into the cmd window.
Also, if you're using a usb 3.0 port - they have been known to cause problems.
Sent from my HTC One using XDA Premium 4 mobile app
redbull123 said:
Once you start the sideload, that's when you command 'adb sideload name_of_rom.zip'. Make sure the rom zip is in the same folder as your adb and fastboot files. Or 'adb sideload ' then drag your zip into the cmd window.
Also, if you're using a usb 3.0 port - they have been known to cause problems.
Sent from my HTC One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
YAY
Thanks. Finally got my phone running on CyanogenMod, and I was able to get in a factory reset to remove all the data etc from the old rom.
Just a final question though XD
On TWRP I go to the restore option but I don't find anything there. I have put the backup folder in /data/media/0/TWRP but it doesn't appear in the restore option. Any idea of where i should put the files?
Thanks
/data/media/0/TWRP/BACKUPS/
There will be another folder inside the above with a random string of alpha numeric characters. The backups are inside there.
If you perform a backup, you will see its location. Then you can place any others in there also.
Youssef26500 said:
YAY
Thanks. Finally got my phone running on CyanogenMod, and I was able to get in a factory reset to remove all the data etc from the old rom.
Just a final question though XD
On TWRP I go to the restore option but I don't find anything there. I have put the backup folder in /data/media/0/TWRP but it doesn't appear in the restore option. Any idea of where i should put the files?
Thanks
Click to expand...
Click to collapse
Good to hear.. As nobnut says - do a backup then see where it saves it to, then just put your backup in there, then restore :good:
Sent from my HTC One using XDA Premium 4 mobile app

[Q] HTC One - Custom Recovery not mounting storage

Hi,
I've looked everywhere for a solution but couldn't find one that helped. I was trying to flash a mod via TWRP custom recovery (followed all the instructions, wiped dalvik cache etc) but when rebooting, |the phone got stuck on the HTC One logo. I can access the custom recovery but when trying to mount storage, computer -running Windows 8- doesn't seem to do anything. Also made the mistake of not making a nandroid backup beforehand, so just need to be able to flash a ROM. Tried to adb push the file, but it gives me the error 'device not found'.
Delete... Sorry, I did misread it.
A lot of people have issues with getting drivers to work on Windows 8. Probably easier if you know someone who has Windows 7 and install the drivers on that
Sent from my HTC One using XDA Premium 4 mobile app
Minimal ADB and Fastboot
Maybe you could try this one here, solved this problem for me.
http://forum.xda-developers.com/showthread.php?t=2317790
You can check if adb can find your phone with "adb devices". If there is none, you have to check your drivers again.
I then used adb sideload in TWRP. Start it when connected and type "adb sideload update.zip" (or whatever your zip is called). He will load the file to your root /data directory. You can install the zip from there then.
Thanks
Thanks for the answers! I'll try using another computer that's not running Windows 8 - I have a feeling its a problem with the drivers.
Same problem here, when i type fastboot devices the serial appeared but i cant push files like the stock odex rom, cant, i found out i cant access my internal memory, is there a solution for that?
Thanks!!
Fastboot and adb are different. You can only adb push from in a Rom or in recovery
Sent from my HTC One using XDA Premium 4 mobile app
nateboi81 said:
Fastboot and adb are different. You can only adb push from in a Rom or in recovery
Sent from my HTC One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
even in settings in twrp or cwm recovery, i cant mount my memory, is there a way to remount my memory on my phone? so that i transfer stock rom to my phone

MM Update

was just wondering : has anyone got the MM update already ?
cheers
OTA update link: https://android.googleapis.com/pack...5e909bdec.signed-signed-sprat-ota-2576000.zip
This next part is assuming you have ADB installed on your computer. If you don't, google how to install ADB first.
To sideload the update:
1. Enable Developer Options: Settings>About>Tab Build Number 7x
2. Go back to the Settings Menu
3. Go into Developer Options (All the way at the bottom, below About)
4. Enable USB Debugging
5. Go to wherever ADB is installed on your PC (For me, it is C:\Program Files (x86)\Android\android-sdk\platform-tools\)
6. Shift+Right Click inside the folder, but not on a file in the folder, then click "Open command window here"
7. Type "adb devices"
8. At this point, on your watch, it should pop up a dialog asking if you would like to authorize the connection. Hit Always.
9. Type “adb reboot recovery”
10. On your watch, tap the screen once, then swipe down until you're hovering on “apply update from ADB.” then swipe to the right.
11. In the command prompt on your PC type “adb sideload” followed by a single space then drag and drop the zip to the command prompt window then hit Enter.
12. It will now begin installing the update on your device. Whatever you do, do not disconnect your watch from the computer or close the command prompt window.
13. Depending on the situation, your watch may or may not reboot automatically. If it doesnt, after it is done installing the update and goes back to the main Recovery menu, swipe to the right on "Reboot system now."
Click to expand...
Click to collapse
BTW I highly recommend forgetting your watch from the Android Wear app on your phone/tablet and factory resetting your watch after updating.
After I installed it, settings on the watch were funky, like it offering phone options which we shouldn't have without a speaker, and it wouldn't install the new Wear Messenger app that is included in the newest version of Google Messenger.
Dudash said:
OTA update link: https://android.googleapis.com/pack...5e909bdec.signed-signed-sprat-ota-2576000.zip
Click to expand...
Click to collapse
cool, thanks, have just installed it !
cheers
Dudash said:
OTA update link: https://android.googleapis.com/pack...5e909bdec.signed-signed-sprat-ota-2576000.zip
This next part is assuming you have ADB installed on your computer. If you don't, google how to install ADB first and since the zip file doesn't say which "version-from-version" it is for like they normally do, for example LCA43-from-LDZ22J, I'd recommend being on LCA43 before sideloading the update.
Click to expand...
Click to collapse
Someone correct me if I am wrong, but that OTA update is a full image unlike all previous updates. So, it should work as long as you have partition in place. Also, it looks like they added "new" features to the stock recovery. It has more options now.
aligatro2010 said:
Someone correct me if I am wrong, but that OTA update is a full image unlike all previous updates. So, it should work as long as you have partition in place. Also, it looks like they added "new" features to the stock recovery. It has more options now.
Click to expand...
Click to collapse
It is possible that you could flash it from an earlier build and end up with the same system. If you want to be a guinea pig for other people, be my guest
I was merely stating the safest way to not end up with a watch that won't go past the boot logo.
Also, since MM updates for other watches include the "version-from-version" text in the name of the update.zip, I assumed they just forgot to put it in the Gear Live .zip.
Dudash said:
It is possible that you could flash it from an earlier build and end up with the same system. If you want to be a guinea pig for other people, be my guest
I was merely stating the safest way to not end up with a watch that won't go past the boot logo.
Also, since MM updates for other watches include the "version-from-version" text in the name of the update.zip, I assumed they just forgot to put it in the Gear Live .zip.
Click to expand...
Click to collapse
Nope, they didn't forget, but its just a full image. I was able to sideload it to my watch after formatting the partitions(so no prev firmware at all).
Does anyone know if root is available already ?
Cheers !
Enviado desde mi Galaxy Nexus mediante Tapatalk
thagringo said:
Does anyone know if root is available already ?
Cheers !
Enviado desde mi Galaxy Nexus mediante Tapatalk
Click to expand...
Click to collapse
Haven't tried it on the latest version, but I think you can root it by installing latest supersu. Just need to remove the apk that comes with it, as it will crash on launch.
One thing I don't like about the new update is how they changed the "Simple" and "Incremental" watchfaces.
They used to have a daytime color (light blue), an evening color (yellowish-orange), and a nighttime color (dark blue/purple).
Now the colors/images are updated (more clouds) but there isn't an evening color anymore and it doesn't change to the nighttime one until like 10pm.
Kind of a strain on the eyes to see a light blue background after the sun goes down.
I'm curious why they removed the evening color.
thagringo said:
was just wondering : has anyone got the MM update already ?
cheers
Click to expand...
Click to collapse
Mine updated automatically. I left it charging and when I came back, there it was, waiting to be installed.
One thing though: it won't show starred contacts (favorites) anymore, which it did before the update, and I can't figure out how to fix it.
Anyone else notice this?
I got it. So far so good
Sent from my SM-G935P using XDA-Developers mobile app

Messed up my phone's developer options but would like to get it back with my data

My issue is that I went into developer options and apparently went overboard on changing a value to scale UI (minimum width value). The phone crashed and is not able to fully launch the system anymore, then restarts and enters recovery mode. After some time it reboots automatically, so it's in a bootloop from what I've heard. Mi recovery 3.0 has the options "connect to Mi PC Suite", which I installed on my Laptop and connected, but only gives access to flashing. The other option is a data wipe, but I would really like to maintain my data.
Basically what I need is a way to change the value back or at least backup my data.
I am able to enter Fastboot, but don't know how to use it.
My phone is a Xiaomi Mi 9T Pro running MIUI 12 / Android 10 without any root or modification neither a unlocked bootloader.
Sebbchen said:
My issue is that I went into developer options and apparently went overboard on changing a value to scale UI (minimum width value). The phone crashed and is not able to fully launch the system anymore, then restarts and enters recovery mode. After some time it reboots automatically, so it's in a bootloop from what I've heard. Mi recovery 3.0 has the options "connect to Mi PC Suite", which I installed on my Laptop and connected, but only gives access to flashing. The other option is a data wipe, but I would really like to maintain my data.
Basically what I need is a way to change the value back or at least backup my data.
I am able to enter Fastboot, but don't know how to use it.
My phone is a Xiaomi Mi 9T Pro running MIUI 12 / Android 10 without any root or modification neither a unlocked bootloader.
Click to expand...
Click to collapse
You can change resolution screen by adb fastboot, but you bootloader need unlock.
You can try, the max occurs is dont work.
Code:
adb shell wm size 1080x1920
adb shell wm density 390
adb reboot
Ref.
Good luck.
sfairmm said:
You can change resolution screen by adb fastboot, but you bootloader need unlock.
You can try, the max occurs is dont work.
Code:
adb shell wm size 1080x1920
adb shell wm density 390
adb reboot
Ref.
Good luck.
Click to expand...
Click to collapse
Thanks for helping!
The phone does not have an unlocked bootloader. Can I still run those commands?

Categories

Resources