GuidesDiscussions
Log In
Guides

File Placements

APK Placement

SP Preload APK must be installed into the /system/priv-app/ folder on the device. Please ensure the APK file has React and Write permission granted by the file system.

chmod 644 <sp-preload.apk>

🚧

Custom Path

If you have a custom path, make sure SP process works as expected. There’s no guarantee that SP process will work properly if the APK is not placed in the folder described above.

XML File Placement

SP Preload APK requires permissions and whitelisting XML files to be placed onto the Device.

• Permissions entry must be installed in: /system/etc/permissions
• Whitelisting entry must be installed in: /system/etc/sysconfig

Please ensure these XML files have Read and Write permission granted in file system.

Permission file for SP Preload

Change your-package-name to your application package.

Make sure the file name is permission_your-package-name.xml

<?xml version="1.0" encoding="utf-8"?>
<permissions>
    <privapp-permissions package="your-package-name">
        <permission name="android.permission.INSTALL_PACKAGES"/>
        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
    </privapp-permissions>
</permissions>

Whitelist XML file for DR Preload

Change your-package-name to your application package.

Make sure the file name is: whitelist_your-package-name.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- The OMA DM service must be whitelisted so they are always able to run. -->
<config>
    <allow-in-power-save package="your-package-name"/>
    <app-link package="your-package-name"/>
</config>