yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] nicholseric:
instructions for mount --bind, mount -o bind, su --bind

Pierre, please clarify for us the details of using binding. Is it #mount --bind, #mount -o bind or #su --bind.

There does not seem to be any explanation in the changelog, first post or the command line help. Also please clarify what build of su should be used, what context the file must be in and what permissions and ownership the file should have.

I ask because I am attempting to mount bind /data/hosts to /system/etc/hosts but am not sure what command to use and none of them give me output with #su --bind --ls . I have done the following:

#chcon u:object_r:system_file:s0 /data/hosts

#chmod 644 /data/hosts

#chown root:root /data/hosts

what do I do next?

I have succeded in:

#mount -o bind /data/hosts /system/etc/hosts

#mount | grep hosts

/dev/block/mmcblk0p42 on /system/etc/hosts type ext4 (rw,seclabel,nosuid,nodev,n

oatime,nodiratime,discard,nobarrier,noauto_da_alloc,data=ordered)

But, nslookup still fetches legitimate DNS and Chrome still goes to sites that hosts redirects to 0.0.0.0

#mount --bind

and

#su --bind dont seem to do anything

I am using su "17 me.phh.superuser cm-su subind suinit" and flashed todays update.zip with options "eng verity crypt"
[Android Software/Hacking General [Developers Only]] nicholseric:
So I found post 206 and my ls comparison looks fine and my su --bind --L's reports correctly but mount does not show a mount and cating /system/etc/hosts is the original.
[Android Software/Hacking General [Developers Only]] salman_dude:
not working with a800f 6.0.1

having bootloop
[Android Software/Hacking General [Developers Only]] Sam Nakamura:
http://xdaforums.com/galaxy-s3/help-i9305/how-to-how-to-best-phrase-request-to-t3404880/page4
[Android Software/Hacking General [Developers Only]] ccsuk:
phh zip files
[Android Software/Hacking General [Developers Only]] Portgas D. Ace:
Magisk is currently being detected by SN, so Android Pay won't work for you. By the way, there is a newer version of Magisk available.
[Android Software/Hacking General [Developers Only]] ccsuk:
Thanks for advise. You are correct there's v8 but I've only just installed the rom which comes with v7. It's the hidesu part I'm wondering about.
[Android Software/Hacking General [Developers Only]] vince.lupe:
Hey guys, a little confused: I am running the latest 7.1.1 beta for Nexus 5X and can't seem to get rooted for being able to use Secure Settings with Tasker (doesn't detect root), though I flashed Phh through TWRP 3.0.2.3 - using/installing these files: photo below.

Do I have the right files, or what am I doing wrong? Followed this guide: http://androiding.how/npf10c-root-android-7-1-1-nexus-5x-6p/

Thanks, everyone :)
[Android Software/Hacking General [Developers Only]] vince.lupe:
Never mind - got it working :D Keep up the great work, everyone :D
[Android Software/Hacking General [Developers Only]] sklks:
Does anyone know how to unroot and if so can it be added to the main Post?
[Android Software/Hacking General [Developers Only]] b8842dc0:
1. Uninstall the superuser apk.

2. Flash a stock boot image.

3. Done.
[Android Software/Hacking General [Developers Only]] sklks:
Newer version where? What's the version number?
[Android Software/Hacking General [Developers Only]] Portgas D. Ace:
v8, with v9 to be released in some days. Check the Magisk thread.
[Android Software/Hacking General [Developers Only]] jamy015:
What happened to https://superuser.phh.me? I thought you had a script to detect new Nexus releases, but the last image is from 2 months ago (in the meantime, there have been 2 new images).
[Android Software/Hacking General [Developers Only]] androcraze:
Aren't most folks just flashing the zip? Aren't they working?
[Android Software/Hacking General [Developers Only]] yochananmarqos:
Google changed something on their end apparently. The author of a Pushbullet channel I subscribed to said the factory image page now requires login and a button click to access the factory images.
[Android Software/Hacking General [Developers Only]] piccit:
F-droid apps are built my them. I don't know their process, but there is some lag time because they have to see that the source code is updated, build the new version, and release
[Android Software/Hacking General [Developers Only]] barturblits:
Current version in fdroid is 1.0.3.3. Seems your repo is outdated.
[Android Software/Hacking General [Developers Only]] Primokorn:
If you want to remove SuperSU before flashing Phh's Superuser

OR

If you want to remove Phh's Superuser

THEN

