yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] iconoclastnet:
So after a couple of tries I got this thing "mostly" working, at least in separate pieces.

I installed the hidesu version of the package and I can run safetynet/pgo.

then I did the --bind trick and can got adaway to work.

however, I can't seem to have both at once.

the bind mount is not hidden from safetynet and safetynet checks fail. if I manually unmount /system/etc/hosts then safetynet checks pass again.

I have a tasker profile for pgo (for toggling root in the days before auto-magisk) that I thought to adapt to automatically unmount/remount the hosts file,

but ...

manually unmounting hosts seems prone to tickle the no-root-for-you bug until reboot. this bug also sometimes affects some apps and not others.

for example: just now after a reboot I checked a few root apps and all worked but safety net was failing (expected at this point due to bind mount of hosts). Then I manually unmounted hosts to get safety net to pass but then Titanium Backup could no longer acquire root. At the same time other root apps were not reporting any trouble with root.

I do really love that hidesu is working on a per app basis rather than the global root toggle I was dealing with before. I can't wait for this to get fleshed out a bit more and see some of the rough corners smoothed out. all in all, great work!
[Android Software/Hacking General [Developers Only]] woooz:
It works for me but only once. After closing PokemonGo I'm not able to pass SafetyNet anymore. Any idea why and how to fix it?

Nvm, it's working again (before wipe it worked for me only once). Sometimes I'm not able to pass SafetyNet check for some reason.
[Android Software/Hacking General [Developers Only]] phhusson:
Could you test with http://phhusson.free.fr/superuser-r275.zip ? (this includes https://github.com/phhusson/super-bootimg/commit/c163308ff8fe0afdc64e86e61b0b7fbd9dd52a3f which gives original system/etc/hosts to SaftyNet process, but which will still list system/etc/hosts as mount bind-ed in /proc/mounts, so depending on how they dectect, it might, or not, work)
[Android Software/Hacking General [Developers Only]] Mattski:
Switching from Magisk v6 to phh Superuser with hidesu. Works on my OnePlus One! Thank you so much!
[Android Software/Hacking General [Developers Only]] kingwp1:
I'm running the hidesu zip, but just got a notification from the phh superuser app to "Install Superuser, the su binary is out of date"

If I do that, will su be un-hidden?
[Android Software/Hacking General [Developers Only]] ken2802:
can i add app do hidesu?
[Android Software/Hacking General [Developers Only]] 4RK4N:
i also did su --bind to get adaway working. i still pass safetynet though. pogo also logs in fine.

would you still recommend updating to r275 from r266 ? if so: just flash over or remove r266 before ?
[Android Software/Hacking General [Developers Only]] iconoclastnet:
Ok, I gave it a quick test and it's a bit strange...

I started by cleaning up and re-flashing the stock boot.img. Reboot and safetynet passes but no root as expected.

Then I installed r275 from your link. Safety net now fails even after /system/etc/hosts is unmounted. (yeah I checked the content of hosts and it is indeed the original stock hosts file.) Root seems to work as usual, just no hiding from safetynet.

Here's where it gets weird. Since r275 wasn't passing safetynet at all I decided to put r266-hidesu back on just to make sure the issue wasn't a safetynet change. At this point I just dirty installed r266 over the top of r275 without cleaning anything up or using the stock boot.img.

In this state safetynet and pgo seem to work just fine even with /system/etc/hosts still bind mounted. (cat hosts shows indeed the modified hosts file is in effect).

so ... as far as I can see after a quick first pass test, r275 doesn't work (for safetynet) at all but installing r266 over the top of r275 does make it all work.

I'm just going to cross my fingers and hope it stays this way until you've got it all perfected. :)
[Android Software/Hacking General [Developers Only]] bezeek:
On my first flashing attempt, r275 seemed to trip SafetyNet out of the box. However, subsequent attempts are causing my device to hang without looping at the Android warning screen, so I might just have tainted my boot.img backup somewhere along the line. [Edit: oops, way late! :p]
[Android Software/Hacking General [Developers Only]] Yan25:
Hi,

Does the superuser hidesu work on Android 5.0.2?

Regards

Yan'
[Android Software/Hacking General [Developers Only]] dtriguero:
Upload zip someone was looking for guessing they had problem getting it from the original link some post back

sent from my SGH-M919 BadAss TinkerToy
[Android Software/Hacking General [Developers Only]] nk950357:
does this version works on miui 8 with android 5.0?
[Android Software/Hacking General [Developers Only]] Jayster06:
System mount

