[2016.10.10] suhide v0.55 [CLOSED]

Status
Not open for further replies.
Search This thread

GeTex

Senior Member
Aug 28, 2013
2,185
1,263
Fallon, NV
yo, I've been behind and didn't see another @Chainfire project, is this effectively rootcloak if it actually worked? And from what i see, it actually works against safetynet?
 

thunderteaser

Senior Member
Jul 22, 2010
830
296
Soft reboot bootloops

Now that we know what the issue is, yes, it can be fixed.

That's good to know! I won't do the workaround this time, I can wait till next update. And speaking of that, will you pretty please look into my previous bug report? I couldn't get anyone to try and confirm it though...

I know we won't see an update soon (or at all) however I thought about sharing a bug report several days ago but always forgot, however:

suhide 0.54 not only introduced some random reboots, but totally screwed up soft-reboots resulting in endless boot-loops. This is true when random rebooting or manually soft-rebooting. Normal startup/reboot works just fine. This bug was carried along in 0.55. Removing suhide or downgrading to 0.53 solves the issue.

OnePlus One with @Sultanxda's latest Unofficial CM13.

Oh and thanks for all of your efforts, @Chainfire. Been looking up to you since the i9000 days (aaah...), but never had a chance to say thank you. :)
 

desztan

Senior Member
Jun 19, 2008
507
12
Thanks chainfire for the hard work. I'll wait for the next release.

Sent from my SM-N915G using Tapatalk
 

dratsablive

Senior Member
Feb 20, 2011
1,325
250
HARRISBURG
Right now have Root Switch working with SU R1/SU 55 and able to use PoGo and Android Pay but Safetynet is giving me the Blue Screen. That's good enough for me.
 

Federixbest

Senior Member
Mar 14, 2016
82
4
Bari
Nothing to do for me...
Situation: CM13 + suhide v0.55 + 06suhide code
 

Attachments

  • Screenshot_20161015-042839.png
    Screenshot_20161015-042839.png
    160.7 KB · Views: 831
  • Screenshot_20161015-042827.png
    Screenshot_20161015-042827.png
    119 KB · Views: 835

NYZack

Senior Member
Mar 7, 2011
346
125
New York
Anyone here familiar with terminal apps wanna take a few mins to help a noob set up 06suhide?
Haven't tried it yet, but probably the easiest way is to hook your computer up to your phone, open a cmd window in a directory that contains adb (if you're using Windows), type "adb shell" (return), then type "su" (return), then type the line that Chainfire mentioned (the one that begins with "echo").

Alternatively, use a terminal app on your phone (there are many in the Play Store), type "su" (return) and then Chainfire's line.
 
  • Like
Reactions: bigcid10

Eljay1988

