yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] collegencmc:
Yeah, I figured out I was just being dumb on this matter. I finally got it to work. Thanks again for all the help on this matter all!!!

PS: I got wireless tethering to work on VZW using the steps outlined in post: https://xdaforums.com/pixel-2-xl/de...pixel-2-xl-t3701176/post74529874#post74529874
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ludeboy:
I have the same problem. I can't seem to install any modules. Tried uninstalling and reinstalling Magisk Manager but no luck. Anyone else able to install modules? I'm trying to install that iYTBP youtube one.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
I keep getting an error when trying to download magisk manager... says "download unsuccessful"

have even tried emailing myself the APK, wont let me install. Am i missing some basic setting?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Put it on Drive. What is the problem here? Are you sure you know enough to root your phone?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
apparently was a brief problem with the server... downloaded now. However its taking a long time to reboot... Im on the screen with the Google logo and status bar underneath it that keeps going from left to right. Its been over 15 minutes. Any idea what is wrong? Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Probably a borked system.

What kernel? What update? What modules?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
My 2 XL started acting crazy today. Camera didn't work, phone rebooted every few minutes, couldn't answer calls and system apps were all of a sudden crashing.

Back on stock Nov image for now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Did you have Substratum on?

I have noticed a select few problems when using sub once and a while

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
No, stock everything. Rooted with Magisk + AdAway. No busy box.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
I'd suggest re-patching

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Install and update busybox... I'm rooted, with adaway and using busybox (Stericson), no issues at all.

And I'm running Flash Taimen kernel too.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
For those of you using viper4android, which of the audiomods from the magisk module list are you using?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] kush621:
Yeah i'm trying to install the same one.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Use the one that has the version number 2.2

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
Yeah, I'll do that again. I was suspicious of that patched boot image file.

Does the Flash kernel have color controls? Was waiting for Franco Kernel, but can't expect that soon.

Thanks for the tips, guys. I'll try them all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
I'd expect ElementalX before Franco

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
Thanks.

Tried that one, can't get it working though... I disabled the audio fx app, and have turned v4a on in the app... Anything else I'm missing?

Or any additional app/mod?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Selinux to permissive

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverendingxsin:
Quoting you because you seem knowledgable :)

But question, I've never used Magisk before and last used a 6P with TWRP and SU, but with the Pixel 2XL and Magisk, how would one update to the next factory image/ota? I'm used to using flashfire to update and that does it all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Yes, you can control the color graphics in Flash Taimen using Elemental X Kernel Manager, among other things in most cust kernels (worth the $).

Nathan (Flash Taimen dev) is a GREAT guy and amazingly smart when it comes to building kernels. He'll be a legend in a few years, not even kidding!

Thanks for the kind words. I read a lot of the threads, I follow smart people, and I spend a lot of my time in trail and error rages :p

I've never used FlashFire. I reco using and getting comfy with fastboot.

It can save your butt (and your device) in tough spots, AND it deepens your appreciation and connection to the rooting, and customizing experience.

And honestly, it isn't as difficult as many think, which is usually what keeps them away from using fastboot)

Download install Magisk manager from OP

Extract the BOOT.IMG from the image zip WITHIN the official factory image zip

Place it in your sdcard (I made a boot img folder to find it easier)

open Magisk manager

hit INSTALL

then INSTALL again,

then choose PATCH BOOT IMG

(Magisk does its thing automatically)

Move the new PATCHED_BOOT.IMG file about 25MB (found in the sdcard > MagiskManager folder) to your PC (inside your fastboot folder)

fastboot the PATCHED_BOOT.IMG file to your device

reboot
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
Which factory image? Does it matter which one we use? I used the Nov one
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
I'm having trouble installing BusyBox. Tried both /xbin & /bin using Free & Pro versions of the app.

Did I miss anything?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I used the Nov factory image as well.

How you liking the new color options :D

I just d/l it from Play and installed it like any other app....
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
Haha they are awesome! Thank you again so much for all your help!

