yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] DJarkIV:
I misread your post before. So you are saying that most modules will work with SE on except V4A?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
From topjohnwu

As all future Android device will be Treble enabled and should follow the same rules as Pixel 2 (XL), it's important to understand how it works to deal with it.

Just dug into the dtbo part, and managed to remove AVB 2.0 verity (the new dm-verity) of the vendor partition [emoji111]️

---------- Post added at 08:05 AM ---------- Previous post was at 08:03 AM ----------

Yes viper is the only thing so far that I had to change to permissive to work
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] cb474:
If I rooted already with Magisk, do I need to first reflash the stock boot.img, as stated in the OP? It only mentions doing this if rooted with SuperSU.

*

Did you flash Magisk while tempoarily booted into TWRP from fastboot? Or after flashing TWRP did you reboot into TWRP from the phone istelf and then flash Magisk?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
I would reflash stock first. It may/may not be necessary for Magisk users, it's just habit for me to start "Clean". I flashed Magisk while temp booted, right after flashing TWRP zip.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Followed this order exactly, although having trouble making twrp zip stick. I got V4a installed by using the twrp image (and forgetting the zip), set selinux to permissive, verified root is active. Esira and more works, but V4A won't install driver. "Installation failed because of an I/O error. Try rebooting your device and try again." Rebooted and tried again to no avail. Any ideas how to get that V4A driver to install?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Yeah that magisk doesn't have the avb-verity changes in it. Use the 14.4.2
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Ok I'll try that now. Thank you!!!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
You have the link?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
I can be a bit more descriptive now that I'm typing from a computer lol.

Viper4Android works just fine with 14.4 using Snoke's Kernel (Permissive version). There is no reason to use Snoke's Enforcing kernel then manually setting it to Permissive, you might as well of just flashed the Permissive kernel in the first place.

Flash Snoke's R11 (non SE) IMG via ADB. I then booted the Beta TWRP, then immediately flashed TWRP ZIP and Magisk 14.4 zip. I then rebooted the phone, and flashed the Magisk w/ Framework (The one by Ahrion) via the Magisk App.

Rebooted the phone, checked VV4A Driver status, reporting normal, works great.

I did see Snoke uploaded a V4A related ZIP on his download page, however, I have yet to test it. It may allow V4A to install successfully using Enforcing kernel but that is just a guess at this point.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] iluvamk:
Has anyone successfully decrytped with Twrp beta? If you have can you post steps please.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Yes I scrolled up and found it after googling for it unsuccessfully lol. I missed the importance of that post when glancing through the thread.

That did the trick, thank you very much!!

---------- Post added at 09:42 PM ---------- Previous post was at 09:36 PM ----------

Oh, I was so excited to get V4A running that I just went with it. Got it working now, probably won't bother changing it again unless it seems worthwhile. That Snoke V4A related ZIP looks interesting though. But you got it working with Magisk 14.4? I thought that's what my problem was, it started working after flashing 14.4.2.

Thank you!!!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
He tried getting the slots to functions correctly for seinject but it didn't work as of yet.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Yes I got it working with 14.4 but only with Snoke's permissive kernel. I couldn't get it to work with SE or Stock Kernel, unless I forced Permissive afterwards. Which kernel did you use with 14.4.2?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
I used that Snoke-R11-P2, for no reason other than seeing that it worked for you. Set permissive when trying to figure out why it wasn't working (v4a driver wouldn't install), only started working when I flashed 14.4.2
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
Can someone help me?

I have my phone rooted with Magisk 14.4/Manager 5.4.2. If I follow the instructions, everything seems to go as planned (fastboot commands all progress, status states OK). After I reboot, I only get to TWRP (I didn't flash, just boot). If I change slots, it won't boot.

I have flashed back my patched_boot.img, and I'm working again with no damage. Booting into recovery just says no command.

I must have to do something else to get from point a to point b, but I'm not sure what that is.

My guess would be

1) Reflash stock boot.img

2) Temporarily boot to TWRP beta2 (But this seemed to have flashed twrp, not temporarily booted for me)

3) Flash the TWRP beta2 zip

4) Flash some magisk zip (?This is where I start to guess)

5) Reboot

Can someone tell me what may be wrong with my plan? I don't want to have to start from scratch, but I would like to have TWRP in recovery as a fallback if for no other reason than to flash the substratum rescue.zip.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Yes, flash bryantjopplin's Magisk 14.4.2 ZIP posted in this thread. I was having the same problem but that seemed to resolve it
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
This didn't seem to help.

I flashed back to stock and tried again.

Now, I can't boot at all.

