yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kartikb:
Download Phh Superuser app from Google Play.

Go to TWRP recovery, install:

Install Magisk then install superuser by topjohnwu.

Get Superuser from his thread, link:

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

Once done, reboot device, go to Magisk, settings then enable Magisk Hide.

Hope this helps.
[Android Software/Hacking General [Developers Only]] rauleeros:
Finally got it working!

What I did was:

-flash the original boot.img extracted from the official ROM .zip

-then re-flash twrp.img just in case

-Since I am in Oneplus 3T: flash the no-veridity .zip to avoid bootloop

-flash magisk v9.0

-reboot and find that it does not pass Safetynet

-flash phh superuser r266-2 .zip

-wipe dalvik, reboot, and Safetynet is passed + Android Pay working
[Android Software/Hacking General [Developers Only]] planb234:
How are you doing with Samsung boot loaders? If you want to provide root for Samsung it is necessary to find a way to unlock the boot loader and hopefully keep it unlocked. All of the su apps in play say device needs root for it to work but there is no way that a different binary is getting usurped by the seamless. i would love to see a method of replacing those bootloaders but so far nothing. It's kind of funny that the most common response to unlocking samsung bootloaders is you don't you use auto root. Most of us are too lazy to read one paragraph. Warning: do not use with locked bootloaders. it will likely brick your device. I would like to unlock them just to be able to use a newer auto root and not have to install a recovery if you want to use the large build that is there. flashfire offers a possible way of accomplishing that but it's a huge risk especially if you are just doing it to get a newer build. If you would like to see what you are looking at to replace that so called "image" pm me. I don't think it is happening. If you want to provide root for samsung devices it will be nessecary to achieve root. It is not not a little thing. you either have to trick the bootloaders in to thinking you are part of them or completely dominate them which to me seems harder by far but who knows the truth in all? I've spent a lot of time trying to figure out how to replace my bootloaders and everything embedded in them but it seems like the interweb gets smaller and smaller. one thing I haven't' tried yet is to pit and possibly go backwards in bootloaders but I can't find the correct files. I was given a link to were they are on sammobile but I guess I'm not skilled enough in clicking buttons to get them. I just learned how to get them from my device but it requires root. i just odined stock firmware and am reading official in all with a warranty bit of 1. I'm happy to give your binary a shot first. Sprint Galaxy Note 4 SM-N910P. The device says no root but it does. I just don't get to use it untill I flash the binary. It will take a recovery easy enough and sometimes will give permission with out adding the binary. I even had it runningb xposed the other day and I haven't used that since kitkat. I as far as I knew I couldn't on Stock Smasung. I t failed every time I tried to install it.
[Android Software/Hacking General [Developers Only]] Tkkg1994:
Just to give a short review, latest r275 and also r266 and before versions won't work on samsungs beta nougat roms. Probably to report would be that magisk phh 266-2 works just fine as excepted.

Root just never prompts up and hence root access is not granted. Very strange behaviour. But SuperSU SR5 also has some issues with it.

