Several apps on android market is utilizing some kind of binary and root to call android system methods which normally require permissions only granted to system apps (/system/app).
I am wondering if it is possible to call java methods with C++ binaries using JNI. Does anyone know how the apps are doing this? An example is the launcher Apex launcher, which uses root to allow users to add widgets with the new widgets screen on ICS.
Any ideas/help would be much appreciated
Did you ever figure this out?
Related
Hi everyone,
Is there a way to use root or roottools to gain permissions which are only granted to apps in system/app? I am trying to use call the method disable() in StatusBarManager to disable softkeys for an app im working on. WidgetLocker achieved this with root. So I searched around and found roottools (http://code.google.com/p/roottools/) but Im not really sure how to "fake" as a system app with that. Right now if i try to call the method i get a security exception "neither and user nor the current process has permission android.permission.STATUS_BAR"
Any help would be greatly appreciated!
So I have seen the 6.0 and the CM permission system before.
Both have a toggle that allows setting permissions for preinstalled system apps aswell.
Is that possible in OxygenOS too?
(The whole reason for me to get a phone with a permission system was to be able to restrain all that Google Play stuff...)
NotieB said:
So I have seen the 6.0 and the CM permission system before.
Both have a toggle that allows setting permissions for preinstalled system apps aswell.
Is that possible in OxygenOS too?
(The whole reason for me to get a phone with a permission system was to be able to restrain all that Google Play stuff...)
Click to expand...
Click to collapse
CM's privacy guard can do exactly that, even with system apps. OOS's permissions can only limit non-system apps, so you'd need to remove all the Google Play apps as system apps and re-install as user apps (or convert them to user apps with Titanium Backup). However, this would need root. Not sure if you wanted a non-root option, but I can't think of any that would not require root.
MrKhozam said:
However, this would need root. Not sure if you wanted a non-root option, but I can't think of any that would not require root.
Click to expand...
Click to collapse
I was indeed wondering about a non root option, i.e. if there is a toggle i just missed.
So I guess I'll wait for the 6.0 update as the native android permission system works for system apps aswell, and they'd be stupid to replace it.
For a project I need to install an app in a custom rom as a system app to prevent being uninstalled. The problem comes with Android 6, where some system apps can be disabled. For example, Google apps like Youtube or Gmail can be disabled, but other apps like Calendar, Messages or Clock can't be disabled.
Now I'm placing my apk inside /system/priv-app but my app can be disabled. ¿Any idea how to prevent that?
Thanks in advance!
With custom roms there is no way to prevent it. All it takes is root and a root browser or an adb command.
zelendel said:
With custom roms there is no way to prevent it. All it takes is root and a root browser or an adb command.
Click to expand...
Click to collapse
Thanks for the quick response. Well, I assume that using root or adb apps can be unninstalled.
The only thing I want is to prevent a "normal user" to uninstall the app throught the Android UI.
With the app now on /system/app/my.apk I've achieved to prevent Android from uninstalling the app, but it can be disabled (Android 6.0). So my question is how can I prevent also from disable the app?
dlaballosn said:
Thanks for the quick response. Well, I assume that using root or adb apps can be unninstalled.
The only thing I want is to prevent a "normal user" to uninstall the app throught the Android UI.
With the app now on /system/app/my.apk I've achieved to prevent Android from uninstalling the app, but it can be disabled (Android 6.0). So my question is how can I prevent also from disable the app?
Click to expand...
Click to collapse
As far I know there is no way to prevent it. If there is it will be a bool settings. I would look at an app that doesn't allow disabling it. But I think you might need a Google signature for that.
Search stack overflow and you might find something.
Hello, anyone know or can even think of an option on how to bypass this mechanism when i install an app?
also if it only work on older version
also how to install third party apps without the user to manually allow it?
think about it as wild as possible, even running code in root.
Any kind of knowledge on this topic will help.
I mean not through magisk by user.
By developers when the build the ROM
In the first place.
As long as in Android's ecosystem the SU binary can be found, Android is considered to be rooted. It's a very primitive task for devs of banking / payment apps to search the device's Android for that file.
xXx yYy said:
As long as in Android's ecosystem the SU binary can be found, Android is considered to be rooted. It's a very primitive task for devs of banking / payment apps to search the device's Android for that file.
Click to expand...
Click to collapse
I want to know when developing custom ROM, making banking apps can run on that custom ROM is possible in the rooted phone .
I know we could do that with su in the past and now we can do with magisk. But i want to know developers can build ROM to make banking apps run in rooted phone when they are building that rom . Not through modification by users.
Btw i am asking this assuming 2015-2016year.
Wondering why you don't carefully read a post?
It is easy for anyone to determine the existence of SU: just search the internal memory for it - any 10 year old remedial student can do it.
BTW: Magisk doesn't anything other than installing SU.
Since banking apps depend on the Play Integrity API to get a good idea of a device's state and security, workarounds are required, generally by means of Magisk modules such as Shamiko or USNF mod. It is possible to build these into ROMs.