yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ashyx:
If your device supports fastboot or your tool supports flashing images then use cf_autoroot.

Also I don't really understand what you mean by impossible to flash twrp?

For what reason is it impossible? Is it even available?
[Android Software/Hacking General [Developers Only]] billyt1:
You could use KingRoot. If successful you can downlown a app called supersume from playstore it will swap supersu in place of KR. That's how I rooted my S5 back in the day and my Android TV box.

Also towelroot if it's build before a certain date
[Android Software/Hacking General [Developers Only]] KutiDaniel:
Is there a way to undo flashing after-effects? I flashed the zip, it uninstalled magisk and I can't reinstall. Says partition has been patched by an unrecognized app
[Android Software/Hacking General [Developers Only]] KaMyKaSii:
Just flash stock boot.img again
[Android Software/Hacking General [Developers Only]] Впся:
Что с этим тек том делать..?
[Android Software/Hacking General [Developers Only]] ktmom:
Translates to: "What to do with this tech ..?"

This is an English language forum. When you created an account, you agree to use English, even if that means you use an online translator before posting. You are permitted to post the English translation, then in the same post, include the untranslated text for clarity.

This is a method of obtaining root on a limited number of devices.

Это форум на английском языке. Создавая учетную запись, вы соглашаетесь использовать английский, даже если это означает, что вы используете онлайн-переводчик перед публикацией. Вам разрешено опубликовать перевод на английский язык, а затем в том же сообщении включить для перевода непереведенный текст.

Это метод получения рута на ограниченном количестве устройств.
[Android Software/Hacking General [Developers Only]] ktmom:
I've always been curious, how close was the Google translation? Was it understandable? [emoji848]
[Android Software/Hacking General [Developers Only]] IlluminatusII:
Google translte is quite good now. (Still bad for japanese:()

Is SU work with pokemon go and google pay today?
[Android Software/Hacking General [Developers Only]] ktmom:
I doubt Phh's or chainfire's for that matter will work with modern apps. Mask is the way to go add it offered advanced hiding options.
[Android Software/Hacking General [Developers Only]] phhusson:
Thanks for the report. It's good to know some Samsung ROM work. Though I still have work to do before getting to Samsung stock ROM support
[Android Software/Hacking General [Developers Only]] ilfrick:
[MENTION=4899086]alucard_24[/MENTION] [MENTION=5464206]AntaresOne[/MENTION] [MENTION=3545504]smeroni68[/MENTION] ciao guys.

I suggest you track this project.

Any chance this can become default in future JDCTeam releases? ;)
[Android Software/Hacking General [Developers Only]] adrman:
I wish I would have seen your post sooner. I've also been using this with angler MMB29P. The superuser.zip works quite well with Elemental X 1.05 as well if you're interested. Anyway, I tried to apply the bind mounts from terminal emulator to enable Adaway and like you, discovered they didn't work. However, now when I use su in terminal emulator, I see "root@angler:/data/data" and --bind --ls returns "1 |root@angler:/data/data". --bind -ls from adb shell returns nothing and my /data/su/ directory is empty. In any case, I'm trying to determine if this is normal and if not, how to remove it. I'll confess I hadn't paid much attention to the root level prompt in terminal emulator prior to this., so it may well be normal on this root and I didn't catch it. Any thoughts from you or [MENTION=1915408]phhusson[/MENTION]? Thanks.
[Android Software/Hacking General [Developers Only]] deadman96385:
Adding the Honor 5x

[MENTION=1915408]phhusson[/MENTION] could you add the Honor 5x here is the stock 5.1.1 boot.img for it, let me know if you need somthing else. It is using the standard boot.img format https://www.androidfilehost.com/?fid=24391638059059710
[Android Software/Hacking General [Developers Only]] phhusson:
You're not supposed to run su --bind from su/uid 0 itself

You must call it from your own uid

I need to implement AFH support...
[Android Software/Hacking General [Developers Only]] deadman96385:
Here you go i will host it on my website if that's easier

http://sean.sspencer10.com/stock_B130_boot.img
[Android Software/Hacking General [Developers Only]] adrman:
Thanks. You can add the Nexus 6P (angler) to your "superuser.zip successfully tested on" list. Also, in case you didn't notice it in my post with the question, it also worked on a custom kernel, Elemental X 1.05. That's what I'm running currently.
[Android Software/Hacking General [Developers Only]] BreckZeBoulay:
Another positive feedback :

Nexus 5, AOSP 6.0.1_r11 (feb 2016), secondary rom, superuser.zip.