Flash this unSU Script zip (updated a few days ago and it supports Phh's Superuser now).
[Android Software/Hacking General [Developers Only]] htb2050:
Thanks man. I needed this. Most Roms come with SuperSU but I am going magisk way now because of safety net so this script is a must have now.
[Android Software/Hacking General [Developers Only]] phhusson:
They added a license detection, I need to add cookies to make it work again :'(
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Android N 7.1.1 Developer Preview

TWRP 3.2.0-2

Why won't any of them flash? All I do is take the config-text out, change everything to nocrypt, etc and put it back in the .zip.

View attachment 3940298

Recovery log: https://drive.google.com/file/d/0B4_NvTjxRtXmOVlQdks5NjhzcEk/view?usp=drivesdk
[Android Software/Hacking General [Developers Only]] nathanchance:
Need to see a recovery log before making any conclusions
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Recovery log: https://drive.google.com/file/d/0B4_NvTjxRtXmOVlQdks5NjhzcEk/view?usp=drivesdk
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Did you ever find out why it wouldn't flash? I'm having the same problem. Same setup as well (TWRP 3.2.0.-2, 6P, 7.1.1)
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
So I flashed this boot.img above, flashed the superuser259.zip in the TWRP 3.0.2.2 and everything worked.

What does this mean? I was using the original boot.img that came with the 7.1.1 developer preview.
[Android Software/Hacking General [Developers Only]] Beast84:
There was a post a few down from mine with a boot image to flash. That did the trick. Everything flashed properly after that
[Android Software/Hacking General [Developers Only]] SDMU:
That can be updated within the magisk manager . Do you have it installed ?

Are you using Magisk ? :)
[Android Software/Hacking General [Developers Only]] SDMU:
You can download it from here

http://xdaforums.com/apps/magisk/magisk-phh-s-superuser-android-pay-t3435921/page74

Go to page 1:)
[Android Software/Hacking General [Developers Only]] harpin14789:
Can anyone link me the beta 7 of the superuser app or if there is another beta after beta 8.

I have encountered some root issues on nougat with beta 8 so I wanted to try beta 7. Search for the beta has been difficult, I can't find the link anywhere. It would be nice if the beta apks were in one central local.
[Android Software/Hacking General [Developers Only]] drup88:
Just went through this entire thrwad trying to find out wjy in getting this error and strangely every single time others mention it,they wrre ignored. Can we get confirmation on this?
[Android Software/Hacking General [Developers Only]] SDMU:
Did you try flashing the superuser zip again . Even I received such a message after updating . I flashed superuser zip once again and rebooted . That might have solved the problem since I did not receive such a message afterwards
[Android Software/Hacking General [Developers Only]] infatality:
Does anyone knows if phh superuser works on cm14.1?
[Android Software/Hacking General [Developers Only]] Sam Nakamura:
Yes, the superuser.zip worked for me..
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
beta 9 I'm running this and it work with no issues at all for me.

http://xdaforums.com/showpost.php?p=69224582&postcount=1896

beta 7

http://xdaforums.com/showpost.php?p=69123723&postcount=1658
[Android Software/Hacking General [Developers Only]] Haul:
He actually did reply to my post in #206. He updated superuser.zip with a new su binary, and the problems went away.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
I can't get AdAway to stick after reboot on the latest 7.1.1 developer preview (6P). Anyone else?
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Nevermind. Had to change the config.txt to noverity.
[Android Software/Hacking General [Developers Only]] FanDroid09:
I've never actually used PHH to root before, quick question...

Did you use the superuser.zip to root Dev preview 2 on the 6p?
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Yeah.. you can use that one. It works.
[Android Software/Hacking General [Developers Only]] HaoZeke:
How do I add this to my aosp build so I don't need to edit the zip everytime?
[Android Software/Hacking General [Developers Only]] veesix:
I'm not using Magisk and I'm on r259 (with no verity and no crypt). Can I flash the newer version?
[Android Software/Hacking General [Developers Only]] adrman:
I believe the r266-2 version is just for use with Magisk.
[Android Software/Hacking General [Developers Only]] talkaboom:
If you are building it yourself, follow steps given in OP link - Check the bottom of the page..

For someone's else's ROM, like most of us use, and if it is a stable release, you can replace SuperSU or add superuser using same steps. Remember to remove all the SuperSU lines. Also, SuperSU flashes BEFORE the bootimg is flashed. Superuser must be flashed AFTER the bootimg.

