yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] PunchUp:
Here's a new update for the Superuser app I've been working on

- Reduced touch sensitivity of list items to prevent accidental swipe (you will have to hold down for about half a second before swiping left or right)

- You can now switch between allowed and denied apps by swiping at the bottom of the screen (near the center). This works pretty well on my device. If it doesn't on yours, please let me know.

- Some other bug fixes.

Also, I'd like to know what you think about the counters. Should I keep/remove them?
[Android Software/Hacking General [Developers Only]] Toutatis_:
Thank you for the update! I like the counters as far as I'm concerned.

Looks like I cannot switch between allowed and denied apps by swiping. I tried all the areas of the screen but it just keeps changing tab (Logs/Apps/Settings). Touching "Allowed" and "Denied" works just fine though. I have a Nexus 6P.

PIN Protection still makes the app crash but I guess you know it and it's not supposed to be fixed yet. :good:
[Android Software/Hacking General [Developers Only]] PunchUp:
That's strange. It's supposed to work as shown in the attached video
[Android Software/Hacking General [Developers Only]] Toutatis_:
Ok, I am an idiot. It works perfectly, I was trying to swipe higher... sorry! thanks for the video by the way
[Android Software/Hacking General [Developers Only]] FlemishDroid:
Is this working on the S7? I used it together with magisk on my S7 but that was a modded version and doesn't works without Magisk. I'm using Wanam Xposed again so no Magisk anymore. Thx.

Sent from my lightning fast SM-G930F (S7)
[Android Software/Hacking General [Developers Only]] cyberdionisio:
And also works in my Nexus 7 2013 stock 6.0.1. :good:
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
What version? It is fine on an older one but not the newest. Please post more information and be really helpful, thanks.

http://xdaforums.com/showpost.php?p=68597155&postcount=694
[Android Software/Hacking General [Developers Only]] drawde40599:
Thank you ! Much appreciated , that zip flashed just fine but it "bootloops" at the boot animation , I let it sit for a good 10min, it wasn't going to boot . I ended up just flashing the SuperUser zip and I'm Rooted But I can't modify anything in system, BBox won't install . Not sure where to go from here .

Stock Nexus 6P running NRD90U.

Edit: and I'm flashing these zips after fresh FastBoot flash of boot and system img .

TWRP 3.0.2-2 on a Encrypted device
[Android Software/Hacking General [Developers Only]] spacetaxi:
superuser-r242.zip can be installed on Nexus 6 running android nougat DP5 (NPD90G / TWRP 3.0.2) with "eng verity crypt" config, but installation is failing with "eng noverity crypt". The last version working on NPD90G / TWRP 3.0.2 with "eng noverity crypt" config is superuser-r197.zip.

The attached zip file contains the successful/failed recovery.logs from r242 verity/noverity installations.
[Android Software/Hacking General [Developers Only]] cyberdionisio:
I've flashed the stock boot image and system from the last Google factory image (6.0.1 - MOB30X) to erase all traces of SuperSU, then flashed last TWRP (3.0.2), rebooted to recovery and flashed succesfully the last version from OP.

Hope this helps.
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
So you mean r242? There are many files linked in the OP. ;)

Did you edit anything in the config file in the zip?
[Android Software/Hacking General [Developers Only]] cyberdionisio:
I think this always links to latest version: "https://superuser.phh.me/superuser.zip".

I've downloaded yesterday, so yes, it's version r2.42.

No, i didn't edit anything, just flash it.
[Android Software/Hacking General [Developers Only]] bebawa@polyfaust.com:
Tried all versions till date of superuser.zip. Each one aborts flashing with error 1 .Device is an Xperia Z1 on Aosp with selinux completely disabled.I suspected this may be the issue so tried flashing on stock rom got same error.
[Android Software/Hacking General [Developers Only]] westeight:
Two minor requests:

1. The option to delete the logs doesn't work. Long pressing the bin icon does give a 'delete' pop-up, but it doesn't delete anything.

2. A dark theme! :)
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
2 - [MENTION=5444464]PunchUp[/MENTION] is working on one already, check his posts for test versions, just a few posts above this.
[Android Software/Hacking General [Developers Only]] westeight:
Just tried it. Not working for me:
[Android Software/Hacking General [Developers Only]] headcheese:
having some problems with superuser eng on the latest nougat for 6p as well. adaway wouldn't work after flashing systemless hosts multiple times, led me to try busybox and one of the installers worked, the other didnt. it grants su to terminal emulator and works just fine.