Root granted !
[Android Software/Hacking General [Developers Only]] exploreresp:
Hello,

I'm on HTC A9.

Flashed it alright and installed the app.

Can't seem to make it work for some apps (AdAway, ES Explorer).

I'm S-OFF with TWRP and partition still encrypted.

Working for Nova Launcher.

Cheers !
[Android Software/Hacking General [Developers Only]] androcraze:
For AdAway 3.1, flash the "AdAway_systemless_hosts.zip" file from this post: http://xdaforums.com/showpost.php?p=39144524&postcount=1. You may have to uninstall AdAway, flash the zip, then reinstall AdAway. I'm using the DEV build, also included in that post (AdAway-release_Build-Jan.12.2016.apk).

If ES Explorer isn't working, I'd recommend Amaze File Manager (http://xdaforums.com/android/apps-games/app-amaze-file-managermaterial-theme-t2937314). It's open source, and works well with PHH's seSuperUser. 99% of my reasons for have a root-capable file manager involve setting permissions and copying files to /system; Amaze appears to work well under LP and MM.
[Android Software/Hacking General [Developers Only]] phhusson:
You're sure?

Sounds a total SuperSU-ism

What you can do instead is to call su --bind /data/data/hosts:/system/bin/hosts , tell AdAway to write to /data/data/hosts, and reboot (su --bind is only applied after reboot)

This most likely only means you are using dm-verity.

As mentioned at the beginning of the post, for AdAway you can just use su --bind

If you really want write access to /system, you can edit config.txt in superuser.zip and replace verity keyword to noverity

And reflash superuser.zip
[Android Software/Hacking General [Developers Only]] androcraze:
The zip works, and I don't have to type anything :)

"This flashable zip preps your device so that AdAway can remain pointed to /system/etc/hosts yet never actually touch your /system partition.

A prerequisite for using this is having one of the SuperSu systemless root installed."

"mount -o bind /su/etc/hosts /system/etc/hosts;" is what I'm seeing in the script.
[Android Software/Hacking General [Developers Only]] exploreresp:
I've configured the txt file with noverity and everything works great !

Thank for the great advice :)
[Android Software/Hacking General [Developers Only]] androcraze:
OK. Odd. It works for me, or at least AdAway and seSuperUser works; maybe the patch wasn't needed. I started with a fresh install, and flashed the AdAway_systemless patch first, then AdAway. Maybe my ROM doesn't care either way.
[Android Software/Hacking General [Developers Only]] Haul:
The new MMB29Q boot image worked just fine on 6P angler.
[Android Software/Hacking General [Developers Only]] sub77:
its working on moto g 1st gen. msm8226 integrated in slimrom6 [ eng noverity nocrypt ] tested es-fileexplorer, easysshfs and titanium backup. good work!

is it ok to integrate the superuser.apk into the rom, or do you want people get it from playstore?
[Android Software/Hacking General [Developers Only]] jamy015:
Hey, I just installed this and it's working great on my Nexus 5X.

I'd like to report an app incompatibility, though. I have tried the f.lux beta and it works with the 'eng' image, but not with the 'user' image.

f.lux asks for root and gets it, but on the user image, the tint of the screen does not change (which is the purpose of f.lux). On the eng image it works great.

Unfortunately, because the app is in a closed beta I can't link you to the APK. However, getting access to the beta is very easy. Just go to this thread on the f.lux forum for the instructions to register for the beta. Then you can download the APK.

Thanks a lot for your work on this SuperUser!
[Android Software/Hacking General [Developers Only]] Lrs121:
May I ask how you integrated it into slimrom?
[Android Software/Hacking General [Developers Only]] jamy015:
[HOW-TO] Use AdAway

Small mistake in your command... It should be /system/etc/hosts instead of /system/bin/hosts :)

My small tutorial on getting AdAway working:

Install AdAway from F-Droid (no need to flash any ZIP)

Open a terminal emulator or adb shell and run this command:

su --bind /data/data/hosts:/system/etc/hosts

Reboot your phone (command will not take effect unless you reboot)

Open AdAway preferences. Change the 'Target hosts file' (section 'Hosts File') to /data/data/hosts.

Go to the main AdAway screen and apply the ad blocking.

AdAway will ask if you want to create a symlink. Press NO!

Now, the status of AdAway will be 'Disabled', however this is not the case! Just close AdAway from the app switcher and re-open it.

Now the status will be 'Enabled'. That's it!

This is tested working on my Nexus 5X, and still works after a reboot! :D

