From 8a3373bfc3b4da12b87bb518814c239ed7e3bdcd Mon Sep 17 00:00:00 2001 From: tehcneko <7764726+tehcneko@users.noreply.github.com> Date: Sat, 3 Apr 2021 18:56:20 +0800 Subject: [PATCH] Add startActivity --- .../java/android/app/IActivityManager.java | 10 ++++++++ .../main/java/android/app/ProfilerInfo.java | 23 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 hiddenapi-stubs/src/main/java/android/app/ProfilerInfo.java diff --git a/hiddenapi-stubs/src/main/java/android/app/IActivityManager.java b/hiddenapi-stubs/src/main/java/android/app/IActivityManager.java index bdd0309f..c2a0a390 100644 --- a/hiddenapi-stubs/src/main/java/android/app/IActivityManager.java +++ b/hiddenapi-stubs/src/main/java/android/app/IActivityManager.java @@ -42,6 +42,16 @@ public interface IActivityManager extends IInterface { String resultData, Bundle map, String[] requiredPermissions, int appOp, Bundle options, boolean serialized, boolean sticky, int userId) throws RemoteException; + int startActivity(IApplicationThread caller, String callingPackage, Intent intent, + String resolvedType, IBinder resultTo, String resultWho, int requestCode, + int flags, ProfilerInfo profilerInfo, Bundle options) throws RemoteException; + + @RequiresApi(30) + int startActivityWithFeature(IApplicationThread caller, String callingPackage, + String callingFeatureId, Intent intent, String resolvedType, + IBinder resultTo, String resultWho, int requestCode, int flags, + ProfilerInfo profilerInfo, Bundle options) throws RemoteException; + void forceStopPackage(String packageName, int userId); boolean startUserInBackground(int userid); diff --git a/hiddenapi-stubs/src/main/java/android/app/ProfilerInfo.java b/hiddenapi-stubs/src/main/java/android/app/ProfilerInfo.java new file mode 100644 index 00000000..6b5056f0 --- /dev/null +++ b/hiddenapi-stubs/src/main/java/android/app/ProfilerInfo.java @@ -0,0 +1,23 @@ +/* + * This file is part of LSPosed. + * + * LSPosed is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * LSPosed is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with LSPosed. If not, see . + * + * Copyright (C) 2021 LSPosed Contributors + */ + +package android.app; + +public class ProfilerInfo { +}