I don't mean to double post, I mentioned this in another thread as well, although it seems that every otjer time I reboot the phone gets hung up on the Google intro screen.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
My boot up is super fast, maybe you should redo the entire process, now that you're a bit more familiar with it, especially if you haven't set everything up yet.

Starting fresh can be faster than chasing an unknown issue for days!!!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] malybru:
Yes, it does matter.

It should be the boot.img of the factory image currently installed on your phone.

:)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
So... Did I screw up flashing the Nov factory image when my device was still on the Sept update?

Nothing has blown up....yet...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] malybru:
You simply updated September factory image to November factory image.

That is fine if you then use November boot.img when patching with Magisk.

What you cannot use at that point is the boot.img from the September factory image.

:)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
So if I'm wanting to update from the September security update to the Nov one without losing root or having a data wipe on update is it possible? Sorry for the odd wording I'm just new to magisk I was always a chainfire rooter before this
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
This is getting convoluted. Use the Nov boot.img for the November update. User the September boot.img for the September update.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverendingxsin:
Thank you so much, that does make it seem a lot easier haha

One more question, if you're rooted with magisk and you want to update the latest google build, how do you do that and keep root?

Thanks in advance :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Okay...Der... I get it, I was ON the Nov factory image when I used the Nov boot.img.....okay... All the little hamsters are lined up and working now.

So being on the Sept update, and using a "patched_boot.img" form a NOV factory image would be BAD... Right? See, I got it now....:D

Thanks for clarifying my lapse of common sense :p

I believe since you're using Magisk to patch the new boot.img, you'll just get fresh root again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips

Edit: Correction

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Here's what I do when I update.

1.) fastboot flash the stock boot.img for your build.

2.) Download the factory image and the ota image for the version you are updating to.

3.) Extract the boot.img from the factory image package and patch via magisk. Then copy the patched boot.img to your PC.

4.) Boot into recovery and adb sideload the ota image. (This will update your device and not wipe any data)

5.) After updated, fasboot flash the patched boot.img and enjoy being updated and rooted again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
will this preserve the app settings that already have root like viperfx. as i have a very specific setup on there and it takes alot of time to redo
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Sorry if this sounds like a dumb question, I'm still trying to wrap my head around all this, and I haven't dealt with OTA's since the HTC Thunderbolt days :D

What is the difference between using the Nov factory image and the Nov OTA?

Why would I use one over the other?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Factory images are to wipe your system fresh, you don't have to do -w that will wipe everything but, if you want to stay in/get back on the OTA path (smaller downloads) and you've altered something in system or vendor, you'd do an image.

OTA is for an unmodified system/vendor and you can keep root with it following the instructions I just posted.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
just tried this and it didnt work for me it never made it to step 2 it just failed. does a custom kernel affect this?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Most likely.

You'd just need to have Magisk build another patched-boot.img for you.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
oh wow thats so much easier so just to make sure im understanding everything i need to download the new update using the website on the first page pull out the boot image patch it and then fast boot or can magisk do that as well
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
I can't confirm 100% but as far as I know it should. Doesn't viper have an option to back up your settings just to be safe?

The thing about using the ota image is that it's not like flashing a factory image. It's just like taking an ota update. It shouldn't affect your apps or app data.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Since I updated using the Nov factory image, does that modify my system so I can't just do the OTA path now?

Maybe the better way to ask is, if I want to start only updating using the OTA image, how do I get to a point where I can do that since I used the Nov factory image last time?

I appreciate your patience explaining this to me... Sometimes it just take a few times for it to register.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
If you aren't using a custom kernel, you can use the instructions I just posted on topjohnwu's GitHub

If you want to have it on your phone or desktop for emergency (which I would suggest) always have a copy on your phone in case you need to rebuild it. You can either extract it on your desktop and move it or, you can download and extract it on the device

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
You can still use an ota image after previously using a factory image. If you updated this time by flashing the full factory images that's fine. You will still be able to sideload the ota image next time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
As long as you don't screw with system and vendor, don't mount anything, you should be good to keep in the OTA path.

