[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon stock to Android 12.1 / LineageOS 19.1 - Xiaomi Redmi Note 4 Guides, News, & Discussion

[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon stock to Android 12.1
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4/4X Snapdragon SOC (codename mido) stock to Android 12 / LineageOS 19.1
Complete guide to install Android 12 on your Xiaomi Redmi Note 4 (Snapdragon or 4X).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG
v4. Minor improvements, Android 13 incoming (+ Google Camera) !
v3. Android 12.1 thanks to awesome Zeelog (and @anandsvm), migrate to MindTheGApps, upgrade TWRP
v2. BitGApps, updated TWRP + Magisk
v1. Initial release
1) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.6.2_9-0 + Magisk root v23)
+ ROM LineageOS Unofficial 19.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ MindTheGApps 12.1 ARM64: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
or BitGApps ARM61 12.1 v1.4+: https://github.com/BiTGApps/BiTGApps-Release/releases
2) INSTALL DRIVERS
First uninstall all Oneplus, Oculus ... Android drivers.
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
### If you experience problems with phone connection later, use https://github.com/lostindark/DriverStoreExplorer (thanks @Lysolus for sharing)
3) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.6.2_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.6.2_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy LineageOS 19.1 and gapps.zip (+ magisk if you want root) to the same phone's Internal Storage folder.
### Copy both zip files straightforward. Don't unzip archives.
7) FLASH ANDROID 12.1
Once again Swipe to Allow Modifications.
Go to Install > lineage*.zip,
then Add more zips: mind*.zip.
### Optional: to flash Magisk root, go to Reboot > Recovery. Then Install > Magisk*.zip
Go to Reboot > System
8) ROOT ACCESS AND DEVELOPER MENU (OPTIONAL)
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: Zeelog, @anandsvm, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, MindTheGApps team

Thanks for this... Will try it in 2-3 days

[email protected] said:
Thanks for this... Will try it in 2-3 days
Click to expand...
Click to collapse
Hi,
Any feedback is very welcome.
Normally you have all you need to hack it.
Enjoy

Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?

[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Hi, no idead for payment.
But MagiskHide normally does the trick.
Unlock bootloader is fast with all the tools in my pack.

[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Root is optional.

Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1

Jn1441 said:
Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1
Click to expand...
Click to collapse
Hi, what is the error during flash in TWRP ?

Error1 displayed but after reflashing with mindgapps majisk is working now

Jn1441 said:
Error1 displayed but after reflashing with mindgapps majisk is working now
Click to expand...
Click to collapse
Cool, enjoy. The phone is still good

A very nice and clean tutorial, thanks for that!
I already unlocked bootloader with another tutorial and for now I will leave the device on the last stock firmware. But I already tested magisk. It's very new to me. The last phone I flashed is some years ago and I only knew SuperSU.
The Note 4 is only a "second device" and I won't use it as a daily driver. But it's fun to play around with it and test some things.
@djibe89 Good hint, that I have to use an older rom as an intermediate step to avoid problem, this is new to me.
Also I wondered when I looked up the partitions to backup. There are 15 (!?) partitions (Pics attached). You are writing, that following partitions have to be backed up: System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
When I flash lineage and then want to go back, can I just restore the partitions? What happens to the other partitions when I flash a rom? Will they be deleted? Some years ago a phone just had 4 or 5 partitions...

Hi @tito_puente, you can start from step 7 to enjoy a clean Note 4.

Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?

the_real_grumpazoid said:
Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?
Click to expand...
Click to collapse
Hi, you can uninstall from the Magisk app
Installation
The Magic Mask for Android
topjohnwu.github.io

Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?

nysrin said:
Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?
Click to expand...
Click to collapse
Hi,
Yes.
Like written in the Title, it is for the snapdragon version, Aka 4X

Ooh i did not know the only difference between the note 4 and note 4x is that the 4x uses snapdragon.
The reason I was doubting is that I got a different device ID so I thought i my phone is a different model
List of devices attached
e640de900903 device
Click to expand...
Click to collapse
I will proceed later tonight, thank you for your quick response.

djibe89 said:
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon SOC (codename mido) stock to Android 11 R / LineageOS 18.1
Complete guide to install Android 11 on your Xiaomi Redmi Note 4 (Snapdragon).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG ----------------------------------------
v1. Initial release
1 ) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.5.0_9-0 + OrangeFox recovery + Magisk root)
+ ROM LineageOS Unofficial 17.1: https://forum.xda-developers.com/t/ota-3-18-4-9-unofficial-lineageos-17-1-mido.4039907/
Download latest build: https://androidfilehost.com/?w=files&flid=309016&sort_by=date&sort_dir=DESC
Yes we need both LineageOS (LOS) ROMS !
+ ROM LineageOS Unofficial 18.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ FlameGApps Basic: https://sourceforge.net/projects/flamegapps/files/arm64/android-11/BETA/
2 ) INSTALL DRIVERS
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
3 ) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4 ) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5 ) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.5.0_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.5.0_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6 ) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy OrangeFox and LineageOS 17.1 to the same phone's Internal Storage folder.
7 ) FLASH ORANGEFOX RECOVERY
Now go to Home screen > Install
Select OrangeFox*.zip and Swipe to confirm Flash, recovery will auto-reboot.
8 ) FLASH LINEAGEOS 17.1
Coming from Android 7, we need to flash Android 10 to prevent bugs with fingerprint or bootloops...
Once again Swipe to Allow Modifications.
On bottom navigation bar, tap on Files.
Then select lineage-17.1*.zip and Swipe to Install.
Then tap on Wipe Caches > Swipe to wipe,
then Reboot System.
Wait during boot.
Quickly setup Android and try to skip configs.
Once finished, turn phone off.
9 ) FLASH LINEAGEOS 18.1
Boot in Recovery mode:
Hold Power + Volume+ until Mi logo shows up and release buttons.
Wait during OrangeFox recovery boot.
On bottom navigation bar, tap on Wipe.
Select Dalvik/ART cache, Cache, System, Data and Vendor partitions,
then Swipe to Wipe.
Back to Home > Menu (right icon of navigation bar) > Mount
Copy lineage-18.1*.zip, FlameGApps, Magisk*.zip and Magisk Manager*.apk on Internal Storage.
Then back to Files menu (left item of navigation bar).
Tap in lineage > Add to Queue > Magisk > Add to Queue > FlameGApps and Swipe to Install.
When flash is over > Wipe Caches and Reboot System.
10 ) ROOT ACCESS AND DEVELOPER MENU
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: anandsvm, Zeelog, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, OrangeFox recovery team
Click to expand...
Click to collapse

Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?

djibe89 said:
Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?
Click to expand...
Click to collapse
I updated USB drivers in device manager of PC.
Now I am enjoying A11.
Thanks.

Related

[GUIDE] Unlock permission + Unlock bootloader + TWRP + LineageOS + Open GApps

