Need help flasing Paranoid Android - All TWRP'd up - Xiaomi Mi A2 / 6X Questions & Answers

Hi all! This is my first attempt to flash a custom rom and I'm stumbling. Summary below:
DEVICE AND SYSTEM:
Xiaomi Mi 6X
Running MIUI 11.0.6.0(PDCCNXM) (based on Android 9)
Device bought in China in 2018, not used until now, only updated through Xiaomi OTA.
Mi Unlock status - Unlocked
Developer options unlocked
USB debugging - activated
Phone not rooted.
Phone has no lock screen password set.
FILES TO FLASH:
1. dm-verity anti-rollback flash:
no-verity-opt-encrypt-6.0.zip
2. Paranoid Android custom ROM:
pa-quartz-5-wayne-20200924.zip
METHOD
I'm using Google pltaform-tools (https://developer.android.com/studio/releases/platform-tools) + TWRP files (https://twrp.me/xiaomi/xiaomimi6x.html) and command prompts in adb and fastboot.
WHAT HAS WORKED SO FAR
adb devices OK - cmd shows hexa key
adb reboot bootloader OK - phone enters fastboot
fastboot flash recovery twrp.img OK - cmd shows Finished. Total time: 1.504s
fastboot reboot (holding recovery key combo to avoid entering automatic MIUI recovery) OK - TWRP loads
Then the problems start. TWRP shows:
Mount
Decrypt Data
Enter Password
and no password in the realms of man or heaven works. by clicking cancel as a workaround several mounting problems appear:
THE ISSUE
Since TWRP can't decrypt internal storage, I can't find the zip files I copied to the phone's memory.
Googling around I found the OTG option and tried it. But as it turns out it's also impossible to mount OTG (on Mount, the option for OTG appears but clicking it does nothing)
Googling more I found out about abd sideload, but TWRP fails to start the feature (on Advanced -> ADB sideload -> select Wipe Dalvik Cache + Wipe Cache)
Also googling intensely I found that by wiping the memory (on Wipe - Format Data - write "yes") then reentering recovery it was possible for TWRP to enter a decrypted mode. after doing this no password is required but both OTG and ADB show the same problems as before (and of course the internal memory files are no longer there).
As a summary of my woes, this is what I've tested so far and the results:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Assorted tests with older versions of TWRP have exactly the same results.
After every wipe I have to set up MIUI11 again, open developer optios, allow USB debugging etc. My fingers hurt. Morale is low. My soul is leaking. Any ideas on where to go next? Is this some unfixable incompatibility between TWRP and MI? I think I've exhausted the paths I can find by just googling around like a progressively more hairless maniac noob.

TWRP sucks for mi 6X. Download this one (OrangeFox Recovery) and everything works fine.To install it extract the zip and flash the recovery.img that is there. After that reboot to recovery and if it still asks for password just ignore, go to menu, manage partitions, clik on data, click on the button that will show, then format data and type yes. This will clean every partitions (It's the only way i found to fix encryption since our device doesn't support sd cards)Then download the Rom you want to your pc and then copy to your phone storage and install it. Good Luck.

Related

Bricked device

