App Info Test

Some times, permissions granted to an app can be at the root of performance issues experienced by the app and by the device. While permissions themselves are just digital keys, how an app uses them behind the scenes can put a heavy load on your device, draining battery and eroding memory. A few permissions that can be harmful when used imprudently or callously include:

  • Permission to track user location

  • Permission to access camera/microphone;

  • Permissions tied to contacts, storage, or accounts;

It is therefore imperative that you know which permissions have been granted and denied to a mobile app, understand their impact on performance, and accordingly decide whether to limit their usage or revoke them entirely.

In addition to permissions, wake locks can also adversely impact performance. A wake lock is a power-management tool that lets an app keep a mobile device's processor or screen active, even when the user is not interacting with the device. Normally, mobile operating systems quickly turn off the display and put the central processing unit (CPU) into a deep, low-power sleep state to save battery. A wake lock overrides this behavior so a background task or display can keep running. While a wake lock is a useful feature as such, stuck or excessive partial wake locks can prevent a mobile device's CPU from entering low-power sleep states when the screen turns off, leading to rapid battery drain and reduced performance. This is why, you need to keep an eye out for problem conditions introduced by wake locks, and rapidly mitigate them.

All of the above can be achieved using the App Info test!

This test tracks the permission assignments and wake locks used by the target app, on each device on which the app is installed. Alerts are raised when excessive partial locks and/or stuck wake locks are detected. Detailed diagnostics reveal useful details pertaining to the permissions that were granted and the wake locks that were triggered, thus ensuring your timely intervention and speedy resolution of the problem conditions. This way, the test helps you increase app uptime, improve device and app performance, and ensure an above-par experience for users.

 

Agent deploying the test : A remote agent

Outputs of the test : One set of results for every device on which the target app runs

Configurable parameters for the test
Parameter Description

Test period

How often should the test be executed.

Proxy Host

If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the IP address/fully-qualified host name of the proxy server here. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy.

Proxy Port

If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the port at which the proxy server listens for requests from the eG agent. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy.

Proxy Username and Proxy Password

If the eG agent communicates with the Mobile RUM collector via a proxy server, and if proxy server requires authentication, then specify valid credentials for authentication against Proxy Username and Proxy Password. If no proxy server is used or if the proxy server used does not require authentication, then set the ProxyUsername and ProxyPassword to none.

Confirm Password

Confirm the Proxy Password by retyping it here.

Note:

If you Reconfigure the test later to change the values of the Proxy Username, Proxy Password, Confirm Password parameters, then such changes will be effected only if the eG remote agent monitoring the Mobile RUM component is restarted.

DD Frequency

Refers to the freqthe uency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Number of permissions denied

Indicates the number of permissions that were denied for the target app on this device.

Number

Use the detailed diagnosis of this measure to know which permissions were denied.

Number of permissions granted

Indicates the number of permissions that were granted for the target app on this device.

Number

Use the detailed diagnosis of this measure to know which permissions were granted and how long each permission was used. By reviewing these permissions, administrators can figure out if a permission was unnecessarily granted or if it has been excessively used. In the event of, an app crash, battery drain, or app slowness, administrators may decide to revoke any of these permissions or at least limit their usage, so that the performance issues do not reoccur.

Total excessive partial wake lock

Indicates the number of excessive partial wake locks triggered by the target app on this device.

Number

A partial wake lock is considered excessive by Android Vitals if it stays active for 2 hours or more in a 24-hour window while the screen is off, impacting over 5% of your app's sessions.

A non-zero value for this measure is a cause for concern, as it means that one/more problematic wake locks exist. In such a situation, use the detailed diagnosis of these measures to know which are the problem wake locks and how long they have been running. This will reveal how severe the problem is and how soon you need to attend to it.

Common causes for excessive partial wake locks are as follows:

  • Stuck Manual Wake Locks: Apps call PowerManager.acquire() directly but fail to release the lock or use try-finally blocks and timeouts when errors occur.

  • Continuous Location Tracking: Apps maintain a separate, continuous wake lock to process or cache location updates instead of using built-in system tools.

  • Frequent Background Syncs: Poorly timed or overly frequent periodic data requests keep turning the CPU on.

  • Improper Sensor or Bluetooth Use: High-frequency sensor monitoring or manual Bluetooth data transfers without proper batching or pairing APIs.

To resolve such wake locks, do the following:

  • Use Modern APIs: Replace manual wake locks with smart task schedulers like WorkManager or the Fused Location Provider, which manage power states safely on behalf of your app.

  • Add Timeouts and Safety Blocks: If you must use manual partial wake locks, always wrap them in try-finally structures and set hard timeouts so they cannot get stuck.

  • Batch and Reduce Frequency: Lower the rate of background updates, leverage batching for sensors, and use user-initiated data transfer tools.

  • Debug with Tools: Use Android Studio's Background Task Inspector or system tracing tools like Perfetto to find long-running CPU activity.

Total stuck wake lock

Indicates the number of wake locks triggered by the target app that are stuck on this device.

Number

A partial wake lock becomes stuck when an app holds it for a long time while running entirely in the background—meaning no part of the app is visible to the user.

A non-zero value for this measure is a cause for concern, as it means that one/more problematic wake locks exist. In such a situation, use the detailed diagnosis of these measures to know which are the problem wake locks and how long they have been running. This will reveal how severe the problem is and how soon you need to attend to it.

Common causes for stuck partial wake locks are:

  • CPU Drain: It keeps the device's CPU running even after the screen turns off, stopping the phone from entering lower power or sleep states.

  • Missing Releases: It usually happens if an app fails to call release() after finishing a background task, or if a process gets stuck in an infinite loop or uncompleted network call.

At the code-level, you can do the following to eliminate stuck partial wake locks:

  • Add timeouts: Always set an expiration time when you acquire a wake lock so the system releases it automatically if your code fails.

  • Code defensively: Wrap your wake lock release calls inside a finally block to guarantee they execute even if an error happens.

  • Use descriptive tags: Give your wake locks a static, unique tag (like com.myapp:my-lock) so you can track them accurately in Android vitals.

  • Switch to modern APIs: Replace manual wake locks with high-level alternatives like WorkManager or JobScheduler, which manage CPU states safely on your behalf.

The detailed diagnosis of the Number of crashes measure displays the complete description of the error that caused the crash.

Figure 1 : The detailed diagnosis of the Number of crashes measure