Actual behaviour
- I installed Nextcloud from Play Store in an Android for Work environment. After login and getting access to filesystem the app crashes
- every retry to open the app ends directly in an crash
Expected behaviour
- It should launch the application correctly
Steps to reproduce
- Configure Android for Work
- Install Nextcloud android app and configure it
- Launch it one time.
Environment data
Android version: 9 patch version 05/05/2019
Device model: HUAWEI P20 lite
Stock or customized system: stock
Nextcloud app version: 3.6.2
Nextcloud server version: 15.0.9
Logs
Web server error log
Nothing
Nextcloud log (data/nextcloud.log)
07-05 21:28:46.172 18341 18341 W InputMethodManager: startInputReason = 1
07-05 21:28:46.177 18341 18341 D FileDisplayActivity: Received broadcast com.owncloud.android.syncadapter.FileSyncAdapter.EVENT_FULL_SYNC_START
07-05 21:28:46.179 1138 3469 W ActivityManager: Permission Denial: unbroadcastIntent() from pid=18341, uid=1110168 requires android.permission.BROADCAST_STICKY
07-05 21:28:46.179 1138 3469 W System.err: java.lang.SecurityException: Permission Denial: unbroadcastIntent() from pid=18341, uid=1110168 requires android.permission.BROADCAST_STICKY
07-05 21:28:46.181 18341 18341 D AndroidRuntime: Shutting down VM
07-05 21:28:46.182 18341 18341 E AndroidRuntime: FATAL EXCEPTION: main
07-05 21:28:46.182 18341 18341 E AndroidRuntime: Process: com.nextcloud.client, PID: 18341
07-05 21:28:46.182 18341 18341 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=com.owncloud.android.syncadapter.FileSyncAdapter.EVENT_FULL_SYNC_START flg=0x10 pkg=com.nextcloud.client (has extras) } in com.owncloud.android.ui.activity.FileDisplayActivity$SyncBroadcastReceiver@4b91581
Workaround
after searching for "android.permission.BROADCAST_STICKY" I found this:
Sticky broadcast giving security exception in Android for work in Android P
so when I installed nextcloud also in normal user space (only install, no launch) the application in work profile will work as expected.
Actual behaviour
Expected behaviour
Steps to reproduce
Environment data
Android version: 9 patch version 05/05/2019
Device model: HUAWEI P20 lite
Stock or customized system: stock
Nextcloud app version: 3.6.2
Nextcloud server version: 15.0.9
Logs
Web server error log
Nothing
Nextcloud log (data/nextcloud.log)
Workaround
after searching for "android.permission.BROADCAST_STICKY" I found this:
Sticky broadcast giving security exception in Android for work in Android P
so when I installed nextcloud also in normal user space (only install, no launch) the application in work profile will work as expected.