[MENTION=1915408]phhusson[/MENTION], maybe you could look into getting AdAway working normally? Although it works now, AdAway still says that it's disabled after applying, and we have to close and re-open it for it to detect that actually, the hosts file is applied correctly.
[Android Software/Hacking General [Developers Only]] phhusson:
It is ok to integrate it in your ROM, thanks.

Thanks a lot for testing "user" variant!

I'll check that app. (perhaps ping me again tomorrow when my join has been accepted)

Thanks for your test and documentation!

Indeed, adding support of su --bind in AdAway is high in my todo-list
[Android Software/Hacking General [Developers Only]] Lrs121:
Ive been meaning to open an issue on github but integrating the superuser application into omnirom throws errors like no tomorrow and kills the build. I don't know if its the same with other ROMs such as cyanogenmod and the like. I'll throw up the logs on github when I can.
[Android Software/Hacking General [Developers Only]] adrman:
Thanks for this. Confirmed working on my Nexus 6p as well. I did have to do an additional reboot after closing Adaway for it to show as enabled however.
[Android Software/Hacking General [Developers Only]] vegetaleb:
Is it compatible with xposed? I wonder why some people can run xposed on A9 and some don't, could it be the superuser version?
[Android Software/Hacking General [Developers Only]] Lrs121:
The different versions, eng. user, ect, restrict access to different things. Eng is the only one that really gives access to the system and data partitions and is essentially equivalent to how SuperSU funtions
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Your Xposed problem has nothing to do with root. Post your issue to [MENTION=4419114]rovo89[/MENTION]'s github with appropriate logs and have him look into it.
[Android Software/Hacking General [Developers Only]] vegetaleb:
Already did, but as it will take time for him to answer I wanted to see meanwhile if I could find the culprit
[Android Software/Hacking General [Developers Only]] topaza:
Adaway not working

Hi, I just flashed boot-hammerhead-MMB29Q-su-user-r177.img on my Nexus 5.

Root is working fine for Droidwall. However Adaway just fails to write the hosts file although root request was permitted.

Worked fine on previous build. Any Ideas?
[Android Software/Hacking General [Developers Only]] androcraze:
You can:

- Flash the "systemless" patch included in the first post of the AdAway thread; it BINDs /system/etc/hosts to /su/etc/hosts.

- Download a terminal program, and BIND /system/etc/hosts to /data/data/hosts as shown in a search of this thread

- Flash my modified "systemless" patch that BINDs /system/etc/hosts to /data/data/hosts: http://www.mediafire.com/download/ta8iav6leamv0be/AdAway-PHH-seSuperUser.zip

For the above three options:

- Uninstall AdAway

- Flash the patch (or execute the command-line, then reboot)

- Install the app

- For the /data/data/hosts fix(es), enter the app preferences, change the "Target hosts file" to /data/data/hosts, exit the app, then run it again

- If it asks to "Create a Symbolic Link", say "OK"

Also:

Go to Settings -> Apps -> AdAway -> Permissions

Set "Storage"
[Android Software/Hacking General [Developers Only]] topaza:
Thanks for your fast reply!

It worked out of the box in the previous version without changing any path or installing any patch.

Have there been any changes in the recent android patch or in the root-image that made these changes necessary?
[Android Software/Hacking General [Developers Only]] androcraze:
I wasn't looking close enough.

Install the "eng" version, not "user". That's your issue. I was unable to get "user" to work with any of the root apps I use.
[Android Software/Hacking General [Developers Only]] topaza:
Thanks, that did the trick!

I was sure it worked with the user version prior to the patch but probably I already used the eng version...
[Android Software/Hacking General [Developers Only]] phhusson:
AdAway changes /system content, which "user" mode explicitly prohibits.

su --bind's aim is to have tools like AdAway work without changing /system partition, and with "user" mode.

So you might have had AdAway working previously with "user" variant using [MENTION=5793599]jamy015[/MENTION]'s tutorial, but that's all
[Android Software/Hacking General [Developers Only]] wleagle:
It works on htc one x9
[Android Software/Hacking General [Developers Only]] adrman:
I got Layers working on my N6P this am. Flashed the latest noverity boot img, then installed Busybox on Rails to system/xbin via recovery method (normal installation from android os is still blocked), then installed Layers Manager and Magpie from the store, applied Magpie from within Layers Manager and rebooted. All is working well and the previously applied bind mount for Adaway is still active as expected.
[Android Software/Hacking General [Developers Only]] vegetaleb:
[MENTION=1915408]phhusson[/MENTION]

Since I rooted my A9 with your superuser I have a buggy gallery app, it won't automatically find photos and pics folders.