So I'm having a nightmare time trying to get my system remounted. I can use it in twrp but once I get it started back up i cant get it to work. I'm mostly needing to move apps to system. Any help would be appreciated
[Android Software/Hacking General [Developers Only]] adrman:
If you're using the superuser.zip, edit the config.txt to "noverity", pack the zip back up and flash it. If you're just using one of the boot images, use the noverity image. See the OP for the differences in the images and config.txt options.
[Android Software/Hacking General [Developers Only]] Ravenmtx:
How did you get yours working? I'm also on the HTC 10, but on Viper. I went through all the motions then flashed r266, but it wouldn't boot past the HTC Powered by Android logo.
[Android Software/Hacking General [Developers Only]] Didgeridoohan:
Just make sure to replant it in nice, fertile soil.

DISCLAIMER: This is a (very) poor attempt at humour (typically referred to as dad jokes) and should be ignored. It just had to be done. :p
[Android Software/Hacking General [Developers Only]] bezeek:
Haha, oh jeez! There's one more for the ol' custom SwiftKey dictionary - nice catch! :silly:
[Android Software/Hacking General [Developers Only]] penguinyaro:
Is the way to uninstall phh Superuser (i.e. unroot) to flash the stock or old boot img?

This is what I have gleaned from some posts, but am unsure.
[Android Software/Hacking General [Developers Only]] PunchUp:
You need to flash the boot.img from your current ROM (not stock or old)
[Android Software/Hacking General [Developers Only]] Primokorn:
[MENTION=1915408]phhusson[/MENTION]

FYI my issues are not related to your superuser.

AFWall+ has been updated so the freezes are gone and Android Studio is working when I don't restore user data. There's something wrong with an app I have recently installed.
[Android Software/Hacking General [Developers Only]] ragnarokx:
How do you pack the zip back up after editing config.txt? I get errors in TWRP. I tried rezipping/repacking with 2 apps on mac and with Root Explorer, Solid Explorer, and ASTRO. All give errors when flashing the repacked zip. All I want is hidesu with nocrypt :/
[Android Software/Hacking General [Developers Only]] PunchUp:
Here, try with this. It's an AROMA installer of the same.
[Android Software/Hacking General [Developers Only]] tomirodriguez:
HI there. I've been following this Thread, trying to install the hidden supersu, mostly for PoGo, but with no luck.

