yashsingh1/xdaforums huggingface dataset:
[Magisk] Gooch4130:
Magisk/Oreo Install Instructions

Hoping someone can confirm/provide high-level steps needed to install Oreo and then Magisk 14.2 (or higher) on Google Pixel that was already rooted with goodwin's build on Android 7.1.2.

Proposed Files Needed:

Latest Sailfish Image: https://developers.google.com/android/images#sailfish

ElementalX: https://elementalx.org/devices/pixel/ (ElementalX-P-2.02)

TWRP: https://dl.twrp.me/sailfish/ (twrp-pixel-installer-sailfish-3.1.1-1.zip and twrp-pixel-installer-sailfish-3.1.1-1.img)

Magisk Manager: https://magiskmanager.com/Magisk/MagiskManager-v5.4.0.apk

Magisk: https://github.com/TheComputerGuy96/MagiskFiles (looks like 14.3 builds are here <- will they work on Pixel??)

Boot Signer: https://xdaforums.com/attachment.php?attachmentid=4164411&d=1496000476 (VerifiedBootSigner-v8.zip)

Steps:

(1) Copy VerifiedBootSigner-v8.zip, TWRP.zip, ElementalX, and Magisk.zip to phone

(2) Uninstall Magisk Manager <- is this needed?? I assume it is.

(3) Boot to bootloader

a) adb reboot bootloader

Do I need to boot to recovery and clear the cache and dalvik prior to installing Oreo?

(4) Flash Oreo with the flash-all.bat (remove -w flag from bash script to keep data)

I am assuming that flashing Oreo will over-write TWRP and remove Magisk Manager from the system. Do I need to manually use the uninstall.zip via TWRP prior to flashing Oreo?

(5) Once you're up and running on Oreo, boot back to twrp 3.1.1-1.img

a) adb reboot bootloader

b) fastboot boot X:\Path\to\twrp-pixel-installer-sailfish-3.1.1-1.img

(6) Select 'Install' and flash the twrp-pixel-installer-sailfish-3.1.1-1.zip

(7) Select 'Install' and flash the VerifiedBootSigner-v8.zip <- I think this is needed whenever you flash your own bootloader

(8) Go back to main TWRP menu and select Reboot > Recovery (this should boot you back to TWRP)

(9) Select 'Install' and flash ElementalX-P-2.02, Magisk.zip, twrp-pixel-installer-sailfish-3.1.1-1.zip, VerifiedBootSigner-v8.zip

(10) Reboot

Will installing Magisk also install the MagiskManager or will that be step 11 after you get back into the phone (ie Run the MagiskManager-v5.4.0apk file).

Let me know if the above is correct, or what I am missing. It'd be nice if we can turn this into a solid set of steps for those of us still on Android 7.1.2 wanting to go to Oreo.
[Magisk] simar404:
I just changed location for busybox to system/bin and it worked.

Anyways i have another problem, my pixel's Google play services app keeps crashing, any solutions, i tried clearing cache and its latest version, so i need help
[Magisk] ItWasAllIntended:
You've really been having a lot of problems. It really sounds like you need to do a reinstall of Android. Try dirty flashing Android again and it that doesn't work, backup all your data and do a fresh install. With the amount of problems you've had it'll probably do good.
[Magisk] simar404:
I don't have custom recovery coz i fear it will interfere when installing ota, the only problem i am facing though is just Google play services crashing, i have tried dirty flashing 2 times with flashfire, still no fix, i guess clean flash will fix the problem, but i don't want to do it hehe, it consumes time to set up my phone again, as i am a power user so i have to install a lot of apps XD