Just what I was trying to avoid...

Now, I can't even get TWRP to temp boot.

Any help?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Sorry. flash-all should do the trick
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Try flash-all without the W in the bat... otherwise it will wipe your phone. BTW...there is no beta 2 yet for the standard Pixel 2. Please make sure you are using beta 1 walleye.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
Can someone help me? How do I switch the active slot?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
"fastboot --set-active=b"
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
OK. I think I understand what is causing my problem...

I am currently booting from SLOT B. I have a sneaking suspicion that all of these procedures are written assuming you are currently on SLOT A.

I have my phone back with root per last week's instructions. I have no recovery.

Is there some extra step to take with all of this if I am currently active on SLOT B?

Learning under fire is always the most productive!

---------- Post added at 10:24 PM ---------- Previous post was at 10:22 PM ----------

I found this about 10 seconds before your reply!

Thanks!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Lol np! Yeah l've been stumbling through this since yesterday. I guess slot B is the one you want active, I got stuck in bootloader after switching to slot A while in twrp. I wound up flashing Snoke img, then twrp img, then in twrp flashing that magisk zip (after magisk apk already installed. If not doing the magisk zip then I have to reflash patched_boot.img in bootloader.) Booting up, verifying root & selinux permissive & customized prop for v4a. Back to twrp to flash v4a. V4A, after all, is the prize I've been chasing!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
It's actually detecting the active slot is it not? When you flash does it not tell you in the dialogue box what slot is active?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
Maybe that's it? I checked my history in the DOS box. When I first did the twrp fastboot, it indicated "booting". I then get twrp, and it asks for my PIN. I flash the TWRP ZIP and all goes well. I then restart system from TWRP and end up back in TWRP? AT some point, SLOT A was set to active. Not sure if I did this or not. I notice that my first failed try showed me reflashing the patched_boot.img to B. My subsequent attempt to run through the OP instructions, saw my recovery efforts to reflash the patched boot img to A. I set B active, reflashed the patched_boot.img, and now I'm back where I started.

There must be something else I need to do here, I just can't figure out what that might be?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Try this, flash stock boot to both slots and set a back to active and start over
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
Trying this now...

---------- Post added at 11:08 PM ---------- Previous post was at 10:56 PM ----------

Making some progress...

I cannot boot from A at all. If I set A active (After flashing boot.img to both slots, TWRP won't start. If I set B active, it get into TWRP, decrypt, flash both TWRP ZIP and Magisk zip and restart.

NOW...

I boot up on slot B, but I do not have root. Magisk Manager is asking me if I want to install the zip.

I already installed the zip on the first go-around, and it patched successfully. I'm wondering if the flash of the Magisk zip is not detecting the correct slot for patching? It installs correctly, but doesn't make any mention of which slot it is patching, whereas your zip patches both slots.

I do now have TWRP installed, just can't get Magisk to install. It has to be patching the wrong boot. Can I pull the boot from A and push to B? I belkieve if I simply flash the patched_boot, I will loose the TWRP recovery.

No?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
No magisk will say that. Post a screenshot in the magisk app
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
If Magisk Manager says rooted (Green check marks), and you are using the 14.4 Magisk Manager Apk found in the Pixel 2 XL post, and you flashed a more recently compiled Magisk (14.4.2 for instance), it will prompt you to install it again. That's because the Magisk Manager Apk doesn't recognize the newer Magisk, and thinks you are using an older version.

If you have red Xs when you open Magisk Manager, try starting clean by reflashing the stock image for your device. I would do this anyway...even if you were successfully rooted on B, as you should be able to boot A regardless.

Download the factory image:

https://developers.google.com/android/images

Extract the Factory Image (ex: walleye-opd1.170816.025-factory-4752baae.zip),

Drag the folder out of the zip, and open the folder.

Right click the "Flash-all.bat", edit the bat file and REMOVE "-w" from it.

Copy the contents of the folder to the ADB folder, or copy the ADB folder contents to the image folder.

Execute the Flash-all.bat. This will re-flash factory image back to your device without wiping it.

Then try again from the beginning.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
This is what I get...

Is this what you meant?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
None of the instructions in the flash_all.bat indicate what slot they are flashing to. Will this batch file actually flash both slots?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Yes it will flash both slots, also please make sure you are using TWRP beta 1 for walleye if you are using Pixel 2. I noticed a few posts back you mentioned beta 2 which is for the Pixel 2 XL only.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
I have a 2 XL, so Beta2 is for me.

I have to give up for today, but I will follow your instructions tomorrow. Thanks for your help.

I wonder if some of these Pixels didn't leave the factory only half-flashed (Like mine). Wrong slat active, and a regular user would think there is no operating system loaded...
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Golf c:
It does not flash both slots. It only flashes the current active slot, with one exception. When you run the flash all bat, the black cmd prompt, is showing you exactly what is being flashed to which slot. The exception is the non bootable system_other.img, gets flashed to the inactive slot. It won't boot from the inactive slot with the system_other.img. That is there to receive the next OTA and then becomes the active slot.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Ok I just wanted to make sure you were running the proper TWRP since this is the Pixel 2 post and not the XL.

Also, for Pixel 2 XL make sure you executed the following command when you initially unlocked your bootloader:

" fastboot flashing unlock_critical "
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
When system_other.img flashes to the other slot, doesn't it effectively "reset" that slot? Or am I misunderstanding?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Golf c:
No, just the system partition. Every other partition is left untouched. Radio, modem, vendor, boot, dtbo etc.. Is left as it was.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Gotcha, thanks for the clarification!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Nope that's not right lol. Thought you meant something else.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
Just so everyone out there knows, you can copy the full contents of your adb folder to your booting/system drive on your PC in the folder named 'adb' and you will have access to adb system wide. So no more of that copying files back and forth!

---------- Post added at 08:44 AM ---------- Previous post was at 08:43 AM ----------

According to this image you are not rooted. Just boot back into trwp and simply sideload magisk again. Maybe need a different version.

---------- Post added at 08:55 AM ---------- Previous post was at 08:44 AM ----------

With this new TWRP version, it asks me to decrypt my data as I boot into it but I don't know the password. I can just cancel it and carry on but what do I do to get it to stop? FYI I just did the flash-all without the -w. This is keeping me from accessing my storage within twrp still and would like to be able to. Any ideas would be appreciated.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] cb474:
Do you mean you flashed you flashed Magisk/SuperSU while temp booted? You seem to be saying you flashed TWRP twice.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] rekids:
Any one else have an issue with the TWRP Beta1 for Walleye NOT have touch screen after installing? Followed instructions to the letter, and all went well except no touch when rebooting into recovery. Ended up re-flashing to stock, since some how lost access to developer options, something about "not available for this user" nag.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
You must have users setup? Maybe a guest? Twrp will not work with guest accounts.

---------- Post added at 09:05 AM ---------- Previous post was at 09:03 AM ----------

Do you have a guest or user account? So you don't have a pin/pattern in Android at all? It only shows encrypted it you do have a password. Probably need to see if booting twrp does the same thing. And if you flash_all didn't you lose your twrp?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Yes, I meant magisk/SuperSU.

Flash desired kernel IMG > Temp boot TWRP IMG > Flash TWRP ZIP > Flash Magisk/SuperSU

---------- Post added at 04:54 PM ---------- Previous post was at 04:37 PM ----------

I have my ADB folder in the root of my C drive but running flash-all.bat couldn't find fastboot. So that's why I did it the way I did.

I just found this post which shows adding the folder via environment variable, so I will have to try this to see it resolves my issue next time:

https://xdaforums.com/android/software/guide-how-to-set-fastboot-adb-to-wide-t3591240
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
You can use this tool I created to install adb system wide and it does some pretty cool other stuff.

https://www.mediafire.com/download/33xuvvmigf9fx2l

You can also use this one to flash any img from the factory image with no wipe option. Makes previews and OTAs pretty easy.

https://www.mediafire.com/download/jvtfiba80xk63dc
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kinfam:
Thanks for the info, this is my first Pixel device, I previously owned OnePlus phones so it's been a little bit of an adjustment lol. ADB usage has been much more prominent this go around so I appreciate the tools!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] KKenna:
In the end, what resolved my issues were two things:

1) First, I had to flash back to the factory boot.img.

2) I had to flash the Magisk 14.4.2 ZIP. This one states it is flashing to the active slot (B for me).

I'm all set now. Rooted with Magisk and TWRP Beta2 for recovery. Thanks to all who helped.

Now donating to the devs...
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] SilvrDrgn:
Magisk Manager 5.4.2? Link for that?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
What magisk were you using first?

---------- Post added at 12:00 PM ---------- Previous post was at 12:00 PM ----------

Yeah same here lol
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
I only have one use on it. I use a fingerprint with a4 digit code for my lock screen. And flash all did erase TWRP fully.

---------- Post added at 07:04 PM ---------- Previous post was at 07:01 PM ----------

I did this as well but I used magisk 14.3 and then flash TWRP and it only boots to the recovery when I reboot to anything other than bootloader.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
It will. You flashed the stock boot img and that's where twrp resides

