yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Guides, News, & Discussion] Fenny:
Glad to help. Hopefully, we get an update from chainfire soonish.
[Google Pixel XL Guides, News, & Discussion] Amaze209:
Anyone been able to patch the new V image files? I tried for two days but way beyond my ability.
[Google Pixel XL Guides, News, & Discussion] cmo220:
I'm struggling getting it to work too. I'm on Pure Nexus on the Pixel XL. I got it all installed, properly I think, I can pass the safety net check validation but I get the CTS mismatch error. I can't run apps that check for safety net. Hopefully when an update comes out that will fix this, for a bit.
[Google Pixel XL Guides, News, & Discussion] psychatog64:
Delete
[Google Pixel XL Guides, News, & Discussion] laxattack:
I personally did full unroot in the SuperSU app then applied SuperSU 2.79 stable, and that is how it got it to work.

**edit** Also make sure that you are using RootSwitch to disable root when using anything SafteyNet related. If you try to use one of those apps before you turn off root you need to force stop the app and turn off root then try again!
[Google Pixel XL Guides, News, & Discussion] Fenny:
Don't forget to use a kernel that hides the bootloader flags from /proc/cmdline
[Google Pixel XL Guides, News, & Discussion] cmo220:
I used root switch before trying and that didn't help. I haven't uninstalled root since installing all the other parts then installed again. I'm pretty sure Pure Nexus kernel hides the bootloader being unlocked since there's no problems on the slot that isn't rooted. I'll try uninstalling and reinstalling root when I get a chance.
[Google Pixel XL Guides, News, & Discussion] laxattack:
Are you deleting the fstab.marlin file in twrp before flashing stable 2.79?
[Google Pixel XL Guides, News, & Discussion] cmo220:
Wow. I completely forgot about that part. I never rooted this phone before SR2 was out so I never had to do that step. After redoing everything it still didn't work though. Next I'll try with a wipe and clean flash and see if that does it.
[Google Pixel XL Guides, News, & Discussion] JU57US:
So for NMF26U or NMF26V (Jan 7.1.1) are we supposed to use the files from NDE63V (Nov 7.1) or NMF26O/NMF26Q (Dec 7.1.1)? Or neither?
[Google Pixel XL Guides, News, & Discussion] Rydah:
Neither, someone needs to update the files and post them.

Sent from my Pixel XL
[Google Pixel XL Guides, News, & Discussion] JU57US:
Ok so then apparently this:

was incorrect then. Thanks for the clarification!
[Google Pixel XL Guides, News, & Discussion] Rydah:
Maybe I'm willing wrong but pretty sure I'm right. Lol

Sent from my Pixel XL
[Google Pixel XL Guides, News, & Discussion] psychatog64:
Nope your right guy told me we could do it bit didn't telle there was updated file for pure nexus so sorry for that figured it was just one the files in the op since that's all he said is it works and we could do it
[Google Pixel XL Guides, News, & Discussion] laxattack:
https://xdaforums.com/showpost.php?p=70473796&postcount=195 files for PureNexus are located here. They are patched and based off of the current V (7.1.1_r13) release.....but they are for PureNexus, so no one can guarantee they work for stock unless they test it themselves.
[Google Pixel XL Guides, News, & Discussion] sakuhei:
@Fenny, I have extracted the 2 runtime files from NMF26V. Would you please help me patch it for testing? (I am not an IT guy and tried using HxD and IDA but totally no idea how can I patch the file following your steps in OP:eek:) thanks!
[Google Pixel XL Guides, News, & Discussion] docluv01:
I had seen this post originally, but it seemed they didn't work for you. I'm assuming your issue was the SuperSU version?
[Google Pixel XL Guides, News, & Discussion] laxattack:
Correct!
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
I'm not at a level to really to follow much of this. But I did poke around in system and found libandroid_runtime.so in /system/lib and /system/lib64. Are these the files that need to be modified? If so, how do I edit them? I copied them to my internal storage. I'm on NMF26U rooted with SuperSU 2.79 stable release.

Edit: I managed to edit the 32 bit file with a hex editor on my phone. But the lib64 file doesn't contain either 57 09 40 f9 or 87 e4 fc 97.
[Google Pixel XL Guides, News, & Discussion] pTeronaut:
The patched files Fenny posted for PureNexus work with Stock NMF26V rooted with Stable SuperSU 2.79

https://download.chainfire.eu/1016/SuperSU/UPDATE-SuperSU-v2.79-20161211114519.zip