So will flashing twrp interfere with updates?
[Magisk] ItWasAllIntended:
You can't flash TWRP on Oreo last time I checked. I'll test it in a minute to see if that's changed. It shouldn't interfere of with OTAs and if it does it wouldn't be hard just to dirty flash it.
[Magisk] simar404:
Ohh wowww u gonna experiment thanks
[Magisk] ItWasAllIntended:
No flashing the TWRP installer zip doesn't work but you can still just boot from the .img
[Magisk] simar404:
Yes i can do that no problem thanks for the help
[Magisk] ItWasAllIntended:
Tell me how the reinstall goes
[Magisk] simar404:
No i am not reinstalling yet, as i only get Google play services has stopped error when i reboot, so ots its only 1 time, may be 8.1 update fixes it, doesn't bother me much as of now, thanks though for quick replies :)
[Magisk] ItWasAllIntended:
You're welcome. Hope you don't have any other issues
[Magisk] cruse2382:
Im running oreo with TWRP installed. Think its v3.1.1 you need just boot to twrp.img then install zip
[Magisk] ZerkerEOD:
Found my issue nvm
[Magisk] ItWasAllIntended:
Yeah when installing the zip, when I boot into my phone it just goes to TWRP. I then had to restore my boot image through TWRP 'cause it broke it.
[Magisk] simar404:
I hear Android 8.1 available to download, but i haven't got notification yet even i am enrolled into Android beta program

Also i tried finding on Google factory images site, but no factory image available of 8.1

Any info would be really appreciated thanks
[Magisk] ItWasAllIntended:
I also saw an article about that and also haven't got the notification. I read the FAQ and if you've flashed 8.0 instead of OTA you have to flash 8.1 as well. Just dirty flash it over by removing the -w like before ages ago when I told you.
[Magisk] ScottIsMyName:
Has anyone gotten Magisk 14.3 to work without using TWRP on Oreo?

I did the following:

*Flash latest oreo factory image, wiping everything

*Put stock boot.img from factory image on phone sdcard

*Booted into oreo, installed Magisk Manager 5.4 apk from official thread

*Opened magisk manager, changed channel to beta

*Clicked install, chose the option to use patched boot image - selected boot.img loaded to phone earlier

*Copied /sdcard/MagiskManager/patched_boot.img to computer

*Rebooted to bootloader mode

*fastboot flash --slot all boot patched_boot.img

System booted fine, but showing magisk is not installed.
[Magisk] simar404:
Yeah but no factory image available of 8.1

---------- Post added at 04:26 AM ---------- Previous post was at 04:20 AM ----------

Nvm got it in that article, i thought the link would be available in official factory images page
[Magisk] ItWasAllIntended:
You shouldn't need to. The notification came up eventually. The first time I tired it, it bootlooped me though. Thankfully rescue party fixed it. I'm gonna try again now.

---------- Post added at 09:27 AM ---------- Previous post was at 09:26 AM ----------

1.) Why wouldn't you want to use TWRP? 2.) The only way to use TWRP on Oreo is temporary anyway(through fastboot boot TWRP.img)
[Magisk] simar404:
I use flashfire, don't need to remove anything like -w or use pc or whatever, just dirty flashed with flashfire and i flashed magisk 14.3 too.

Everything working fine :)
[Magisk] ItWasAllIntended:
I'm gonna try that then. What zip do you flash. The one that you download or the one inside that download?
[Magisk] simar404:
I downloaded Magisk 14.3 from beta thread and i download developer preview 8.1 image from here: https://developer.android.com/preview/download.html#images
[Magisk] nexusmaniac:
So then all! :D

Good news, Magisk 14.3 works flawlessly on the Pixel XL running Android 8.1 beta.

All I did was:

fastboot boot twrp.img

TWRP currently doesn't decrypt 8.1.... So that's no fun!

But fear not ;) We still have adb sideload!!

So in TWRP, head to the adb sideload section. Then:

adb sideload magisk-14.3.zip
adb sideload verified-boot.zip

Reboot.

CTS passes and everything is great :D
[Magisk] Sgace:
I did without twrp and everything is fine. Even when taking the ota to 8.1 magisk is still there and working great.