Hi guys
I am new to posting here but an avid viewer, now recently I had a problem with my device where the battery died and the device no longer boots and I cannot flash a new rom or recovery, the same as these two posts:
http://forum.xda-developers.com/moto-g-2014/help/device-bricked-0-battery-left-t3085322
http://forum.xda-developers.com/moto-g-2014/help/moto-g-2014-dead-t3072930
Now unfortunately unlike those two I am unable to send my device to Motorola for repairs as it was bought in another country, now I have tried all the options available to me, even all those mentioned in the two posts, including Wipe /data /system /cache in twrp & fastboot, but /data remains unchanged. I was running Blisspop V3.2 before the issue and no matter what I do or how I flash it keeps showing the blisspop boot logo & gets stuck there.
After a few attempts i switched to adb, and in adb I realised that the /data partition is set to "read only"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And as you can see chmod cannot change the permissions for the /data partition.
Now my question is this does anyone out there have any clue as how reset the data partitions read-write permissions without using chmod ?
FYI this device is a paper weight at the moment and I would like to see if I can do anything about that and maybe learn something on the way.
Leader0fr4tz said:
Hi guys
I am new to posting here but an avid viewer, now recently I had a problem with my device where the battery died and the device no longer boots and I cannot flash a new rom or recovery, the same as these two posts:
http://forum.xda-developers.com/moto-g-2014/help/device-bricked-0-battery-left-t3085322
http://forum.xda-developers.com/moto-g-2014/help/moto-g-2014-dead-t3072930
Now unfortunately unlike those two I am unable to send my device to Motorola for repairs as it was bought in another country, now I have tried all the options available to me, even all those mentioned in the two posts, including Wipe /data /system /cache in twrp & fastboot, but /data remains unchanged. I was running Blisspop V3.2 before the issue and no matter what I do or how I flash it keeps showing the blisspop boot logo & gets stuck there.
After a few attempts i switched to adb, and in adb I realised that the /data partition is set to "read only"
And as you can see chmod cannot change the permissions for the /data partition.
Now my question is this does anyone out there have any clue as how reset the data partitions read-write permissions without using chmod ?
FYI this device is a paper weight at the moment and I would like to see if I can do anything about that and maybe learn something on the way.
Click to expand...
Click to collapse
adb root; adb remount
Does your phone get recognized by your pc?
Mine went black a few days ago and i cant do anything.
LuK1337 said:
adb root; adb remount
Click to expand...
Click to collapse
Hi LuK1337
Firstly thanks for the help.
adb root returns a message saying adb already has root access.
asb remount only remounts the /system partition (unless im using it incorrectly).
So far I have well and truly wiped every partition of this device excluding the /data partition which returns a message saying partition is read-only
So I have now officially proved that this is a hardware issue at least for me, look here for my findings:
http://forum.xda-developers.com/moto-g-2014/help/battery-drained-encrypted-device-pinned-t3079871/page2
Short version I've used every available software method including 'Fastboot Erase all' which has no effect.
So would anyone be able to help build a usb jig or finding a hardware way to fix this ? my device has been opened so I would be able to provide high res pictures of the motherboard to anyone who needs it, will also upload when my 10 post count has been reached
Solved: Dead battery stuck in fastboot mode unable to flash any image. Works for all.
Same thing happened to me.
Nothing to do with the hardware.
Steps to Follow:
1) Open fastboot mode in your phone.
2)Connect to your pc and open cmd in platform-tools folder.
3)Place the twrp.img file in platform tools.
4)In cmd, type : fastboot boot twrp.img (Very Important Command)
Now your phone will boot to recovery mode i.e. TWRP and the connect it to charger. It will charge slowly.
Now you can flash anything using ADB Sideload.
(If found helpful, hit the thanks button )

