Questions tagged [android-app-ops]

App Ops is a hidden feature introduced in Android 4.3. It allows fine-grained control over app permissions.

App Ops is a hidden feature introduced in Android 4.3. It allows the user to selectively disable permissions of installed apps.

13 questions
25
votes
1 answer

Getting Security exception while trying to fetch networkcapabilities on android 11

I am getting SecurityException followed by RemoteException while trying to access below code. API val networkCapabilities = connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) Exception getting Fatal Exception:…
5
votes
1 answer

SecurityException: <> from uid xxx not allowed to perform READ_CLIPBOARD when calling setPrimaryClip

I've been getting reports of the following crash SecurityException: <> from uid xxx not allowed to perform READ_CLIPBOARD The crash occurred when a user clicks on a button that copies a text into clipboard as shown below. val…
5
votes
1 answer

What happens when permission is disabled with OS 4.3's new feature?

I heard that OS 4.3 has hidden feature to disable some permissions w/o repackaging APK. When we release app, we add necessary permissions and make app work. But that feature can disable permissions. I know some app have been doing this though it's a…
Tomcat
  • 1,405
  • 3
  • 22
  • 37
2
votes
0 answers

Grant AppOps permissions to system apps in Android 6.0 Marshmallow

As seen in this answer, starting from Android 6.0 Marshmallow, system apps are no longer granted dangerous permissions by default. I also read that only apps signed with the platform key have the old behavior. Is there a way to add other apps to…
1
vote
1 answer

Memory Leak found by LeakCanary for AppOpsManager OnOpChangedListener callback Function

I am finding the available memory leaks in my Android application, LeakCanary always says that AppOpsManager OnOpChangedListener callback Function has Leaks for MainActivity. I searched a lot on google and SF but did not find any solution for this.…
FTW
  • 11
  • 2
1
vote
2 answers

AOSP: How to restrict app accessing Camera, Location?

I'm trying to restrict apps in Android by modifying source code. I was able to get it working for Internet, but I was not able to restrict apps from using Camera or Location? Internet permission is enforced at linux process level with group-id. But…
Adi GuN
  • 1,244
  • 3
  • 16
  • 38
1
vote
2 answers

Android: Can we detected if a permission has been disabled on App Ops?

With Android 4.3 we have a hidden Intent of the OS - App Ops - that allows us to disable some of the permissions of the installed apps (that's great!). But as an app developer i'm trying to find out if there is a way to check if the permission has…
neteinstein
  • 17,529
  • 11
  • 93
  • 123
0
votes
0 answers

App crashes on launch after renaming module in Android Studio

Here's what my modules look like I changed my module name in Android Studio from app to wear, after I decided to add another module called mobile. I didn't see any issues until my app update got rejected from Play Store. The Logcat is filled with…
0
votes
0 answers

How to set GET_APP_OPS_STATS without rooting?

i am working on an app using the App Ops Manager. I want to get access to the Logs and analyze which app used which resource. The app works fine for the moment, since a wanted to deplay a Demo version. I have the following problem: I started the App…
0
votes
2 answers

Store Highest Score and Display It

I'm currently learning android app development and on the very beginning phase. I built this game and now i want to set store and display high score as Textview on my screen. I'd really appreciate if anyone could help me out. thanks! package…
0
votes
1 answer

How will my apps be affected if their permissions are changed using Android 4.3 App Ops?

I've read that in Android 4.3 there is a new feature called App Ops. See here for some info. I'm a little bit worried about how this will affect apps that rely on having permissions active. A user could easily see this feature, go into the list,…
-1
votes
1 answer

AppOpsManager.noteOp: How can I configure my app to crash on specific op

In AppOpsManager.noteOp, it said SecurityException will be thrown if the app has been configured to crash on this op I can't find any information about how to do that. Is it something app developer can configure in the source code?
-1
votes
2 answers

Is there any Android app that can detect particular text on screen and click on it automatically?

I want a app that can read text on my screen and click on the text which I can pre-define in the app. App mostly capable to identify multiple texts and if anyone of them present on screen then click on that region.
Abhay
  • 524
  • 1
  • 13
  • 28