I did all as you did accept for the last point, I just fastboot flashed patched boot img without --slot all.
[Magisk] ScottIsMyName:
Yeah I repeated my steps all over again and it worked.....not sure what went wrong the first time. Thanks though!
[Magisk] Ringfinger69:
By no means do i consider myself smart with this, for what it's worth...

I uninstalled Magisk within the app, and Took the 8.1 OTA

Using the Sideload feature in twrp (3.2.2), i skipped right over the decryption

headed over to the ADB Sideload and pushed Magisk Ver 14.5 to my phone.

Reboot

Verified that Safetynet check success, ctsProfile and basicIntegrity = true
[Magisk] simar404:
Hi broi need help in upgrading my Google pixel to officiall 8.1

M on developer preview of 8.1

Earlier i used flashfire, but it doesn't work anymore

Please guide me ASAP
[Magisk] ItWasAllIntended:
Don't use Flashfire. Why not do the OTA?
[Magisk] simar404:
But how can i update with ota if m rooted with magisk?
[Magisk] ItWasAllIntended:
It should work fine. You'll just have to reflash TWRP and Magisk. Also get Elemental X too.
[Magisk] simar404:
But how to do that, coz twrp doesn't flash on Google pixel as i remember, andalso why do i need elemental x?

If possible guide me with steps please
[Magisk] ItWasAllIntended:
TWRP works fine now. Right.

1.)Update to 8.1 through the OTA

2.)Reboot to fastboot

3.)Download Magisk Beta .zip, TWRP .img, TWRP .zip, and Elemental X .zip

4.) Do "fastboot boot PATH/TO/TWRP.IMG" and you'll boot into TWRP.

5.) Transfer TWRP .zip, Magisk Beta .zip and ElementalX .zip onto your phone

6.)Flash TWRP .zip and then go to the main menu>Reboot>Recovery and you should reboot back into TWRP

7.)Flash ElementalX .zip and them Magisk Beta .zip

8.)Boot into system and it should all work

If you want I can get you all the zips quickly. ElementalX is a custom kermal. It means you get better performance and battery life. It also means you can boost audio volume.
[Magisk] simar404:
I got all your points, but how to update through ota?

Also how to use elemental, like just flashing it and that's it?
[Magisk] ItWasAllIntended:
Go to system settings and then update
[Magisk] simar404:
Lol but it gives error, as i said m rooted with magisk

---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------

Lol but it gives error, as i said m rooted with magisk
[Magisk] ItWasAllIntended:
Do you have a Pixel or Pixel XL?
[Magisk] simar404:
It gives error
[Magisk] ItWasAllIntended:
Pixel or Pixel XL
[Magisk] simar404:
Pixel
[Magisk] ItWasAllIntended:
Download this. Extract it once(there is a .zip inside that too, leave it as it is). VERY IMPORTANT: Open the .bat file with notepad and near the end you'll see -w. MAKE SURE TO REMOVE THIS. Save the .bat, double check that -w is NOT there and then run the bat. You'll then have stock 8.1 afterwards. I'll get all those zips for you to make it easier but do that first.
[Magisk] simar404:
I know, but how do i flash it?
[Magisk] ItWasAllIntended:
TWRP. I'll get you everything you need in a nice zip quickly
[Magisk] simar404:
Awesome wow, thanks i understood everything, will do the whole process tomorrow morning, going to sleep now, waiting for your zips hehe
[Magisk] Veid71:
is anyone else having an issue getting magisk to work properly on their xl 7.1.2? no matter what i do after flashing it theres an issue whether it be the modules not installing after flashing them in twrp or magisk or magisk not installing all of its components like magisk hide im using magisk 3.1.1 because 3.2 doesnt install properly either it sticks but its almost like it reinstalls itself every time and i get funky looking letters and numbers for all of my files and it asks me to swipe to allow modifications or not each time i boot into it
[Magisk] simar404:
First of all you are outdated, 2nd of all you need to remove passcode from your device, this might fix decrypt data option
[Magisk] Veid71:
outdated how so? on firmware? i would update to 8.1 but theres hardly any roms out for it and xposed isnt up to date for it yet and thats the main reason for me rooting. i also dont have a password on my phone
[Magisk] simar404:
Then m afraid you would have to factory reset your device which will erase all your data, then it will fix that decrypt data problem
[Magisk] Veid71:
yeah, ive reset it twice :/ 3.1.1 seems to work fine is there any differences between the 2 for our device?
[Magisk] simar404:
I have never flashed twrp on my device, i just used bootable image to install magisk 14.5 on Android 8.1