I am trying to find what is doing that bug, could it be superuser or it has nothing to do with it?
[Android Software/Hacking General [Developers Only]] phhusson:
It sounds very unlikely to be caused by SuperUser
[Android Software/Hacking General [Developers Only]] vegetaleb:
Merci!

If you want to restore my TWRP untouched system (without stock recovery), should I :

-Wipe system/data

-Restore

-Flash your SU

Or Flash SU before restoring?

Or no need to flash the SU if I already did it before?
[Android Software/Hacking General [Developers Only]] Lrs121:
Since this root method only touches the boot partition. If you want to unroot you'll need to flash the original boot.img for your ROM.
[Android Software/Hacking General [Developers Only]] vegetaleb:
I don't want to unroot, just restore the system because no custom rom for european A9. The htc gallery app is buggy so I want to restore the untouched system + SU like if was flashing a rom
[Android Software/Hacking General [Developers Only]] Lrs121:
Then you should be fine just restoring the system partition. I've done it with twrp and fastboot on both my nexus 6 and shield tablet.
[Android Software/Hacking General [Developers Only]] .NetRolller 3D:
Superuser.zip fails to flash on a Note 4 (Exynos) running 5.1.1, with the following log:

Installing Superuser...

Archive: /cache/superuser.zip

unzip: zip flags 1 and 8 are not supported

cp: can't stat '/cache/install-recovery.sh': No such file or directory

Installing armeabi binaries...

Updating partition details...

Recovery used is TWRP, but IIRC I also tried with PhilZ CWM, with the same error.
[Android Software/Hacking General [Developers Only]] phhusson:
I think you're not talking about the superuser.zip from this thread

None of those messages make sense if you're using https://superuser.phh.me/superuser.zip
[Android Software/Hacking General [Developers Only]] wirelesskebab:
bricked my samsung tab s2 with superuser.zip via TWRP, it wiped out TWRP and everything. I was able to restore however. What did I do wrong? This was a completely fresh install besides TWRP btw.

Thanks.
[Android Software/Hacking General [Developers Only]] Lrs121:
You're details are lacking. What rom are you using (eg. stock, cyanogenmod, omnirom, ect.), what version of android is it. what steps did you follow.

Also [MENTION=1915408]phhusson[/MENTION], would it be possible to include some sort of hash file generation to the buildbot's build process? That way users can verify the integrity of their downloaded files.
[Android Software/Hacking General [Developers Only]] wirelesskebab:
I am using stock with TWRP and permissive kernel. It is 5.1.1 the steps I took were opening TWRP via reboot and installing the latest version... this wiped everything including the boot manager. [Samsung Galaxy Tab S2 8.0" (Wifi) SM-T710.

I was able to recover thankfully.
[Android Software/Hacking General [Developers Only]] phhusson:
I updated Nexus-es for monthly security updates.

This device doesn't seem to be supported officially by TWRP...?

Can you link me to the TWRP you used?

I guess you don't want to reproduce the experience to extract recovery.log?
[Android Software/Hacking General [Developers Only]] __B__:
[MENTION=1915408]phhusson[/MENTION] I just tested on a Motorola E 2015 XT1523 (surnia) and it worked with the update.zip approach, in Android 5.0.2.

Superuser is installed, and AfWall already asked for permission.

My question is: if I try to call su binary from adb shell (from TWRP and when already booted into system), it says "su not found". Is that the intended behavior?
[Android Software/Hacking General [Developers Only]] wirelesskebab:
http://xdaforums.com/tab-s2/develop...ipop-5-1-1-t3205686/post65598434#post65598434 is the TWRP that I used. I don't know how to give you a log, sorry.
[Android Software/Hacking General [Developers Only]] __B__:
[MENTION=1915408]phhusson[/MENTION] never mind su is working. Don't know what happened.

---------- Post added at 10:04 PM ---------- Previous post was at 10:04 PM ----------

[/COLOR [MENTION=1915408]phhusson[/MENTION] never mind su is working. Don't know what happened.
[Android Software/Hacking General [Developers Only]] phhusson:
I added root for Android N previews.

WARNING. This is a PERMISSIVE root. Google broke sepolicy file format without changing version. This is most likely a bug of this version, I'm waiting for the AOSP sources update to confirm.

As a remainder, download the su-eng img matching your device and the build on https://superuser.phh.me/nexus/

Then fastboot flash boot it

Install phh's Superuser from Play Store

And enjoy!
[Android Software/Hacking General [Developers Only]] Lrs121:
Working on nexus 6. Reminder to others some root apps may need updating to work.
[Android Software/Hacking General [Developers Only]] djh816:
Did you do anything special? I was running the N preview 1 and flashed this and stuck at Google logo :/ Going to restore my backup for now
[Android Software/Hacking General [Developers Only]] fiffan86:
I fastboot flashed the boot.img, and it booted up just fine for my n6.
[Android Software/Hacking General [Developers Only]] flopponator:
What about encryption on n? Will my phone stay decrypted if i flash this?
[Android Software/Hacking General [Developers Only]] biglil1:
I now have root, thanks! I dl'ed at work and flashed IMG in twrp all is well as of now
[Android Software/Hacking General [Developers Only]] killmastern3:
i flashed the image and my phone is now encrypted (shamu). Did i do something wrong? Its asking password to decrypt while entering twrp.
[Android Software/Hacking General [Developers Only]] jayfallen:
i flashed N6 with su-eng.img, some root apps work fine, Thanks.

Yet, some apps don't.

Busybox could not be installed, solid explorer doesn't have full access to system, couldnt delete or modify files.
[Android Software/Hacking General [Developers Only]] ManikandanGuru:
How could you flash an IMG in twrp? You need to use fastboot right or am I missing something.
[Android Software/Hacking General [Developers Only]] biglil1:
On the install page there is a button named" image". Select it and it'll show any .IMG on your device. Find the one you want to install select it then you'll be asked what type of image you want to flash select boot.
[Android Software/Hacking General [Developers Only]] killmastern3:
Looks like my data partition is corrupted.
[Android Software/Hacking General [Developers Only]] phhusson:
If you want an unencrypted root, you need to use su-nocrypt (I haven't tested this variant on Android N)

If you want to write in /system, you need to use su-noverity (I haven't tested this variant on Android N). Please note this will also disable encryption.
[Android Software/Hacking General [Developers Only]] noolis:
Ok until now,but i am confused....

Clean install of android N

Then flash recovery twrp 3

i want to have root to my phone,full access!

which boot.img to flash?

Also recovery asks for password,otherwise you can't do anything,only backups

Nexus 5x,android N
[Android Software/Hacking General [Developers Only]] killmastern3:
Thanks!! Flashed the su-noverity and i now have root working.
[Android Software/Hacking General [Developers Only]] Droidphilev:
After trying this out sadly enough i have to report that this didn't work. Was not encrypted before but the su-noverity version encrypted my device.
[Android Software/Hacking General [Developers Only]] adrman:
[MENTION=1915408]phhusson[/MENTION] Another M build popped up for Nexus/Angler after MMB29V, MHC19I. Any chance of updating for that as well? Thanks.
[Android Software/Hacking General [Developers Only]] cjkacz:
Can't seem to get this to work on N. Flashed the boot.IMG ,installed app from play store and it's just blank inside. Reboot tells me I need to install binaries but nowhere to do this.

Edit: I got it! No encrypt version worked
[Android Software/Hacking General [Developers Only]] phhusson:
Done. Thanks for the info
[Android Software/Hacking General [Developers Only]] Tung_meister:
Root is working on my Nexus 9 but I can't get rid of encryption (Android N)
[Android Software/Hacking General [Developers Only]] noolis:
which type of boot image?
[Android Software/Hacking General [Developers Only]] Tung_meister:
If that's directed at me I used:

boot-volantis-NPC56P-su-noverity-r181.img
[Android Software/Hacking General [Developers Only]] ridobe:
I haven't done this yet but did you format user data? I assume that would still be necessary. Also, according to the OP, noverity doesn't include nocrypt but in another post he says it does so I'm not sure. I think the nocrypt includes noverity.

Of course, these are my observations so far. I will be backing up and doing this tonight.
[Android Software/Hacking General [Developers Only]] Tung_meister:
I'll try the nocrypt version now and see if that results in no encryption - I'm not going to bother setting it up until encryption is removed. Yes I did format user data.
[Android Software/Hacking General [Developers Only]] ridobe:
Ah, good. Let us know how it goes.
[Android Software/Hacking General [Developers Only]] Tung_meister:
I've used the nocrypt version and formatted userdata using TWRP and I seem to have successfully got rid of encryption! I noticed that the boot img version is now 182 vs the 181 I used earlier so I don't know if it's down to changing boot image kind or the revision.

Edit: I'd been basing using the noverity based on the post from the other page but it appears that this is incorrect and what's written in the OP still stands. I've just tried the noverity again out of curiosity and it's resulted in encryption so using the nocrpyt is required for no encryption.