Pokemon GO working, Safetynet passing, and Lastpass not *****ing about root.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
So these modified files work for Pure Nexus work for NMF26V. Will they also work for NMF26U?
[Google Pixel XL Guides, News, & Discussion] pTeronaut:
I wouldn't think so. 'O' & 'Q' required their own patched files, I would expect 'U' & 'V' to do so also.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
Thanks, I guess that makes sense, but it doesn't seem logical to me that Pure Nexus would be built for 'V' when that is only for one European carrier, while 'U' is for everyone else.
[Google Pixel XL Guides, News, & Discussion] pTeronaut:
He builds for V because it doesn't take anymore time to do so, and makes his build compatible with every carrier that our phones are capable of working on.

What is illogical, is the U build, as the V build does not break anything in the U build.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
Thanks again, I guess that makes sense too, but I'll probably wait for Google's next update rather than flashing 'V'.
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Has anyone successfully patched the lib64/libandroid_runtime file for NMF26U build? Mine doesn't seem to contain the proper hex sequences.
[Google Pixel XL Guides, News, & Discussion] sakuhei:
I tried the files on pure Nexus and works great with rootswitch. Android Pay is working as it should.

But on stock "V", Android Pay could detect root with the same process that I apply the file.

So I think stock V might need its own patch.:(
[Google Pixel XL Guides, News, & Discussion] pTeronaut:
I am on stock V. Android Pay hasn't detected root yet.
[Google Pixel XL Guides, News, & Discussion] Amaze209:
Android pay is probably detecting your unlocked bootloader
[Google Pixel XL Guides, News, & Discussion] DanRyb:
Have any of you fellas tried a purchase with Android Pay? I did the whole suhide and had SafetyNet pass, could add cards to Android Pay, but when I tried to make a purchase it didn't work.
[Google Pixel XL Guides, News, & Discussion] sakuhei:
I am using elemental x, it works on stock Q and Pure Nexus

So not related to bootloader

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

Yes, it works on stock Q and Pure Nexus, I use it like when i was unrooted
[Google Pixel XL Guides, News, & Discussion] docluv01:
Can you tell me which app pids you added to get safety net to pass?
[Google Pixel XL Guides, News, & Discussion] laxattack:
just use https://play.google.com/store/apps/details?id=com.loserskater.suhidegui

and add android pay, any safteynet apps, pogo, etc.

reboot after adding
[Google Pixel XL Guides, News, & Discussion] Amaze209:
Can confirm that the purenexus lib files work for stock V with no issues.
[Google Pixel XL Guides, News, & Discussion] psychatog64:
Has anyone tried the new purenexus files on pure nexus rom with the newest su release ?
[Google Pixel XL Guides, News, & Discussion] Amaze209:
Yes. It has been confirmed that you must be on the stable 2.79 su. Anything newer breaks suhide
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
http://cloud.tapatalk.com/s/587cb6bde885c/lib64.zip

[MENTION=522448]Fenny[/MENTION], this is my lib64 file from NMF26U build. Any way to patch? Doesn't have the same hex sequence as before. Maybe not needing to be patched? But I'm guessing that it's more complicated rather than less.
[Google Pixel XL Guides, News, & Discussion] 420SYN:
Installation Guide

Ok so here's a guide on how to get this working since it took me hours of filtering through the thread. I'm running on PureNexus 01/13/2017. I started from a clean factory image NMF26U.

I found it best to install PureNexus on both Slots so if you mess up you can still boot to the other slot. Note: In TWRP if your current slot in the reboot menu is A you will be flashing to Slot B and vice versa, but only when flashing a ROM it seems. And every time you change slots it's recommended to reboot to bootloader or recovery and confirm it switched.

-Pick the slot you want to root with SUhide and boot to it in TWRP

-Mount System

-Go to Advanced/File Manager, scroll down and delete fstab.marlin

-Go back to main menu, flash SuperSU 2.79 stable (not any of the other versions)

-Boot into OS and confirm you have root with rootchecker or something

-Reboot to recovery

-Mount System

-replace lib files corresponding to whatever Version you're on, I used the modded PureNexus ones found in the thread. Using the following commands: if you don't know how to do this you probably shouldn't attempt this

adb push lib64\libandroid_runtime.so /system/system/lib64/libandroid_runtime.so

adb push lib\libandroid_runtime.so /system/system/lib/libandroid_runtime.so

-go to Advanced/File Manager to chmod the files to 644

-reboot to os and make sure you still have root

-at this point if you know all the Root apps you will be using (especially rootswitch and Hide SU GUI) it's best to install them and give each of them root access, because once you flash HideSu, supersu no longer prompts for root access. (work around will be below but this will save time)

-rootswitch link is found in the thread and HideSU GUI is in the play store

-Now that you gave permission to root apps reboot to recovery

-Flash HideSU0.55 in TWRP

-Reboot to OS

-Now everything should be in order, use the HideSU GUI and check any app that you don't want seeing root (for me it's Pokemon Go)

