* As per Android 10 background limitation, there is no way for a service, even foreground, to start an activity reliably. * We probably could have just moved all the install application logic to DummyActivity and invoke that activity directly from the other side, but sometimes we may not need an UI component at all, e.g. when installing system applications. Doing those in a service keeps visual interruption minimal. * Instead, we use the MainActivity in the main profile as a proxy to start activities needed to install user applications.
8 lines
148 B
Plaintext
8 lines
148 B
Plaintext
package net.typeblog.shelter.services;
|
|
|
|
import android.content.Intent;
|
|
|
|
interface IStartActivityProxy {
|
|
void startActivity(in Intent intent);
|
|
}
|