You'll need to rebuild root manually in the magisk manager install, if you go to another kernel

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
I am using a custom kernel it's the snoke kernel. Does that change things substantially?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Not really. You just have to rebuild root monthly and flash it in the PC

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Thank you both for the help!

I imagine all this will be moot once TWRP becomes stable, right?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
It won't really change anything as far as I know. You'll still want to update using the same methods. You won't be able to take an ota update with TWRP installed as TWRP resides in the boot partition. You will still need to return to the stock boot.img before updating and then add TWRP and root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
Ok so I rebuild the root with magisk on my phone using the boot img only. push it to my PC and side load it after side loading the factory img and my custom kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Thanks for this by the way. I will try taking the official ota next time. I just assumed it wasn't possible as taking ota when rooted has always been a no-no and seemed counterintuitive. So I always just sideload the ota after flashing the stock boot.img. After thinking about it though, it makes sense that I should be able to just take the official ota instead of sideloading it. Neither method really seems much simpler to me than the other but I'll try it just out of curiosity anyway.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Take the OTA, while doing that download the newest version of your kernel. Then, after the reboot, use the kernel instead of boot.img to patch the kernel and then fastboot flash boot the patched-boot that Magisk built.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
What is the easiest way to do that?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
There is a tool on XDA called SeLinux mode changer. Or, if you are using Tasker, have an on-boot action that has a shell script setenforce 0 using root.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I meant more along the lines that once TWRP is stable, we should eventually be seeing cust roms built with the latest and greatest factory images.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bggold:
It would be interesting to know if people are having the reboot and fc issues are running custom kernel or stock. I have been having these issues and run stock kernel 2 xl with Substratum, but a coworker with a 2, stock kernel and no apps that require root except for Magisk has the reboot issues.

I know I have asked this before but is there any debug logging that is occurring that we can try to get the time it starts to fc apps or after the reboot?

Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
ok im getting confused im thinking it will just be easier to reflash the stock kernel push the ota through magisk and reinstall the kernel after. would that work? or is that create its own problem? sorry if it seems like im being difficult ive always been on phones that have had twrp and custom roms so i didnt have to think about this kind of stuff that much just flash and done.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Ah, yeah. Custom ROMs will be a whole other beast! I prefer keeping stock these days but rooting for AdAway and Titanium. But surely you will be able to flash updates of custom ROMs a lot easier than this.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
That would be the ideal solution

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
where might i go to grab the original kernel from ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
I have not done it but according to the instructions, you can restore the stock boot.img via magisk.

Alternatively, you can always download the factory image from and extract the boot.img from there.

I would think you already have a copy of the stock boot.img on your device and/or PC. Didn't you download the factory image and extract the boot.img to patch originally?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
i didnt realize the kernel was included in the boot image. so another question if i were to patch a fresh bootimage and install it over the current one would that then revert it to stock kernel with root privileges?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Kernel is the boot.img, it doesn't "contain it" it is one thing and one thing only.

No, you would have to root the img with magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mitchdickson:
It's discouraging to see people have so much trouble with the simple instructions in the OP.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
I don't think people read.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] razgriz1234:
oh ok that makes alot more sense now thanks:)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverendingxsin:
Everybody starts somewhere :) We were all noobies at some point in our rooting lives haha
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Not totally true since the recovery is now bundled in the boot.img, but yeah
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Yes. Just make sure you are patching the boot.img for the version you will be using.

If you upgrade to the November patch, make sure you patch the November boot.img and flash that after updating.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] platypus04:
Is anyone able to write to /vendor?

Looks like I can mount system re-writable (mount -o remount,rw /system) and create a file (touch foo) but after mounting vendor writable, touch fails to write to that partition
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Below are the instructions from the OP: (click to show content)

Where does it say the file is to be flashed via FASTBOOT?

Yes, it is assumed that people rooting their devices KNOW this, and most do, but SOME do not.

Where does it say to move the "patched_Boot.img" file to your PC for flashing via FASTBOOT?

Again, most do know this, some do not.