-Go into rootswitch and disable root (I found it better to use the stop all su daemons too)

-Now run app that previously wouldn't work, like I said I'm using it for POGO can't speak to Android Pay cuz it doesn't work in Canada

-If you need to grant permission to another root app you either have to go into the SuperSU app and Grant permission to all (which is not safe at all) or you a root explorer and move 05suhide from /su/su.d and reboot. After I moved the file back suhide didn't work anymore I'm assuming the permission got messed up. Reflashing Suhide0.55 worked for me.
[Google Pixel XL Guides, News, & Discussion] psychatog64:
What twrp version are you using just curious cause I tried this last night basically exact steps and could not get su to flash and stick with twrp rc1 but I know rc1 is needed for pure nexus but 2.79 su would not show up also can I start on a clean v image or is the u image required
[Google Pixel XL Guides, News, & Discussion] Drashnar:
RC1 works, you need to delete the fstab.marlin file before flashing SuperSU to get it to stick. You have to use SuperSU 2.79 but no higher in order for this suhide patch to work.
[Google Pixel XL Guides, News, & Discussion] 420SYN:
Super su shows up in the settings panel not in the app drawer. Twrprc1 is what I used. V image should be fine
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Hey! Is anyone on U? Been almost complete silence about it.
[Google Pixel XL Guides, News, & Discussion] JU57US:
One page back there's a post detailing the instructions to get U working, and it's even quoted just a few posts up on this page.
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Well, he started on U. But changed to Pure Nexus which is what he modded. I checked for the hex sequence and not there for the lib64 file. Hope it's just a small modification of the source code.

I guess what's needed is a review the source code. I have never done that although brief orientation to Java years ago. So can someone link to the source code?

Edit: Not so simple to even find the code. Have to be on Mac or Linux to get anything done.
[Google Pixel XL Guides, News, & Discussion] quangtran1:
Thanks for taking the time to write up. I've been doing the same identical steps, almost to the letter. However, I always ended up with the white Google screen at boot. Permissions are 644. I may not have SU 2.79, but I wouldn't think that would prevent boot, do you think?
[Google Pixel XL Guides, News, & Discussion] 420SYN:
I'm no expert by any means but for this to work everything I read said you need 2.79 stable. Maybe lower versions will work but definitely not above. You also need to be using the correct files for your system version.
[Google Pixel XL Guides, News, & Discussion] quangtran1:
Can the V libandroid files be used for the U firmware? I'm guessing not since the 'O' and 'Q' were different.
[Google Pixel XL Guides, News, & Discussion] 420SYN:
Nope not according to others in the thread they are version specific
[Google Pixel XL Guides, News, & Discussion] laxattack:
I just wanted to say, I don't deserve any of the thanks. [MENTION=522448]Fenny[/MENTION] has done all the work here. All I did was get the files working on my phone with his help.

With that being said, here are the steps I took to get this up and running:

Running PureNexus build from 01/13/17 & TWRP RC1

download patched runtime files from this thread, SuperSU 2.79 stable, SuHide 0.55, and rm-suhide file

Used TWRP file manager to move files into their respective places and set permission to 0644

Booted rom

tested SafteyNet and passed

Rebooted to recovery

Used TWRP FileManager to delete fstab.marlin, then Installed SuperSU 2.79 Stable

Booted rom

Installed Liveboot from Playstore (just for a log incase anything went wrong) https://play.google.com/store/apps/details?id=eu.chainfire.liveboot

Rebooted to recovery

installed SuHide 0.55

Booted rom

