[XPOSED] [5.0+] [Disable Apk Signature Comparison] Super User Mode X - v1.0.0

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,019
18,608
263
São Paulo - SP
Features:
- Disable checking of app signatures in the Package Manager Service core, allowing modded/signed apks be installed, or even granting them system privileges


Requeriments:
- Xposed Framework for Lollipop / Marshmallow / Nougat


Install:
TRY IT OUT AT YOUR OWN RISK!!!
1. Download and install always the latest version (attached)
2. Open Xposed Installer and activate it under Modules
3. Reboot
4. Done!


This module has no UI (settings screen)!!


Warning:
If you have any modded/signed apk like SystemUI.apk, and this module activated, DO NOT DEACTIVATE IT, OR YOU WILL END UP WITH A BOOTLOOP (unless you have a patched services.jar)!!!



Edit.: REMOVED CHECK APP DUE SELINUX ISSUE ON ANDROID MM/N !!

How do we know if Super User Mode is really working?
Install attached Serajr_Super_User_Mode_Check.apk and toggle Airplane mode through it (only system apps signed with platform keys have this privilege).
Without Super User Mode, system (Package Manager Service) will refuse even to install and later toggle it!


Special thanks:
- @rovo89


Enjoy it!
 

Attachments

Last edited:

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,019
18,608
263
São Paulo - SP

sxtester

Senior Member
Sep 11, 2014
458
162
0
@serajr:
Thank you so much for yet another wonderful work! :good:

Hope this will help me to install (downgrade to) the old good Sony Dialer & Contact Apps from KK on my Z3+/Z4 running MM. Really don't like Dialer & Contact actually since LP times.
 
  • Like
Reactions: serajr

sxtester

Senior Member
Sep 11, 2014
458
162
0
How do we know if Super User Mode is really working?
Install attached Serajr_Super_User_Mode_Check.apk and toggle Airplane mode through it (only system apps signed with platform keys have this privilege).
Without Super User Mode, system (Package Manager Service) will refuse even to install and later toggle it!
I'm using an App called "Timed Toggles" since many years to automatically turn Airplane Mode ON at night and then again OFF in the morning. Here is the link on PlayStore: Timed Toggles

This App (version 1.5.1), after granting Root only, works flawless on latest MM 6.0.1 (32.2.A.0.224, same as for the Z5) on my Z3+/Z4. I've not made it a System App or anything, just granted Root. So this contradicts "only system apps signed with platform keys have this privilege".

But now, trying the same with Power Toggles (version 6.0.4) does not work. Not with Root, not even after making it a System App.

Both Apps issue the same commands (from the logs in SuperSu), so that is:

Turn ON:
setting put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez start true

Turn OFF:
setting put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez start false

Only difference is... "Timed Toggles" sends it in two takes (and so there're actually two separate lines in the SuperSu log) like:
  1. setting put global airplane_mode_on 1
  2. am broadcast -a android.intent.action.AIRPLANE_MODE --ez start true

...whereas for failing "Power Toggles" the log shows only one single line like:

"setting put global airplane_mode_on 1; am broadcast -a android.intent.action.AIRPLANE_MODE --ez start true"

I'm really not the one to judge, but I think it could be related to what Chainfire wrote here:

3. How to call su
3.1. Common pitfalls

Runtime.exec() and ProcessBuilder
It is tempting to use Runtime.getRuntime().exec("su -c [command]");, but you should be aware that [command] should be a single parameter, and thus may require quoting. Unfortunately both quoting the [command] parameter as well as passing the paramaters as separate variables to either Runtime.exec() or ProcessBuilder does not work consistently across all Android versions, and thus this construct should be avoided entirely. It is not impossible to do this right - but there's a high risk of problems.
Nonetheless, "Timed Toggles" proof that a non-system App with Root only can toggle Airplane Mode ON/OFF.

Sorry for the lengthy post, happy to assist with more testing if needed ;)
 
Last edited:

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,019
18,608
263
São Paulo - SP
... Nonetheless, "Timed Toggles" proof that a non-system App with Root only can toggle Airplane Mode ON/OFF.

Sorry for the lengthy post, happy to assist with more testing if needed ;)
The app I shared for testing purposes only, doesn't make use of root. Super User Mode grants it privileges enough to perform system modifications!
This is not about root or toggling an specific mode!!
 
  • Like
Reactions: sxtester

sxtester

Senior Member
Sep 11, 2014
458
162
0
The app I shared for testing purposes only, doesn't make use of root. Super User Mode grants it privileges enough to perform system modifications!
This is not about root or toggling an specific mode!!
Huuuh!, seems I got a bit confused and mixed things up by Root, System Mode, System App etc. Sorry for bothering :eek:
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,019
18,608
263
São Paulo - SP
The same on my Z5c. Rooted, Xposed, installed module and activated, then istalled superuser mod check apk and when i want to open it my phone reboots?
What the problem?
How can i create a logcat about it?
Android SDK > Monitor.bat (always better choice)

Or install aLogrec (free) from Play Store, keep it running and then open the app.
 

Midleo

Senior Member
Sep 1, 2009
294
111
73
Márokpapi
Last edited: