yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] tomekszy:
phh's SuperUser on Xperia Z3+ (ivy) for Android Pay

Hi,

I have some questions about phh's SuperUser and it's possibilities. So:

1. Is it possible to use phh's SuperUser on Xperia Z3+ (E6553) - I didn' see this device on compatibility list

2. Is it possible to use Android Pay with phh's SuperUser? The problem is that I don't only have a root, I also have unlocked BL. I heard that in some phones (e.g. OnePlus One) with out-of-the-box unlocked BL (not rooted, no Magisk, no Xposed), Android Pay isn't working only because unlocked BL. Is it possible to hide bootloader status somehow from Android Pay? Can it be done via phh's SuperUser or Magisk?

3. How to install? I've seen instruction installation, I know, that I should unroot current SuperSU, then flash zip via recovery (https://superuser.phh.me/superuser.zip), and after it install phh's aplication from market. But I've seen some boot.img images, should I also flash them? I haven't seen any for my device.

4. What other possibilities I get with phh's SuperUser comparing to normal SuperSU by Chainfire exept from hiding root status?

My phone is running Android 7.0 (FW version 32.3.A.0.376), unlocked BL, rooted by Chainfire SuperSU 2.79, kernel changed from https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605)
[Android Software/Hacking General [Developers Only]] pure.by:
No problem! If I helped, you can support me with Thanks button (-;

Did you manage to root yet?
[Android Software/Hacking General [Developers Only]] Mezabaru:
is r-275 currently the latest?
[Android Software/Hacking General [Developers Only]] Younex:
(As a safety measure, I suggest you search for "Xperia" , "Sony" or similar keywords on this thread, I just did and found that some people reported bricked devices but I don't know all the details.)

Sony firmware is very close to stock, but just to make sure, you could back up your current boot partition, try to root, and if it fails just restore the stock boot from your backup.

I see you are using a custom kernel, I'm no pro but since boot IMG has to do with kernel, you can also try going back to stock kernel if you can't get root on custom kernel.

I have a OnePlus One (bacon) and it did NOT have an unlock bootloader out of the box. I had to unlock it manually and it erased my data, which is normal.

To my knowledge you can't hide bootloader status, but then again I've never heard of such issues coming from OpO users...

If you're rooted and don't have something to hide root, then SafetyNet/APay will not work. You can add Magisk on top of phh's if you want to hide root.

You only need the superuser zip. There has been reports of failed unroot from SSU users, so I suggest you dirty flash your system/boot image to unroot properly.

Then flash the zip in recovery (if you edit config.txt, disable zip verification or it will fail) and the installer will automatically extract your boot.img and patch it for you (systemless root).

For features you can check the play store screenshots

---------- Post added at 12:30 AM ---------- Previous post was at 12:28 AM ----------

Have you tried booting first, before flashing the superuser zip ?
[Android Software/Hacking General [Developers Only]] tomekszy:
Ok, I have installed Magisk 11.6 (newest), and I just installed phh SU from link https://superuser.phh.me/superuser.zip (I unrooted Chainfire SU first). The problem is, that I think it's not a Magisk version, so Magist could not hide it (am I right?). If so, how can I uninstall non-magisk phh's superuser, and install magisk phh's superuser? Where can I download it (I couldn' find any working link for phh-superuser-magisk-r266-2.zip - this I assume is proper version of phh su for magisk)

About OnePlus One users with problems with Andrid Pay, because of unlocked BL I've seen somethreads here: https://forums.oneplus.net/threads/android-pay-issue-with-unlocked-bootloader.479371/ and here: https://xdaforums.com/pixel-xl/help/android-pay-unlocked-bootloader-t3484308.

Generally I've seen and heard, that Android Pay will not let you add a card if you have unlocked BL. So if I have unlocked BL, am I sentenced to live without APay EVEN if I do hide root?
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
Magisk now includes its own version of phh superuser. You do not need this one anymore.

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Remove all the su apps and start over with just Magisk. Search for unSU zip by osmOsis to remove Chainfire SuperSU and / or phh superuser.
[Android Software/Hacking General [Developers Only]] jhedfors:
This is not a Magisk thread.

Also, while Magisk used a modified version of PHH Superuser, and MagiskSU is based on PHH Superuser - Never has Magisk been compatible the version that is in this thread.
[Android Software/Hacking General [Developers Only]] tag68:
jhedfors, the question was how to remove phh superuser. That Magisk is the purpose, and it was already installed, just is ... blabla around. Explanation. Additional information in case it complicates removal of phh. The question is in the right thread.

My answer: To uninstall phh superuser, get the original boot partition of your ROM and flash it. If you don't have a Nandroid backup, you may take the original ROM and only flash the boot partition. (Afterwards you will need to flash Magisk again, as MagiskSU will be gone if installed also - but this is the next question and really fits in the Magisk thread).
[Android Software/Hacking General [Developers Only]] DavisNT:
[MENTION=1915408]phhusson[/MENTION] How this project is currently maintained?

I see that there are repos on https://github.com/seSuperuser/ and https://github.com/phhusson/, some repos (e.g. super-bootimg) are newer on phhusson, and builds on https://superuser.phh.me/ are 6 months old...

I just submitted a pull request to https://github.com/phhusson/super-bootimg (hope this is the correct repo?).
[Android Software/Hacking General [Developers Only]] samstheman42:
Got a popup prompting me to update the SU binaries, and upon tapping the notification it brings me to the SuperUser app, but then nothing... What do I need to do?

Through searching there was mention that the aforementioned notification would popup when a system is encrypted (which mine is), is that just a popup I'll have to ignore forever?
[Android Software/Hacking General [Developers Only]] dnle71:
It appears that a new beta update is in placed.

---------- Post added at 01:36 PM ---------- Previous post was at 01:36 PM ----------

You need to reflash superuser zip to update the binary.
[Android Software/Hacking General [Developers Only]] samstheman42:
I'll give that a try, thanks

Sent by means of the Electric Internet
[Android Software/Hacking General [Developers Only]] Tkkg1994:
Look at latest download link here:

https://superuser.phh.me/superuser-r310-beta.zip
[Android Software/Hacking General [Developers Only]] samstheman42:
Just to check, do you mean the new beta (dated 4/3 and 4.0mb) or the one from September '16 (3.7mb)?

Sent by means of the Electric Internet
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
[MENTION=1915408]phhusson[/MENTION]

Can you add in the boot.img the kexec patch for multirom ?
[Android Software/Hacking General [Developers Only]] phhusson:
The aim of the build-bot is to bypass the recovery step, if you use MultiROM, you have a reocvery, so you can just use superuser.zip.
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
Sorry my question wasn't precise enough. kexec is usefull for multirom MANAGER (the apk).

And a little question....

In which case superuser.zip is usefull ?

When using it ?

I open the zip to see, but it's a bit complicated for me ^^
[Android Software/Hacking General [Developers Only]] Lrs121:
Thats because its meant to be flashed from the recovery. It patches the boot image to enable root.
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
Some feedbacks...

Nexus 5 using MultiROM

- primary rom : UntouchedAOSP 6.0.1_r9 without Google services

root method with supersu.zip, boot, install of supersu.apk, then installation of EX kernel (to have kexec-harboot patch)

- secondary rom : Stock MMB29S highly debloated

root method with supersu.zip, boot, install of supersu.apk, then installation of EX kernel (to have kexec-harboot patch)

Sometimes at reboot, I have got a notification :

Install Superuser
The su binary is out of date

But the root is efficient

And when I open supersuser, see screenshot. I just tap Cancel and all works normaly
[Android Software/Hacking General [Developers Only]] Lrs121:
Make sure you have the latest superuser.zip and it should go away.
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
downloaded yesterday
[Android Software/Hacking General [Developers Only]] phhusson:
Latest SuperUser.apk then
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
v1.0.3.0 installed, the one available on F-Droid.

Just see some thing in the permissions app, see screenshots.

Impossible to keep the permission granted.
[Android Software/Hacking General [Developers Only]] phhusson:
Well, 1.0.3.3 should be available soon on F-Droid

Well I deleted this permission in 1.0.3.3 anyway...
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
Another way to DL the new version ?
[Android Software/Hacking General [Developers Only]] whowatchlist:
Deleted Post
[Android Software/Hacking General [Developers Only]] Zwulf:
Tried to install latest superuser.zip in TWRP 2.8.7.0 on my Sony Z3C (CM 12.1 official, stock CM kernel) resulting in "Error flashing updater binary in zip..."

Any ideas?
[Android Software/Hacking General [Developers Only]] phhusson:
Can you get the /tmp/recovery.log from TWRP?
[Android Software/Hacking General [Developers Only]] FoxysWorkplace:
Please?

I have a Nexus 7 2013 LTE {flo/deb} (Razorg) and sometimes I time myself unbricking it with the stopwatch app on my nexus 6! (No I am not joking.) Sometimes I intentionally install incompatible Xposed modules just so I have an excuse for booting into TWRP AND I would be honored if you'd allow me the opportunity to auto-patch my boot.img with your exciting SELinux Superuser!

Just one question: I also use the ElementalX aroma installer to patch boot.img is this supported and would I patch the boot.img in the same order/sequence as used when combining elementalx and latest BETA SuperSU.zip ?

:fingers-crossed:
[Android Software/Hacking General [Developers Only]] adrman:
I hate to be "That Guy", but please don't quote the entire op. You might want to edit your post and trim it back.
[Android Software/Hacking General [Developers Only]] androcraze:
http://superuser.phh.me/nexus/razor/

You can't use the images from here?
[Android Software/Hacking General [Developers Only]] FoxysWorkplace:
So you are "That Guy" ! I've been looking for you...

Unfortunately I was P.U.I. and meant to post what the edit looks like now. That was a huge accident. People like me can sometimes benefit from friendships with people like you. :) If you would be so kind as to hit my profile occasionally and PM me (Instead of off topic posts e.g. the one I'm typing right now!) if you happen to catch any more accidents I'm sure I can find some way to repay the favor!

---------- Post added at 05:28 PM ---------- Previous post was at 05:16 PM ----------

Generally .img files for razor and razorg I suspected would be incompatible but actually now that I think about it razor and razorg are both flo/deb so the boot.img should be compatible just not system.img. I'll download factory images for both models and run diff and compare hashes or are you trying to tell me that your link is known to work for both despite the filename convention and I'm a dummy for not reading the entire thread before posting?
[Android Software/Hacking General [Developers Only]] androcraze:
PHH has converted the factory stock image (also in that same folder) with the correct modifications.

I used this method with TWRP and all worked well. You just install using "IMG" instead of "ZIP". As long as you set it to "boot", you don't have to sweat renaming it.

I had best luck with the "ENG" version.

- Download the image to your device

- Install the PHH SuperUser app/apk from the Play Store/F-Droid

- Reboot the device to TWRP

- Install the IMG

- Reboot and profit

AdAway requires a "systemless" patch in that XDA forumn.

---------- Post added at 17:54 ---------- Previous post was at 17:36 ----------

http://superuser.phh.me/nexus/razorg/

How about this?
[Android Software/Hacking General [Developers Only]] ilfrick:
[MENTION=1915408]phhusson[/MENTION] thanks! I installed the update.zip on galaxy I9505 with cm13 nightly and everything seems to be working. Backing up with tibu right now, will let you know whether I find anything unusual.
[Android Software/Hacking General [Developers Only]] dnle71:
Either but since you're unsure get the stable older one.
[Android Software/Hacking General [Developers Only]] phhusson:
Very poorly. I commit stuff now and then, fixing things and stuff, but I don't really have time to try to do proper tests and releases.

It doesn't mean this project is abandoned, nor that it doesn't work. I use it on my desktop quite often, and it sees new devices every few weeks. Since the zip part is almost identical to the version running on desktop, it should be quite stable, but still.

Anyway, I'd happy to have someone handle releases.

This would mean something like having a list of users with known devices, and have them test on those devices before releasing, and such.

This doesn't mean I would back off on fixing bugs, just that somehow would help me seeing the actual problems.
[Android Software/Hacking General [Developers Only]] AdamT6:
Edited superuser-r310-beta.zip for noverity and nocrypt with Zarchiver. My first success with editing and flashing a zip in TWRP (latest, 3.1.0.0).

Extracted config.txt. Deleted it from the archive. Edited it (with Amaze File Manager text editor). Opened the archive and added the edited config.txt. Tested the zip. Rebooted and flashed successfully.

https://play.google.com/store/apps/details?id=ru.zdevs.zarchiver

https://github.com/arpitkh96/AmazeFileManager

Thanks for providing this and doing what you can phhusson!
[Android Software/Hacking General [Developers Only]] Younex:
I still can't figure out how you folks get r265, r275 and now r310 !!!

Which would be totally fine if i didn't have that temptation to get the lastest stuff everywhere... r259 works perfectly for me on 7.1.1, and I've seen reports of issues with newer releases...

I would love to test newer zips but i can only find r259, what am i missing ?
[Android Software/Hacking General [Developers Only]] Mezabaru:
Cheers mate Fancy seeing you here :).
[Android Software/Hacking General [Developers Only]] amnv:
Titanium backup doesn't work :crying:

Does not restore any app
[Android Software/Hacking General [Developers Only]] dnle71:
Try looking up in "/system/xbin" if there's an "su" file there and delete it or rename if you so wish. Then close Titanium backup from recents menu and relauch it again, you should be able to get it to work.
[Android Software/Hacking General [Developers Only]] Pkt_Lnt:
Try this. Recent changes to Google Play Services broke Titanium. This may not be your problem, but worth a try.

https://www.xda-developers.com/psa-...broke-titanium-backup-substratum-heres-a-fix/
[Android Software/Hacking General [Developers Only]] DavisNT:
I have tested Titanium Backup (different restore scenarios) with superuser-r310-beta.zip (on LG D855 with LinageOS nightly 20170403 and OpenGapps 20170404 nano) and it worked without any issues.

I have also tested that custom boot image patching script (in my case https://xdaforums.com/lg-g2/general/bump-supersu-t3273251) is being called during install (thanks for merging PR!). :)
[Android Software/Hacking General [Developers Only]] laolang_cool:
I meet issue when installing 310beta:

+ cd /tmp/tmp.uxt6y2

+ /tmp/superuser/scripts/bin/bootimg-extract /dev/block/mmcblk0p60

+ '[' -f chromeos ']'

+ mktemp -d

+ d2=/tmp/tmp.xCHQ2k

+ cd /tmp/tmp.xCHQ2k

+ '[' -f /tmp/tmp.uxt6y2/ramdisk.gz ']'

+ </tmp/tmp.uxt6y2/ramdisk.gz

+ gunzip -c

+ cpio -i

gunzip: write error code 32

gunzip: abort: write error on <stdout>

Segmentation fault

+ cleanup

+ rm -Rf /tmp/tmp.uxt6y2 /tmp/tmp.xCHQ2k

Updater process ended with ERROR: 139

I:Legacy property environment disabled.

I:Install took 0 second(s).

Error installing zip file '/sdcard/Download/MiMax/superuser-r310-beta.zip'

Updating partition details...

I:Data backup size is 3798MB, free: 10557MB.

I:Unable to mount '/sdcard1'

I:Actual block device: '', current file system: 'auto'

I:Unable to mount '/usb-otg'

I:Actual block device: '', current file system: 'auto'

...done
[Android Software/Hacking General [Developers Only]] DavisNT:
What recovery are you using? Have you tried latest TWRP?
[Android Software/Hacking General [Developers Only]] laolang_cool:
twrp 3.1.0
[Android Software/Hacking General [Developers Only]] Anand N v:
nice
[Android Software/Hacking General [Developers Only]] yury_z:
I got Root on Huawei P10. Thank you.

---------- Post added at 10:25 PM ---------- Previous post was at 10:12 PM ----------

Is it possible to add a complete deletion? For correct updates of official firmware.
[Android Software/Hacking General [Developers Only]] Jannomag:
Rooted P10, too. Works fine, thanks!
[Android Software/Hacking General [Developers Only]] partha_rc:
I rooted my Xiaomi MI 5 running custom DU ROM. Thank you.

Partha
[Android Software/Hacking General [Developers Only]] TheBigCatTheory:
I rooted the huawei p10 single sim, but i have some problems...for example, i install adaway and apply the hosts. If i reboot the phone and enter again adaway, it says that the host are not applied. I have to aplly again.

With titanium backup if a delete sistem app and reboot the phone, when it start, the app´s i delete are still there. I use algo root explorer and delete them from /system/app and the same thing.
[Android Software/Hacking General [Developers Only]] androcraze:
Read through the AdAway thread. There are instructions on using the newer systemless mode with PHH's su.
[Android Software/Hacking General [Developers Only]] yury_z:
More detail can be? Or a link. Thank you
[Android Software/Hacking General [Developers Only]] androcraze:
https://xdaforums.com/showthread.php?p=70940479#post70940479

https://xdaforums.com/showpost.php?p=70893473&postcount=8273

https://xdaforums.com/showpost.php?p=39144524&postcount=1
[Android Software/Hacking General [Developers Only]] yury_z:
Everything works, thank you.
[Android Software/Hacking General [Developers Only]] Eagle1337:
I can't this to work on resurrection remix with no ecryption no dm-verity. I've tried the beta, the one before that and superuser.zip

my config.txt looks like this: eng noverity nocrypt
[Android Software/Hacking General [Developers Only]] androcraze:
What device?
[Android Software/Hacking General [Developers Only]] Eagle1337:
MY bad, HTC 10.
[Android Software/Hacking General [Developers Only]] Darkness1:
Do you think it will be easy to port on MTK devices?
[Android Software/Hacking General [Developers Only]] wrecklesswun:
I have tried in vain to get this version of supersu working, but i get error 1 when flashing. I removed supersu, but can only root by reflashing 279... What am i doing wrong?
[Android Software/Hacking General [Developers Only]] androcraze:
Post a bug report to Github.

What device?
[Android Software/Hacking General [Developers Only]] wrecklesswun:
Mate 9. I suspect I am out of space on the system partition... But I'm not sure how to reclaim space. I've done a factory reset no go
[Android Software/Hacking General [Developers Only]] androcraze:
You shouldn't be writing to System, just Boot.img.

Can you reinstall the default boot.img for your ROM, reboot to TWRP, then try again?
[Android Software/Hacking General [Developers Only]] wrecklesswun:
i will give a go... Thanks for the clarification.

Sure enough that worked...It's funny, on my Nexus 6 usually the error 1 is not enough space on system partition and deleting unneeded system apps fixes it.

---------- Post added at 04:52 AM ---------- Previous post was at 04:04 AM ----------

twrp doesn't work now so i can't restore - any tips (besides moving to supersu which i don't want to do)?
[Android Software/Hacking General [Developers Only]] androcraze:
Not sure if it's a PHH issue or a TWRP issue. 3.1.0 TWRP was giving fits for some users on the N5.

Maybe someone here has some experience.... You should be able to backup with TWRP whether you have root or not, as TWRP is a "super-root" unto itself.
[Android Software/Hacking General [Developers Only]] kanabeach44:
Humm flashed it successfully, I am on LG G4 H815 MM 6.0, root ok but ...

At each phone system boot at the begining i see "superuser binary is not up to date" ... what is wrong ? !!
[Android Software/Hacking General [Developers Only]] abhinavk:
"Invalid Zip File Format"

Hello!

EDIT - I'm an absolute idiot. Sorry for wasting time - in case any other newbies are reading the solution below is:

Select all the INDIVIDUAL items that need to be within the folder and "compress" using whatever method you want.

DO NOT compress the unzipped folder as a whole.

Original Question Below:

To root, I need to modify the config.txt to read "eng noverity nocrypt".

I'm on a Mac - when I re-zip the folder after making this modification, TWRP is unable to install the zip - it gives me the "Invalid zip file format" error.

Is there any chance you (or someone) would be willing to post a version of the latest zip (from here: https://superuser.phh.me/superuser.zip) with the config.txt modified to read "eng noverity nocrypt"?

I'd REALLY appreciate it! This is the dumbest little error and on a mac I can't figure out how to zip the file to get around it.

Thanks in advance! [MENTION=1915408]phhusson[/MENTION]
[Android Software/Hacking General [Developers Only]] mojoswagger1980:
If i attained user via magisk, how much of this is applicable?

hi. nice job dude. magisk has a ton of potential and is most likely the future of android modding. anyway magisk, (12.0 btw) installs super easy gives me all green lights on 1 reboot . at this point i am rooted with supersu 2.79beta which magisk is totally cool with. i install a coupla modules look up and it says im rrooted but with user now (i didnt attempt ir intend for it ) i personally didnt care. chainfire isnt the owner/maintainer of supersu so i really dont object to the somwhat hidden install. heres my issue ...i only have root access via the magisk manager playstore apk isnt functional yet root is (better in my opinion :) i use a modded clear es file explorer from tbo that couldnt attain root access with su but had no issues with user. im running lineage based rom so small wonder . is there a module to link user app? should i repeat portion all of the top?
[Android Software/Hacking General [Developers Only]] Black-FR:
You are using magisk, with magiskSU?

If yes, then you are here in the wrong thread, as magisk has it's own superuser integrated, which is controlled via the magisk manager app.

But you could find a possible solution for your issue, within posting#2 of this thread:

https://xdaforums.com/apps/magisk/magisk-magisk-hide-troubleshooting-tips-t3561828

If you use phhSU, then I did say nothing.
[Android Software/Hacking General [Developers Only]] hyewiz:
Please I need help, I'm on note 5 nougat rooted with magisk and phh's SuperUser which I installed from Playstore, every time i get the message saying "

Install Superuser, The su binary is out of date

" when I click to run I get blank Superuser screen. Please see the 2 images. what am I doing wrong.

Thank you
[Android Software/Hacking General [Developers Only]] denloi:
Download the latest zip you can find on phh.superuser.me and then flash it via recovery.
[Android Software/Hacking General [Developers Only]] kobibn:
Not working