Installed Suhide GUI from playstore (https://play.google.com/store/apps/details?id=com.loserskater.suhidegui) and set Android Pay, Pokemon GO, SafetyNet Helper, and SafetyNet Playground all as apps set for suhide

rebooted rom

Installed/Used RootSwitch v1.3.3.2 to turn off root

Profit!

Once again, [MENTION=522448]Fenny[/MENTION] has done all of the work on this, please donate to him because he deserves all of the credit!!!
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Link to rm-suhide?
[Google Pixel XL Guides, News, & Discussion] disconnecktie:
I followed these instructions but I dont have the safetynet apps in suhide
[Google Pixel XL Guides, News, & Discussion] laxattack:
In the suhide thread

the apps I am referring to are to test to make sure safteynet is validating correctly

https://play.google.com/store/apps/details?id=com.scottyab.safetynet.sample

https://play.google.com/store/apps/details?id=com.cigital.safetynetplayground
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Lost ability to root. I'm stumped. Happened after attempted suhide setup. Was on V build, transfered files using TWRP (not adb push) did CHMOD and flashed suhide 0.55. On reboot, wouldn't get past static balls.

Reflash stock system.img and boot.img and booted ok. But no longer can root. On boot after each root attempt, it reboots in about 20 seconds, gets to the flashing balls and just sits there.. Tried U, V and Q builds installing each with flashall, tried 2.79 stable (deleting fstab) and 2.79 sr3, I do have USB debugging enabled. Anything else anyone can think of? Is there anything that wouldn't be cleared by flash-all? Anything in data that could cause this?

Edit: suhide-rm did the trick. So apparently SUHide modifies something outside of system, boot and vendor partitions. Something in data? Or is there another partition not overwritten by flashall?
[Google Pixel XL Guides, News, & Discussion] laxattack:
for anyone running PureNexus the files are still working on the latest release from 01/21/17

just remember if you are dirty flashing (like me) make sure you flash the rm-suhide zip first before updating
[Google Pixel XL Guides, News, & Discussion] Fenny:
Yes, it is stored in the filesystem image in /data/su.img which is where SuperSU (and suhide) stores binaries when systemless root is enabled. That is the /su partition.
[Google Pixel XL Guides, News, & Discussion] ghostENVY:
Quick question, I'm using newest Octo OS with 7.1.1 NMF26V vendor image. I've followed the last two tutorials both with no success. I'm assuming the new lib files need to be patched? Also last two tutorials didn't mention the use of a custom kernel with Skynet patch is it necessary still?
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
I just got it working. The V files in the OP didn't work with V build, but the pure Nexus files do work with V build. You do need custom kernel to hide bootloader unlock.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
Sorry if this is the wrong place to ask this, but I don't see the answer in this thread and Google doesn't seem to be helping.

I have been running SuperSU 2.79 SR3 with ElementalX kernel and RootSwitch but was having trouble passing SafetyNet, so I decided to try this to get suhide to work. I re-flashed NMF26V with fastboot, booted TWRP 3.02-0 RC1 image, installed TWRP 3.02-0 RC1 and SuperSU 2.79 zips. However when I reboot, SuperSU is nowhere to be found.

So far I have tried UPDATE-unSU-signed.zip and re-installed SuperSU 2.79 again, but no luck. Can someone please tell me what I'm doing wrong or point me to the proper directions?
[Google Pixel XL Guides, News, & Discussion] JU57US:
Did you try this?
[Google Pixel XL Guides, News, & Discussion] cmo220:
You can use SuperSu 2.79 after deleting the file also. But only 2.79, not one of the SR builds of 2.79
[Google Pixel XL Guides, News, & Discussion] JU57US:
Yeah, suhide only works with SuperSU 2.79 not the SR builds. I thought by the way his post was written he knew that. But it's worth it to note that the post by Dees_Troy referring to deleting the file was originally made on 11/14 when the latest release of SuperSU was 2.78 SR4, and it was updated in mid-December to reference 2.79 SR5, so it applies retroactively to installing SuperSU 2.79.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
Bingo, that was it, thanks guys! I got so used to not deleting fstab.marlin on the newer versions that I forgot all about it.

It is installed, root apps and RootSwitch are working, and I see it in Settings-Apps, BUT I have no SuperSU icon. Is there a fix for that? Also with RootSwitch disabled, I'm not passing Safetynet, so I'd like to get that working too before I move on to suhide.
[Google Pixel XL Guides, News, & Discussion] cmo220:
I wasn't calling you out or anything. Just giving any information that might help, for him, or anyone else. I fought with getting this to work for days.

This was one of the issues I had too. Since I never rooted this phone until that step wasn't necessary, to only root, I completely forgot about it.
[Google Pixel XL Guides, News, & Discussion] JU57US:
No worries, I didn't think you were. I was just explaining myself a little more, and agreeing with you. I appreciate the confirmation of what I thought I knew, actually. My Pixel XL is backordered so I don't have any hands-on with it yet, just a lot of reading and remembering at the moment. As he wrote out 2.79 SR5 at first, and then later just wrote 2.79, I assumed that he knew to not use any of the SR builds, but didn't know for sure.

What version of Root Switch are you using [MENTION=546635]JimSmith94[/MENTION]? And do you still have your bootloader unlocked? If so, are you using a custom kernel?
[Google Pixel XL Guides, News, & Discussion] Fenny:
Sounds like you will need a kernel that hides the boot status flag. It also sounds like SuperSU attempted a system install before a successful systemless one. You may need to reflash the system partition, and replace the libs again if you can't simply remove the traces it left behind.

I would flash a fresh system partition,

Replace the lib files,

Flash a fresh boot image, and then a kernel to hide the bootloader flag,

Reflash SuperSU while deleting the fstab file. (Since the kernel will have removed it.)

And finally flash suhide.
[Google Pixel XL Guides, News, & Discussion] JimSmith94:
I'm running RootSwitch-1.3.3.2, yes my bootloader is unlocked, and I'm running ElementalX-P-1.03.

Thanks, I'll try that but I'm going out of town for a few weeks, so I'll have to leave it as is for now.
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Does it matter if you flash kernel then root vs root then flash kernel? If you root first you get Aroma options during installation of ElementalX that you don't get if you install kernel first. Seems to me it works either way otherwise, at least for ElementalX.
[Google Pixel XL Guides, News, & Discussion] Fenny:
SuperSU patches the kernel binary as part of the install, that is why I normally do it last. You might end up booting only to recovery, or never to recovery (and with no root) if that patch is not made.

If the kernel you are flashing has a setup script to do that patch dynamically, then it is fine to reverse the order, but I don't count on it.
[Google Pixel XL Guides, News, & Discussion] JU57US:
The installation instructions for ElementalX do say to refrain from flashing SuperSU again if rooted before flashing the kernel, so it appears to take care of it.

That order of operations process confused me when I was reading about it too.
[Google Pixel XL Guides, News, & Discussion] JU57US:
Excellent, detailed write-up of the current process. THANK YOU!

Worthwhile to note that there are two different "V" builds, and to not get them confused. The first is NDE63V, the November 2016 US build. (For the Nov16's, NDE63U was the European version and NDE63X was strictly Verizon.) That's the one referenced in the OP with patched files.

Then there's NMF26V (Europe), along with NMF26U (US/Verizon), which are the January 2017 builds. There are no patched files posted for the Jan 2017 builds and the NDE63V files will not work on NMF26V.

If you're not using the PureNexus ROM and want to use the most recent build supported by the posted, patched lib files, then you'll need to be running NMF26O (US 7.1.1 Dec 2016 build) or NMF26Q (Europe 7.1.1 Dec 2016 build) and use those files from the OP, respectively.
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Wow, thanks for that! Had no idea about the last letter repeat use. But the Pure Nexus files DO WORK with the January NMF26V build. Got lucky.
[Google Pixel XL Guides, News, & Discussion] JU57US:
Wait, so you mean to say that you're using the patched PureNexus files on the stock Jan 7.1.1 build, and not actually using the PureNexus ROM?
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
Exactly. It is my understanding that Pure Nexus was built off that base. I modified my post based on your input. Thanks!
[Google Pixel XL Guides, News, & Discussion] JU57US:
Very interesting, I didn't know that would work. Thanks!

So who patched the files for the PureNexus ROM, and do they/how do they differ from what's needed for NMF26U?
[Google Pixel XL Guides, News, & Discussion] Fenny:
I did it!

The offsets changed, as would be expected.

MNF26U/MNF26V probably have the same offsets, so you can use vbindiff to compare the originals and the patched versions (both in this thread).
[Google Pixel XL Guides, News, & Discussion] yearn2burn:
So I finally had a chance to test Android Pay and... Failed! Immediately tested SafetyNet and passed. Ughh. Guess it's the nature of Spy vs Spy.
[Google Pixel XL Guides, News, & Discussion] JU57US:
Did you happen to add all the processes to su_hide that [MENTION=522448]Fenny[/MENTION] mentioned in post 133 of this thread?