---------- Post added at 12:06 PM ---------- Previous post was at 12:05 PM ----------

That magisk doesn't work with our phones
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
Why do you say that??? I've had root since I got my phone basically with this version.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Crap on phone and didn't realize I was on p2 thread and not the XL. Yes this will work for you on the p2 haha my mistake. Carry on
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
Lol no problem?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
But you need the newest magisk for viper to work lol
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] neuron617:
Forgive me if the answer is already here somewhere and I'm just lame,

but,

after I fastboot boot twrp.img, I get no PIN requests (I have 4digit and fingerprint), and TWRP hangs on logo screen w/o touch menu appearing. I can boot the alpha, but can't read the file names to flash the zip from there, nor does sideload work any more.

I am rooted with Magisk 14.4.

I have flashed stock boot.img

I have flashed Snoke kernel

I have unrooted

I have uninstalled Magisk

No joy, and my 617 neurons are now down to 2, and one of them is starting to smoke.

Any help appreciated.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Flash factory but take the -w out and try again
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] neuron617:
Thanks for above. Will try out shortly and report.

---------- Post added at 08:51 PM ---------- Previous post was at 08:25 PM ----------

Ok, that did it. Many thanks.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] DJarkIV:
I currently have Magisk 14.4 w/ 5.4.1 manager. I want to use 14.4.2 but I don't know where people are getting the 5.4.2 manager. If I'm not mistaken, 5.4.1 was modified to just point to the 14.4 version. I don't want to actually install TWRP at this point but have no problem temp booting into it. I skimmed through this thread but only found the link for the 14.4.2.zip but no manager. Any help is appreciated in advance.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
I don't know where that 5.4.2 is coming from as well. The 14.4 is not flashable for the XL. But is fine for the p2. I uploaded the whole magisk out folder from when I compiled it. It has an apk but not sure how well it works lol
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
Is TWRP beta able to decrypt the entire phone or only data within recovery?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] DJarkIV:
Ok, I'm using a P2. I was going to update to your 14.4.2 b/c I'm using a SELinux enforced kernel. I haven't come across any module incompatibilities as of yet, but I've read others have. I guess I would have to uninstall my current Magisk Manager then flash yours while temp booted from TWRP. Or I could just adb sideload it from TWRP as well like we are doing originally.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
You can flash right over the top. Just disable updates in app.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] multi_rom_user:
Is anyone able to flash magisk modules via twrp on your device yet?

UPDATE: Flashing mods does work now, at least within the app. If anyone has a chance, will you see if the 'injected YouTube Background Playback Vanced' mod works for you? Themed or original, doesn't matter as neither of them work for me. Just wanna know if I'm doing something wrong before I go to support for it. I'm thinking our device is incompatible with it because it works on my OP3 with no issues.

Thanks in advanced!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Telperion:
Do we have the ability to flash boot images yet? I'm not on the beta. Looking for an easier way to update kernels without having to access a computer every time.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] iluvamk:
Yes u can flash kernels on beta. Just do so @ your own risk
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Telperion:
That's not my question though, it's whether I can successfully and reliably flash a boot image. The kernel part is tertiary. Plus kernels come in multiple formats so your answer unfortunately doesn't help me.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] iluvamk:
Then to answer your more specific question. Yes you can flash boot images.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] fysix:
Every time I follow the installation instructions I end up with a phone that boots into recovery every time and I can't get back into the system.

Once the zip installs and I reboot to "system", it just goes back into TWRP (until I restore the boot partition from backup). If I fastboot TWRP and don't flash the zip, it works flawlessly, but then I have to keep a PC around if I need to boot into TWRP.

Has anyone seen this behavior before? I must be doing something fundamentally wrong.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
Are you fastboot flashing it fastboot booting?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] fysix:
fastboot boot twrp-3.1.1-beta1-walleye.img

Then once in TWRP, either installing the zip from local storage or sideloading with adb sideload twrp-pixel2-installer-walleye-3.1.1-beta1.zip

Once installing or sideloading the zip, I'm basically stuck with a full time TWRP machine until I restore the boot partition to pre-TWRP-installer state (either from fastboot or from TWRP - either one has worked fine)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Yes, that twrp zip messes with the boot img. After u flash twrp zip, flash magisk zip or go back to bootloader and reflash boot img.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] fysix:
Nice. That did it. I just needed to flash the Magisk zip immediately after the TWRP zip to get it to boot back into system correctly.

Everything looks good now. Thanks.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] trhacker01:
Sweeeet, anytime!