Link to this headingFlashing Image
Link to this headingSetup Device
Turn on the Device and hold the power and Down Button. This will put the device in to fastboot mode which is used to make changes to the OS and Boot properties.
Check to make sure that the device is in fastboot mode:
Unlock the OEM if not already done:
Link to this headingSetting Up Pixel 3a
Link to this headingFlashing Device
Flash the Main OS Partitions. Factory Nexus 5X Image
Flash the Recovery partition and use TWRP:
Link to this headingRecovery partition reverts at reboot
TODO Check which one
1:
The system overrides stock recovery with a service in init on every system boot, ‘service flash_recovery /system/bin/install-recovery.sh’
You can avoid it by deleting/renaming the install-recovery.sh present in /system/bin/ when you install oos via twrp before booting into system.
2:
dm-verity (a.k.a verified boot) checks certain places to make sure they haven’t been tampered with. So if it detects a recovery image it doesn’t expect, it restores the original. That’s what you’re seeing.
Try flashing magisk, as it disables dm-verity. If that doesn’t work and you’re on custom roms and kernels then maybe ask in those threads to see if people face that issue.
Link to this headingRoot the device with SuperSU
Rooting the device can be done through the recovery menu.
- Boot into the Recovery partition by either holding both the Power and Down Button or
adb reboot recovery - Click on the Advanced Button
- Click on the ADB Sideload Button
- Run
adb sideload ../UPDATE-SuperSU-v2.82-20170528234214.zip - Click the Reboot System Button
Link to this headingRoot the Device with Magisk
- Download the Magisk Manager
- Download the Zip installer
- Reboot into Recovery Mode
- Install the Zip
- Reboot into normal mode
Link to this headingEnable Developer Mode
- Launch the setting application
- Click the About Phone Button
- Click on the Build Number Button 7 times
- Click the back button
- Click on the Developer Options Button
- Click on the USB debugging Button to enable USB debugging
- Connect the USB to your computer
- In the menu bar click the Bottom button
- Change the USB option to Transfer files
- Connect using
adb devices - Click Trust on the popup.
Link to this headingChanging setting
Link to this headingSetting the Default USB to File Transfer
- Unplug the device from USB
- GO to Settings App -> Developer Options -> Select USB Configuration
- Set to MTP
Link to this headingBack Up Android Image
Nandroid and EFS Backups:
- From the bootloader screen, use the volume keys to select the “Recovery” option
- From the TWRP home screen, select the “Backup” option
- Select ONLY the data, system and boot checkboxes
- Rename the backup to Nandroid-Backup-[Append date/timestamp]
- Swipe to perform the backup
- Upon completion, go back to the “Backup” screen
- Select ONLY the EFS checkbox
- Rename the backup to EFS-Backup-[Append date/timestamp]
- Swipe to perform the backup
- Return to the bootloader screen by issuing the following command
Backup Current User Data:
Link to this headingUse a backup from another Phone:
- Get the backup from another phone
- Make a Folder with the DeviceID
- Restore the Phone
Get the Device ID:
FAILURE: This currently does not work. Need to find a work around