Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

Enabling permission PACKAGE_USAGE_STATS without User Intervention

$
0
0
Hi,

I am developing a statistics gathering application for one of the local vendors. I need to grant the PACKAGE_USAGE_STATS permission without user intervention.

As I see it on a factory reset phone certain apps which are pre-installed in the phone already have this enabled. Even if I install the apk as a system app. I still need to enable the permission manually under Settings->Security->Apps With Data Usage.

Any insight on how I can accomplish this?

Viewing all articles
Browse latest Browse all 3614

Trending Articles