Does Android allow revoking permissions? - android

I saw applications for rooted devices allowing to revoke specific permissions given to app. Does non-root Android device allow this with some code?
UPDATE:
Having keyboard app with permissions FINE LOCATION and internet - it is weird to allow such permissions. They are not necessary to allow me to type.
I can imagine only one reason - to collect my login info.

This is not presently possible by any supported means. Android presently does not allow the user to revoke permissions, let alone allow random other apps to revoke permissions.
Having keyboard app with permissions FINE LOCATION and internet - it is weird to allow such permissions.
Agreed. Do not install that app.

Android M preview enables you to manage some permissions (like location) at runtime: https://developer.android.com/preview/features/runtime-permissions.html
With a rooted device, you can disable some app permissions on older Android versions, for that you can for example use the Xposed framework.

Related

Give all the permission to application in Android build

I am working on custom Android 11 project.
I want to grant all the permission to an specific application from Android source code.so that it hasn't been to ask user to grant permission.
Like setting application has all the permission.
Is it possible to do that?
Since Android 6, all permission must accepted by user.
IF you are owner device you can root your device, or add your app in to flash ROM. Or you can sign your app with the same key of your device. All method to auto grant perms is hard, cause we need protect users permission
Fyi about perms

Are app permissions needed when the stuff, which normally requires that happens in Android WebView displaying a website?

I have a problem. If the app displays a website in a WebView and this website wants for example to access device files, does it require storage permission? The same with camera, geolocation etc. When I tried this, it works both with and without appropriate permissions (I tried that with geolocation and storage), but some people try to imply that the permissions are required. Why is that?
Yes, App do need permission even if webview wants to access camera or storage,
And it's because of security issues that you need permission for using camera or storage or anything for that matter even if you're using webview.
Because even if you use webview, ultimately you are going to use camera or any hardware so you need to ask permission.
Android 6.0 Marshmallow introduces a new model for handling
permissions, which streamlines the process for users when they install
and upgrade apps. Provided you're using version 8.1 or later of Google
Play services, you can configure your app to target the Android 6.0
Marshmallow SDK and use the new permissions model.
If your app supports the new permissions model, the user does not have
to grant any permissions when they install or upgrade the app.
Instead, the app must request permissions when it needs them at
runtime, and the system shows a dialog to the user asking for the
permission.
To learn more, see the documentation for Android 6.0 Marshmallow and
the changes you must make to your app for the new permissions model.
Google has added WebChromeClient.onShowFileChooser. They even provide a way to automatically generate the file chooser intent so that it uses the input accept mime types.
source

Granting permissions without user interactive screen

I am developing an Android application which is suppose to run on an embedded device which does not have UI. My application uses various permissions for which usually Android system will present user to grant permission. This is not possible in our case because the device does not have any screen. What is the way to grant permissions in this case. Note that, we can publish this app as System app as we can build our own firmware too but not sure about how to get past this user prompt.
As you have already said you are going to publish this app as system application
you also need to mention this in your manifest file
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>

If a user denies access to the camera in codename one can you find out from code

When you open the camera the user is prompted to grant the app permission to access the camera.
Is there any way in Codename one to tell if the user has denied this permission?
With either a callback or some kind of global call?
This specific to iOS but with the recent updates to Android the same question is also relevant there.
This is now built in to the CodenameOne platform - https://www.codenameone.com/blog/switching-on-android-marshmallow-permission-prompts.html
Currently we haven't enabled the Marshmallow permission prompts by default in part due to the lack of an API to indicate that.
We have a standard API for contacts permissions which we needed in iOS and most of the API's should be ready for Marshmallow since iOS always had the ability to deny permissions.
But we need to re-think the API's for querying that detail and whether we want them to follow the style of isContactsPermissionGranted.
I noticed there is no issue to track the progress of this so I filed it.

is there a way to get realtime permession access by an app on rooted android phone?

I'm trying to get all the permission of 3rd party apps in real time. I can get static permissions from the manifest file but want to know is it possible to obtain live permission access from other apps. is it possible to get from the system log files?
XPrivacy is a tool which is able to inform you about permissions asked by any app on your device. You can allow the permission or deny it. It's more of a privacy tool but it can show you permissions of any app currently running.
If you plan on installing XPrivacy, you better use this installer

Categories

Resources