need help to complete permission anomaly - Android General

I've created small location app. The only thing is bothering me is permission each time I install it on device it ask for certain permission . below 6.x there is no issue , but higher then 5.x it ask for user's permission.
1- My requirement is to add my application as system app no matter how many timed device is hard-reset no need to reinstall it.
2- As it become the part of system it should not be asking for permission as other native(BLOAT) application with firmware does not ask.
Do I need to build a customize firmware along with my application?
Regards

Related

(Q) Aplication's permissions

Hi,
Move the thread if it is on wrong place.
Is it possible on system (Android) to set some flags like read,execution, write ( the ones who u can change on linux with chmod) on each application so u let them use some permissions and others not (even if the application says the aplication has this permissions). I mean system will check if you have granted some permission to certain app. The target is that u can install all application u want with all kind of permisions and once u have installed u let them use only the permisions u want.
Excuse my english (im learning).
Probably not 'coz it has potential to seriously mess up your phone/apps. Certain permissions are required for some apps to work properly though it may not be obvious to you.
The system doesn't not have a filter set up to check if each and every app is using the permissions listed when it's being installed. And if you were going to install an app with such ability, you do realize that the app will have access to everything on your phone, can you trust any app for that?
MilkPudding said:
Probably not 'coz it has potential to seriously mess up your phone/apps. Certain permissions are required for some apps to work properly though it may not be obvious to you.
The system doesn't not have a filter set up to check if each and every app is using the permissions listed when it's being installed. And if you were going to install an app with such ability, you do realize that the app will have access to everything on your phone, can you trust any app for that?
Click to expand...
Click to collapse
I think u didnt understand. Obvious and app who require cost of money permissions and u deny his permission on operative system it may wont work properly.
What i say is if it is possible only that some apis/script or whatever application use permissions are somehow controlled by users. It could be done (i think) by several users on operative system that can be access some scripts/apis (permissions) and u make chown to the apps depend of permissions u want them to access.
Someone who know more than me can teach me a little and tell me if it is possible?
P.D.Excuse my english. Im learning. You can send me a MP with my english errors so i can learn faster. Thx.
My answer would be no cause the developer designs the app that way
Sent from my SGH-T959 using XDA App
Diamond_dawg said:
My answer would be no cause the developer designs the app that way
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
It has nothing to do with developer. It has to do with the OS.
I have been looking for information and it seems every app has a user on the system , so it would be easy changing this user to different group depend on the permissions u want to have it.
Any expert here who know something?
heres some info:
you have to differentiate between system memory starting at / (root) and the sdcard.
Every app has read/write/execute permission on the sdcard, if you set <use permission write external storage>, if not they can't do anything there.
On the directories at / like system/data/cache etc. you can change permissions through common linux commands like chmod.
Keep in mind that changing rights with chmod is sometimes not enough as for example /system is read only, and would have to be remounted to be writeable.
Dark3n said:
heres some info:
you have to differentiate between system memory starting at / (root) and the sdcard.
Every app has read/write/execute permission on the sdcard, if you set <use permission write external storage>, if not they can't do anything there.
On the directories at / like system/data/cache etc. you can change permissions through common linux commands like chmod.
Keep in mind that changing rights with chmod is sometimes not enough as for example /system is read only, and would have to be remounted to be writeable.
Click to expand...
Click to collapse
Yes, but what i like to know is if you can change android permissions of an application, not read/write/execute of system unix. I mean for example and application that has permision to make calls and expend money, and after install u change this user application that system has just created to another group who cant make calls.
My english is too bad and i dont know if u understand what i mean.

[Q] Do all applications get root priviliges on a rooted android phone?

