Replies: 3 comments 10 replies
-
|
It's not the notification issue. Only device owner can start an app in lock task mode. In Dhizuku mode, OwnDroid isn't the device owner. |
Beta Was this translation helpful? Give feedback.
-
|
You are right. I tried to start an app in lock task mode when OwnDroid was in Dhizuku mode, the system status bar appeared, so I thought it's not in lock task mode, actually, it's because I had enabled the "allow system info" feature. But there's still a problem: OwnDroid can't track the locked app's lifecycle. It means that OwnDroid can't cancel the notification(or overlay) itself when the user exit lock task mode in other ways. |
Beta Was this translation helpful? Give feedback.
-
|
Try CI version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following up from #203,
Would it be possible to still implement this using screen overlay?
This will require the permission:
Some helpful resources:
Also, regarding returning to OwnDroid via notifications, perhaps a Foreground service can be used to always keep the notification there:
Allowing the user to return to OwnDroid when the foreground service notification is clicked on (or closed).
Note that on Android 14, even when using
.setOngoing(true)for persistence, the notification can still be dismissed (with some exceptions, e.g. device owner):https://developer.android.com/about/versions/14/behavior-changes-all#non-dismissable-notifications
There is a potential workaround listed here to keep the notification persistent:
Beta Was this translation helpful? Give feedback.
All reactions