Updated post for Lineage OS 14.1
Thanks a lot to @Anik_khan , @P.Kosunen , TWRP and CM team and all XDA forumers who asked questions that allowed me to update my phone.
I am not responsible for any trouble you might run into, always cross-check your sources.
Whole process took me 1h15 / 1h30
Will rework/add links upon request, will quote names upon request,
Thanks,
Sources/Links:
http://forum.xda-developers.com/redmi-3/development/recovery-twrp-3-0-0-0-touch-recovery-t3340118
https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
http://forum.xda-developers.com/red...eveloper-rom-unlock-bootloader-t3339246/page6
http://en.miui.com/unlock/
Miflash: http://api.bbs.miui.com/url/MiFlash
Mi Unlock: http://bigota.d.miui.com/miflashunlock/MiFlashUnlock_1.1.0317.1_en.zip
http://en.miui.com/download-298.html
http://en.miui.com/a-234.html
https://twrp.me/devices/xiaomiredmi3.html
Others...
Request unlocking permission:
Go to http://en.miui.com/unlock/
"Unlock Now" (refresh if page fails to load)
Create a "Mi Account ID" (you can also create it from your phone Miui app)
Apply for unlocking permission: Your Name, Phone number, Justification "Android developer"
Download "Mi Unlock": http://en.miui.com/unlock/download_en.html
Extract "Mi Unlock" file ("MiFlashUnlock")
Install developer ROM:
Download Miflash tool http://api.bbs.miui.com/url/MiFlash
Install Miflash tool
Restart computer as per section: Windows 10 "Disable driver signature enforcement"
Download last Chinese developer ROM for Xiaomi Redmi 3 http://en.miui.com/a-234.html
Note: Global ROM does not allow for ROOT activation
Extract ROM, tgz, then tar
Reboot to recovery, power off, power on "Vol. up" + "Power"
Touch "Download" button (screen goes black)
Plug-in USB cable
Open Miflash tool
Click "Browse" and select directory from ROM extract
Select "Flash all" at the bottom
Click "Refresh" and then "Flash", wait for install
...
Maintain "Power" to reset the phone, let it boot
(You can also install whatever official MIUI ROM you want from there http://en.miui.com/a-234.html)
Windows 10 "Disable driver signature enforcement":
Maintain "Shift" key while you click the "Restart" option in Windows
"Troubleshoot" > "Advanced options" > "Startup settings" > "Restart"
...restarting...
F7 "Disable driver signature enforcement"
Unlock Bootloader:
AFTER YOU GET APPROVAL SMS (last request took 15 minutes to be accepted)
Ensure you installed a developer ROM ("Flash all")
Skip everything
Note: Login with your MIUI account if you have never done it, do NOT activate FIND application
Power OFF device
Start fastboot, hold "Vol. down" + "Power"
Execute "MiFlashUnlock.exe" from "Mi Unlock" extract
Agree and "Sign in" with your created "Mi Account ID"
Connect phone
Unlock
Restart...
Install TWRP:
Connect device to computer
Connect to WIFI
Activate Root on the phone (different from TWRP): Setting > Permissions > Root access
Activate root access
Phone will install and restart
...meanwhile...
Install Android tools https://developer.android.com/studio/index.html#linux-bundle-size
(Install Java SDK)
...phone restarted...
Run Windows command prompt as administrator
"Windows" key, type "CMD", right click "Run as administrator"
Execute "cd C:\Program Files (x86)\Android\android-sdk\platform-tools"
Or whatever is your path to Android SDK
Execute "adb devices", ensure that your phone is listed
Execute "adb root"
Execute "adb disable-verity" (Note: You do not need to perform this step again if you want to UPDATE TWRP version)
Restart... (disable verity to take effect)
Download TWRP application
http://download.jmzsoftware.com/TWRPManager.apk
Copy it at the root of your phone
Install it from MIUI embedded file explorer
Start TWRP application and wait for phone to prompt for root access
Give TWRP Root acess: Settings > Permissions (Device) > Root access
Allow TWRP root access (Next to all, long...)
Launch TWRP
Click sandwich menu ///
Install TWRP
DEVICE INFO > Device name: Xiaomi Redmi 3 / ido
INSTALL > Recovery version to install > click latest
INSTALL > Install Recovery
TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)
Install CM and GApps:
Download Lineage OS: https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
Download GApps ARM64 (7.1 for LineageOS 14.1): http://opengapps.org/
https://github.com/opengapps/opengapps/wiki/FAQ
Connect device to computer
Reboot to recovery (see "Reboot to recovery")
Select "Keep read only"
Manually wipe Data partition and System partition
(I wiped all because of "can't install this package on top of incompatible data" message)
Copy CM and GApps to phone
On TWRP: Install and flash ROM and GApps (add to queue, GApps takes a while)
Wipe Dalvik & Cache
Reboot
Recovery reboot:
- On CM
https://wiki.cyanogenmod.org/w/All_About_Recovery_Images
Activate Developer mode: https://wiki.cyanogenmod.org/w/Doc:_developer_options
Settings > Developer options > Advanced reboot = On
Hold the power button to see the reboot menu
- Using ADB
Run command prompt as administrator
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
adb reboot recovery
Thanks man, awesome job!
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it.
Rotpeter said:
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it.
Click to expand...
Click to collapse
Hi there,
I did not use global ROM, true, don't know if possible with it.
Did you perform this step?
- Connect to WIFI
- Setting > Permissions > Root access
- Activate root access
The phone will then download a bunch of things and reboot.
After that you will be able to install TWRP and give it root access.
If not, tell me, I will update guide,
and you can reinstall Chinese ROM, to complete process, a matter of a few minutes.
Let me know
Thanks for your help! I already fixed in in the meantime, though. The permissions app only shows the root-button, if you are on the Chinese dev ROM. Which I wasn't (global one instead). Maybe you should add some extra weight to that in the guide. Other than that, it worked like a charm! Thanks buddy!
Edit: Sorry, didn't see that you pretty much already wrote all of that.
anyone else waiting more than two days for the request to be accepted?
en.miui.com/unlock/download_en.html
without waiting
Hi,
I have problem after this step
Install TWRP:
TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)
Click to expand...
Click to collapse
Answer from TWRP is Success, but after reboot to recovery there is no TWRP, just MI logo all the time.
Model is Redmi 3S Global
and of course:
C:\xx\platform-tools>adb disable-verity
Verity already disabled on /system
Click to expand...
Click to collapse
Have you downloaded the TWRP version for the 3 S? Not the Redmi 3?
I am not sure what are the differences here, but maybe the phone cannot boot if it is the wrong version.
parphane said:
Have you downloaded the TWRP version for the 3 S? Not the Redmi 3?
I am not sure what are the differences here, but maybe the phone cannot boot if it is the wrong version.
Click to expand...
Click to collapse
sorry, I realized that not all Redmi 3 are ido, my is land :crying: so TWRP for land is working
Hi all,
I am on:
- 02-06 nightly (https://download.lineageos.org/ido)
- ARM64 7.1 Stock GApps (http://opengapps.org/)
Camera app is not working at all, crashing instantly,
Do you know what could I have missed? Maybe not wiped correctly?
What could I do to troubleshoot/fix?
Thanks,
Answered: Inhibit Camera app automatic updates for the moment...
Updated post for LineageOS 14.1 and checked if links are still ok.
Hello there,
I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109
Can you help me please ?
Galdanor
Galdanor said:
Hello there,
I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109
Can you help me please ?
Galdanor
Click to expand...
Click to collapse
Hmm, never seen that one,
Just to be sure, you did the following steps:
- Restart computer as per section: Windows 10 "Disable driver signature enforcement"
[...]
- Reboot to recovery, power off, power on "Vol. up" + "Power"
- Touch "Download" button (screen goes black)
- Plug-in USB cable
- Open Miflash tool... (this I know you did cause of the screen capture)
Do you have any devices identified as not properly installed in the Window peripherals?
Maybe try and install Android tools (also in the tuto) before and try to issue commands to your device.
Also, Googling "ping target failed xiaomi" I found that: http://en.miui.com/thread-354050-1-1.html
You might want to use older tool version.
Let us know
Thank you for your time.
parphane said:
Also, Googling "ping target failed xiaomi" I found that: http://en.miui.com/thread-354050-1-1.html
You might want to use older tool version.
Let us know
Click to expand...
Click to collapse
This worked !
Can't believe I didn't google my error thoroughly... Seems that the older I get, the lazier I become...
Just need to wait for the approval SMS now.
Thanks a lot for your help !
Galdanor
ambient display (dt2w option) for me don't work
wetito said:
ambient display (dt2w option) for me don't work
Click to expand...
Click to collapse
We don't have DT2W support by default.
Sent from my Redmi 3 using XDA Labs
This rom drain my battere a lot. It's a Shame. 8 hours in aeroporto mode, 20% battery less
wetito said:
This rom drain my battere a lot. It's a Shame. 8 hours in aeroporto mode, 20% battery less
Click to expand...
Click to collapse
Maybe you did something wrong cause most of the people here on XDA have no issue.
Try using an older ROM, or clean install... let us know!
By the way, this is just a guide to flashing,
Which I believe was useful for you cause you were able to change ROM.
Don't report bugs/issues on the ROM here, it is just a guide, report them on the ROM thread itself: https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
Hey guys,
I really do not know what to do.
with redmi one - i did not have problems - ok only one time
now I tried to put new international rom on my redmi 3 in holiday. I really treid it for at least 10 hours now! no success. I think, i am stupid....
flash unlock with sms and tool "miflash_unlock-en-2.2.406.5" worked.
next step is to power off and turn on with power up and power button.
If I do this, the redmi device always goes to fastboot picture rabbit and does not react to anything.
At this point I could not do anything. I always waited until accu was empty (1day) and then try it again in some other way.
Is there some really good guide? I do not know what i am doing wrong.
thank you in advance.
my redmi 3s crashed yesterday and i have the same problem now.
see here:
https://forum.xda-developers.com/xiaomi-redmi-3s/help/phone-crashed-fingerprint-deleted-120-t3603930
for redmi 3 i downloaded a lot:
roms
02 MiFlashUnlock
03 TWRP
05 Root SuperSU
TWPR and RootSuperuser i do not get installed, too.

[Guide] Pixel XL Android 7(Nougat) Unlock/Install Stock Images + Kernels/Recovery +

[Guide] Pixel XL Android 7.1.2 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + August 2017 Security Patch​
Intro
This thread is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel/Pixel XL'.
It also works for Pixel owners: If, they download the correct files for their Pixel.
This Guide is not for use with the Second Generation Pixel 2 or Pixel 2 XL devices.
Update(s):
Other - Added 'Other' after 'Prerequisites'
Disclaimers:
I assume no responsibility for the malfunctioning/bricking of your phone.
The order of listed items i.e., Custom Kernels, Custom ROMS, etc. Does not indicate my preference for them. It is your responsibility to do the research before selecting an item.
Prerequisites
A Google Pixel XL or Verizon Pixel XL phone with an unlockable Bootloader, ([How-to] Unlock bootloader on Verizon Pixel/XL by burduli) - The unlock method was discovered by: Qu3ntin0), and the latest 7.1.2 August 2017, Factory Image (NHG47Q - Verizon; NKG47S - T-Mobile, Fi carriers, and Rogers; NZH54D - Deutsche Telekom; NJH47F - all other carriers).
Note: If you want the latest OTA or Binaries. Tap the Menu icon (upper left corner) then tap Full OTA Images or Driver Binaries
PC - With the latest Android SDK or SDK Platform tools installed.
Important: Update Android SDK or Platform Tools, regularly, for optimal performance.
Need help installing Android SDK or SDK Platform Tools
How to Install ADB & Fastboot on Mac, Linux & Windows-(Method 1)
Easiest-way-to-install-androids-adb-and-fastboot
Other
Pixel XL Guides: Android 9.0.0 (Pie)Android 8.1.0 (Oreo), Android 8.0.0 (Oreo)
Pixel 3 XL Guide: Android 9.0.0 (Pie)
Credit/Thanks/Recognitions
TWRP
TWRP for Google Pixel XL
twrp-3.0.2-0-RC1-fastboot-marlin.img to your Computer.
twrp-pixel-installer-marlin-3.1.0-0RC1.zip to your phone.
twrp-pixel-installer-marlin-3.1.0-0RC2.zip to your phone
SuperSU
[BETA][2017.10.01] SuperSU v2.82 SR5 by Chainfire
Magisk/MagiskManager
[Unofficial] Google Pixel family support by goodwin_c
Custom Kernels
ElementalX kernel
Franco's Kernel
Busybox/Busybox Checker
[MODS] Android Oreo Aroma installer misc. Mods by Tulsadiver
UPDATE-Busybox.Installer.v1.26.2-ALL-signed.zip
meekfik, download from PlayStore
Busybox Free (Stericson), download from PlayStore
[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms] by osm0sis
UPDATE-Busybox.Installer.v1.27.2-ALL-signed.zip
Busybox Checker, download from PlayStore
Other
pcriz -Fastboot Slot Commands, Custom ROM installion help, Magisk help, and help on many many other subjects.
Those I may have inadvertently forgotten.
Index
Open Command Prompt/ Boot Bootloader/Boot Recovery
Open Command Prompt on Computer
Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
Option 2 - Open File Explorer, click platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type 'cmd' and press enter.
Note: If your computer only has 'open powershell here' in the context menu and you do not want to change it or add open 'command prompt here' use use option 2.
Boot Bootloader:
Power off phone, press and hold the power and volume down buttons until you see Start.
Boot Recovery
Power off phone, press and hold the power and volume down buttons until you see Start. Press volume Up/Down button until you see Recovery Mode > Press Power button.
Testing ADB (Android Debug Bridge)/fastboot
ADB
Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
Open a Command Prompt on your computer.
Type this at the prompt and press enter to test ADB.
Code:
adb version
It should return a version number for ADB.
fastboot
Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
Open a Command Prompt on your computer.
Boot bootloader.
Connect your phone to your computer with a USB cable.
Type this at the prompt and press enter to test fastboot.
Code:
fastboot devices
It should return your device serial number.
Unlock Your Bootloader
Backup your data and Internal storage
Activate Developer Options: Tap Settings > System > About Phone > Build Number. Tap Build Number until you see you're a Developer. Tap back > Developer Options. Enable OEM Unlock and, USB Debugging.
Boot Bootloader
Connect your phone to your computer via USB cable.
Open a Command Prompt on your computer.
Type the following at the prompt and press enter:
Code:
fastboot flashing unlock
This will erase all user data from the device!
You should see a screen on your phone asking you to confirm this action, use the volume keys to scroll and the power key to make your selection.
Allow the process to complete and then issue this command:
Code:
fastboot reboot
When your phone reboots disconnect your usb cable.
Note: After unlocking your bootloader, you'll be greeted with a warning that says Your device software can't be checked for corruption. Please lock the bootloader everytime you reboot. It's ok, as long as your bootloader is unlocked it will stay there.
Important: do not repeat do not relock your bootloader unless your phone is fully stock. You must flash the factory images first in order to remove root and custom recovery (if you have them), if this precaution isn't taken you may end up with a brick. Please see 9 of this guide for instructions on how to return to stock and lock the boot loader.
Install Factory Image and wipe data
Backup your data and Internal storage
Download the factory image for your phone and carrier.
Unzip factory Image
Copy the following files to the Platform Tools folder on your Computer
flash-all.bat
bootloader-marlin-9999-999999-9999999999.img
radio-marlin-9999-999999-9999999999.img
image-marlin-aaa99a.zip
Boot Bootloader
Connect phone to Computer with USB cable
Open a Command Prompt on your computer.
Type the following at the prompt and press enter.
Code:
flash-all
Install Factory Image and keep data
Backup your data and Internal storage
Download the factory image for your phone and carrier.
Unzip factory Image
Edit flash-all.bat: Remove -w
Copy the following files to the Platform Tools folder on your Computer
flash-all.bat
bootloader-marlin-9999-999999-9999999999.img
radio-marlin-9999-999999-9999999999.img
image-marlin-aaa99a.zip
Boot Bootloader
Connect phone to Computer with USB cable
Open a Command Prompt on your computer.
Type the following at the prompt and press enter.
Code:
flash-all
Install A Custom Recovery and Root with SuperSU
Important: Set Pin before installing TWRP: Setting > Security > Pin.
Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
Backup your data and Internal storage
Download files:
twrp-3.0.2-0-RC1-fastboot-marlin.img to your Computer.
twrp-pixel-installer-marlin-3.1.0-0RC1.zip to your phone.
twrp-pixel-installer-marlin-3.1.0-0RC2.zip to your phone.
[STABLE][2017.05.27] SuperSU v2.82 by SuperSU Release to your phone.
Copy the following file to the platform-tools folder: twrp-3.0.2-0-RC1-fastboot-marlin.img rename it twrp.img
Boot Bootloader
Connect device/phone to computer
Open a Command Prompt on your computer.
Type the following at the Prompt.
Code:
fastboot boot twrp.img
When TWRP boots on your phone, tap the Install button, select twrp-pixel-installer-marlin-3.0.2-0-RC1.zip
Tap Add more ZIPs button, select SuperSU-v2.82-201705271822.zip
Swipe the slider to install.
Reboot system
Install A Custom Recovery and Root with Magisk (Clean Install)
Important: Set Pin before installing TWRP: Setting > Security > Pin.
Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
Note:[Substratum] theme Spectrum does not work with Magisk root.
Backup your data and Internal storage
Download the following files:
ElementalX-P-1.14.zip for Pixel XL
twrp-3.0.2-0-RC1-fastboot-marlin.img
twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
Magisk-v13.3-Pixel-b4.zip
MagiskManager-5_1_1.apk
Magisk-uninstaller-20170720.zip
Flash Boot.img - If you have TWRP, SuperSU, or a custom kernel installed.
Extract the contents of your factory image and open the folder it creates. From there, extract the second archive (image-marlin-aaa99a.zip)
Then open that folder and copy the boot.img file and paste it into the platform-tools folder.
Boot Bootloader
Connect the phone to your computer
Open a Command Prompt on your computer.
Type the following command at the prompt:
Code:
fastboot flash boot --slot all boot.img
When it finishes, leave the command prompt window open, your phone in bootloader mode and connected to your computer.
Install TWRP
Place twrp-3.0.2-0-RC1-fastboot-marlin.img in your platform-tools folder and Rename it twrp.img
Type the following command at the prompt:
Code:
fastboot boot twrp.img
When TWRP boots, tap the Install button and select twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
Swipe the slider to install
Press the back button until you are on TWRP's main menu select Reboot > Recovery.
Flash the ZIPs
Disconnect your phone from your Computer.
Tap the Install button, then navigate to the files you downloaded.
Select the Magisk Uninstaller.zip, tap the Add more ZIPs button.
Select the twrp-pixel-installer-marlin-3.0.2-0-RC2.zip.
Swipe to install
Reboot Recovery
Tap the Install button select a Custom Kernel: ElementalX-P-1.1x.zip or Franco's Kernel-r1x.zip.
Tap Add more ZIPs button select Magisk-v13.3-Pixel-b4.zip, tap the Add more ZIPs button and select: twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
Swipe to install
Note: During the Installation of ElementalX, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and press Install ElementalX when prompted.
When ElementalX AROMA installer finishes, tap Next, and Finish. After, the other ZIPs are installed.
Reboot System
Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
Install MagiskManager
Install Magisk Manager (5.1.1.apk)
Wipe data on Magisk Manager
Enable Magisk Hide
Enable Core Only Mode
Toggle on and off systemless hosts
Reboot system
Check for Latest Version, Root, and Saftey Net.
Update Magisk Dirty Flash
Download file:
Magisk-v13.3-Pixel-b4.zip or Magisk-v13.4-Pixel-beta2-build1.zip
Flash the ZIPs
Magisk-v13.3-Pixel-b4.zip or Magisk-v13.4-Pixel-beta2-build1.zip, tap the Add more ZIPs button.
Select twrp-pixel-installer-marlin-3.0.2-0-RC2.zip.
Swipe to install.
Reboot system
Check for Latest Version, Root, and Saftey Net.
Custom ROMs for Pixel/Pixel XL
[ROM][Pixel-XL][7.1.2_r24]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[07/25/17] by BeansTown106
[ROM][Pixel-XL][7.1.2_r33][OMS] Pixel Dust for marlin [FINAL][2017/08/22] by spezi77
[ROM][Resurrection Remix v5.8.3][Android Nougat 7.1.2][OMS][07/24/17] by BDogg718
[ROM][UNOFFICIAL] LineageOS 14.1 Nightlies for the Google Pixel (marlin/sailfish) by invisiblek
Paranoid Android 7.2.1 - AOSPA - Pixel XL by freak_97
ROM][7/21/17][Marlin][7.1.2][WEEKLY]Team OctOs Oct-N by cjkacz
SCREW'D ROM
Install Custom Kernel
Franco's Kernel - SuperSu
Download file:
The latest Franco's kernel for Pixel/Pixel XL
Boot into TWRP
Press Install button select the file you downloaded
Swipe slider to install
Reboot System
ElementalX-PXL-1.xx by flar2 Kernel - SuperSU
Download files:
ElementalX kernel
[STABLE][2017.05.27] SuperSU v2.82 by SuperSU Release
Flash ElementalX zip in TWRP recovery (do not flash SuperSU-v2.82-201705271822.zip again if you're already rooted).
During the Installation, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and tap Install ElementalX when prompted.
When ElementalX AROMA installer finishes, tap Next, and then Finish.
Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
Franco's Kernel or ElementalX-PXL-1.xx by flar2 Kernel - Magisk
See [Unofficial] Google Pixel family support by goodwin_c for Installation Instructions.
Install Substratum Theme
SuperSU Root
Install Substratum Theme Engine from the play store.
Install [Substratum] Spectrum theme from the play store. Note: I used Substratum theme Spectrum to test the installation of Substratum with SuperSU root..
Magisk Root
Researching Information
Return to Stock and Lock Bootloader
Return to Stock
Backup your data and Internal storage
Download the appropriate factory image for your phone and carrier.
Unzip factory Image
Copy the following files to the platform-tools folder on your Computer
flash-all.bat
Verify -w is present in flash-all.bat. Example: fastboot -w update image-marlin-aaa9.999999.999.zip
bootloader-marlin-9999-999999-9999999999.img
radio-marlin-9999-999999-9999999999.img
image-marlin-aaa99a.zip
Boot Bootloader
Connect phone to Computer with USB cable
Open a Command Prompt on your computer.
Type the following command at the prompt.
Code:
flash-all
Lock Bootloader
Phone
Boot Bootloader
Connect your phone to your Computer with USB cable.
Computer
Open a Command Prompt on your computer.
Type the following at the prompt:
Code:
fastboot flashing lock
When it finishes the bootloader is locked.
The next step won't be needed if your Pixel XL reboots into system after bootloader relock.
You need to boot into system now, either press Power button to reboot OR issue the following command:
Code:
fastboot reboot
When your phone reboots disconnect your usb cable.
Audio Mod
Weta Audio Mod
we already have guides though
flex360 said:
we already have guides though
Click to expand...
Click to collapse
can't hurt to have an updated guide for those too lazy to read.. so many posts about "this guide is out of date" or "i dont have time to read 6 pages about other people's experiences"
Thanks for this updated guide, this was helpful. Although, in step 4 it looks like you forgot to mention flashing SuperSu.
jrhatfield said:
Thanks for this updated guide, this was helpful. Although, in step 4 it looks like you forgot to mention flashing SuperSu.
Click to expand...
Click to collapse
It has been posted several times that the June security update doesn't need the verified boot signer. Only the May update needed it.
JimSmith94 said:
It has been posted several times that the June security update doesn't need the verified boot signer. Only the May update needed it.
Click to expand...
Click to collapse
I'll research it and make changes if needed.
Great Job compiling all the information in one place. Appreciate your hard work. This should be helpful to many.
You could even update this to include flashing of Custom ROMs. And a little bit about the slot change etc. That way the guide would almost be complete.
iamjimmy said:
Great Job compiling all the information in one place. Appreciate your hard work. This should be helpful to many.
You could even update this to include flashing of Custom ROMs. And a little bit about the slot change etc. That way the guide would almost be complete.
Click to expand...
Click to collapse
Intro
The purpose of this thread is twofold:
First, it is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM...
¯\_(ツ)_/¯
About to try this with the -w flag. Is there a reason to not use a -w if I intend on rooting njh47b on a google store pixel xl?
Avasta said:
About to try this with the -w flag. Is there a reason to not use a -w if I intend on rooting njh47b on a google store pixel xl?
Click to expand...
Click to collapse
2. Install Factory Image and wipe Data
Code:
fastboot -w update image-marlin-aaa99a.zip
3. Install Factory Image and keep Data
Code:
fastboot update image-marlin-aaa99a.zip
Homeboy76 said:
2. Install Factory Image and wipe Data
Code:
update -w image-marlin-aaa99a.zip
3. Install Factory Image and keep Data
Code:
update image-marlin-aaa99a.zip
Click to expand...
Click to collapse
I was asking if there was any affect to the rooting ability of the device if you did vs didn't use the -w command. I completed my update of my phone. I never like a dirty update since it only causes problem later on. I tested it without the -w switch and everything worked (kept my data, but as mentioned dirty flashes = no good), so I went back and repeated the steps with the -w switch. Everything works like a charm. Only issue I have noticed is that Netflix is no longer compatible with my device?!? Like not really sure why, but cant install it from the play store. Will contact Netflix about this later today.
Avasta said:
I was asking if there was any affect to the rooting ability of the device if you did vs didn't use the -w command. I completed my update of my phone. I never like a dirty update since it only causes problem later on. I tested it without the -w switch and everything worked (kept my data, but as mentioned dirty flashes = no good), so I went back and repeated the steps with the -w switch. Everything works like a charm. Only issue I have noticed is that Netflix is no longer compatible with my device?!? Like not really sure why, but cant install it from the play store. Will contact Netflix about this later today.
Click to expand...
Click to collapse
Gotcha, there are no 'effects to the rooting ability of the device'.
However, some apps will not work unless you 'hide Root' with Magisk i.e. Android Pay, Netflix's, etc.
Did you root with Magisk?
Homeboy76 said:
Gotcha, there are no 'effects to the rooting ability of the device'.
However, some apps will not work unless you 'hide Root' with Magisk i.e. Android Pay, Netflix's, etc.
Did you root with Magisk?
Click to expand...
Click to collapse
I dunno about you but I have magisk hide on and hid the playstore and a few other processes but if its checking your phone at a point before you can enable magisk hide and storing the results wouldn't it not make much difference? I ask this because magisk hide or not, netflix doesnt show up. Even on a clean boot its not listed as an app I can restore. The simple fix for me is to restore a back up or simply download from apk mirror.
I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)
Will try this one (had to factory reset again yesterday: phone would not boot up).
One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....
Tks!
parano666 said:
I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)
Will try this one (had to factory reset again yesterday: phone would not boot up).
One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....
Tks!
Click to expand...
Click to collapse
When you flash a factory image, flash it in both slots.
Flash all once
Boot into the bootloader again
Swap slots in bootloader
Flash all again
(tks!)
(update: needed twrp-pixel-installer-marlin-3.1.0-0RC2 installed and booted to install magisk v12 pixel (was getting error 1 with twrp-pixel-installer-marlin-3.0.2-0-RC1.zip))
(update2: safety net passed!)
pcriz said:
I dunno about you but I have magisk hide on and hid the playstore and a few other processes but if its checking your phone at a point before you can enable magisk hide and storing the results wouldn't it not make much difference? I ask this because magisk hide or not, netflix doesnt show up. Even on a clean boot its not listed as an app I can restore. The simple fix for me is to restore a back up or simply download from apk mirror.
Click to expand...
Click to collapse
Ok.
parano666 said:
I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)
Will try this one (had to factory reset again yesterday: phone would not boot up).
One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....
Tks!
Click to expand...
Click to collapse
Intro
The purpose of this thread is twofold:
First, it is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM...
If you follow the instructions above you should not have to worry about slot a/b. The firmware will put it in the correct slot.
If you are installing Custom ROM this thread is not for you. You, should follow the installation instructions of the Custom ROM you want to install.
parano666 said:
(tks!)
(update: needed twrp-pixel-installer-marlin-3.1.0-0RC2 installed and booted to install magisk v12 pixel (was getting error 1 with twrp-pixel-installer-marlin-3.0.2-0-RC1.zip))
(update2: safety net passed!)
Click to expand...
Click to collapse
You're welcome!

