Add startActivityAsUser

This commit is contained in:
tehcneko 2021-04-03 18:58:24 +08:00 committed by LoveSy
parent 8a3373bfc3
commit 2eefe094d9
1 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,17 @@ public interface IActivityManager extends IInterface {
IBinder resultTo, String resultWho, int requestCode, int flags,
ProfilerInfo profilerInfo, Bundle options) throws RemoteException;
int startActivityAsUser(IApplicationThread caller, String callingPackage,
Intent intent, String resolvedType, IBinder resultTo, String resultWho,
int requestCode, int flags, ProfilerInfo profilerInfo,
Bundle options, int userId) throws RemoteException;
@RequiresApi(30)
int startActivityAsUserWithFeature(IApplicationThread caller, String callingPackage,
String callingFeatureId, Intent intent, String resolvedType,
IBinder resultTo, String resultWho, int requestCode, int flags,
ProfilerInfo profilerInfo, Bundle options, int userId) throws RemoteException;
void forceStopPackage(String packageName, int userId);
boolean startUserInBackground(int userid);