But i will flash twrp today as 3.2 as i heard is flashable
[Magisk] Veid71:
yeah i havent tried the bootable one but also ive fastbooted the regular 3.2 img and it works fine the first time it boots but after that no dice lol ill try the bootable img should i try 14.5 or 14.2?

edit: when i do the bootable one i get a "failed to mount '/system' (device or resource busy) error also the bootable image isnt sticking it only works for the first time fastboot it for some reason
[Magisk] simar404:
Can i flash the firmware with twrp? Or do i have to run .bat file?

Coz last time i ran .bat file it gave error.
[Magisk] ItWasAllIntended:
Sorry forgot to upload the zips. Lemme turn on my PC and I'll help.
[Magisk] simar404:
I can't seem to find a way to update to my device without pc? I have been stuck on November security patch for months, can someone please help me?

Is there a way to update my device without pc, flashfire doesn't work anymore
[Magisk] xthek1ng:
Has anyone with a Pixel XL running PureNexus been able to run any version of Magisk other than the 13.3_b4 version in OP? I'd like to update my Magisk but it never seems to take, even after uninstalling the Magisk version.
[Magisk] wpbear:
I haven't tried since my setup works. I am on last Pure Nexus with 13.4. Don't try to fix what isn't broken. Why update if it currently works? At least not until a new Pure Nexus is released.
[Magisk] simar404:
Seems like no one wants to help :(
[Magisk] NicoC72:
I'm on PureNexus with the ElementalX kernel. I can't get anything running. Flashing any of the official 14.X or 15.X does nothing for me. I tried the 13.3_b4 version and it still won't take. Installing MagiskManager 5.5.0 myself after flashing this just hangs. I had everything working before, but after my adventures in 8.1 ROMs I can't get my PureNexus working...
[Magisk] simar404:
Clearly no one wants to help, really disappointing to Know this, this is the only forum for help, and no one wants to help me:crying:

Anyways i finally figured out how to update your Google pixel and pixel xl with using pc, u need to be on magisk 14.2 beta as it works with flashfire, other magisk versions do not work with flashfire.

So simply upgrade your pixel devices forever with flashfire using magisk 14.2

Enjoy and have a great day ahead, i found this solution after 3 months of crying here and there, and no one would help shame.

Below is the attached 14.2 magisk zip for you to flash, as 14.2 isn't available anywhere online atm:
[Magisk] kartikb:
Hi, you can simply flash the fastboot image file that Google publishes every month if using a PC making sure the -w is removed from the .bat file. After which you can boot to twrp recovery and flash the latest version of Magisk Beta which is 15.4.

I do this once a month and it takes less than 10 minutes to do.

You can also follow topjohnwu's instructions on how to install OTA while having Magisk installed by searching it up on Magisk forum.

Cheers
[Magisk] simar404:
I already know this, but from pc it gives error i am never able flash by running .bat file, nothing happens, also flashfire does it in two minutes

I just want magisk to have kept support for flashfire and also flashfire to preserve custom recovery which it never does

So due to this i am never able to keep twrp as my recovery

Anyways i am not a fan of using pc every month just for updating. Unlocking your device should make things easy but in Google pixel case its not at all easy
[Magisk] kartikb:
I just find it easier doing it through my PC which I don't see as a big hassle so I'm happy with it.

I hope you figure out how to keep Magisk after OTA update.

Cheers
[Magisk] Didgeridoohan:
That's not how it works...

Magisk has never had support for Flashfire, it's Flashfire that need to be updated to support Magisk.
[Magisk] simar404:
Alright thanks for the info, appreciate it very much :)
[Magisk] simar404:
Guys i have a big problem, need urgent help. If i relock my bootloader the phone won't reboot the Google logo keeps flashing for 1 sec. I yad no choice but to unlock bootloader again and then everything is working fine. I have tried multiple times to lock bootloader but the phone won't boot and Google logo keeps flashing.