I have an S6. I flashed with the official Samsung app the stock ROM, to make all clean. After that, flash recovery (without rooting), set permissions to TWRP, and after that installed my pre-rooted custom ROM, which comes with chainfire supersu. I went to the supersu settings and make a complete unroot on it (I set to don't recover boot.img). Finally, after that, installed the r266-hidesu, wipe and reboot, but the SafetyNet does not pass. Try to flash after that the 275, but again couldnt pass SafetyNet. I read someone who flash over the 275 the 266 and worked, but again, no look with it either.

Am i doing something wrong or those are the correct steps?

Root checker screen

Thanks!
[Android Software/Hacking General [Developers Only]] ragnarokx:
thank you!!! will try as soon as I get home.
[Android Software/Hacking General [Developers Only]] githyanki:
Your rom comes with chainfire su, you have to completely unroot before installing phh su.
[Android Software/Hacking General [Developers Only]] tomirodriguez:
I forgot to put it. Before installing the hidesu, I went to the supersu settings and make a complete unroot on it (I set to don't recover boot.img). Unless I'm missing a step to fully unroot that su, I've done it.

Thanks for the fast answer githyanki
[Android Software/Hacking General [Developers Only]] emuandco:
Same here, with http://phhusson.free.fr/superuser-r275.zip installed on a clean new shiny boot.img. Once more flashing my kernel and thus no installed root anymore being available makes SafetyNet work again.
[Android Software/Hacking General [Developers Only]] alexpower:
First you need to unroot viper and check safety net, maybe reboot twice

Gesendet von meinem HTC 10 mit Tapatalk
[Android Software/Hacking General [Developers Only]] adrman:
Didn't see any mention of viper in the post I was replying to.
[Android Software/Hacking General [Developers Only]] bezeek:
There are a few things that can easily go wrong when packing a flashable zip. I'd double-check the following just for sanity's sake:

- The editor retained the Unix-style (LF) line endings.

- The archiver created the zip using either the "store" or "deflate" method.

- The zip is brand new and not an existing zip that was updated.

If it's none of those things, an error number would help, assuming TWRP spat one out.
[Android Software/Hacking General [Developers Only]] Similarion:
Can we get an uninstaller for phh's hidesu??
[Android Software/Hacking General [Developers Only]] heliox:
Please, read at least the 5 last pages before asking questions that's been answered to thousand times. We aren't requiring you to read the complete thread, are we?
[Android Software/Hacking General [Developers Only]] gunz.jones:
I use RAR or 7zip for android and they repack fine if you set compression to storage or normal. But TWRP can be touchy on repacked zips.
[Android Software/Hacking General [Developers Only]] adrman:
I know FX File Explorer will cause TWRP errors when you repack the zip. Root Explorer seems to work fine though.
[Android Software/Hacking General [Developers Only]] rgraville:
Running 266 and safetynet just started failing.
[Android Software/Hacking General [Developers Only]] nathanchance:
Flash your boot.img, as has been answered at least twice in the past few pages.
[Android Software/Hacking General [Developers Only]] rgraville:
Rebooted and now I'm passing again. Was odd. Safetynet Helper was saying CTS Profile Match = false
[Android Software/Hacking General [Developers Only]] 4RK4N:
restore the "stock" boot.img supersu provides during full unroot. stock means the one from ur custom rom before rooting. not the samsung factory one.

edit: also a question answered pages ago multiple times. also a little common sense. how should a boot.img which alrdy got supersu in it still pass safetynet when there are phh files and supersu remnants in it?
[Android Software/Hacking General [Developers Only]] tomirodriguez:
I ment that I had to put the "dont attempt to restore stock boot image" option to unroot the phone with the su settings cause If I set the "NO boot, YES keep recovery" the unroot fails. So I have to put dont attempt to recovery the boot image. After that the SuperSu is unistalled. Then flash the boot.img of my rom and after that the hidesu. Still its not working. I'll give up PoGo. Too much work for a game.

Thanks for the quick answers
[Android Software/Hacking General [Developers Only]] 4RK4N:
supersu full unroot fails if u select yes to restore boot and no to restore recovery? then i guess ur rom comes with a pre-rooted boot.img so supersu cant restore anything. does "supersu installer" appear in the twrp output when installing ur rom? if not then say thanks to the rom dev for not implementing supersu correctly in his zip. ur only real chance is to switch rom or annoy the dev for a no-root version for a clean start.
[Android Software/Hacking General [Developers Only]] Jayster06:
Thanks for the tip. I was able to edit the config.txt, and got busybox to install, although still not able to mount once im booted i get the "cant remount /system. If you or anyone else knows any other way to move apps to system i would really appreciate it. Or give me a process that worked for you to mount system and hide su.
[Android Software/Hacking General [Developers Only]] adrman:
Using noverity, that's odd. You should be able to mount system as r/w with a file explorer that has root privileges.
[Android Software/Hacking General [Developers Only]] Jayster06:
OK so I was able to use a file explorer to get the new working, however I still have not been able to get a app moved to system and work correctly, nor are the apps I have previously used still are not able to mount. I've tried manually moving it, titanium backup and lucky patcher. With LP it doesn't even have the option anymore. I wonder if it maybe Android 7
[Android Software/Hacking General [Developers Only]] relevant_placeholder:
[MENTION=1915408]phhusson[/MENTION], when flashing superuser zip over stock kernel, it boots fine. When flashing over ex kernel, it's stuck at boot logo. Flashing stock, superuser, ex boots fine.

Any particular reason for this?
[Android Software/Hacking General [Developers Only]] battoniko:
So, i really can't manage to make this work on my phone.

Flashed stock boot.img, safetynet OK, back to twrp to flash r266 and safetynet not OK.

I got the root rights but it's not hidden from safetynet.

I decided to post the recovery log from twrp if anyone can have a look and tell me what's wrong.

Thx.
[Android Software/Hacking General [Developers Only]] cmk7128:
This works well, thank you very much. Do we need to repeat the command in adb shell every time when we apply new updates for the host files?
[Android Software/Hacking General [Developers Only]] 4RK4N:
nope. just once. then just update via adaway and gg. if u update ur rom u need to do the command again.
[Android Software/Hacking General [Developers Only]] cmk7128:
Thanks for the clarification. I noticed that Adaway will always ask whether we want to do the symlimk every time we update (and we just have to say NO), that's correct?
[Android Software/Hacking General [Developers Only]] 4RK4N:
yes. answer NO to symlink. bind is a "better" symlink using mount. the symlink would trip safetynet.

after rebooting adaway should report "activated" again.
[Android Software/Hacking General [Developers Only]] alexpower:
I use adaway without that.

It uses system/etc/host

Sr1 suhide xposed -> safetynet green

Gesendet von meinem HTC 10 mit Tapatalk
[Android Software/Hacking General [Developers Only]] 3dawg:
What's wrong with just flashing the systemless hosts zip? I tried all the fixes in this thread and none worked. Finally I just flashed the zip and it worked. Safetynet still not tripped and adaway is actually blocking ads now.

EDIT: Nevermind, after a reboot it stopped blocking ads again. I'm at a loss now.
[Android Software/Hacking General [Developers Only]] Yan25:
Hi,

I confirm it works on my ZTE Blade S6 (Android 5.0.2). Safetynet check with success, rooted and PoGo is back. :)

I'm using the phh's SuperUser application.

Many thanks for your job.

Edit: Hummm,

Finally not really working on my phone, I have the root access during the Android startup, then (2 minutes after) root is gone and no root access anymore.

Yan'
[Android Software/Hacking General [Developers Only]] adrman:
Sorry, I'm not sure what to tell you from here. Noverity "should" work.
[Android Software/Hacking General [Developers Only]] dasti555:
Guys. I'm sure you are boring of these qustions.

But can you please give me any advice how to run PoGo?

I have hideroot version on my 7.0 CM14 and in SafetyNet checker is CTS Profile : False

So we as root users cant really play PoGO?
[Android Software/Hacking General [Developers Only]] Jayster06:
Well thanks, i guess ill keep tinkering.
[Android Software/Hacking General [Developers Only]] hb17:
+@phhusson

As far as hiding su, can random generated number be used instead of a file name?
[Android Software/Hacking General [Developers Only]] rasengan82:
Holy **** open source root app. I was paranoid all day yesterday after flashing SuperSU just to handle franco kernel parameters. I want to try this new superuser. I noticed there are four modes. Which modes resembles SuperSU default behavior?
[Android Software/Hacking General [Developers Only]] adrman:
I'm using the 2.66 hidesu version with Franco r32 on my 6p. It works great. Just try the default configuration of the zip first. That will set you up as "eng" as described in the op. If you're unencrypted though, make sure to edit the config.txt in the superuser.zip to "nocrypt".
[Android Software/Hacking General [Developers Only]] rasengan82:
Hmm do you need magisk to actually flash phh superuser.zip? All over the place magisk and phh are mentioned together but my understanding is phh does not need it.
[Android Software/Hacking General [Developers Only]] PunchUp:
No need. Works independently too
[Android Software/Hacking General [Developers Only]] Yan25:
Hi,

Is someone has the same issue than me? I followed all the instructions here http://xdaforums.com/apps/magisk/discussion-pokemon-magisk-discussion-t3465722/page57#post69046358 with success and no error. I'm using phh's SuperUser application.

During the startup of Android I have the root access. For example I can see that betterbatterystats get the root access and rootchecker shows that root is correctly installed. But, when the startup is finished (around 2 minutes) the root access is gone. All applications required a root access tell me that no root is installed on my smartphone. I can reproduce this each time I restart my phone.

I have a ZTE Blade S6 running on Android 5.0.2.

Do you know what could be the reason of this issue?

Regards

Yan'
[Android Software/Hacking General [Developers Only]] rasengan82:
Hey guys I am noticing flashing phh and then a custom kernel like franco (uses anykernel) removes root. This does not happen with SuperSU. Is this a known issue?
[Android Software/Hacking General [Developers Only]] githyanki:
Yes, flash kernel, then phh
[Android Software/Hacking General [Developers Only]] kryzeK:
It's possible use this on any ROM flashing only the zip? Without a boot.img patched or Magisk?
[Android Software/Hacking General [Developers Only]] PunchUp:
Yes. Use the zip method. You might also want to edit the config file before that. Read the OP for more details.
[Android Software/Hacking General [Developers Only]] adrman:
It should be as long as the existing rom doesn't currently have root built in. Be safe and have a backup though.

Ninja'd by PunchUp!
[Android Software/Hacking General [Developers Only]] rasengan82:
Cool, I am all set now. I just need to remember reflashing phh every time franco updates.
[Android Software/Hacking General [Developers Only]] waylo:
I 'think' after doing this, I now have a "Your device is corrupt" warning that pops up on reboot. Is that to be expected? Obviously not a big deal if it is. Always had the "Your device software cannot be checked for corruption" warning after unlocking my bootloader.

(I also did boot into TWRP and mounted system as r/w, but did not do any writing, manipulation or editing. Don't think that set it off. I was unaware the default hidesu zip would unfortunate encrypt my formerly nonencrypted data so that's a different step that I'm used to).
[Android Software/Hacking General [Developers Only]] Lrs121:
Mounting system r/w is exactly what did it.

If you are going to do anything that touches the system, you must use no-verity configuration

https://source.android.com/security/verifiedboot/verified-boot.html
[Android Software/Hacking General [Developers Only]] waylo:
Ahh thanks. Will reflashing a noverity version of phh undo this warning, or do I need to reflash my system,etc?
[Android Software/Hacking General [Developers Only]] peakwhite:
Same here. It passes after a reboot, but a few hours later it fails and needs another reboot. Running Resurrection Remix on Note 3.
[Android Software/Hacking General [Developers Only]] SB13X:
Can 266 hidesu be used without Magisk? I'm getting Bootloop on my Xperia Z3 at the flash screen after flashing on clean kernel boot.img with Magisk uninstalled.

[MENTION=1915408]phhusson[/MENTION] using this kernel as a Base seems all Soby Xperia devices get stuck on flash screen as it's been mentioned earlier on but with no answer as far as I can see.

http://xdaforums.com/z3/development/kernel-advanced-stock-kernel-t3345880

Download Link for version I'm running...

https://drive.google.com/file/d/0Bwn7bAJ-USZjVUs0cjNoYVFzak0/view?usp=sharing
[Android Software/Hacking General [Developers Only]] phhusson:
What's "ex kernel"? link?

The problem here is most likely not root, but CM.

Please note that you most likely CAN'T pass SafetyNet on CM.

But Pogo doesn't use SafetyNet's checker, it only checks for root. (and likely for xposed and such)

So the test should be PoGo, not SafetyNet.

Yes, but then, how would applications find that number?

Basically, if an app can find the "su", PoGo can find it as well.

That's why the only possible method is to hide su from some apps.

(Actually there is another possibility, which is to give a method to send a SU request, but you will know if there is indeed an SU only when the request answers, but that would deeply break compatibility with root apps)
[Android Software/Hacking General [Developers Only]] Lrs121:
I would recommend both switching to no-verity and reflashing the system partition. That way updates can be easier to apply
[Android Software/Hacking General [Developers Only]] chrisexv6:
Same issue here as well.

On initial flash and startup of PureNexus ROM, I could get root (added ElementalX kernel control)

An hour later installed TiBackup from Play Store but it couldnt get root access

Rebooted and TiB worked OK. I havent checked since (funny how not that much stuff actually requires root!)
[Android Software/Hacking General [Developers Only]] adrman:
He's talking about Elemental X Kernel.
[Android Software/Hacking General [Developers Only]] relevant_placeholder:
http://xdaforums.com/nexus-6p/orig-development/kernel-elementalx-n6p-t3240571

Sorry, wasn't clear enough.

ElementalX kernel on Nexus 6P. Anykernel method.

---------- Post added at 05:39 AM ---------- Previous post was at 05:39 AM ----------

Indeed, thank you.
[Android Software/Hacking General [Developers Only]] Yan25:
Hi,

Same issue for me. Root is enabled just after Android starting, then root is disabled on ZTE Blade S6 (Android 5.0.2)

Regards

Yan'
[Android Software/Hacking General [Developers Only]] KaMyKaSii:
Full boot to the root off takes too long? If not, should record a logcat with adb
[Android Software/Hacking General [Developers Only]] Yan25:
Hi,

I don't know. Just after that Android was started, I can use applications required root access, but around 2 minutes later, these applications show that the phone is not rooted. Currently, I don't know why.

Regards

Yan'
[Android Software/Hacking General [Developers Only]] JavaTiggy:
[MENTION=1915408]phhusson[/MENTION] just wanted to mention that the build bot has not yet posted a boot img for NBD90Z for shamu. Thanks.
[Android Software/Hacking General [Developers Only]] ericotena:
Does superuser r266 & hidesu works alongside xposed and pass safetynet checker?
[Android Software/Hacking General [Developers Only]] phhusson:
No.
[Android Software/Hacking General [Developers Only]] Tamos42:
Merci, ça fonctionne du tonnerre :good:

Thanks a lot !
[Android Software/Hacking General [Developers Only]] ptrVoid:
Hey, I installed 'superuser-r266-hidesu.zip' but now I want to uninstall it.

Is there any uninstall zip? If not how can I uninstall it?

Thanks.
[Android Software/Hacking General [Developers Only]] PunchUp:
You need to read last few pages. This has been asked several times