revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

feat: conceal Android developer options status

Open MicaelJarniac opened this issue 1 year ago • 6 comments

Feature description

A universal patch that masks the activation status of Android developer options for the patched application, ensuring that the app behaves as if these options are disabled, even when they are not. This includes hiding the status of features like ADB, OEM unlocking, etc., that are typically available in developer mode.

Developer options, or developer mode, are enabled on Android settings by tapping "About phone > Software information > Build number" several times. It then appears as a new settings entry with features like ADB, OEM unlocking, etc.

Motivation

Some applications might refuse to work if they detect that developer options are enabled.

Having this patch would allow us to trick some applications into believing that the developer options are disabled, when they aren't, thus allowing these applications to work normally, without complaining about it.

A lot of users have developer options always enabled, be it because they're Android application developers, have rooted devices, are tinkerers, or even require some advanced accessibility utilities, like remotely controlling their phones from their computer with a bigger screen to aid with poor vision or motor skills.

Acknowledgements

  • [X] This issue is not a duplicate of an existing feature request.
  • [X] I have chosen an appropriate title.
  • [X] All requested information has been provided properly.

MicaelJarniac avatar Jan 04 '24 14:01 MicaelJarniac

Please list a concernable amount of apps that do that.

oSumAtrIX avatar Jan 04 '24 14:01 oSumAtrIX

Please list a concernable amount of apps that do that.

Well, I've only run across one myself, but it's quite a major one in my opinion.

The app is Gov.br, and it's a very important app for Brazilian people, mandatory to access many government services.

Most people will have it installed and need to use it eventually, and I've seen a lot of reviews complaining about this specific limitation of refusing to work with developer options enabled.

It has 50M+ downloads on Play Store.

image

Some reviews

image image image image image image image image image image image image image image image image image image image image image image image image image image image image image

I've heard of other apps doing this too, like some banking apps, but I haven't used them personally.

MicaelJarniac avatar Jan 04 '24 20:01 MicaelJarniac

Patching government apps or similar will involve more than just patching the function that checks for the dev options. The lack of apps that implicate such security measurements are scarce as you clarified and thus the need for this kind of patch is not existent.

oSumAtrIX avatar Jan 04 '24 20:01 oSumAtrIX

I found an app, DevOptsHide, that has a similar purpose but requires root.

On their issues, there's a list of apps that refuse to work with developer options enabled, and that this app itself can't fool.

Some are games like PUBG and Fortnite, others seem to be banking apps, and also Deliveroo Rider.

Since these are the ones this app doesn't work with, I believe there are many others where this app does work.

MicaelJarniac avatar Jan 04 '24 20:01 MicaelJarniac

There's also Geto, which seems to be yet another app meant for something like this. ~~I believe Geto doesn't just hide the developer options, though, instead it actually disables it temporarily while you're using an affected app.~~ It might actually just hide it, I'm not entirely sure.

MicaelJarniac avatar Jan 04 '24 20:01 MicaelJarniac

The root app in question hooks low level functions to circumvent tamper detection. This is not possible here as you'd tamper the app and trigger further security mechanisms

oSumAtrIX avatar Jan 04 '24 21:01 oSumAtrIX