[ROOT] [UNSTABLE] Root Redmi Note 8 MIUI 10 [ginkgo]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in the products you find here before flashing it! YOU are choosing to make these modifications, Your warranty will be void if you tamper with any part of your device/software.
​Information:
Device: Redmi Note 8
Android: 9 (PIE)
Version: MIUI 10 Global
Codename: ginkgo
Method root: Magisk
Note:
All your data will be LOST.
You CAN NOT keep the TWRP Recovery.
You CAN grant the permission for application but it is NOT STABLE.
Please follow step by step:
Download and extract my zip file.
Hold Power and Vol(-) when your device is show Fastboot (enter the fastboot mode).
Connect your USB cable to the computer and your device.
Go to "fastboot" folder and hold the Shift button and right-click, then choose "open command windows here".
Type "fastboot device". (If it shows your device id or string, you can move to the next step)
Type "fastboot flash recovery twrp.img" (You'll use it later, don't close it)
Then hold Power and Vol(+) and your device will show the TWRP(Your device will force turn off and boot to recovery 1-time again)
Copy file Magisk-v20.0.zip and Disable_Dm-Verity_ForceEncrypt_10.20.2019.zip on your computer to Internal storage or Sdcard
When your device is booted into TWRP
- (If it asks you password, and your password in MIUI is the pattern, press back and select Wipe, Format Data-> yes)
- (If your password in MIUI is "number" or "string", type it to decrypt data.
Select "Install" in TWRP and flash Magisk-v20.0.zip first and Disable_Dm-Verity_ForceEncrypt_10.20.2019.zip second.
Then select "Reboot" => Bootloader
On your computer and old command window, continue type "fastboot flash recovery recovery_stock.img"
Do again step 7, it will show MI Recovery 3.0, Select Wipe Data => Wipe All Data => Confirm
Reboot and pass wizard start again, then install Magisk Manager apk, you will get root permission
Thanks to:
TWRP by wzsx team.
Note: You do not install TWRP again, it will make your device is bootloop TWRP.​I'm just a user, not a developer, if you have any better method, let share it.
Maybe TWRP for only CHINA version, wait TWRP OFFICIAL GLOBAL VERSION for Redmi Note 8 ​DOWNLOAD
MEGA | DRIVE​
Reserved #1
Is there any way to just get twrp permanently?
ridershahmir said:
Is there any way to just get twrp permanently?
Click to expand...
Click to collapse
Not yet!

When I try to flash a custom ROM I always end up with this, and the device only boots to TWRP Recovery

What could be the cause?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Xiaomi protect their device from custom rom or custom recovery and some time device go to hardbrick and stock on fastboot mode
So every time you want to install a custom rom after successful to install(dirty flash better) the rom first go beck to twrp menu and format system and dalvik cache then go to install>install image>select twrp img file>install
Then go to reboot>reboot to recovery
Then reboot to system
I don't have your device. But that list of files/folders with random letters means your internal storage/data partition is encrypted. You need to go to "repair filesystem" menu in twrp and reformat it to another type and back to ext4. Or use "format Data" menu. All your data will be wiped.
Don't take my word for it. Google "how to decrypt device in TWRP" and learn about it.
Ps: @moh4556 your answer is correct but it's not format system and dalvik, it's wipe system/dalvik/data menu. It will delete those partitions but for data it leaves /data/media (your internal sdcard) alone. It's sometimes not enough when moving from stock to custom rom.
Hope this helps
weird, i was pretty sure i replied to this thread
strange characters in roms mean you havent formatted data most of the time. once you answer yes you lose your entire data (and locking mechanisms which scrambles names) altogether
for the most part, installing roms follow the same steps
format (not wipe) data
wipe system, vendor, dalv and cache
flash stuff
wipe dalv and cache again
moh4556 said:
Xiaomi protect their device from custom rom or custom recovery and some time device go to hardbrick and stock on fastboot mode
So every time you want to install a custom rom after successful to install(dirty flash better) the rom first go beck to twrp menu and format system and dalvik cache then go to install>install image>select twrp img file>install
Then go to reboot>reboot to recovery
Then reboot to system
Click to expand...
Click to collapse
not entirely true. it is highly recd to install the vbmeta patch for redmi8. im lucky and havent required it.
newer miui does make it a pain to install custom recovs directly, hence the 3.6 update included an advanced install option
older miuis arent that protected and only require a reboot to recov after installing the custom recov
also a bit offtop but whatev

Root Nokia 1 (TA-1066) (MT6737M) (Android 9 - Pie)

So, after trying more than a few methods I finally gained root on my TA-1066.
If you also wanna root, here is how:
To Root Nokia 1 (TA-1066) (Pie - Android 9) (Dual SIM)​
What you're gonna need:​
Working PC,
Some Packet Data,
Some knowledge of ADB & Fastboot commands,
Some storage space for storing Back Up of your phone,
and a Working Brain
WARNING!! ☠​I am not responsible for anything goes wrong to your phone by following the steps mentioned in this method. So, please do anything with care and if you don't know what is this, simply Stay away! ​
Make a Backup Of your phone's Data:​
Please make a Back Up of your data stored in your phone tp a safe place in your PC or somewhere in a disk. So, if anything goes wrong you can retrive it back from there.
Now Follow these steps:-​
Download attached ⬇ boot.img & keep it in your phone, we'll use it later.
Root boot.img using Magisk:
Download Magisk v25.2 from here.
Install Magisk app and open it.
Tap Install.
click Next.
click Select and Patch a File.
Select boot.img that you downloaded.
click Let's Go. (let the process complete)
Now rooted boot image will be stored in Download folder of your phone, move it your PC.
Install adb and fastboot into your PC​
Download the setup file from here.
Unzip and Run it as Admin.
Tap Next until it installs.
Enable developer options and turn on USB Debugging​
Goto Settings > System > Advance > About phone > Tap on Build number 7-8 times.
Go back and Tap Developer options > (scroll down) Turn On USB debugging.
Now connect your phone to your PC using USB Data Cable.
A prompt will appear asking permission, Tick Always allow from this computer and Tap OK.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let the USB Data Cable connected and follow below steps.
In your PC open CMD and start typing these commands:​
Confirm that your device is connected:
adb devices
get your serial number by entring this command:
adb shell getprop ro.serialno
calculate md5 of the serial number using this site: https://passwordsgenerator.net/md5-hash-generator/
it'll look something like this D4423199AC65U1237C86D0E6BBF65243M
Reboot to bootloader:
adb reboot bootloader
Unlock using key (md5code=md5 of your serial number):
fastboot oem key md5code
Reboot and Turn on OEM Unlocking:
Settings > System > Advance > Developer options > Turn on OEM Unlocking
Reboot to bootloader:
adb reboot bootloader
Open Device Manager in your PC and follow this video below:
after doing as in video open CMD and type:
fastboot flashing unlock
Quickly press Volume Up button of your phone to unlock flashing.
Flash patched/rooted boot image. (boot.img = patched boot.img path in your PC)
fastboot flash boot boot.img
Reboot your phone to system.
fastboot reboot
Congratulations your Nokia 1 is now ROOTED!! Enjoy!!​Hit thanks button if you liked the process.
Feel free to ask any query.
​CREDITS​Method taken from this thread by @androidlover5842 , some changes made by me.​Thanks @Snoop05 for ADB and Fastboot.​Thanks @savadam for video tutorial.
and Me ​

[GUIDE]Xiaomi.EU ROMs Flashing Guide All Devices [Windows-Only]

If you are going from MIUI 12 (or later) Weekly ROM to MIUI 12 Stable ROM, you are doing a downgrade, so format data is mandatory!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Requirements:
First of all unlock bootloader of your device . Search net for more info.
After this install adb drivers from here: https://forum.xda-developers.com/t/...reborn-v2-0-adb-fastboot-and-drivers.3854109/
Choose skip install for adb and install google drivers.
Connect your device in fastboot mode to your pc.
Go into device manager , right click on unrecognized android device , choose update drivers , let me pick from a list of drivers , select adb drivers, android bootloader interface and click install.
MIUI 12 (Weekly And Stable)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Go to the sourceforge link of the rom and see the date of your rom. In this case it's alioth.
See the date of your rom . Now go to xiaomiformwareupdater.com and select your device. Then click download.
New page will appear. Type fastboot in the searchbar of the page. Now see global rom the date closest to the release of the xiaomi.eu rom and download.
Unzip the rom file to the root of c: drive and connect your device to fastboot mode and double click on flash_all.bat
A cmd window will popup and close after 15-20 min approx when flashing is done.This will delete your data.
Let the device boot into MIUI.
Once it boots power it off . Then press the vol down + power button until fastboot in orange letters appear.
TWRP method:
Flash twrp using fastboot.
Boot into twrp.
Go to wipe and format data.
Then factory reset in wipe.
Do not wipe anything in advanced wipe !
Copy the zip file to a fat32 formatted sdcard or usb.
Connect sdcard or usb to device.
Go to install , select storage , sd/usb, select rom zip and flash.
Once flashing done , wipe dalvik.
Reboot to recovery.
Reboot to system.
Done.
Fastboot:
Unzip rom file to root of c: drive.
Go into folder.
Run fastboot installation script in folder according your PC operating system:
If updating from older rom.
--- For Windows OS - windows_fastboot_update_rom.bat
--- For Linux - linux_fastboot_update_rom.sh
--- For MacOS - macos_fastboot_update_rom.sh
Done.
If installing first time.
--- For Windows OS - windows__first_install_with_data_format_.bat
--- For Linux - linux__first_install_with_data_format_.sh
--- For MacOS - macos_fastboot_first_install_with_data_format_.sh
NOTE(For Stable And Recovery ROMs):
CHECK THE XIAOMI.EU THREAD FOR KNOWING IF YOUR ROM IS FASTBOOT OR RECOVERY.
Alternatively If you want you can flash india , eea , turkey , etc variants of stock rom instead of global , then flash xiaomi.eu according to the instructions above. But keep in mind that the release date of stock rom that you are flashing should be closest to the release date of xiaomi.eu weekly rom.
Install magisk after first boot and reboot after installing magisk to get rid of system lags.

Categories

Resources