Please i need desperate help
[Magisk] y2kbugleung:
Just flash ROM and then TWRP-RC2 without wiping anything.

It should restore the boot.img to without-Magisk status.

After that, flash Magisk.

The uninstaller is there for not reflashing the ROM.

Please correct me if I am wrong.
[Magisk] jkashuba07:
Here is what I did, from a fresh install of LineageOS 14.1 by Invisiblek 7/19/17

1. Boot into TWRP

2. Flash 13.10 into both slots

3. Boot back into System

4. Boot into TWRP and flash B1 to both slots

5. Boot back to System

Passing SafetyNet, rebooted 3 times
[Magisk] y2kbugleung:
Excuse me, do you mean Magisk 13.10?

If so, why do you flash Magisk 13.10 and then B1?

Do I miss something? :confused:
[Magisk] Soooperstar:
That was the instructions in the RR rom thread. It worked for me only I didn't have to flash to both slots. Rebooted a few times and still good since yesterday
[Magisk] y2kbugleung:
Is this the 13.10?

https://www.androidfilehost.com/?fid=745425885120747653
[Magisk] archant:
Just tried v13.3 Pixel b2

No longer getting the "cannot mount /system partition" error. Installation successful.

First boot, passes safetynet

Installed adaway, but it complains that it is unable to copy the hosts file

On Reboot, Magisk says safetynet success, but ctsProfile is false, and basicIntegrity is false.

AndroidPay will not work.

Flux does work, so some root features are working at least.

WiFi Key Recovery works

Maybe adaway has a bug?

Issues so far:

# SafetyNet fails after reboot

# Seems to not allow adaway to replace the hosts file.
[Magisk] cruse2382:
Even though safetynet passes i still dont have netflix on the play store and barclaycard app still says it wont work on a rooted phone. Am i missing something?
[Magisk] y2kbugleung:
MagiskManager says "SafetyNet check success" should mean "using Google SafetyNet service for checking success", instead of "passing the check".

We need to see two green ticks for "pass".

---------- Post added at 10:35 PM ---------- Previous post was at 10:34 PM ----------

For "barclaycard app", have you checked the box of this app in "Magisk Hide"?
[Magisk] cruse2382:
Yep been like it since switching to the pixel though always worked on my nexus 5x but not on pixel

---------- Post added at 03:43 PM ---------- Previous post was at 03:39 PM ----------

Now all of a sudden the magisk manager app keeps force closing tried uninstalling and reinstalling and nothing

Edit: another reboot after reinstalling fixed the app crashing but now safteynet is failing
[Magisk] goodwin_c:
Also, with systemless hosts enabled, and updated hosts with adaway - i can still pasd SN
[Magisk] Ezrem:
Thanks for all your hard work. I am still on your v12 version. Does this uninstaller also uninstall that version, or should I just reflash my PN ROM?
[Magisk] Soooperstar:
Yes but seems this method only worked for a few of us
[Magisk] y2kbugleung:
Just tried PA -> 13.10 and then 13.3_b2

First boot okay, second boot afterwards safetynet failed
[Magisk] PFusion:
Thanks for creating an official thread for the unofficial Magisk! I've bookmarked this thread and will wait anxiously for updates! Thanks for all that you do Goodwin_C
[Magisk] KingJ50:
Tried this method. Still failing after first boot.

Running PureNexus 2017-06-12 with Elemental kernel 1.14.

I've attached the log.
[Magisk] docluv01:
Ok, was running PN June. Had v12. Booted TWRP, flashed uninstaller, then 13.3 b2 , then twrp, then rebooted.