This is in no way to throw shade at anyone. Think of it as a perspective reminder :D

It is possible that even when you read the instructions 20 times, SOMETIMES, there are SOME users who will not understand them; so they ask questions.

Instructions

Since TWRP cannot decrypt /data yet, the proper way to install Magisk is via Magisk Manager. You will need a stock boot image from official factory images.

Download MagiskManager-v5.4.1.apk from attachments and install it to your device.

This Magisk Manager is specifically built for this release ONLY, both stable and beta channels points to the same custom URL.

Once you've got Magisk Manager installed, I'll just copy and paste the instructions from the Magisk OP here:

Quote:

This method does not need root, and also does not require a custom recovery.

Press Install > Install > Patch Boot Image File, and select your stock boot image file

Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img

Flash the patched boot image to your device and reboot. Voilà!

Xda IS about development, absolutely. But think about it as also developing new users, and helping others learn so they can become self sufficient.

The energy spent to make disparaging comments could just as easily be spent helping someone understand the process.

Yes it sucks to repeat yourself, yes it sucks that everyone here isn't self sufficient, but we all start somewhere, and we ALL have different levels of understanding within the root, development process.

Let's be the good part of Xda, the helpful part of Xda, and let's mentor a bunch of new users, turning them into knowledgeable Xda users.

There are 8+ MIllion users on Xda, and some are rude, mean, and grumpy; let's be better than that, and be helpful, and constructive.

Much respect to each of you!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bryantjopplin:
Newest magisk that fixes avb-verity thats flashable

https://www.mediafire.com/file/5poo50s3zt89995/Magisk-v14.4.2.zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abogrhen:
works on 2 XL 8.1.0

custom kernel is next

ex for pixel 2 anyone

the only app that i use it for is adaway (i used blokada for the past few days and it works fine :good:)

the less and less we need root nowadays :p:p:p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] txyaloo:
build.prop edit isn't working for me. Looks like Google is doing something different on the Pixel 2 or in Oreo to check tether provisioning
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] lucky_strike33:
I just flashed super su pro through the play store and was able to use root explorer. Then set up my tether through the build.prop.

When trying to use root exporer, super su may not allow it. Just go to Magisk app and hit menu, then super su and you will see root explorer. Just tick it to allow it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt1313:
Ok I'll try later. Would like to get my arise back and see how it sounds on this phone
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abogrhen:
try

tethering enabler from downloads tab in magisk or like what lucky_strike33 said
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
Just in time for Pixel 2 XL to arrive. Gonna be a good week.

Maybe the deluge of development can start now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] RiffyDivine:
I never installed magisk before but I am guessing at it. You just extract the img from the 8.0/1 and let magisk edit it and then flash the output file? Or do you need to do more?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] XDA451:
How do I avoid encryption? Whenever I boot to TWRP it shows that /sdcard/ as junk looking files, i assume their encrypted, because the phone is in the settings. So, how can I do this? Thanks guys
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Thanks for the tips. I flashed the magisk_patched boot img and magisk was operating just fine. Rebooted to twrp and ADB sideloaded Snoker9se.zip. Upon reboot boot img was no longer patched and magisk didnt work. Is there anyway to do this with Snoker9 which is an anykernel zip or do i have to go back to r7 which is an image?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] henderjr:
I relocked my Bootloader (and lock_critical) in order to pass safetynet back when 8.1 came out. So I need to

fastboot flashing unlock

and

fastboot flashing unlock_critical

which will wipe my device before I can follow the instructions in the OP to get Magisk up and running correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] lucky_strike33:
looks like you will have to do magisk again since the new kernel took over the boot.img??

---------- Post added at 02:03 PM ---------- Previous post was at 02:02 PM ----------

both will wipe your device...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Thanks. do magisk again how..... snoker9se is a zip and i cant get a boot img from it in order to patch it with magisk? Is there another way?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ScottIsMyName:
Thank you [MENTION=4470081]topjohnwu[/MENTION]

Transaction ID

09715084S94383324