[Guide] Pixel XL Android 8.1 (OREO) Unlock/Root/Install Images/Kernels/Recovery +

[Guide] Pixel XL Android 8.1.0 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + July 2018 Security Patch​
Intro
This Guide is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a Custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel XL'.
This Guide also works for the Pixel owners: If, they download the correct files for their phone.
This Guide is not for use with the Second Generation Pixel 2 or Pixel 2 XL devices.
Update(s):
Custom ROM - crDroid v4.7
Note: Some Custom ROM's have the latest Security Patch.
Install Custom Kernel: - See #7, or #8
Disclaimers:
I assume no responsibility for the malfunctioning/bricking of your phone.
The order of listed items i.e., Custom Kernels, Custom ROMS, etc. Does not indicate my preference for them. It is your responsibility to do the research before selecting an item.
Prerequisites
A Google Pixel XL or Verizon Pixel XL phone with an unlocked bootloader. ([How-to] Unlock bootloader on Verizon Pixel/XL by burduli - The unlock method was discovered by: Qu3ntin0) , and the latest Android 8.1.0 (Oreo) Factory Image: "marlin" for Pixel XL
marlin-opm4.171019.021.p1-factory-d5fc023e.zip
marlin-ota-opm4.171019.021.p1-f0709550.zip
Note: If you want the latest OTA or Binaries. Tap the Menu icon (upper left corner) then tap Full OTA Images or Driver Binaries
Computer - With the latest SDK Platform-Tools installed.
Important: Update Platform Tools, regularly, for optimal performance.
Need help installing or using SDK Platform tools: Easiest-way-to-install-androids-adb-and-fastboot
Other
Pixel XL Guides: Android 9.0.0 (Pie), Android 8.0.0 (Oreo), Android 7.1.2 (Nougat)
Pixel 3 XL Guide: Android 9.0.0 (Pie)
Credits/Thanks/Recognitions
Heisenberg RETIRED FORUM MODERATOR - He set the standard for creating, detailed, Guides.
Those I may have, inadvertently, forgotten.
Index
Open a Command Prompt/Boot Bootloader/Boot Recovery
Open Command Prompt on Computer
Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
Option 2 - Open File Explorer, click the platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type cmd and press enter.
Note: If your computer only has 'open powershell here' in the context menu. Use option 2.
Boot Bootloader:
Power off phone, press and hold the power and volume down buttons until you see Start.
Boot Recovery
Power off phone, press and hold the power and volume down buttons until you see Start. Use volume up/down button until you see Recovery mode. Press power button.
Test ADB (Android Debug Bridge)/fastboot
ADB
Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
Open a Command Prompt on your computer.
Type this at the prompt to test ADB.
Code:
adb version
It should return a version number for ADB.
Note: If it does not return a version number type
Code:
adb reboot bootloader
and try
Code:
adb devices
again.
fastboot
Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
Open a Command Prompt on your computer.
Boot Bootloader
Connect the phone to the Computer with USB cord.
Type this at the prompt and press enter to test fastboot.
Code:
fastboot devices
It should return your device serial number.
Note: If it does not return a version number type
Code:
adb reboot bootloader
and try
Code:
fastboot devices
again.
Unlock Bootloader/Return Phone to Stock/Lock Bootloader
Unlock Bootloader
Backup your data and Internal storage
Activate Developer Options: Tap Settings > System > About Phone > Tap Build Number until you see you're a Developer. Tap back > Developer Options. Enable OEM Unlock and, USB Debugging.
Boot Bootloader
Connect the phone to the Computer with USB cord.
Open a Command Prompt on your computer and type
Code:
fastboot flashing unlock
and press enter.
This will erase all user data from the device!
You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
Allow the process to complete and then type
Code:
fastboot reboot
at the Command Prompt and press enter.
When your phone reboots disconnect your usb cable.
Note: After unlocking your bootloader, you'll see a warning: Your device software can't be checked for corruption. Please lock the bootloader. You will see this warning until, you relock the bootloader.
Important: Do not relock your bootloader until you have returned the device to Stock..
Return Phone to Stock
Backup your data and Internal storage
Download the latest Factory Image
Extract factory Image to the platform-tools folder, or the folder that has fastboot in it.
Verify -w is present in flash-all.bat. Example: fastboot -w update image-marlin-aaa9.999999.999.zip
Note: This will erase all your Data and Internal Storage
Boot bootloader
Connect your phone to your Computer with a USB cable.
Open a Command Prompt:
Flash the Stock Factory Image on Both Slots
Type this at the Command Prompt:
Code:
flash-all
Let the phone boot.
Boot bootloader
Open Command Prompt:
Switch to the other slot.
Type this at the Command Prompt:
Code:
fastboot --set-active=other
Then type this at the Command Prompt:
Code:
flash-all
Let the phone boot.
Lock Bootloader
'B' must be completed before performing this step!
Boot bootloader
Open a Command Prompt and type this at the Prompt:
Code:
fastboot flashing lock
You should see a request for confirmation on your phone, use the volume keys to scroll and the power key to select.
Allow the process to complete, then type this at the Command Prompt:
Code:
fastboot reboot
Set up your phone.
Enable Developer Options: Settings > System > About phone > Tap Build number 7 times.
Tap Back > Developer options and toggle OEM unlocking to off.
Install Factory Image keep or wipe data
Important: When doing a major upgrade i.e., Android 7.x.x to Android 8.0.0/Android 8.1.0. I recommend wiping data.
Backup your data and Internal storage
Download the appropriate Factory Image: "marlin" for Pixel XL to your Computer.
Extract the factory Image to the platform-tools folder or the folder that has fastboot in it.
Keep Data
Open the folder you extracted the Factory Image to and Edit the flash-all.bat file to remove -w from this command: fastboot -w update image-marlin-aaa9.999999.999.zip
Note: If you do not remove the -w not only will your data be erased but also your internal storage will be erased.
Boot Bootloader
Connect the phone to the Computer with USB cord.
Open a Command Prompt on your computer.:
Type
Code:
flash-all
at the Command Prompt and press enter.
Do #7 or #8 to root/reroot
Wipe Data
Open the folder you extracted the Factory Image to and Verify the flash-all.bat file has the -w in this command: fastboot -w update image-marlin-aaa9.999999.999.zip
Note: This will erase your data and internal storage.
Boot Bootloader
Connect the phone to the Computer with USB cord.
Open a Command Prompt on your computer.:
Type
Code:
flash-all
at the Command Prompt and press enter.
Do #7 or #8 to root/reroot
ADB Sideload
Boot Recovery
-- On the Computer
Connect the phone to the Computer.
Open a Command Prompt.
-- On the Phone
Boot recovery
Tap Advanced > ADB Sideload.
Swipe the slider to start the ADB connection.
-- Sideload the ZIP
Copy and paste the Zip file you want sideload to the Platform-tools folder or the folder that 'adb.exe' is in.
At the Command Prompt type:
Code:
adb sideload <space> <file name>
Example: adb sideload example.zip
Press enter to begin the sideloading process.
When, you see a Reboot System button, tap it.
Extract/Flash boot.img
Extract boot.img
Use a File Explorer to extract the boot.img from the Factory Image.
Extract the Factory Image file (marlin-opm-9.999999.999-99a-factory-a9a9999.zip) to a folder.
Open the folder and, extract the Image file (image-marlin-aaa9.999999.999.99a.zip).
Flash boot.img
Note: Flashing this file removes root.
Open the folder you extracted the 'image file' to and copy the boot.img file to the platform-tools or to the folder that has fastboot in it.
Boot Bootloader
Connect the phone to the Computer
Open a Command Prompt and type the following command at the prompt:
Code:
fastboot flash boot --slot all boot.img
Reboot
Root/Reroot with Magisk - Pass SafetyNet
Important: Set Pin before installing TWRP:
Settings > Security & location >Screen lock > Pin
Backup your data and Internal storage
Download files:
The files listed below are used with 7 and 8.
TWRP
TWRP 3.2.2-0 for Google Pixel XL
twrp-3.2.3-1-marlin.img - Download to your computer
twrp-pixel-installer-marlin-3.2.3-1.zip - Download to your phone
Magisk - Download to your phone
[2018.9.1] Magisk v17.1 - Root & Universal Systemless Interface [Android 5.0+] by topjohnwu
Magisk-uninstaller-20180901.zip - Post 1, Downloads
topjohnwu / Magisk
Custom kernels - Download to your phone
[KERNEL] [29 July] Pixel XL ElementalX 3.09 (8.1.0) 4.06 (P) by flar2
exNoShadez:. nine7nine/Apps
[*][MARLIN/SAILFISH] [8.1.0/9.0.0] [3.18.117] [CLANG 7.0] Flash Kernel 1.19 by nathanchance
[*][KERNEL][8.1.0][3.18.115] PureZ-Kernel-1.9 for Google Pixel XL [17/07/2018] by ZawZaw
[*]Boot Bootloader
[*]Connect the phone to the Computer with USB cord.
[*]Copy twrp-3.2.3-2-marlin.img to the platform-tools folder or folder that has fastboot in it and rename it twrp.img.
[*]Open a Command Prompt on your computer.
[*]At the Command Prompt type:
Code:
fastboot boot twrp.img
and press enter.
[*]When TWRP boots, disconnect the phone from the computer.
[*]Tap Install select
twrp-pixel-installer-marlin-3.2.3-1.zip
[*]Swipe the slider to install
[*]After TWRP is installed
[*]Reboot Recovery (Tap the back button, Tap reboot, Tap recovery.)
[*]Install Custom Kernel and Root/Reroot (Optional)
Tap Install, select Custom Kernel:
ElementalX
ElementalX-P-3.09.zip
EX Kernel Manager by flar2
flashkernel-marlin-v1.19.zip
PureZ-Kernel-marlin-1.9.zip
Tap Add more Zips, select Magisk-v17.1(.zip - (Offical)
Swipe Slider to Install
Save Log
Reboot System
[*]Root/Reroot with Magisk
Tap Add more Zips, select Magisk-v17.1(.zip - (Offical)
Swipe Slider to Install
Save Log
Reboot System
[*]Install Modules - BusyBox, etc. (Optional)
Open Magisk Manager, tap Menu, tap downloads.
[*]Root/Reroot with Magisk - Pass SafetyNet without installing TWRP
Important: Set Pin before booting TWRP:
Settings > Security & location >Screen lock > Pin
Note: You might have noticed in the 'Install Custom kernel' section that some Custom kernels are installed before Magisk while others are installed after Magisk. The best answer I could find for when to flash a Custom Kernel when using Magisk for root is, if the Custom Kernel modifies/patches the boot image you install Magisk then the Custom Kernel otherwise you install the Custom Kernel then Magisk.
Backup your data and Internal storage
Download files:
See 'Download files' in #7 above - Do not download TWRP zip file.
Boot Bootloader
Connect the phone to the Computer with USB cord.
Open a Command Prompt on your computer.
Copy twrp-3.2.3-1-marlin.img to the platform-tools folder or the folder that fastboot is in and rename it twrp.img
Type
Code:
fastboot boot twrp.img
at the Command Prompt and press enter.
When TWRP boots, disconnect the phone from the computer.
Install Custom Kernel (Optional)
Yes
exNoShadez:. nine7nine/Apps
Tap Install, select Magisk-v17.1.zip - (Official)
Tap Add more Zips, select:
exns_eas_v3.8.1p_bca050b.zip
Or
(Stable) exNoShadez_eas_v2.8.2_f94351f.zip
Swipe Slider to Install
Save Log
Reboot System
ElementalX / Flash /PureZ
Tap Install, select Custom Kernel:
ElementalX-P-3.09.zip
EX Kernel Manager by flar2
flashkernel-marlin-v1.19.zip
PureZ-Kernel-marlin-1.9.zip
Tap Add more Zips, select Magisk-v17.1(.zip - (Offical)
Swipe Slider to Install
Save Log
Reboot System
No
Tap Add more Zips, select Magisk-v17.1(.zip - (Offical)
Swipe Slider to Install
Save Log
Reboot System
Install Modules - BusyBox, etc. (Optional)
Open Magisk Manager, tap Menu, tap downloads.
[*]Update Magisk
Important: "If you had the stable version or the official beta installed, you must first un-install the Magisk Manager, only, before you can install the unofficial version, because they are signed with different keys".
"The same holds true if, for example, you have @kantjer 's build installed and want to try @ianmacd 's builds". See kantjer and martyfender post: [UNOFFICIAL] next version Magisk and MagiskManager snapshots by stangri
Magisk Notification is on.
Turn on Magisk Manager update notification: Open MagiskManager > Tap menu icon > Settings > Update Channel > Select: Stable, Beta or Custom
Custom is used to get updates for Unofficial Magisk Builds.
When Magisk Manager notifies you of update availibility.
Tap install.
Select, Direct Install (Recommended)
When it finishes installing
Tap, Save Log
Tap, Reboot
Done!
Log location: /storage/emulated/0/MagiskManager/logs/install_log_...
Magisk Notification is off.
Open Magisk Manager
When asked 'Do you want to install Magisk-vxx.x.zip now?
Tap install.
Select, Direct Install (Recommended)
When it finishes installing
Tap, Save Log
Tap, Reboot
Done!
Log location: /storage/emulated/0/MagiskManager/logs/install_log_...
Unofficial Magisk Links and Channels
To set the Magisk Notification Update Channel for Unofficial Magisk Builds: Open MagiskManager > Tap menu icon > Settings > Update Channel > Select: Custom > Copy the link address below and paste it on the line:
ianmacd
Code:
https://raw.githubusercontent.com/ianmacd/MagiskBuilds/master/updates/ianmacd.json
kantjer
Code:
https://raw.githubusercontent.com/kantjer/MagiskFiles/master/updates/kantjer.json
topjohnwu has a new channel:
[DEV] Magisk Canary Channel - Bleeding Edge Builds by topjohnwu Please, read the OP for the URL.
When Magisk Manager notifies you of an update:
Tap install.
Select, Direct Install (Recommended)
When it finishes installing
Tap, Save Log
Tap, Reboot
Done!
Log location: /storage/emulated/0/MagiskManager/logs/install_log_...
[*][Magisk] Systemless Xposed v89.3/v90.1-beta3 (SDK 21-27)
Information only, see thread for instruction/use.
[2018.5.6][Magisk] Systemless Xposed v89.3/v90.2-beta3 (SDK 21-27) by*topjohnwu
[*]Custom ROMs for Pixel XL
Need help with a Custom ROM?
First, follow the Installation Instructions in the OP (Post 1) of the Custom ROM you want to install.
Second, if you have a problem Installing it, Search the thread of the Custom ROM you want to install for solutions to problem before posting a request for help on their thread.
Official
[ROM][Pixel-XL][8.1.0_r43] [OMS] Pixel Dust OREO for marlin [R8] by spezi77
pixeldust_marlin-oreo-release-eight-20180810.zip
[ROM][OPM4.171019.021.P1][07/21] Benzo Rom 8.1.0 OMS by xanaxdroid
benzorom-8.1.0-20180721-2013-marlin.zip
[ROM] [marlin] [8.1] [LOS-based] **crDroid**OMS**v4.7 (10/12/18) by hokiealumnus
crDroidAndroid-8.1-20181012-marlin-v4.7.zip
[ROM][OFFICIAL][8.1.0]FireHound-v4.8.1 For Google Pixel XL [Marlin] by NepoRood
FireHound-4.8.1-OFFICIAL-20180907-marlin.zip
[ROM][OFFICIAL]Resurrection Remix v6.0 [Android 8.1][05/20/18] by BDogg718
RR-O-v6.0.0-20180520-marlin-Official.zip
[8.1.x][OFFICIAL][WEEKLIES] CarbonROM | cr-6.1 [marlin] by shagbag913
CARBON-CR-6.1-NOCT-WEEKLY-marlin-20180529-1130.zip
[ROM]-[Official]-[10.07.18]-Havoc-OS-[8.1.0] by SKULSHADY
Havoc-OS-20180710-marlin-Official.zip
[ROM][OFFICIAL] lineage-15.1 for Pixels (sailfish/marlin) by razorloves.)
lineage-15.1-20180731-nightly-marlin-signed.zip
Unofficial
[ROM][UNOFFICIAL][7/29/18] AICP 13.1 by stebomurkn420
aicp_marlin_o-13.1-UNOFFICIAL-20180729.zip
[ROM] [8.1.0] BootleggersROM 2.3-STABLE [Unshishufied] by stebomurkn420
BootleggersROM-Oreo4marlin.2.3-Stable-Unshishufied-20180710.zip
AOSiP 8.1 *Flash Kernel* (Unofficial) by stebomurkn420
AOSiP-8.1-Derp-marlin-20180722.zip
[ROM][Unofficial][8.1.0] Resurrection Remix 6.1.0 by dylanneve1
RR-O-v6.1.0-20180818-marlin-Unofficial.zip
Android Devs
[*]Audio Mod
ViPER4Android, [MOD]Audio Modification Library , and Audio Compatibility Patch.
Note: Some, of there can be installed via 'Magisk Downloads'.
[*]Other: TWRP Backup/TWRP Update
TWRP Backup
Boot Recovery.
Tap Backup and select Partitions to backup
Boot
System Image
Vendor Image
Data (Optional)
EFS (Once per major upgrade)
Swipe Slider to backup
Your backup will be stored in /Storage/Emulated/0/TWRP/...
Note: If you are unable to make a backup to internal storage with trwp 3.2.2-0 try backing up to USB-OTG
Update TWRP
TWRP Installation Instructions:
"If you already have TWRP installed: Download the latest zip and install the zip using TWRP".
at #5 why do I need to wipe data if coming from 8.0.0? or is it just a precaution?
Papote3 said:
at #5 why do I need to wipe data if coming from 8.0.0? or is it just a precaution?
Click to expand...
Click to collapse
FWIW, I am on 8.1 from 8.0 Nov patch and did not factory reset, just flash-all with -w removed (actually I run each command in that file myself). Everything works fine and no data/app loss...
jk8260 said:
FWIW, I am on 8.1 from 8.0 Nov patch and did not factory reset, just flash-all with -w removed (actually I run each command in that file myself). Everything works fine and no data/app loss...
Click to expand...
Click to collapse
Yeah that's what I thought. I think he just writes it just as a precaution, in case anything goes wrong on 8.1, first factory reset and then write the problem if it still persist
Supersu or Magisk
Which rooting method is best for the Pixel XL. Supersu or Magisk
Update worked like a charm on my standard Pixel.
But somehow TWRP will not decrypt, keep asking for password even though I always had a pattern which worked flawlessly in TWRP. Any suggestions so I can get rooted again?
EDIT: After a few password attempts, removing the password altogether worked. When installing TWRP.zip the command window says E:This TWRP does not have synthetic password decrypt support, that must be why I had problems.
EDIT2: SuperSU does not seem to work
Juhler said:
Update worked like a charm on my standard Pixel.
But somehow TWRP will not decrypt, keep asking for password even though I always had a pattern which worked flawlessly in TWRP. Any suggestions so I can get rooted again?
EDIT: After a few password attempts, removing the password altogether worked. When installing TWRP.zip the command window says E:This TWRP does not have synthetic password decrypt support, that must be why I had problems.
EDIT2: SuperSU does not seem to work
Click to expand...
Click to collapse
Password Encryption isnt working on the new TWRP3.2.0 gotta wait for an update or remove passwords all together...
Juhler said:
Update worked like a charm on my standard Pixel.
But somehow TWRP will not decrypt, keep asking for password even though I always had a pattern which worked flawlessly in TWRP. Any suggestions so I can get rooted again?
EDIT: After a few password attempts, removing the password altogether worked. When installing TWRP.zip the command window says E:This TWRP does not have synthetic password decrypt support, that must be why I had problems.
EDIT2: SuperSU does not seem to work
Click to expand...
Click to collapse
Supersu wasn't even in my app drawer after flashing the zip so after rebooting I just went into the zip and installed the apk manually
Thank you for this thread....it worked. I did #9
Can confirm #10 works like a charm. Thanks for the separate thread. Both your guide threads should be stickies.
Just use adb sideload...
If you want to keep all your data, just sideload the OTA via adb, instead of flashing the full factory image...
My Steps:
1) Flash stock boot.img (November for me, I used TWRP)
2) Reboot recovery
3) Choose: Apply Update from ADB
4) adb sideload marlin-ota-opm1.171019.011-9e7f2bb8.zip
5) reboot system
6) set screen lock to "none"
7) copy twrp-pixel-installer-marlin-3.2.0-0.zip to your internal storage
8) reboot bootloader
9) fastboot twrp.img
10) Install: twrp-pixel-installer-marlin-3.2.0-0.zip
11) reboot recovery
12) Install: SR5-SuperSU-v2.82-SR5-20171001224502.zip
13) reboot system
14) profit!
If you knew this, great, if you didn't, you do now :good:
Regards,
Nepo
ekowwillis said:
Which rooting method is best for the Pixel XL. Supersu or Magisk
Click to expand...
Click to collapse
In my opinion Magisk.
NepoRood said:
If you want to keep all your data, just sideload the OTA via adb, instead of flashing the full factory image...
My Steps:
1) Flash stock boot.img (November for me, I used TWRP)
2) Reboot recovery
3) Choose: Apply Update from ADB
4) adb sideload marlin-ota-opm1.171019.011-9e7f2bb8.zip
5) reboot system
6) set screen lock to "none"
7) copy twrp-pixel-installer-marlin-3.2.0-0.zip to your internal storage
8) reboot bootloader
9) fastboot twrp.img
10) Install: twrp-pixel-installer-marlin-3.2.0-0.zip
11) reboot recovery
12) Install: SR5-SuperSU-v2.82-SR5-20171001224502.zip
13) reboot system
14) profit!
If you knew this, great, if you didn't, you do now :good:
Regards,
Nepo
Click to expand...
Click to collapse
Good Information!
Did you flash a Custom Kernel (ElementalX-P-3.00.zip) or UPDATE-suhide-v1.09-20171001222116.zip to pass SafetyNet?
Papote3 said:
Yeah that's what I thought. I think he just writes it just as a precaution, in case anything goes wrong on 8.1, first factory reset and then write the problem if it still persist
Click to expand...
Click to collapse
There are three reasons I recommend #4 - 'Wipe Data' prior to rooting:
a. I write all my guides with step by step instructions for noobs.
b. Some have reported data corruption when not doing #4 - 'Wipe Data'.
c. When upgrading the OS, I always start with a clean install.
If you want to upgrade without a clean installation that's ok too, but it is much easier to trouble shoot problems if you start with a clean installation.
Homeboy76 said:
Good Information!
Did you flash a Custom Kernel (ElementalX-P-3.00.zip) or UPDATE-suhide-v1.09-20171001222116.zip to pass SafetyNet?
Click to expand...
Click to collapse
I did not flash those, I have no real need for either...
Sent from my Pixel XL using XDA Labs
Everything went well up to "erasing userdata"..... its been stuck there for 5 min... any advice?
Cancel that....Just finished...
NepoRood said:
If you want to keep all your data, just sideload the OTA via adb, instead of flashing the full factory image...
My Steps:
1) Flash stock boot.img (November for me, I used TWRP)
2) Reboot recovery
3) Choose: Apply Update from ADB
4) adb sideload marlin-ota-opm1.171019.011-9e7f2bb8.zip
5) reboot system
6) set screen lock to "none"
7) copy twrp-pixel-installer-marlin-3.2.0-0.zip to your internal storage
8) reboot bootloader
9) fastboot twrp.img
10) Install: twrp-pixel-installer-marlin-3.2.0-0.zip
11) reboot recovery
12) Install: SR5-SuperSU-v2.82-SR5-20171001224502.zip
13) reboot system
14) profit!
If you knew this, great, if you didn't, you do now :good:
Regards,
Nepo
Click to expand...
Click to collapse
Thanks
Don't you need stock recovery to be able to apply OTA?
I don't see a step doing that, and I suppose you're on TWRP, or were you already on stock recovery?
If so, then better make that a clear step.
badabing2003 said:
Thanks
Don't you need stock recovery to be able to apply OTA?
I don't see a step doing that, and I suppose you're on TWRP, or were you already on stock recovery?
If so, then better make that a clear step.
Click to expand...
Click to collapse
That's covered with Step #1, friend
NepoRood said:
1) Flash stock boot.img (November for me, I used TWRP)
Click to expand...
Click to collapse
Since boot and recovery are on the same partition, flashing stock boot will give you stock recovery. I flashed my stock boot using TWRP, however, it can be flashed via fastboot as well.
AFAIK, this can be done for all updates (I've used this method since Oreo came out), it's just like taking the OTA from Gooble, you just download it yourself :good:
Regards,
Nepo
PS, I did flash full factory image when upgrading from Nougat to Oreo, just FYI
NepoRood said:
That's covered with Step #1, friend
Since boot and recovery are on the same partition, flashing stock boot will give you stock recovery. I flashed my stock boot using TWRP, however, it can be flashed via fastboot as well.
AFAIK, this can be done for all updates (I've used this method since Oreo came out), it's just like taking the OTA from Gooble, you just download it yourself :good:
Regards,
Nepo
PS, I did flash full factory image when upgrading from Nougat to Oreo, just FYI
Click to expand...
Click to collapse
Thanks for the clarification, didn't know that was the case.
I never flashed boot using twrp, would it do it for all slots, I guess it would.
Sent from my Pixel XL using Tapatalk
Is anyone getting this error?
Code:
wiping userdata...
/usr/local/bin/mke2fs failed with status 1
mke2fs failed: 1
error: Cannot generate image for userdata
I'm using the wipe option, but haven't ran into this one before.

[GUIDE][MIUI][WAYNE]How to update MIUI10 without losing data

Hi, folks, how you doing?
Today, I'm gonna help you to update your MIUI without losing your installed apps and stuff.
First of all, you have to download the MIUI rom image here. Choose wisely, because there's just one version compatible with MI A2 and it is called MI 6X - WAYNE.
----------------------------------------------------------------
A few things before you get into this:
[!]This process worked to me and can work to you, however, I can not give any garantee of how you will understand it, so, if you follow these steps, do it at your own risk.
[!]You must have USB debugging enabled, an unlocked bootloader, a converted MI A2 to MI 6X andTWRP recovery installed.
[!]CAMERA2API: If you have had edited build.prop and renamed wayne.xml to whyred.xml, you'll have to do it again. I recommend this guide.
Requirements:
1) TWRP Wayne
2) ADB
3) MI 6X Wayne rom
4) USB Debugging, unlocked bootloader enabled in Developer options
5) Platform-tools
6) Compatible USB Cable
----------------------------------------------------------------
A few explanations:
The update process has two methods: one is known as "clean update". On clean update, all data in your phone will be wiped on the process and the update will give you a fresh clean device.
The other one process is known as "dirty update". On this process, only the OS files will be replaced, keeping all that garbage (apps, pictures, music, videos, cache, etc) we love in our phones.
Today, I'll teach you how to do a dirty update.
----------------------------------------------------------------
From here, I'll assume you already have ADB installed and working in your computer and TWRP boot image placed in ADB Folder.
1) Download MIUI rom and place it in your phone's internal memory
2) Restart your phone with Power button + Volume down until you see the Fastboot bunny
3) Connect your phone in your computer using the provided USB cable
4) In your computer (Windows), open file manager in ADB folder, hold SHIFT key and right click mouse and select "Open Command prompt here"
5) In Command Prompt, type
Code:
fastboot devices
and Enter - you shall see your devices ID
6) Type
Code:
fastboot boot twrp-[version here]-wayne.img
and Enter, your phone your will restart and load TWRP Recovery.
7) In TWRP, tap "Install", it will open file manager to you choose the desired file. Select it it and slide "swipe to confirm flash".
8) The installation process will start. Take a coffee because it may take a while.
9) In the end of the update process, tap "wipe Dalvik/Cache".
10) Tap "Restart".
Your phone will restart. The first boot is a little longer than the normal (+-3 minutes), but it is normal.
will it break magisk?