Easiest way to remove SuperSU I found is simply to delete the SuperSU folder. Then flash superuser zip after. This is helpful if you are using a custom kernel that replaces bootimg too. You will get an error message for missing SuperSU zip, but ignore it.
[Android Software/Hacking General [Developers Only]] HaoZeke:
Yeah but those instructions are for modifying the zip... I meant like building it into the zip by using makefiles
[Android Software/Hacking General [Developers Only]] cyberdionisio:
Adaway

Hi, Just for anyone in 6.0.1 with phh's Superuser. I've to flash the zip with noverity in config.txt to make Adaway work pointed to /system/etc/hosts. I've a Nexus 6p stock.
[Android Software/Hacking General [Developers Only]] HaoZeke:
Anyone else having trouble with titanium backup? It never managed to restore apps or uninstall anything...
[Android Software/Hacking General [Developers Only]] aamadorj:
Greenify not asking for root on Enforcing SELinux

Latest Greenify beta using the new "privileged mode" (when installed on system/priv-app) is not asking for root on Enforcing SELinux, neither with SuperUser r259 or r275. I think this same issue happened with previous Greenify versions, before the new "privileged mode" was introduced.

As other times, I solved this issue changing SELinux to Permissive, running root-check on Greenify, granting root access and then changing SELinux back to Enforcing. After having root access, Greenify works as intended, but now there's is a persistent notification about "Root privilege required". Changing SELinux to Permissive again dismiss the notification.

Is this an issue to be solved on Greenify side or is it SuperUser related? I can provide any other information that can be relevant.

Thanks in advance.
[Android Software/Hacking General [Developers Only]] Beast84:
Why does my phone keep losing root with this? Is it something to do with the dev preview? I never randomly lost root with SuperSU. A reboot fixes it but it's kind of annoying. I'm wondering if SuperSU does the same thing on the dev preview?
[Android Software/Hacking General [Developers Only]] CosmicDan:
Thanks for your work mate, especially your sepolicy-injector builds and script that I used as a reference. It helped me tremendously to create an init.d patch (via AnyKernel2) for stock boot.img. And I mean *real* init.d, via an init.rc service rather than script hijacking - it could theoretically be used to make a universal init.d addon for most devices.

If anybody is interested on that, as I couldn't find anybody else who had done that before, you can check out my ROM patch/mod pack here - http://xdaforums.com/redmi-note-4/development/tweaks-cosmictweaks-v2016-11-26-t3507291
[Android Software/Hacking General [Developers Only]] ninjazin:
Hey thanks for this mod [MENTION=1915408]phhusson[/MENTION]. Any chance of you updating bootimages for Nexus 5x to include never releases. Had my device shipped off to the service center and it came back with a new board and no rpmb so flashing recovery is now impossible bit injecting your boot images at least gives me root.
[Android Software/Hacking General [Developers Only]] m0han:
i've been successful in getting volte on redmi note 3 snapdragon with rr-n 5.8.0 rom. but, my backup pro app, that i rely upon, does not work. the latest busybox is installed. i didn't flash supersu (chainfire) fearing sensors failing, auto-rotation not working etc., which are fine when i use the built-in root access. please suggest a way to use this 'superuser' and get my backup pro to work properly. many thanks in advance.

View attachment 3952884 View attachment 3952885
[Android Software/Hacking General [Developers Only]] m0han:
i'm not sure what 'dev preview' refers to, but i'd like to know if this zip+apk could create any issues? i've 2 devices - htc one m8 and xiaomi redmi note 3 - i wish to try this on. anyone here with my kind of setup? this post makes me think the user is having trouble like i posted here. somebody, please advise/help. thanks.
[Android Software/Hacking General [Developers Only]] talkaboom:
RN3 user here. Im actually using a r277 zip that someone linked on one of the rn3 rom threads. It said op2, but works. I flash superuser after anything that flashes a custom boot image. So for me, thats rom+kernel.

Phh superuser is known to cause trouble for backup apps. I would recommend that you try nandroid ( twrp) backup instead. For us thats zcx twrp. Alka seems to fail with N roms and miui8. Don't know why.
[Android Software/Hacking General [Developers Only]] m0han:
i found a solution. see this post. currently running alka-twrp. will try out zcx later. thanks.

p.s.