hit a dead end here. im gonna go back to stock system.img and boot.img not sure what i am doing wrong.
[Android Software/Hacking General [Developers Only]] PunchUp:
Can I get a logcat?
[Android Software/Hacking General [Developers Only]] westeight:
My HTC 10 wouldn't reboot after flashing, so I had to dirty flash latest LeeDroid.

Removed SuperSU and installed phh's SuperUser. Installed the phh app from the Play Store.

Root isn't working for some reason though:
[Android Software/Hacking General [Developers Only]] PunchUp:
I cannot help you with this, sorry. Perhaps phh will answer

Regarding the crash you mentioned earlier, it'd be helpful if you provide a log
[Android Software/Hacking General [Developers Only]] westeight:
Took the opportunity to upgrade to the latest LeeDroid stable, so the boot loop was useful :)

For some reason, only phh-superuser-17-magisk.zip works.

Hoping someone else has your version working on their HTC 10 and can report success. :cowboy:
[Android Software/Hacking General [Developers Only]] PunchUp:
A quick update before I start to cleanup the code and finalise everything for official release. Here's the apk

- Pin protection crash is fixed

- Some other minor UI changes
[Android Software/Hacking General [Developers Only]] mos388:
How unroot with phh's?

Enviado desde mi Nexus 6P mediante Tapatalk
[Android Software/Hacking General [Developers Only]] Wlkchnbndgr:
I have a HTC one m7 with aicp (Android 6) . whitch ZIP must i use to work with magisk?
[Android Software/Hacking General [Developers Only]] Toutatis_:
Has anyone ever had this error when trying to change DPI on Dirty Unicorns ROM?

I assume Superuser doesn't even ask whether Settings app should be granted with root access or not, since Settings app doesn't even appear in logs.