[GUIDE][A6020I36]Install Lineage OS 16, root and recovery in Lenovo Vibe K5

Guide to install Lineage OS 16.0 with root, recovery and unlocked bootloader on Lenovo Vibe K5 A6020I36 by lexiyuri
0. Download and uncompress all the essential included files (TWRP recovery, minimal adb and fastboot, lenovo drivers) included in my androidifilehost link:
https://androidfilehost.com/?w=files&flid=303569
Download the Lineage OS 16 from here (thanks to harry8242):
https://androidfilehost.com/?w=files&flid=282516
dont forget to choose latest Lineage OS 16 compilation
Download the Gapps from
https://opengapps.org/
(choose Android 9.0, arm64 and stock options)
Download the latest SuperSU version (flashable zip package) from here:
http://supersuroot.org/downloads/SuperSU-v2.82-201705271822.zip
Important: dont forget to copy the Gapps, supersu and ROM inside a micro sd card before start!!
1. Make a entire backup of your device, syncing Google and WhatsApp accounts before doing something.
Remember: you are going to erase your Stock Lollipop version in your k5!!
2. Install the inclued Lenovo Drivers
from the folder named latest_usb_driver_windows_2
and the drivers in the executable file named LenovoUsbDriver_autorun_1.1.15_user.exe
For Windows xp to 8.1: proceed to follow on screen instructions
Note for Windows 10 users: this OS enforces driver signatures by default. This can be disabled to install drivers that are not digitally signed. Use the following steps to disable driver signature enforcement in Windows 10.
Click the Start Start menu and select Settings.
Click Update and Security.
Click on Recovery.
Click Restart now under Advanced Startup.
Click Troubleshoot.
Click Advanced options.
Click Startup Settings.
Click on Restart.
On the Startup Settings screen press 7 or F7 to disable driver signature enforcement. Your computer will restart and you will be able to install non-digitally signed Lenovo drivers.
3. Install Minimal ADB and Fastboot: double click on the adb setup file included and follow on screen instructions
Alternatively you can download Minimal ADB tool from https://androidmtk.com/download-minimal-adb-and-fastboot-tool or choose the included in compressed
Also you can install Android Studio SDK from its official source in order to use the ADB and fastboot tools
https://developer.android.com/studio/?gclid=EAIaIQobChMIpdiIlpfh5QIVks13Ch2bUw8REAAYASAAEgJW9PD_BwE
4. To ease things, copy the Recovery file (twrp3230.img) into Minimal ADB Program files folder (check before if your program files folder are 32 or 64 bits).
5. Unlock bootloader for lenovo Vibe k5
Enable the Developer Options. To enable the Developer Options, go to settings => About => Software Information => More => Tap on the Build Number around 7-8 times until you see a message telling you "developer options enabled"
Go back to settings and now enable the OEM Unlock by going to Settings => Developer Options and tap "Enable/allow OEM Unlock" and after tap in the "Enable/ Allow usb debugging" option.
I want to clarify in this point: Lenovo doesn't offer an official way to unlock bootloader. Now, connect your phone to the PC.
In your Minimal ADB fastboot program files folder open a command prompt (cmd window) by pressing Shift Key + Right Mouse Click, now type the following command line in your command window
Code:
adb devices
(This is to verify your device is being recognized and shows a code or identifier)
Note: if you see a pop up to allow USB Debugging on your phone, Click OK
After that, type the following command below to reboot your phone to bootloader
Code:
adb reboot bootloader
Your phone will reboot into bootloader and enter to the fastboot at the same time.
Fastboot screen shows green lenovo logo, a white background and a tiny message saying if you press longer the on/off button you will restart the phone.
Please, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
(This command will list the connected devices. If your phone serial number shows up you can continue, but if the phone is not listed, your drivers are not installed correctly. Fix that issue and then continue.
Now, unlock the bootloader with this command line
Code:
fastboot oem unlock
Important: this command returns an error code saying that remote oem is not allowed, just like the following one
Code:
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.002s
For some reason I did all the entire process without problems. May be Lenovo Vibe K5 is unlocked by default, so, it doesn't matter if the message says you can't do the unlocking. Continue to the Step 6
6. Install the TWRP recovery 3.2.3-0
Type the following command in order to install the recovery and press enter
Code:
fastboot flash recovery twrp3230.img
(this line installs the twrp permanently)
Optional: you can just run the recovery temporarly using this line
Code:
fastboot boot twrp3230.img
The fastboot boot command line lets you inside the twrp recovery mode window. Also, you can enter to the recovery mode pulling out the battery, pressing vol +, vol - and power all that at the same time.
7. Installing Lineage OS 16.0 -Android Pie 9.0-, Gapps and SuperSu (make root) flashable packages.
First then all, make the reglamentary wipes (one by one) without restart/reboot the phone
Code:
wipe system (this will erase the Stock Lollipop)
wipe data (this will erase pictures, WhatsApp folder, Download folder, data apps, wifi passwords, configurations and so on)
wipe cache
wipe dalvik / art cache
In the main twrp window, tap the Install option, locate your microSD tapping in the select storage to activate the external SD.
Now search the files into the SD, pressing in the "up a level" zone and after you reach it, install the following things in the exact order:
Choose the Lineage OS 16 Rom zip file (swipe to confirm) and wait. Dont restart the phone.
After that, choose the Gapps zip file, swipe again to confirm and wait.
Finally, choose the SuperSu zip file you downloaded, do a swipe, wait.
If you want, its possible install all the zip files as a bunch using the "add more zip option" that twrp offers to you, but I prefer do it each one by one.
8. Do a final wipe choosing "wipe Dalvik and Cache".
9. Now choose the restart/reboot option. Wait for the phone initial setup (around a couple of minutes)
10. Configure the phone with your android account preferences. install your favorite apps, sync your info, etc.
Important: during the configuration, the Pixel launcher can fail. So, choose trebuchet as the default launcher.
11. Configure the SuperSU, install it, and verify the root with the Root checker app (you can found it in the Play store) and you are done!! Enjoy!!
== Special tip to enable the TWRP recovery option in the on/off/restart menu===
12. Once you have finished the set-up in your phone enable the Developer options into Lineage OS following this route:
tap in the drawer little configuation wheel ==> System ==> about phone, go to the last option and tap around 7-8 times in the Rom compilation number until you receive the toast message telling you "developer options enabled".
Return to the main system screen options, tap in System, then tap in advanced, and finally tap in the developer or programmer options, activate them and enable Advanced Power/reboot Menu
13. Finally, hold power button, choose restart, then you will see all restart options including the restart to the recovery .

Categories

Resources