New member
Oct 15, 2016
1
0
suhide Not work :(

It doesn't work with me. have tried all suhide.zip files get a bootloop when each version, my Taplad boots up (Samsung)! SuperSU-2.78-SR1 is installed and works well, but I can't get on it suhide.
My Device
Samsung SM-T555 Android 6.0.1
 

Triviox

Senior Member
May 10, 2012
449
189
Montevideo
At the moment, someone can pass safetynet (green) with 06suhide or root switch? Im try know if problem is safetynet or i need make a clear flash stock and all steps again.. thanks!
Now, in CM13 i cant pass safetynet or play PoGo :/ (some hours ago i did play OK with root switch)

Edit: Can play PoGo but safetynet is Blue (response signature validation error)
 
Last edited:

grep_i

Senior Member
Sep 19, 2015
1,551
621
I tried but it does not seem to be working, I have supersu latest beta installed as systemless, have suhide 0.55 installed and ran the echo line,rebooted but I cannot run pokemon. I must be missing something.
Pogo uses safetynet and this program does not bypass safetynet anymore since a day or three ago.
Also this thread is not for Pogo questions, Pogo has it's own thread please try to find it and asks your questions there.

Sent from my Nexus 5 using XDA-Developers mobile app
 

tech_head

Senior Member
At the moment, someone can pass safetynet (green) with 06suhide or root switch? Im try know if problem is safetynet or i need make a clear flash stock and all steps again.. thanks!
Now, in CM13 i cant pass safetynet or play PoGo :/ (some hours ago i did play OK with root switch)

Edit: Can play PoGo but safetynet is Blue (response signature validation error)

I'm ran it and before the command I was not able to add cards in pay or pass safetynet.
I can do both now.
 
  • Like
Reactions: Triviox
Nothing to do for me...
Situation: CM13 + suhide v0.55 + 06suhide code

Have the same issue... Damn :eek:

---------- Post added at 04:47 AM ---------- Previous post was at 04:46 AM ----------

Pogo uses safetynet and this program does not bypass safetynet anymore since a day or three ago.
Also this thread is not for Pogo questions, Pogo has it's own thread please try to find it and asks your questions there.

Also Android Pay don't work... That's my reason and Pogo... :p
 

gc_geforce

Senior Member
May 17, 2009
545
130
Canada
  • Like
Reactions: higedamc

Pig Vomit

Senior Member
Aug 20, 2008
419
153
Orange County, California
Using Chainfire's 06suhide fix, AP is working again for me. Of course I knew it would! Thanks again!

Just like with him, SafetyNet Helper fails for me on a 6P. SafetyNet Playground passes.
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 463
    THIS IS CURRENTLY NOT WORKING
    A newer version is available here: https://xdaforums.com/apps/supersu/suhide-lite-t3653855

    suhide is an experimental (and officially unsupported) mod for SuperSU that can selectively hide root (the su binary and package name) from other applications.

    Pros
    - Hides root on a per-app base, no need to globally disable root
    - Doesn't need Xposed
    - Even supports SuperSU's ancient app compatibility mode (BINDSYSTEMXBIN)
    - Passes SafetyNet attestation by default on stock ROMs (last officially tested on 2016.10.07)

    Cons
    - Ultimately a losing game (see the next few posts)
    - No GUI (at the moment) - Unofficial GUI by loserskater

    Requirements
    - SuperSU v2.78 SR1 or newer (link)
    - SuperSU installed in systemless mode
    - Android 6.0 or newer
    - TWRP (3.0.2 or newer, with access to /data - link!) or FlashFire (link)

    Xposed
    Xposed is not currently officially supported, but if you want to use it directly, you must be using @topjohnwu 's systemless xposed v86.2 exactly (attached at the bottom). It seems to mostly work during my non-extensive testing, but there are still some performance issues (both boot-time and run-time). Proceed with caution, expect bootloop.

    Alternatively, there are some reports that the latest Magisk version + the latest systemless xposed (for Magisk) also works. I have not personally tested this.

    CyanogenMod
    I've personally tested with CM13 on i9300 without issue, however, several users are reporting it doesn't work for them. Proceed with caution, expect bootloop. Also, aside from just flashing SuperSU, you need to make sure /system/bin/su and /system/xbin/su are removed, or CM's internal root will still be used.

    Usage

    Install/Upgrade
    - Make sure you have the latest SuperSU version flashed in systemless mode
    - Make sure you are using the latest TWRP or FlashFire version
    - Remove any and all Xposed versions
    - If you have been having issues, flash suhide-rm-vX.YY.zip first, and note that your blacklist has been lost.
    - Flash the attached suhide-vX.YY.zip
    - If you are upgrading from suhide v0.16 or older, reflash SuperSU ZIP, and note that your blacklist has been lost.
    - Optionally, flash the Xposed version linked above, and pray

    At first install SafetyNet is automatically blacklisted.

    If you have just flashed a ROM, it is advised to let it fully boot at least once before installing suhide.

    Uninstall
    - Flash the attached suhide-rm-vX.YY.zip. The version may appear older, the uninstall script doesn't change very often.

    Blacklisting an app
    You need the UID (10000 to 99999, usually 10xxx) of the app, which can be tricky to find, or the process name. There may be a GUI for this at some point.

    (Note that all commands below need to be executed from a root shell)

    If you know the package name, ls -nld /data/data/packagename will show the UID - usually the 3rd column.

    Similarly, for running apps, ps -n | grep packagename will also show the UID - usually the 1st column.

    Note that the process name is often the same as the package name, but this is not always the case. UID is more reliable for identifying a specific app, and it is also faster than blocking based on process names.

    When you know the UID or process name:
    Add to blacklist: /su/suhide/add UID or /su/suhide/add processname
    Remove from blacklist: /su/suhide/rm UID or /su/suhide/rm processname
    List blacklist: /su/suhide/list

    All running processes for that UID or process name need to be killed/restarted for su binary hiding. For SuperSU GUI hiding, the device needs to be restarted. I recommend just (soft-)rebooting your device after making any changes.

    Please keep in mind that many apps store their rooted state, so you may need to clear their data (and then reboot).

    Integration into SuperSU
    This mod isn't stable, and probably will never be (see the next few posts). As SuperSU does aim to be stable, I don't think they're a good match. But who knows, it all depends on how things progress on the detection side.

    Detections
    This mod hides the su binary pretty well, and does a basic job of hiding the SuperSU GUI. The hiding is never perfect, and suhide itself is not undetectable either. This will never be a perfectly working solution.

    Debugging bootloops
    - Get your device in a booting state
    - Make sure you have TWRP or a similar recovery
    - Install LiveBoot (link)
    - If you are not a LiveBoot Pro user, enable the Freeload option
    - Enable the Save logs option
    - Recreate the bootloop
    - In TWRP, get /cache/liveboot.log , and ZIP+attach it to a post here.

    Download
    Attached below.

    Any rm version should work to uninstall any suhide version.

    There may be multiple versions of suhide attached, please look carefully which one you are downloading!

    YOU ARE EXPLICITLY NOT ALLOWED TO REDISTRIBUTE THESE FILES

    (pre-v0.51: 17410 downloads)
    286
    Hiding root: a losing game - rant du jour

    Most apps that detect root fall into the payment, banking/investing, corporate security, or (anit cheating) gaming category.

    While a lot of apps have their custom root detection routines, with the introduction of SafetyNet the situation for power users has become worse, as developers of those apps can now use a single API to check if the device is not obviously compromised.

    SafetyNet is of course developed by Google, which means they can do some tricks that others may not be able to easily do, as they have better platform access and control. In its current incarnation, ultimately the detection routines still run as an unprivileged user and do not yet use information from expected-to-be-secure components such as the bootloader or TPM. In other words, even though they have slightly more access than a 3rd party app, they still have less access than a root app does.

    Following from this is that as long as there is someone who is willing to put in the time and effort - and this can become very complex and time consuming very quickly - and SafetyNet keeps their detection routines in the same class, there will in theory always be a way to beat these detections.

    While reading that may initially make some of you rejoice, this is in truth a bad thing. As an Android security engineer in Google's employ has stated, they need to "make sure that Android Pay is running on a device that has a well documented set of API’s and a well understood security model".

    The problem is that with a rooted device, it is ultimately not possible to guarantee said security model with the current class of SafetyNet tamper detection routines. The cat and mouse game currently being played out - SafetyNet detecting root, someone bypassing it, SafetyNet detecting it again, repeat - only serves to emphasize this point. The more we push this, the more obvious this becomes to all players involved, and the quicker SafetyNet (and similar solutions) will grow beyond their current limitations.

    Ultimately, information will be provided and verified by bootloaders/TrustZone/SecureBoot/TIMA/TEE/TPM etc. (Samsung is already doing this with their KNOX/TIMA solutions). Parts of the device we cannot easily reach or patch, and thus there will come a time when these detection bypasses may no longer viable. This will happen regardless of our efforts, as you can be sure malware authors are working on this as well. What we power-users do may well influence the time-frame, however. If a bypass attains critical mass, it will be patched quickly.

    More security requires more locking down. Ultimately these security features are about money - unbelievably large amounts of money. This while our precious unlocked bootloaders and root solutions are more of a developer and enthusiast thing. While we're all generally fond of shaking our fists at the likes of Google, Samsung, HTC, etc, it should be noted that there are people in all these companies actively lobbying to keep unlocked/unlockable devices available for us to play with, with the only limitation being that some financial/corporate stuff may not work if we play too hard.

    It would be much easier (and safer from their perspective) for all these parties to simply plug that hole and fully lock down the platform (beyond 3rd party apps using only the normal APIs). Bypassing root checks en masse is nothing less than poking the bear.

    Nevertheless, users want to hide their roots (so do malware authors...) and at least this implementation of suhide is a simple one. I still think it's a bad idea to do it. Then again, I think it's a bad idea to do anything financial related on Android smartphone that isn't completely clean, but that's just me.

    Note that I have intentionally left out any debate on whether SafetyNet/AndroidPay/etc need to be this perfectly secure (most people do their banking on virus ridden Windows installations after all), who should get to decide which risk is worth taking, or even if Google and cohorts would be able to design the systems more robustly so the main app processor would not need to be trusted at all. (the latter could be done for Android Pay, but wouldn't necessarily solve anything for Random Banking App). While those are very interesting discussion points, ultimately it is Google who decides how they want this system to work, regardless of our opinions on the matter - and they want to secure it.
    167
    v0.54 released

    This release fixes the detection for yesterday's SafetyNet update. This one was trivial to bypass. Download available from the opening post.

    I have not had time to really look into the two biggest remaining issues:
    - Systemless xposed only working so-so
    - Google Play Services sometimes crashing

    Though at least on that crashing issue I now have an idea how to fix it, but will need to build it first. It still doesn't happen on any of my own test devices though...
    98
    Now that we know what the issue is, yes, it can be fixed. In fact I'm surprised it took them this long to detect it this way, as it's arguably the easiest way to detect SuperSU (lol). The thought of getting rid of that has been nagging me for a while, but so far haven't gotten around to it.

    The SuperSU binaries will probably need an update to work around this properly, but a fix is certainly possible. It will just not be today! Of course, if you're looking for a quick and dirty workaround:

    From a su shell:
    Code:
    echo '#!/su/bin/sush\nmount -o rw,remount rootfs /\nchmod 0751 /\nmount -o ro,remount rootfs /'>/su/su.d/06suhide; chmod 0700 /su/su.d/06suhide
    ... and reboot

    This works for me on my 5X @ 7.0, your mileage may vary. This workaround will be easy to detect, but it'll probably hold over the weekend.

    Note that SafetyNet Helper has been acting up a lot for me lately, though SafetyNet Playground reports success for me.

    IMPORTANT: If you implement the above, you're going to have to rm /su/su.d/06suhide before installing the next suhide update.
    81
    Just attached v0.55 to the first post of this thread. Also added info to the changelog post.

    I've added support to hide root based on process name, rather than just UID that was used before. This way, suhide can block the SafetyNet portion of Google Play Services but not Google Play itself (they share the same UID). This may fix some of the crashes some users have been seeing ( @Ch3vr0n ? ).

    While some users will be tempted to start using package names instead of UIDs for the blacklist, it should be noted that:

    - Process and package names are often the same, but certainly not always. Using UIDs is generally more reliable.

    - Using UIDs is faster than using process names. It's probably not noticable, though.

    Important: To start blocking SafetyNet by process name rather than UID, and potentially fix crashes, you must uninstall the old suhide before installing v0.55. Alternatively, you can manually remove com.google.android.gms 's UID from the blacklist, and add com.google.android.gms.unstable (as process name).