Or what is the exact mechanism behind this in Android? I have been using GNU/Linux for many years so I understand the original concept and would not want every app to have root privileges.
The Superuser app allows you to accept & deny all root apps. You can also choose to always allow certain apps, but you don't have to.
I don't quite understand this. Who gives the apps the privileges. I suppose the Superuser app is only the frontend for some system service. And does it work as a white list or as a black list. Meaning: Does every app get root priviliges by default on a rooted phone or do I have to manually give root privileges to desired apps but the rest doesn't even realize it's on a rooted phone.
By default, apps are denied root privileges. If I restore an app that runs as root in the background -along with its data - the app won't work until I launch it & grant it superuser permissions. Droidwall is a good example of this. Droidwall works by denying or allowing 3g and/or wifi access to apps based on your input. It does this by changing the iptables. If I flash a new ROM & restore with Titanium Backup, I usually forget that Droidwall isn't doing its job until I notice ads in an app that isn't supposed to connect. Once the app is launched & I choose to apply the rules, Superuser prompts me to allow the changes. If I do not make a choice within 10 seconds, SU automatically denies the root request.
In short, an app will never run as root (aside from superuser itself, if that counts) without you first allowing it. Also be aware that most everyday apps will never ask for root access as they don't need it to run. Only apps that are making changes to the system (reading or writing) will need root access. As far as accessing your contact data & other stuff you may worry about, any app can do that if it has permission (not root) to do so. When you first install an app, you will see a list of permissions - usually an app needs those permissions to run and there's nothing to worry about.
OK, thanks I understand it more now. What would happen if I didn't install Superuser. Is there a built in daemon for superuser privileges?
Don't fight the powers that be. Install superuser. You need it.
I'm pretty sure you'll get error messages from most root apps. I could be wrong, though. Next time I'm about to flash a new ROM, I'll remove Superuser after I do my backup, just because I'm curious. I'm pretty sure that Superuser or an alternative - if one exists - is necessary. I know the ability is there in the os, but I would think that it would need some kind of vehicle (such as an app) to relay the information. I certainly hope apps wouldn't automatically be granted root privileges, but I'm not sure. It's an interesting question, though.
Roms come pre-loaded with Superuser, and any auto-root method does as well. You would only be without it if you root manually, stay on stock, and choose not to push the app. Or, I guess, if you choose to remove it.

Is it safe to root smartphone and install app that sends garbage to other apps that a

Is it safe to root smartphone and install app that sends garbage to other apps that ask for my data
Is it safe jus tto install antivirus or vpn on rooted phone, which other apps, softwares, extensions, ... should i install or remove and which settings changes or other changes do i need to make to maximise anonymity
if this is the wrong forum, please help me with the right one

Nubia 'Overlay detected' workaround.

My story beging with installing apps on stock nubia ROM which require some permissions to work.
After trying to grant permission to the newly installed app, the system prompts ' Overlay detected' again thus you are unable to set the requirements.
One solution that i found is : go to Settings>Apps>3 dots >Reset app preferences.
After that you will be able to grant permissions manually to your apps.
The only drawback is that you need to re-grant permissons manually for all your apps again whenever you need this whole method.

Backup app data without root

Hi there, I'm working on a project.
I have below questions.
1. Is it possible to backup app data without root and without adb as app doesn't allow backup. I don't want to root my phone and i don't have any custom recovery.
2. If above question's answer is "No" then is it possible that i sign and update mod of an app on top of already installed original app from play store. I don't want to uninstall previous app i just want to update app with different signature. My device is not rooted and i don't have any custom recovery.
Thanks in advance
An app's data is stored either in /data/data/<pkg-name> or in /Android/data/<pkg-name> what depends on Android version and/or app. To successfully backup these data Android OS must be rooted, AFAIK.
self-signed app will treated as other app, so this is not possible. some apps however could be downgraded to older version with adb backup allowed (for example WhatsApp)
starting with api level 30 the flag android:allowBackup="false" seems ignored
https://www.xda-developers.com/android-11-force-app-local-backup-restore-handicap-cloud-backup
starting with api level 31 different flag android:debuggable="true" is required for adb backup
https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions
so your only chance is find the proper OEMs D2D transfer app (like Samsung Smart Switch for Samsung, Phone Clone for Huawei, etc.)

Categories

Resources