: what did you mean by "Alka seems to fail with N roms and miui8"? backup/restore or install? install and backup worked ok for me (miui8-6.11.3 and rr-n v5.8.0-volte). had an issue with restore earlier. i was advised to 'untick firmware option' during restore. gotta see. i just wish i wouldn't have to do a restore. :D
[Android Software/Hacking General [Developers Only]] talkaboom:
Restore seems to be failing for many people. 2nd is flashing miui8 with alka. I never bother with backups. So no personal experience.
[Android Software/Hacking General [Developers Only]] shegeloaf:
Arise sound mod not working with this supersu. Any work around?
[Android Software/Hacking General [Developers Only]] yochananmarqos:
No. Maybe ask guitardedhero in the A.R.I.S.E. thread?
[Android Software/Hacking General [Developers Only]] rotkiv3451:
Someone please help. I disabled pph superuser to try to get snapchat working again but now I can't re-enable it, reflash it or uninstall it. I don't know what to do =[
[Android Software/Hacking General [Developers Only]] adrman:
Flash the original boot image from your rom. That's all you need to do to uninstall.
[Android Software/Hacking General [Developers Only]] rester555:
Hiding Su binary on DirecTV now

I currently have nitrogen OS installed on my Nexus 6 running sdk25 Android 7.1. I have PHH Superuser r266 installed with magisk and magisk manager. I tried searching the forums for this issue and I couldn't find it. A lot of people are using hide my root which I don't think works with PHH Superuser.

Anyone know a way to hide the Su binary from DirecTV now?
[Android Software/Hacking General [Developers Only]] adrman:
You should check in the Magisk and Magisk phh threads. The r266 hidesu in this thread is unofficial (and hasn't hidden root from Safetynet for some time now) and Magisk phh superuser is supported by topjohnwu.
[Android Software/Hacking General [Developers Only]] drawde40599:
Aroma

[MENTION=5444464]PunchUp[/MENTION]

Hi, is this still the latest Aroma installer http://xdaforums.com/showpost.php?p=69162715&postcount=1813

I searched "Aroma " and that's still the latest that comes come with that keyword .
[Android Software/Hacking General [Developers Only]] PunchUp:
That is r266 test build for suhide. If suhide isn't important to you then you can flash it. But if it is, then r275 is the latest I think.

The latest "official" version on the website is still r259 though.
[Android Software/Hacking General [Developers Only]] drawde40599:
Thank you .

Su hide isn't important to me , I just need Root with build prop editing capabilities and that Aroma version you gave me has been working great . I just updated my N6P to 7.1.1 and thought I'd ask if there was a later aroma before I root agn . I can't get the zips to flash after re-ziping ( editing ) for whatever reason . so aroma is the way I've been doing it .
[Android Software/Hacking General [Developers Only]] rauleeros:
So I am a bit lost. I have been trying to read through the last posts of some few pages and I cannot figure something out:

-Does this work for Android Pay? I read in the OP it was only if it said in the name of the file "user".

-If so, do we only need to flash the http://phhusson.free.fr/superuser-r266-hidesu.zip or something more updated?

Hopefully someone can clarify these two questions to me :)
[Android Software/Hacking General [Developers Only]] Didgeridoohan:
You must have really skimmed the thread then, because your answer can be found 4 posts up... :D
[Android Software/Hacking General [Developers Only]] yochananmarqos:
First, you're posting in the wrong thread. There's a separate thread for the phh superuser Magisk module which is currently at version 266-2. Magisk Hide bypasses SafetyNet by default, however you need to add a check next to any other app you want to hide root access from in the Magisk Hide section in Magisk Manager.
[Android Software/Hacking General [Developers Only]] shegeloaf:
can you get Phh's super user to work with ARISE sound mod please? Here is the reason why phh su is not compatible...

"because to get arise working on newer devices it requires patching a file at boot. For which chainfire provides the tool to do so, unlike phh's superuser. So you would need phh's superuser to develop the tool. And arise is not allowed to distribute chainfire tool with their mod as well. So that means only people with chainfire supersu can use this mod. Sorry"
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Hi all,

I would like to make a PR to fix a bug in su binary. In which Github repository should I make it?

https://github.com/seSuperuser/Superuser or https://github.com/phhusson/Superuser

I'm lost :( Thanks!
[Android Software/Hacking General [Developers Only]] androcraze:
I'd guess that Superuser is PHH, and seSuperuser is DIR; the latter is forked from the former.

If both have the same issue, I'd post in one and reference it as an issue in the second.

That's just me though. ;)
[Android Software/Hacking General [Developers Only]] clio94:
hello.thank you for your great work.Everything work ok in my doogee x5 pro with MM rom except the programm foldermount.It takes superuser permission but it still asks for supersu chainfire and doesnt work

Is there possible to work with your superuser? thank you
[Android Software/Hacking General [Developers Only]] Lrs121:
I've heard setting selinux to passive might work
[Android Software/Hacking General [Developers Only]] androcraze:
Looked up the app, and I like the concept.

Have you submitted a trouble-ticket with the FolderMount developer? The XDA thread is here: http://xdaforums.com/showthread.php?t=2192122

I'm seeing a couple requests in the thread already:

http://xdaforums.com/showpost.php?p=68879379&postcount=4234

http://xdaforums.com/showpost.php?p=68762373&postcount=4226

http://xdaforums.com/showpost.php?p=68720747&postcount=4225

http://xdaforums.com/showpost.php?p=66335551&postcount=3914

If the app is specifically looking for SuperSU, I'm expecting that not much can be done to overcome the issue. It should work, and shouldn't be calling SuperSU specifically. Perhaps posting a log might help?
[Android Software/Hacking General [Developers Only]] adrman:
Just an fyi that the superuser.zip linked in the op is working with the latest 7.1.1, NMF26F on Angler. I'm using it with Franco r40 and I've edited for noverity.
[Android Software/Hacking General [Developers Only]] clio94:
how can i do this?
[Android Software/Hacking General [Developers Only]] Lrs121:
There are some apps here on XDA that use root access to set selinux to permissive. Any one of those should do the trick
[Android Software/Hacking General [Developers Only]] rauleeros:
so in other words, it is not possible at the moment to have root at the same time as having Android Pay, right? I have tried the superuser-suhide.zip, the r266, the r275... and still nothing. Then I kept reading in the posts that every time one comes out as working, Google patches it asap :(
[Android Software/Hacking General [Developers Only]] kartikb:
Have you tried Magisk V9?
[Android Software/Hacking General [Developers Only]] rauleeros:
Yup. So with magisk V9 and nothing else (all modules deactivated) it passes the SafetyNet test. However, as soon as the different versions already suggested for rooting are applied, the test fails
[Android Software/Hacking General [Developers Only]] kartikb:
I have Magisk V9 with superuser for Magisk from topjohnwu and it passes safety net just fine. Did you enable magiskhide?
[Android Software/Hacking General [Developers Only]] kryzeK:
Superuser works with FlashFire? Or it's works only with SuperSU?
[Android Software/Hacking General [Developers Only]] yochananmarqos:
FlashFire only works with SuperSU because reasons. If you really want to know why, Chainfire has explained it already.
[Android Software/Hacking General [Developers Only]] rauleeros:
Oh, that's interesting... Do you use the superuser-r266-2.zip then? And in magiskhide I only have added google play services, android pay and safety net. Am I missing something?
[Android Software/Hacking General [Developers Only]] yochananmarqos:
FYI, you don't need to select Play Services or Android Pay. The SafetyNet package is hidden by default.
[Android Software/Hacking General [Developers Only]] kartikb:
I only selected Android Pay and my banking apps in the list. Once done, I restarted my phone. It's working perfectly so far.
[Android Software/Hacking General [Developers Only]] rauleeros:
Alright thanks. I'll try to start from scratch again and see if it works with only magisk module and superuser-r266-2.zip once more
[Android Software/Hacking General [Developers Only]] rocz.mx:
I could root and unlock using Z3X box my J700P, but it has no mobile network. It shows the following error: Unable to establish a wireless data connection. LTE: ESM - 29 EMM - x.

Can anyone can help me to know what happened?

Thanks in advanced.
[Android Software/Hacking General [Developers Only]] yochananmarqos:
Whatever you did to cause the problem has nothing to do with phh superuser. Try asking for help in your device's thread.
[Android Software/Hacking General [Developers Only]] somboons:
working on Nougat Mate 8 :)
[Android Software/Hacking General [Developers Only]] teddy0209:
It will if you set selinux to permissive.
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Hi [MENTION=1915408]phhusson[/MENTION]

I found an issue in --bind command: you can't remove bound files.

I send you a PR on Github with the fix and all the details about the bug. What do you think about it?

Do you consider merging it? Because I'm trying to add the support for your SuperUser in AdAway and I need this feature works.

Thanks!
[Android Software/Hacking General [Developers Only]] Jayman007:
Which version of Superuser is that? Do you have a link for it? Is that the version in the OP of this thread?