"Superuser Access" is set to "Apps and ADB", "Automatic response" is set to "prompt" (I also tried with "allow" but it doesn't make any difference).

It worked fine before with SuperSU. I have no issue with the other apps requiring root access by the way.
[Android Software/Hacking General [Developers Only]] repulse:
[MENTION=1915408]phhusson[/MENTION] could this work on a LG G2 stock based rom ?
[Android Software/Hacking General [Developers Only]] Sam Nakamura:
Your efforts are great, I really appreciate it and like the makeover of the app, the new design [emoji106]

Just two things, it's shown blank in the app drawer, so no icon, and I had to uninstall the play store app cause otherwise I won't install successfully...

? Sent from my lovely 1+2 ?

▫️ powered by Phh's Superuser ▫️
[Android Software/Hacking General [Developers Only]] Toutatis_:
I never had any custom icon actually, even with previous versions (2.01, 2.02).

That's normal, [MENTION=5444464]PunchUp[/MENTION] apk isn't compiled with the same signature than the Play Store version, so you can't install it over.
[Android Software/Hacking General [Developers Only]] PunchUp:
Icon will be added soon. I was just busy with rest of the stuff :p
[Android Software/Hacking General [Developers Only]] christpunk01:
I'm on Nougat NRD90U OTA on Nexus 6P and using Magisk and the modified version of phh's Superuser from that thread. Working great with AdAway and other root apps. I flashed systemless hosts for AdAway just in case. Some root apps need to Superuser to be toggled to Permissive but Magisk handles that flawlessly.

It was the only way I could get root to work properly even after using the boot.img. Just flashing the zip threw error 1's at me.

Hope that helps ya.
[Android Software/Hacking General [Developers Only]] RDDraco:
How can I revert back from this to chainfire Su?

For some reason AICP settings don't support this superuser

edit: Nvm apparently dirty flashing the rom works as well.
[Android Software/Hacking General [Developers Only]] frap129:
Will your app be OpenSourced at some point? That's the main reason I switched to phh's Superuser, from SuperSU so I hope you'll do the same once you think its ready.
[Android Software/Hacking General [Developers Only]] aamadorj:
Going open source is the goal of [MENTION=5444464]PunchUp[/MENTION]. See this previous post at this thread: http://xdaforums.com/showpost.php?p=68557339&postcount=648
[Android Software/Hacking General [Developers Only]] frap129:
Guess I should have read back a little farther, thanks for pointing that out!
[Android Software/Hacking General [Developers Only]] androcraze:
Is this correct?

3 ways in installing AdAway and PHH's SuperUser:

1. Standard (not systemless): Overwrites the /system/etc/hosts file, and increases its size

- Flash the PHH boot.img or the PHH superuser zip

- Install the PHH superuser APK file from F-Droid or the PlayStore

- Install and launch AdAway, "Download files and apply adblocking"

2. Symbolic link (not systemless): Replaces the /system/etc/hosts file with a symbolic link pointing to /data/data/hosts

- Flash the PHH boot.img or the PHH superuser zip

- Install the PHH superuser APK file from F-Droid or the PlayStore

- Install and launch AdAway.

- In "..." -> Preferences -> Target hosts file, select /data/data/hosts

- Exit AdAway.

- When prompted to create a symbolic link, select Yes

- Launch AdAway, "Download files and apply adblocking"

3. BIND to /data/data/hosts (systemless): Uses BIND to link /data/data/hosts to /system/etc/hosts

NOTE 1: If you already used method #1 or #2 above, you'll need to re-flash your system.img again; those methods both break "systemless".

NOTE 2: This method is a cludge with AdAway.

NOTE 3: It has to be run as "user" not root (a zip install executing the BIND command will not work)

NOTE 4: Upon reboot /data/data/hosts will have been copied to tmpfs and a 'mount -o bind' will be made to /system/etc/hosts. You can confirm in TWRP (by copying /system/etc/hosts to /sdcard), that /system/etc/hosts is really unchanged. Or running 'umount /system/etc/hosts' should also reveal the original hosts file in it's place.

- Download a terminal program (HERE is an example)

- Open the terminal

- Type the command "su --bind /data/data/hosts:/system/etc/hosts" (without the quotes, and again not as root).

- Open AdAway

- In AdAway, select /data/data/hosts in "..." -> Preferences -> Target hosts file

- In AdAway, select "Download files and apply adblocking"

- When prompted, DO NOT create a symbolic link! AdAway will say it's disabled, but it's actually running.

- Reboot the phone

- Every time you update the "Download files and apply adblocking", it will show as disabled. Ignore subsequent symbolic link requests.

EDIT: #3 does not work, or it's not persistent on my N5. Ads appear to be blocked for a while with Lightning Browser, but slowly start appearing on a page refresh.
[Android Software/Hacking General [Developers Only]] ridobe:
I cannot get any of these three options to work. First one just flat out refuses to overwrite the hosts file. Second one won't let me create the link. The third one and the preferred one gives me the "BIND: distant file not unique. I refuse" error. I've tried that all of these options in: 1. the app you suggested 2. recovery terminal and 3. adb shell.
[Android Software/Hacking General [Developers Only]] reas0n:
[MENTION=1915408]phhusson[/MENTION] Is it just me, or adb -s *adb id* shell "su -c '*command*'" doesnt work?
[Android Software/Hacking General [Developers Only]] phhusson:
Yup, adb sucks, it cut words on spaces. Even if there are some

adb had some improvements in N which would fix it, but you need a recent enough adb. (I'm actually not sure if it made it to N release or if it's still only in master)

I think that what most people do is something like "echo rm -Rf / | adb shell su"
[Android Software/Hacking General [Developers Only]] spacetaxi:
[MENTION=1915408]phhusson[/MENTION] I'd like to kindly draw your attention to my previous post: http://xdaforums.com/showpost.php?p=68624979&postcount=743

If you need more information to get this fixed, just let me know. Android 7 may be released for Nexus 6 anytime now, so I'm very interested to get your latest superuser version working on it.

Thanks in advance!
[Android Software/Hacking General [Developers Only]] phhusson:
Problem found. Can you test with http://phhusson.free.fr/superuser-r244.zip ?
[Android Software/Hacking General [Developers Only]] reas0n:
well, it actually works with Chainfire's SU, but not here. Also I'm using 1.0.35 ADB. Are You sure that .36 from 7.0 branch would fix it?
[Android Software/Hacking General [Developers Only]] spacetaxi:
Now installation was successful with verity and noverity. I've tried both variants. Thank you! :good:
[Android Software/Hacking General [Developers Only]] phhusson:
I'm suprised, I can't see how it could work with SuperSU.

Would you have an example command which works on SuperSU but not on phh's SU?
[Android Software/Hacking General [Developers Only]] reas0n:
just every su -c command like

Output is empty every time.
[Android Software/Hacking General [Developers Only]] androcraze:
Which device?
[Android Software/Hacking General [Developers Only]] PunchUp:
Have you changed Superuser access to "Apps and ADB" btw?
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Did you already try flashing the zip in the OP?
[Android Software/Hacking General [Developers Only]] BarrOff:
Yes, i did, but it says:

failed to read updater-script entry from /sdcard/superuser

:(

Could it be related to flashing it on a secondary Rom in Multirom?
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
It could be. Do you have the full recovery log?
[Android Software/Hacking General [Developers Only]] BarrOff:
Sorry, but i don't know how to get one.

Can you teach me to?
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
In TWRP, either adb pull /tmp/recovery.log after flashing or from the Main Menu in TWRP, Advanced -> Copy Log to SD, and the console will tell you where the log was copied.

If you're using a different recovery, you'll have to search and figure out how to pull the log yourself (I'm sure someone around here knows and has explained it before).
[Android Software/Hacking General [Developers Only]] BarrOff:
Thank you for your help, adb worked.

The log is attached, I hope it helps.
[Android Software/Hacking General [Developers Only]] phhusson:
Sounds like the superuser.zip you pushed is corrupted
[Android Software/Hacking General [Developers Only]] BarrOff:
What can i do to fix this?

PS: i just used the zip from your Opening Post (sorry, if i should have said this earlier)
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
He's saying you have a bad download. Download it again.

[MENTION=1915408]phhusson[/MENTION] what's the checksum of the current superuser zip (or is the zip signed)?

EDIT: I have an MD5 of 35d50255f75ec84eb1583f84576a9078 and shasum of d87c45ad2cec5a8e1ae8c092be2bbaea7a23f6f6 from my download.
[Android Software/Hacking General [Developers Only]] BarrOff:
I got the same hashsums for my version, so I guess it is either related to multirom, AOSParadox Rom or the zip itself.
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Hm yeah. The log says the below:

Flashing ZIP file /sdcard/superuser.zip
ROM: AOSParadox-Test
Preparing ZIP file...
rm: can't remove '/tmp/mr_update.zip': No such file or directory
I:Running cmd "mkdir -p /tmp/META-INF/com/google/android/"
[B]minzip: Bad data length 0
Failed to read updater-script entry from /sdcard/superuser.zip!
[/B]I:Set page: 'action_complete'
I:operation_end - status=1

The "minzip: Bad data length 0" is what suggests a bad zip, but maybe something in MultiROM TWRP is preventing minzip from being able to open the zip. I couldn't tell you what that is, though. I don't think I've tried flashing this to a ROM in MultiROM TWRP yet. Maybe I'll test this on my device and see what happens.
[Android Software/Hacking General [Developers Only]] BarrOff:
There are also problems flashing marshmallow roms in secondary slots.

So if i want to update my secondary mm rom i have to switch it with a primary lollipop rom, update it as a primary rom and then switch back.

Maybe it's the same here?

I guess I'll try it out tomorrow and let you know the result.
[Android Software/Hacking General [Developers Only]] phhusson:
Edit: Not working. I'm checking with [Mention]CaptainThrowback[/mention]
[Android Software/Hacking General [Developers Only]] FredFS456:
I have a Nexus 5x (currently bootloader locked and stock, but won't mind unlocking in a jiffy). You said you needed testers on different devices - what can I do to help?
[Android Software/Hacking General [Developers Only]] ssuds:
This is awesome.

I'd love to help with testing, currently using an LG G3 D851.

If I understand correctly, adding a link to the factory image in the super-bootimg source will allow the build bot to spit out a version of this that should in theory be compatible?

If that's the case, the stock image for my phone is located at http://xdaforums.com/tmobile-lg-g3/general/stock-rom-d851-20g-flasheable-zip-07-oct-t3219927 , I don't think the factory image is hosted on LG's site anywhere and if it is it's probably in KDZ form.
[Android Software/Hacking General [Developers Only]] phhusson:
At the moment, I need a direct downladable link, but AndroidFileHost provides an API, so I'll see what I can do.

Though on devices with custom recoverys and no verified boot, it is not really useful to have it in the bot. (Well it makes rooting skips few steps)
[Android Software/Hacking General [Developers Only]] Martin_Devil:
Work on LG G4 on CyanogenMod13.

Pls, add link on super user apk on thread
[Android Software/Hacking General [Developers Only]] phhusson:
Good point, done. Thanks for the test.
[Android Software/Hacking General [Developers Only]] BarrOff:
Seems to work on Oneplus One with AOSParadox Rom 2.0 :D

Will report how it is working. Wish i could help more than just testing...

Edit: i was wrong, now it is just possible to flash the zip but there is a notification of the "su being outdated". So it is not working. Screenschot and recovery log attached.
[Android Software/Hacking General [Developers Only]] phhusson:
You're using MultiROM. This superuser.zip is known to be not working on MultiROM.
[Android Software/Hacking General [Developers Only]] ridobe:
Shamu. DP5. Flashed using superuser-r242, eng, noverity, nocrypt.

edit: more info
[Android Software/Hacking General [Developers Only]] reas0n:
yup! checked this one twice.
[Android Software/Hacking General [Developers Only]] headcheese:
i am having the exact same issue with the bind command. not unique i refuse. using a 6p.

edit: never mind fixed it! stokholm helped me out a bunch!
[Android Software/Hacking General [Developers Only]] stokholm:
Sounds like it never worked. Delete /data/su/binds and start over with my directions from http://xdaforums.com/showpost.php?p=68608082&postcount=714

Check the output of "mount | grep hosts" (as root, after a reboot and after you did all of the steps.

Delete /data/su/binds, start over, look above.
[Android Software/Hacking General [Developers Only]] phhusson:
I know my su --bind is complicated from a user point of view.

I kind of hoped to make a PR to AdAway to handle su --bind, but I couldn't find the time for that...

So, thanks for your documentation in the mean time.
[Android Software/Hacking General [Developers Only]] ridobe:
Deleting the existing binds folder was the magic. The binds are already there after a fresh install. Why don't they work out of the box?

Thanks for your help with this. It's been driving me nuts.
[Android Software/Hacking General [Developers Only]] stokholm:
The binds are not there out of the box. But the binds file resides on your data partition, so restoring the boot partition won't get rid of them (as you might have thought).

Edit: Damn autocorrect.
[Android Software/Hacking General [Developers Only]] danilo_scala:
thanks, great work friend, i can install in xperia z5 premium e6883 androoid 6.0.1? thanks
[Android Software/Hacking General [Developers Only]] jesssiii:
Do you mean eng NOverity nocrypt?

Nexus 6P
[Android Software/Hacking General [Developers Only]] cthulhu1987:
Is there any way to deactivate the tapjack-protection? I use apps (Rotation control and Extended Controls), that are apparently recognized as overlay-apps and the no overlay protection xposed module doesn't help.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
[MENTION=1915408]phhusson[/MENTION] is there a boot image for the latest version of nougat for Angler (NRD90U)?

Using 197 or 242 zip the phone has root access, but the build prop can not be changed, busybox and many other things can not be completed.

However, if i install any aftermarket kernel; the build.prop can be edited, busybox can be installed and etc.
[Android Software/Hacking General [Developers Only]] phhusson:
If you want to modify stuff in /system, you need the "noverity" variant
[Android Software/Hacking General [Developers Only]] _XblackshadowX_:
Hi [MENTION=1915408]phhusson[/MENTION]...is HP Slate 7 Plus supported by your superuser app?? I wanna give this a try because of Magisk...i discovered that SuperSU wont work much with Magisk's unmount root...and then the forum referred this superuser app of yours and based on it the unmount root works and i feel like its going to be awesome with it, and based on the reviews...it works great so now i wanna also give it a try...but one question again, is HP Slate 7 Plus supported? Thanks in advance

I had to use Magisk along with this superuser app (hopefully) because i wanna pass thru the SafetyNet check...Pokemon GO had implemented a SafefyNet check a few weeks ago and i wanna bypass it...since am not a hacker anyway

And btw one more question...what is the diff. Between no-verity (/system access and i want that) and no-crypt (/system access then?)? And what is user mode? Will it help bypass the SafetyNet security? Thanks
[Android Software/Hacking General [Developers Only]] phhusson:
That sounds like a really bad idea...

nocrypt variant implies both nocrypt and noverity flag (cf https://github.com/phhusson/super-bootimg/blob/master/build.sh#L36)

nocrypt flag only means that /data is not encrypted.

noverity flag means /system is not dm-verity protected.
[Android Software/Hacking General [Developers Only]] spacetaxi:
I've experienced something strange with Android 7 DP5 (NPD90G) on Nexus 6: I changed /system/etc/hosts but there was no alert during boot afterwards!? This was the same for all 3 variants:

stock boot.img (without superuser)

boot.img with verity-superuser

boot.img with noverity-superuser

How can that be??
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
There is no boot image for NRD90U build on your site. Fortunately, changing the config.txt to noverity within the .zip worked like a charm.

Thanks.
[Android Software/Hacking General [Developers Only]] PunchUp:
Well the person wanted verity. So that's what I gave him.

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

I think SuperSU offers an option to disable it. But I agree with phh. This is quite dangerous.
[Android Software/Hacking General [Developers Only]] BarrOff:
Hello,

can confirm r242 is working on slim6 for oneplus but not on omni based roms. Thanks for your hard work phhusson!