If you could look into this, would be very cool. If you need anything from me, let me know
[Android Software/Hacking General [Developers Only]] pblasi:
Hi, I got root on nougat (soak test version) following this method on my moto g4 plus (http://xdaforums.com/moto-g4-plus/how-to/guide-how-root-nougat-moto-g4-plus-t3484672). Now there's a newer nougat version available (NPJ25.93-11), but this method doesn't work anymore. System just doesn't boot. Any ideas? Thanks.
[Android Software/Hacking General [Developers Only]] boswelja:
[MENTION=1915408]phhusson[/MENTION] do you still need help with the UI? I'd like to give it a try :)
[Android Software/Hacking General [Developers Only]] phhusson:
I don't think so, [MENTION=5444464]PunchUp[/MENTION] made an amazing work there :)
[Android Software/Hacking General [Developers Only]] boswelja:
OK, just about to test on my Moto G3 running the latest CM 14.1

---------- Post added at 11:58 PM ---------- Previous post was at 11:55 PM ----------

It works great! Although I feel the full screen request activity is a little intrusive, I'll live with it to avoid the super long SuperSU dialog :P
[Android Software/Hacking General [Developers Only]] PunchUp:
Still waiting for your reply to the email so that I can finalise it :D

Full screen request? I think you're using an old build.

Anyway, I did make some more changes a few weeks ago (after beta 9). Since the final release has gotten delayed a bit, here is a new build
[Android Software/Hacking General [Developers Only]] boswelja:
Yea I got the build I was running from google play, this one is significantly better :D
[Android Software/Hacking General [Developers Only]] BennyBenjaman:
Hey i have pph installed but no apps are prompting root and the app itself has no app available albeit root access to apps
[Android Software/Hacking General [Developers Only]] kep2008:
Thank you, works for Huawei P9, android 7.0-test.

But Rom Control did not see root...
[Android Software/Hacking General [Developers Only]] axsdenied1:
Had the same issue last night. A reboot fixed everything.
[Android Software/Hacking General [Developers Only]] boswelja:
If I were to include this in a custom ROM, could I possibly set it to allow substratum and masquerade by default?
[Android Software/Hacking General [Developers Only]] venelar:
Can i install this over the playstore version or do i need to remove it first?
[Android Software/Hacking General [Developers Only]] PunchUp:
If you have disabled signature checking on your device, then you can install it over. But otherwise, you will have to uninstall first. Or else you could wait some more because this version will be available in Play store soon :)
[Android Software/Hacking General [Developers Only]] BryanByteZ:
Just passing here, loved the idea of a opensource SU, is possible to add support to Moto G 2013? Like most users of SuperSU we need a alternative not sold. THANKS.
[Android Software/Hacking General [Developers Only]] PunchUp:
Have you flashed the zip already?
[Android Software/Hacking General [Developers Only]] M!tch:
is there any way too hide superuser from apps like starfinanz / dkb push tan?
[Android Software/Hacking General [Developers Only]] Didgeridoohan:
Magisk version of phh's superuser can be hidden with Magisk Hide.
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
[MENTION=5444464]PunchUp[/MENTION] One more request for the superuser app.

An option to hide the app in the app drawer for those ROMs that integrate it in Settings. like Substratum does?

I use Pure Nexus and it integrates phh superuser and Substation (as well as that "other" su). ;)

Thanks
[Android Software/Hacking General [Developers Only]] jhedfors:
The about screen in your app shows Koush's info. Make me think that I installed the wrong app! You may consider updating this info.

Thanks!
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
The app is being updated and you can test the beta that changes what you asked for.

http://xdaforums.com/showpost.php?p=70079281&postcount=2131

http://xdaforums.com/showpost.php?p=70127282&postcount=2138
[Android Software/Hacking General [Developers Only]] jhedfors:
Thank you. I just found this myself. :laugh:
[Android Software/Hacking General [Developers Only]] BryanByteZ:
Gonna try soon. Thanks.
[Android Software/Hacking General [Developers Only]] Maverick_TN:
Hey guys, I am running the latest Viper 10 rom v4.2.0 built on Nougat 7.0 from venom roms on my VZW HTC 10 and it has Magisk 9.1 and Phh's superuser pre-loaded. All of my apps that require root work flawlessly except:

RepetiTouch Pro (root) https://play.google.com/store/apps/details?id=com.cygery.repetitouch.pro

It has worked well in the past, but with this new rom and systemless root, it doesn't even request root permissions. I contacted them for help, but they were drawing a blank and suggested that I look here for help. Any ideas for me or them?

Thanks in advance!
[Android Software/Hacking General [Developers Only]] androcraze:
Maybe posting a log on here would help?

The great news is that the developer responded! Many just ignore, so whatever the issue is, it might get fixed.
[Android Software/Hacking General [Developers Only]] PunchUp:
Alright, now there's a setting available to hide the launcher icon

Also, someone asked for the round icon. So, now there's one available for API 25+

And some other minor bug fixes and improvements

Plus, there's an "App shortcut" to quickly enable/disable Superuser. I'm currently not using Nougat. So if someone who is on 7.1.1 can test it, that'd be helpful :)
[Android Software/Hacking General [Developers Only]] yochananmarqos:
Yes, the app shortcut works with Nova Launcher. However, after using it to disable superuser, the shortcut text still said disable. Using the shortcut again restored access. Now the shortcut says enable, but of course using it will do the opposite and vice versa.
[Android Software/Hacking General [Developers Only]] Toutatis_:
Exact same behavior here. Latest DU test build and latest Action Launcher.
[Android Software/Hacking General [Developers Only]] PunchUp:
Well, I thought it should close as soon as you click on it. But since it's not (and also not updating the label dynamically), I'm afraid there's nothing I can do about it. The behaviour is controlled entirely by the launcher.
[Android Software/Hacking General [Developers Only]] JohnCorleone:
I have been having good success with the last update plus there's the option to add a shortcut to the quick toggles.. I can't remember if it was from an app I added or your Superuser....lets see about the new version on 7.0...
[Android Software/Hacking General [Developers Only]] Maverick_TN:
Update:

