Can library use containing app device owner permission?

Viewed 11

I have a kiosk Android app which is device owner and can execute priviled things like installing other apps. Now I'd like to extract some features into a library that can be shared among other apps that we've been working on.

Problem is, the library needs to execute some of the privileged code (apk installation) but is not recognized as the device owner.

How can I "transfer" privileged permissions to the library?

Or, another approach - if I inject lambda into the library from the master app, will it be executed or rejected since it's called from the library?

0 Answers
Related