Android devices running OS 11 (API level 30) have a special permission called “Allow All File Access” that allows applications to access any folder in the root directory. Apps running on Wear OS without managing external storage permission can access the ‘Documents’ and ‘Downloads’ folders in the root directory. However, SureLock only uses the ‘Documents’ folder for its functionality. As a result of this additional permission, Android OS 11 devices provide better protection for apps and user data on external storage.
Wear OS, however, has enforced a restriction policy for “All File Access”. The following is a brief explanation of the restrictions that are in place.
Purpose
The purpose of this knowledge article is to provide a guide on storage updates in Android OS 11 and above for SureLock Wear OS.
Prerequisites
- On Wear OS devices, due to the enforced Google policy, the “All File Access” permission is not supported. Surelock Wear will be using the Documents folder with the app-specific folder, for example: /storage/emulated/0/Document/Surelock/ (which gets created by granting the runtime read/write storage access permission).
- Only a few devices cannot read image files modified by third-party apps, for which they will have to use adb commands to push their files. The remaining devices can read the image file without adb interaction.
Steps
- The default path for ‘Auto-import of the SureLock settings’, ‘Exporting of the SureLock settings’, ‘Importing of the SureLock settings’ should be /storage/emulated/0/Documents/Surelock/SureLock.settings.png.
- The default path of the SureLock diagnostics file should be /storage/emulated/0/Documents/Surelock/
- The default storage path for the log file in SureLock should be /storage/emulated/0/Documents/Surelock/Logs/
- The default path of the “Landscape/Portrait Wallpaper” in the “SureLock Settings” to /storage/emulated/0/Documents/Surelock/
- The default storage path for the Single Application Mode file in SureLock to /storage/emulated/0/Documents/Surelock/
When the user renames the SAM exit file, it should contain the .png extension (SL_SAM_EXIT.png), and on devices where SureLock cannot read image files modified by third-party apps, the only way to exit would be to reboot the device, enter admin settings through the loading screen, and exit out of SAM.
Need help?