I just reset my device and was trying to get things started to capture a log.

I just launched the app while other processes were loading in the background still and it requested root and launched after I accepted.... Seems very odd.

I'll mess around with it and see what else happens with it, I can only assume that something may have been preventing it from requesting.

I normally run boot manager along with the xposed framework, but since it is not available for android 7 yet, I am waiting on the systemless version of it to be released for it.

Thanks for the help, I'll do some testing later and post a pastebin link for a couple of logs (Still haven't created an account yet and I see that they are having a lifetime pro sale for half off!)
[Android Software/Hacking General [Developers Only]] kartikb:
On Nexus 6P 7.1.1 with Google Launcher, there is no option to enable root again once it's disabled. Got root access again after restarting the phone. Is this normal?
[Android Software/Hacking General [Developers Only]] Tkkg1994:
Dear [MENTION=1915408]phhusson[/MENTION]

I use your root method on all my devices, it's great!

The problem is that on upcoming 3.0.3 TWRP an operator you use will be removed. So on your current r275 version I get following error due to removed support:

../bootimg.sh[69]: syntax error: '=~' unexpected operator/operand

Would it be possible for you to rewrite your code without using this operator so we could have support on 3.0.3 TWRP as well? Thanks for all your help!
[Android Software/Hacking General [Developers Only]] yochananmarqos:
Tap the shortcut again, it's a toggle. As mentioned several posts ago, the shortcut text will only change if you tap somewhere else after using the shortcut to close the dialog before using the shortcut again.
[Android Software/Hacking General [Developers Only]] PunchUp:
Hmm. Maybe I should just add two static shortcuts instead of one dynamic to avoid confusion?
[Android Software/Hacking General [Developers Only]] Primokorn:
[MENTION=5444464]PunchUp[/MENTION] Is it normal to not see 'Android system' in the Deny tab?
[Android Software/Hacking General [Developers Only]] PunchUp:
Thanks :)

And well, I started this to eventually replace the previous app. So, it will indeed be available in F-Droid and Play store as usual

Sorry but I haven't used Magisk and not aware of the exact changes he makes to phh's builds. So, someone else will be able to better assist you with this.

Yep that's normal. As long as you don't select "Forever" the apps won't appear under these tabs.

But I do have plans to try and create a separate 'Pending' tab perhaps for apps which are not permanently allowed/denied.
[Android Software/Hacking General [Developers Only]] Didgeridoohan:
Since Magisk phh's superuser is a Magisk module it cannot function without Magisk. If you want to continue using phh's superuser after uninstalling Magisk, just flash the one from this thread.
[Android Software/Hacking General [Developers Only]] craigacgomez:
[MENTION=1915408]phhusson[/MENTION], a bit more detail about this! TWRP uses mksh instead of busybox sh on 7.0+ with the upcoming 3.0.3 release which is why =~ is no longer valid.

https://github.com/omnirom/android_bootable_recovery/commit/0a8a7cebf154f7062174c4fac4a9c836038fbfbc
[Android Software/Hacking General [Developers Only]] BryanByteZ:
Just passing here to say thanks to the devs, I am running Mokee Release MM, my own kernel (ZER0 Byte Kernel), Xposed, A.R.I.S.E. and a few others mods working without problems I used the superuser.zip and downloaded the app from F-droid not a single problem with my root apps (+30) I wiped /system ,art cache and cache and flashed ROM + Mods , everything OK.

Moto G 2013 (Falcon).
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Hi all,

I'm trying to get su bind working but I still have issue.

I was looking into logcat and I saw selinux issues:

12-22 11:38:53.401 224 224 W su : type=1400 audit(0.0:6): avc: denied { read } for path="/sbin/su" dev="rootfs" ino=4592 scontext=u:r:su_daemon:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
12-22 11:38:53.401 224 224 W su : type=1400 audit(0.0:7): avc: denied { read } for name="stat" dev="proc" ino=4026534209 scontext=u:r:su_daemon:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
12-22 11:38:53.401 224 224 W su : type=1400 audit(0.0:8): avc: denied { read } for name="su" dev="rootfs" ino=4592 scontext=u:r:su_daemon:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0

And few lines later:

12-22 11:38:53.599 244 244 E su : Failed to copy su failed with 13: Permission denied

Here is my configuration:

Device: Nexus 4

Rom: cm-14.1-20161126-EXPERIMENTAL-AOH970N005-mako

Superuser version: 17 cm-su subind suinit

Superuser install option: eng (verity|noverity) crypt (I tested both)

I patched su binary in superuser.zip to include my fix (I don't know if it could cause selinux issue…)

Any help would be appreciate :fingers-crossed:

P.S. : I found nothing relevant using search in the thread… Maybe I missed something.
[Android Software/Hacking General [Developers Only]] Bach_J:
I've tried to switch from SuperSU to phh's superuser but I have some trouble.

I have a NOTE 2 with custom rom android 4.4.4.

I went to SuperSU and unrooted the device

I've downloaded superuser.zip and flashed it in TWRP but the process give the error:

support for complete SELinux not present
MTP enabled
...
seSuperuser: found booting @ /dev/block/mmcblk0p8
seSuperuser: generated /new-boot.img
Updater process terminated with error: 1
error during zip installation

Could you help me with this?

Thanks
[Android Software/Hacking General [Developers Only]] BryanByteZ:
Based on this seems a problem with selinux, did you dirty flash your rom? I went from SuperSU to phh su you check my steps a few posts ago.
[Android Software/Hacking General [Developers Only]] merlin21:
Please help, in twrp i could rw system partition. But when booted i could only read system.

Is this possibly a problem of superuser.zip? All apps that need root work like they should...

I tried manually mounting system with terminal. No success. Glad if anybody could help.
[Android Software/Hacking General [Developers Only]] 24imelqui:
what zip should I flash if I want to root a stock or custom ROM zenfone and samsung j7? The superuser.zip or superuser-r***.zip? Thanks!
[Android Software/Hacking General [Developers Only]] BryanByteZ:
When I root my device with this I used superuser.zip and worked beautifully.
[Android Software/Hacking General [Developers Only]] 24imelqui:
Do I removed phh root when I wipe my system thru TWRP then install custom ROM and OpenGApps? Thanks
[Android Software/Hacking General [Developers Only]] merlin21:
Whether your custom rom is pre rooted or you need to root again after that.
[Android Software/Hacking General [Developers Only]] coderus:
phh superuser 266-2 zip not wotking on OnePlus 3T with 7.1 Android, but (!) 266 works fine.

---------- Post added at 08:22 PM ---------- Previous post was at 08:15 PM ----------

Thanks, works fine on OnePlus 3T Android 7.1 ROM with Magisk v9
[Android Software/Hacking General [Developers Only]] Nomelas:
Hi [MENTION=1915408]phhusson[/MENTION], is there any way to get this to work to hide other specific apps from su detection? I'm looking to hide com.airwatch.androidagent from detecting root and would like to know if/how to configure this to work for this app.

Thanks for any support!
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Just use Magisk.
[Android Software/Hacking General [Developers Only]] Nomelas:
it doesn't work? i thought it only hides magisk detection and not root detection.
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
It hides root if you use the phh Superuser Magisk module. And it works perfectly fine for me and a lot of other people. But maybe your device isn't supported?

NOTE: You have to enable Magisk Hide and add Agent and Settings to the Hide list (and reboot, of course). But enough off-topic for this thread...
[Android Software/Hacking General [Developers Only]] HamsterHam:
I find this doesn't work for all apps. Sky Go still detects root.
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Wrong thread, but if you want to investigate further, post some logs of it failing in the relevant thread and maybe someone can figure out what's being detected, or if Hide is even working properly for you.
[Android Software/Hacking General [Developers Only]] Nomelas:
Thanks. Turns out I needed to completely remove all root and magisk then reinstall magisk from scratch. it works now.
[Android Software/Hacking General [Developers Only]] Vuska:
hi.. sorry for noob question as i just use phh superuser, before that i'm using supersu.

I have one problem..... with Terminal emulator named Termux, when i type su, then a message : "no su program on this device....."

i want to run scripts from GovTuner.

What to do to make it run ? to make terminal recognize "su" command...
[Android Software/Hacking General [Developers Only]] mrjuniork:
Hello.

I'd like to know how to completely remove superuser from my phone. Thx in advance
[Android Software/Hacking General [Developers Only]] VictorLapin:
I'd tell you don't have superuser installed. Have you flashed the zip?
[Android Software/Hacking General [Developers Only]] Vuska:
Yes.. i dont flash first page superuser.zip ... but i already flash phh superuser magisk r266-2

I see i already have root.. or it isn't ?

Maybe this screenshot can describe something.. sorry my poor english.

What to do then ?
[Android Software/Hacking General [Developers Only]] Lrs121:
works on multirom with nvidia shieldtablet
[Android Software/Hacking General [Developers Only]] ndrancs:
[MENTION=231896]dev[/MENTION], please to make the Superuser.zip compatible with Sony Xperia devices.
[Android Software/Hacking General [Developers Only]] phhusson:
Please send me a Xperia or the /tmp/recovery.log and the actual problem. (It doesn't flash? it doesn't boot? it kills recovery?)
[Android Software/Hacking General [Developers Only]] Haul:
I flashed boot-angler-MMB29P-su-eng-r162.img followed by the current version of https://superuser.phh.me/superuser.zip . I then updated the APK from the Google Play Store. After rebooting the phone, the APK gives a notification that the su binary is out of date. However, Superuser still appears to be functioning just fine.
[Android Software/Hacking General [Developers Only]] spacetaxi:
Hi phhusson, thanks for all your work! Is the superuser.zip up-to-date? Or should we flash the latest boot.img instead?
[Android Software/Hacking General [Developers Only]] phhusson:
Right, I've updated the superuser.zip now. You can reapply it to update your su.

This su adds support for su --init and su --bind commands (can be found by parsing su -v, it will show subind and suinit)

You can su --init /data/data/myapp/script.sh and this script will be started on boot

You can su --bind /data/data/myapp/hosts:/system/etc/hosts and on boot (needs reboot) /data/data/myapp/hosts will be copied to a tmpfs, and mount --bind-ed to /system/etc/hosts.

This enables modifying /system's content without disabling/tripping dm-verity.

One can su --bind --ls or su --init --ls to show the list of current binds, and inits. If it is called from an app, it will show only app's files/inits.

Finally, to disable an init or a mount, do su --init '!/where/is/my/script' or su --bind '!/system/etc/hosts'
[Android Software/Hacking General [Developers Only]] SkandaH:
[MENTION=1915408]phhusson[/MENTION]

Works perfectly on OnePlus One running latest stock (cm-12.1-YOG7DAS2K1). I've flashed superuser.zip from TWRP & installed SuperUser from Play Store.

Tested root access from Terminal Emulator, ADB Shell, Amaze File Manager.

Other Cyanogen OS supported devices should work just fine & you can find their official firmwares & boot-debuggable images from here. I'll try to provide feedback for ARM64 devices like YU Yureka Plus/YU Yuphoria ASAP.

For example, known-imgs/oneplus/bacon/YOG7DAS2K1 should contain:

http://builds.cyngn.com/factory/bacon/cm-12.1-YOG7DAS2K1-bacon-signed-fastboot-bed37f2e18.zip
boot.img

or

http://builds.cyngn.com/factory/bacon/cm-12.1-YOG7DAS2K1-bacon-boot-debuggable-e313aacb24.img

depending on your preference.

I'm maintaining firmware repo for couple of Cyanogen OS supported devices, so availability be shouldn't an issue.

Do hit me if you need anything more to add the devices in the supported list.

:good: :highfive:
[Android Software/Hacking General [Developers Only]] Inphi:
I've been using this on angler MMB29P and MDB08L (both eng), without problems.

I tested the new bind feature. I previously wrote that it didn't work. The reason was because i was creating bind as root (from the command line). By doing so as shell, I was able to successfully create the mount points. However, a had to reboot the device to get this working. Even the default /data/data/binds/hosts created by prepare_binds needed a reboot to work. Upon inspecting the source, i realized that creating binds merely edits the /data/su/binds file, but those edits are not applied until a reboot.

Tested with AdAway, ads are gone :). Will have to test with overlays and theming (might be tricky since i don't see a --rbind option and /system/vendor/overlay can contain multiple overlays therein).

There is an issue though. I created a bind of /data/data/bindtest to /system/etc, but i cannot remove it. I ran "su --bind '!/system/etc'" to remove. I also checked /data/su/binds, and i still see /data/data/bindtest in there. The remove bind command didn't return any errors or output on std[err,out].

I considered editing the /data/su/binds file. But, from the source, I see that it should be null term'd. So until there's a fix for this, would you recommend editing the file manually (and rebooting) to remove binds?