EVerything was fine, had root, and passed safetynet.

Rebooted again, and failed safety net
[Magisk] ScottIsMyName:
Pretty much the exact same thing for me....works until first reboot. Tried disabling and re-enabling magisk hide, turning on and off core mode, systemless hosts, etc, nothing works after first reboot.

I'm on PN June, with stock PN kernel.
[Magisk] uodii:
Are you still running RR rom or have you changed since then?
[Magisk] burtonlax:
PN June Magisk 13.3b2 Manager 5.1.1
[Magisk] docluv01:
What happens when you reboot?
[Magisk] goodwin_c:
[MENTION=535343]all[/MENTION] who lost SN after first reboot

Please, on TWRP, do next:

- mount system partition

- open terminal, and run next commands: "ls -l /system | grep sbin", "ls -l /system/sbin/", "ls -l /system/sbin_orig/"

Provide output for each of 3 commands
[Magisk] bleez99:
I was running V12 on stock July rom with Elemental X when safety net went south. Currently, I'm running stock , and stock kernel with SuperSu systemless because I need root. I'd love to come back to Magisk. Do you feel I should wait a bit longer because of the mixed results I'm seeing here or should I go for it? If so, any recommendations for a successful install for a combo of stock, Elemental X and Magisk?

When dialog fails, it's time for violence.
[Magisk] burtonlax:
Good question.b I think I rebooted last night after installing b2 but I can't remember and I'm going to hold off for now.
[Magisk] ScottIsMyName:
~ # ls -l /system | grep sbin
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
lrw-r--r-- 1 root root 13 Jan 1 2009 charger -> /sbin/healthd
drwxr-xr-x 2 root shell 4096 Sep 11 1970 sbin
drwxr-xr-x 2 root shell 4096 Jul 20 16:51 sbin_orig

~ # ls -l /system/sbin/
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
-rwxr-x--- 1 root shell 1087072 Jan 1 2009 adbd
-rwxr-x--- 1 root shell 865056 Jan 1 2009 healthd
-rwxr-xr-x 1 root root 196832 Jul 20 16:47 magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 magiskhide -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 magiskpolicy -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 resetprop -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 sepolicy-inject -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 su -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Sep 11 1970 supolicy -> /sbin/magisk
lrwxr-x--- 1 root shell 7 Jan 1 2009 ueventd -> ../init
lrwxr-x--- 1 root shell 7 Jan 1 2009 watchdogd -> ../init

~ # ls -l /system/sbin_orig/
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
-rwxr-x--- 1 root shell 1087072 Jul 20 16:51 adbd
-rwxr-x--- 1 root shell 865056 Jul 20 16:51 healthd
-rwxr-xr-x 1 root root 196832 Jul 20 16:51 magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 magiskhide -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 magiskpolicy -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 resetprop -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 sepolicy-inject -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 su -> /sbin/magisk
lrwxrwxrwx 1 root root 12 Jul 20 16:51 supolicy -> /sbin/magisk
lrwxrwxrwx 1 root shell 7 Jul 20 16:51 ueventd -> ../init
lrwxrwxrwx 1 root shell 7 Jul 20 16:51 watchdogd -> ../init
[Magisk] cruse2382:
how do i copy the output from terminal in twrp
[Magisk] bggold:
Here you go Pixel XL running stock rom 7.1.2 July(NHG47O) , elementalx 1.14, 13.3-b2 & 5.1.1 apk.

Thanks for the support forum and the hard work you put into this.
[Magisk] polo735:
Thought I'd chime in here. I am running latest stock ROM, ElementalX kernel with v12 magisk. Latest magisk apk.

I flashed magisk uninstaller then twrp and rebooted system.

I then flashed v13.3 B2 then twrp and rebooted.

SN passes.

I have yet to reboot because I want it to keep working ?

Thanks for your hard work OP!

Edit: SN fails after reboot.