GuidesDiscussions
Log In
Guides

Permissions Validation

File Permissions

The following commands will output the current file permissions of SP Preload package.

SP Preload requires a minimum file permission configuration of Read and Write (chmod 644) to function.

adb shell cd ls –l <APK File Path from previous section>

If configured correctly, the output should read: -rw-r--r— which is equal to chmod 644.

Permission Validation

The following command will return a list of Android permissions used by Siprocal. If you are you using Andriod 6.0 and above, the granted = true results will be important to validate.

adb shell
dumpsys package [Package Name] | grep permission

SP Preload is using READ_PRIVILEGED_PHONE_STATE Permission

SP requires the OS to have granted the READ_PRIVILEGED_PHONE_STATE permission before it is able to run.

If configured correctly, for Android 5.1 and below the output should read: android.permission.READ_PRIVILEGED_PHONE_STATE

If configured correctly, for Android 6.0 and above the output should read: android.permission.READ_PRIVILEGED_PHONE_STATE: Granted=true

SP Preload is using INSTALL_PACKAGES Permission

SP requires the OS to have granted the INSTALL_PACKAGES permission before it is able to run.

If configured correctly, for Android 5.1 and below the output should read:android.permission.INSTALL_PACKAGES.

If configured correctly, for Android 6.0 and above the output should read: android.permission.INSTALL_PACKAGES: Granted=true

Doze Mode Whitelisting Validation

To confirm whether SP is whitelisted for Doze Mode, run the following command

adb shell dumpsys deviceidle

DR Package name should appear in 2 sections of the output:

  1. Under Whitelist (except idle) system apps
  2. Under Whitelist system apps

Generally, if the XML files on section #4.1 were preloaded correctly, then this part should also succeed. Otherwise, please contact Siprocal for additional information