Shelter/app/src/main/aidl/net/typeblog/shelter/services/IStartActivityProxy.aidl
Peter Cai 3395f55f09
fix: cannot invoke startActivity from services
* 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.
2020-07-02 10:30:21 +08:00

8 lines
148 B
Plaintext

package net.typeblog.shelter.services;
import android.content.Intent;
interface IStartActivityProxy {
void startActivity(in Intent intent);
}