System permissions - android

Is there any way to get access to /system/app or /data/app folders without root? I need possibility to install my app into that folders but without rooting a phone.
Is it possible to do it if I sign my app with system sertificate and get system permission?
How to sign my app with system sertificate and get system permission?
Will my app run on NON-rooted devices with system signing?

Without rooting your device or utilizing some sort of exploit, it is not possible to access these folders. One thing to keep in mind is when you first install an application it goes directly to data/app/. A note about system/app is that these are build specific applications that are bundled and protected on a device and cannot be removed.

Related

Debug an system application

I'm trying to develop an app that requires System App permission (for example, I want to reboot the device and install new apks).
Now, I write the code and I generate a apk which I place intro /system/priv-app.
Then I reboot the device and I run the app.
The problem is that I want to debug my app, because write code without debugging is so tedious.
Can be debugged a system app?
And how?
The device is rooted, so I can do anything with it, and, for the release version, it will be a full image of AOSP with the apk contained in /sytem/priv-app
Regards.

Run app in system/priv-app folder on not rooted real device while developing

Is there any solution to run app in system/priv-app folder on not rooted real device to grant system apps permissions like MODIFY_PHONE_STATE while developing?
I'm going to disconnect incoming calls programmatically.
I understood that there is no way to run app in system/priv-app folder on not rooted real devices to grant system apps. It's only possible on rooted devices.

How to install android app in system/app directory without rooted device so that user can not uninstall that app

I made an app which I want to install in system/app directory so that user can not uninstall it. but I want to do it without rooting device. as soon as user download app it will be install in system/app directory. I want to do this by writing code.
I am aiming that users are not allow to uninstall it.
Only system level applications (i.e. preloaded applications like Gallery, Video Player, Music Player, SystemUI etc ) resides in /system/app folder and they have super user (or root equivelent) permission
As programmatically, without rooting device, any 3rd party application cannot be installed to /system/app/ folder
You can't do without root access. Once your device gets rooted you manually need to make that app system app. Otherwise there is no way to so without root. You cant do that just with coding of whatever type you write.
/system is mounted a read-only, you cannot install an app to /system/app unless rooted. If you are running a rooted rom then just do adb remount to make it read-write

How to create Apps in android which can't be uninstalled? Can we make System apps?

We are providing one default app for our customers with android phone. Which user can not be uninstall. I have used Device Admin feature from this example But user can delete app by deactivate from settings.
Another possible way I have found to install app in System/apps folder like all google apps (I am not sure).
For that I need to root access, so I am planning to do following, But not sure how to implement it.
Programatically Root device
Install app in System/apps folder
Unroot device again
Like many System apps, How they are doing for such kind of feature ?
Please help.
I made custom Launcher, which can't be uninstalled.
Important: root the phone
install application as system application (install into /system/app) from recovery mode.
Optional: subscribe for package removal, check if user tries to delete your app - and don't allow him to do this action (close package removal activity)
I made archive, which can be installed from recovery mode. Also my Launcher requires custom Superuser application (I don't want see notifications from Superuser app, when my Launcher runs root commands - silently give root access to my Launcher).
What I have in result: Launcher application, installed as system app (can't be removed). Also I blocked other launchers installation, added white list of allowed applications (don't install applications, which can manage file system and modify something important).
This solution full of tricks, but it's easier to implement than custom ROM.
If you customize the ROM, and install it to device somehow (contact device manufacturer from China for ex., request target device drivers and build the ROM on device), you can sign your application with system key, place it with other system apps, and then it can't be removed. In this case root not needed, but it requires much more time and power to implement.
If you will root device programmatically, than you should have exploit, which makes rooting. And different devices are rooted differently.
It's simple there is something like Device Administrator but please note that user will be prompted to enable admin mode on installed app.
HERE you can find quite good example description and tutorial - please try.

Best way to make system (stock) app

Here's the scenario. I have been asked to make an application which requires several system app only permissions. This is because the tablet is going to be used by employees and it needs to be locked down ect.
Is there is a programmatic way install a system app instead of installing it as a user app? If not what is the best way to make and install the system app to the tablet without rooting it if possible?
You have to root it. To be a system app, you need to be installed with the OS or as part of an OS update. That's the entire point of being a system app- the user can't have installed it. You'll need to root the device to put it on.

Categories

Resources