diff --git a/hiddenapi/stubs/src/main/java/android/app/ActivityManager.java b/hiddenapi/stubs/src/main/java/android/app/ActivityManager.java
deleted file mode 100644
index b38f5714..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ActivityManager.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package android.app;
-
-public class ActivityManager {
- public static int UID_OBSERVER_GONE;
- public static int UID_OBSERVER_ACTIVE;
- public static int UID_OBSERVER_IDLE;
- public static int UID_OBSERVER_CACHED;
- public static int PROCESS_STATE_UNKNOWN;
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/ActivityThread.java b/hiddenapi/stubs/src/main/java/android/app/ActivityThread.java
deleted file mode 100644
index 7e5a861b..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ActivityThread.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package android.app;
-
-import android.content.pm.ApplicationInfo;
-import android.content.res.CompatibilityInfo;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.PersistableBundle;
-
-public final class ActivityThread {
- public static ActivityThread currentActivityThread() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public ApplicationThread getApplicationThread() {
- throw new UnsupportedOperationException("STUB");
- }
-
-
- public static Application currentApplication() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public static String currentPackageName() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
- throw new UnsupportedOperationException("STUB");
- }
-
- public static String currentProcessName() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public ContextImpl getSystemContext() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public static ActivityThread systemMain() {
- throw new UnsupportedOperationException("STUB");
- }
-
- private class ApplicationThread extends IApplicationThread.Stub {
- @Override
- public IBinder asBinder() {
- return null;
- }
- }
-
- public static final class ActivityClientRecord {
- Bundle state;
- PersistableBundle persistentState;
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/Application.java b/hiddenapi/stubs/src/main/java/android/app/Application.java
deleted file mode 100644
index a7fe902e..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/Application.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.app;
-
-public class Application {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/ContentProviderHolder.java b/hiddenapi/stubs/src/main/java/android/app/ContentProviderHolder.java
deleted file mode 100644
index 9b390bd3..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ContentProviderHolder.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package android.app;
-
-import android.content.IContentProvider;
-
-public class ContentProviderHolder {
- public IContentProvider provider;
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/ContextImpl.java b/hiddenapi/stubs/src/main/java/android/app/ContextImpl.java
deleted file mode 100644
index 12c44eaa..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ContextImpl.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package android.app;
-
-import android.content.Context;
-
-public class ContextImpl extends Context {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/IActivityController.java b/hiddenapi/stubs/src/main/java/android/app/IActivityController.java
deleted file mode 100644
index a88ac8fa..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/IActivityController.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package android.app;
-
-import android.content.Intent;
-import android.os.Binder;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.IInterface;
-
-public interface IActivityController extends IInterface {
- /**
- * The system is trying to start an activity. Return true to allow
- * it to be started as normal, or false to cancel/reject this activity.
- */
- boolean activityStarting(Intent intent, String pkg);
-
- /**
- * The system is trying to return to an activity. Return true to allow
- * it to be resumed as normal, or false to cancel/reject this activity.
- */
- boolean activityResuming(String pkg);
-
- /**
- * An application process has crashed (in Java). Return true for the
- * normal error recovery (app crash dialog) to occur, false to kill
- * it immediately.
- */
- boolean appCrashed(String processName, int pid,
- String shortMsg, String longMsg,
- long timeMillis, String stackTrace);
-
- /**
- * Early call as soon as an ANR is detected.
- */
- int appEarlyNotResponding(String processName, int pid, String annotation);
-
- /**
- * An application process is not responding. Return 0 to show the "app
- * not responding" dialog, 1 to continue waiting, or -1 to kill it
- * immediately.
- */
- int appNotResponding(String processName, int pid, String processStats);
-
- /**
- * The system process watchdog has detected that the system seems to be
- * hung. Return 1 to continue waiting, or -1 to let it continue with its
- * normal kill.
- */
- int systemNotResponding(String msg);
-
- /**
- * 360 phones
- */
- boolean moveTaskToFront(String pkg, int task, int flags, Bundle options);
-
- abstract class Stub extends Binder implements IActivityController {
-
- public static IActivityController asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public IBinder asBinder() {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/IActivityManager.java b/hiddenapi/stubs/src/main/java/android/app/IActivityManager.java
deleted file mode 100644
index 0a70a72c..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/IActivityManager.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * 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 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;
-
-import android.content.IIntentReceiver;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.pm.UserInfo;
-import android.content.res.Configuration;
-import android.os.Binder;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.IInterface;
-import android.os.RemoteException;
-
-import androidx.annotation.RequiresApi;
-
-public interface IActivityManager extends IInterface {
- @RequiresApi(31)
- int broadcastIntentWithFeature(IApplicationThread caller, String callingFeatureId,
- Intent intent, String resolvedType, IIntentReceiver resultTo,
- int resultCode, String resultData, Bundle resultExtras,
- String[] requiredPermissions, String[] excludedPermissions,
- String[] excludePackages, int appOp, Bundle bOptions,
- boolean serialized, boolean sticky, int userId) throws RemoteException;
-
- @RequiresApi(31)
- int broadcastIntentWithFeature(IApplicationThread caller, String callingFeatureId,
- Intent intent, String resolvedType, IIntentReceiver resultTo,
- int resultCode, String resultData, Bundle resultExtras,
- String[] requiredPermissions, String[] excludedPermissions,
- int appOp, Bundle bOptions,
- boolean serialized, boolean sticky, int userId) throws RemoteException;
-
- @RequiresApi(30)
- int broadcastIntentWithFeature(IApplicationThread caller, String callingFeatureId,
- Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode,
- String resultData, Bundle map, String[] requiredPermissions,
- int appOp, Bundle options, boolean serialized, boolean sticky, int userId) throws RemoteException;
-
- int broadcastIntent(IApplicationThread caller, Intent intent,
- String resolvedType, IIntentReceiver resultTo, int resultCode,
- 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;
-
- 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) throws RemoteException;
-
- boolean startUserInBackground(int userid) throws RemoteException;
-
- Intent registerReceiver(IApplicationThread caller, String callerPackage,
- IIntentReceiver receiver, IntentFilter filter,
- String requiredPermission, int userId, int flags) throws RemoteException;
-
- void finishReceiver(IBinder caller, int resultCode, String resultData,
- Bundle resultExtras, boolean resultAbort, int flags) throws RemoteException;
-
- @RequiresApi(30)
- Intent registerReceiverWithFeature(IApplicationThread caller, String callerPackage,
- String callingFeatureId, IIntentReceiver receiver, IntentFilter filter,
- String requiredPermission, int userId, int flags) throws RemoteException;
-
- @RequiresApi(31)
- Intent registerReceiverWithFeature(IApplicationThread caller, String callerPackage, String callingFeatureId,
- String receiverId, IIntentReceiver receiver, IntentFilter filter,
- String requiredPermission, int userId, int flags) throws RemoteException;
-
- int bindService(IApplicationThread caller, IBinder token, Intent service,
- String resolvedType, IServiceConnection connection, int flags,
- String callingPackage, int userId) throws RemoteException;
-
- @RequiresApi(34)
- int bindService(IApplicationThread caller, IBinder token, Intent service,
- String resolvedType, IServiceConnection connection, long flags,
- String callingPackage, int userId) throws RemoteException;
-
- boolean unbindService(IServiceConnection connection) throws RemoteException;
-
- boolean switchUser(int userid) throws RemoteException;
-
- UserInfo getCurrentUser() throws RemoteException;
-
- void setActivityController(IActivityController watcher, boolean imAMonkey) throws RemoteException;
-
- @RequiresApi(29)
- ContentProviderHolder getContentProviderExternal(String name, int userId, IBinder token, String tag) throws RemoteException;
-
- ContentProviderHolder getContentProviderExternal(String name, int userId, IBinder token) throws RemoteException;
-
- Configuration getConfiguration() throws RemoteException;
-
- void registerUidObserver(IUidObserver observer, int which, int cutpoint, String callingPackage) throws RemoteException;
-
- abstract class Stub extends Binder implements IActivityManager {
- public static int TRANSACTION_setActivityController;
-
- public static IActivityManager asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/IApplicationThread.java b/hiddenapi/stubs/src/main/java/android/app/IApplicationThread.java
deleted file mode 100644
index 0b0146fa..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/IApplicationThread.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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;
-
-import android.os.Binder;
-import android.os.IBinder;
-import android.os.IInterface;
-
-public interface IApplicationThread extends IInterface {
- abstract class Stub extends Binder implements IApplicationThread {
- public static IApplicationThread asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/INotificationManager.java b/hiddenapi/stubs/src/main/java/android/app/INotificationManager.java
deleted file mode 100644
index 8a73e0e9..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/INotificationManager.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package android.app;
-
-import android.content.pm.ParceledListSlice;
-import android.os.Binder;
-import android.os.IBinder;
-import android.os.IInterface;
-import android.os.RemoteException;
-
-import androidx.annotation.RequiresApi;
-
-public interface INotificationManager extends IInterface {
- void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id,
- Notification notification, int userId) throws RemoteException;
-
- void cancelNotificationWithTag(String pkg, String tag, int id, int userId) throws RemoteException;
-
- @RequiresApi(30)
- void cancelNotificationWithTag(String pkg, String opPkg, String tag, int id, int userId) throws RemoteException;
-
- void createNotificationChannelsForPackage(String pkg, int uid, ParceledListSlice channelsList) throws RemoteException;
-
- void updateNotificationChannelForPackage(String pkg, int uid, NotificationChannel channel);
-
- @RequiresApi(30)
- NotificationChannel getNotificationChannelForPackage(String pkg, int uid, String channelId, String conversationId, boolean includeDeleted) throws RemoteException;
-
- NotificationChannel getNotificationChannelForPackage(String pkg, int uid, String channelId, boolean includeDeleted) throws RemoteException;
-
- abstract class Stub extends Binder implements INotificationManager {
- public static INotificationManager asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/IServiceConnection.java b/hiddenapi/stubs/src/main/java/android/app/IServiceConnection.java
deleted file mode 100644
index a531e1bc..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/IServiceConnection.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package android.app;
-
-import android.content.ComponentName;
-import android.os.Binder;
-import android.os.IBinder;
-import android.os.IInterface;
-
-public interface IServiceConnection extends IInterface {
- void connected(ComponentName name, IBinder service, boolean dead);
-
- abstract class Stub extends Binder implements IServiceConnection {
-
- public static IServiceConnection asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public IBinder asBinder() {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/IUidObserver.java b/hiddenapi/stubs/src/main/java/android/app/IUidObserver.java
deleted file mode 100644
index 676e509a..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/IUidObserver.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package android.app;
-
-import android.os.Binder;
-
-public interface IUidObserver {
-
- void onUidGone(int uid, boolean disabled);
-
- void onUidActive(int uid);
-
- void onUidIdle(int uid, boolean disabled);
-
- void onUidCachedChanged(int uid, boolean cached);
-
- abstract class Stub extends Binder implements IUidObserver {
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/LoadedApk.java b/hiddenapi/stubs/src/main/java/android/app/LoadedApk.java
deleted file mode 100644
index 32f294c1..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/LoadedApk.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package android.app;
-
-import android.content.pm.ApplicationInfo;
-
-public final class LoadedApk {
- private ClassLoader mDefaultClassLoader;
-
- public ApplicationInfo getApplicationInfo() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public ClassLoader getClassLoader() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public String getPackageName() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public String getResDir() {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/Notification.java b/hiddenapi/stubs/src/main/java/android/app/Notification.java
deleted file mode 100644
index 14778691..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/Notification.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.app;
-
-public class Notification {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/NotificationChannel.java b/hiddenapi/stubs/src/main/java/android/app/NotificationChannel.java
deleted file mode 100644
index dbd15704..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/NotificationChannel.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.app;
-
-public class NotificationChannel {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/ProfilerInfo.java b/hiddenapi/stubs/src/main/java/android/app/ProfilerInfo.java
deleted file mode 100644
index 6b5056f0..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ProfilerInfo.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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 {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/app/ResourcesManager.java b/hiddenapi/stubs/src/main/java/android/app/ResourcesManager.java
deleted file mode 100644
index 3132dff5..00000000
--- a/hiddenapi/stubs/src/main/java/android/app/ResourcesManager.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.app;
-
-public class ResourcesManager {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/AttributionSource.java b/hiddenapi/stubs/src/main/java/android/content/AttributionSource.java
deleted file mode 100644
index f54c432f..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/AttributionSource.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content;
-
-public class AttributionSource {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/BroadcastReceiver.java b/hiddenapi/stubs/src/main/java/android/content/BroadcastReceiver.java
deleted file mode 100644
index d70f080a..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/BroadcastReceiver.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package android.content;
-
-public abstract class BroadcastReceiver {
- public abstract void onReceive(Context context, Intent intent);
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/ComponentName.java b/hiddenapi/stubs/src/main/java/android/content/ComponentName.java
deleted file mode 100644
index 47ef5a70..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/ComponentName.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content;
-
-public final class ComponentName {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/Context.java b/hiddenapi/stubs/src/main/java/android/content/Context.java
deleted file mode 100644
index fc22c449..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/Context.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package android.content;
-
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.UserHandle;
-
-public class Context {
- public IBinder getActivityToken() {
- throw new UnsupportedOperationException("STUB");
- }
- public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user,
- IntentFilter filter, String broadcastPermission, Handler scheduler) {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/IContentProvider.java b/hiddenapi/stubs/src/main/java/android/content/IContentProvider.java
deleted file mode 100644
index f3aba638..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/IContentProvider.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package android.content;
-
-import android.os.Bundle;
-import android.os.IInterface;
-import android.os.RemoteException;
-
-import androidx.annotation.RequiresApi;
-
-public interface IContentProvider extends IInterface {
- @RequiresApi(29)
- Bundle call(String callingPkg, String authority, String method,
- String arg, Bundle extras) throws RemoteException;
-
- @RequiresApi(30)
- Bundle call(String callingPkg, String attributionTag, String authority,
- String method, String arg, Bundle extras) throws RemoteException;
-
- @RequiresApi(31)
- Bundle call(AttributionSource attributionSource, String authority,
- String method, String arg, Bundle extras) throws RemoteException;
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/IIntentReceiver.java b/hiddenapi/stubs/src/main/java/android/content/IIntentReceiver.java
deleted file mode 100644
index 233fce19..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/IIntentReceiver.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * 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.content;
-
-import android.os.Binder;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.IInterface;
-
-public interface IIntentReceiver extends IInterface {
- void performReceive(Intent intent, int resultCode, String data,
- Bundle extras, boolean ordered, boolean sticky, int sendingUser);
- abstract class Stub extends Binder implements IIntentReceiver {
- public static IIntentReceiver asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public IBinder asBinder() {
- return this;
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/IIntentSender.java b/hiddenapi/stubs/src/main/java/android/content/IIntentSender.java
deleted file mode 100644
index 842d8a74..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/IIntentSender.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package android.content;
-
-import android.os.Binder;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.IInterface;
-
-import androidx.annotation.RequiresApi;
-
-public interface IIntentSender extends IInterface {
-
- int send(int code, Intent intent, String resolvedType,
- IIntentReceiver finishedReceiver, String requiredPermission, Bundle options);
-
- @RequiresApi(26)
- void send(int code, Intent intent, String resolvedType, IBinder whitelistToken,
- IIntentReceiver finishedReceiver, String requiredPermission, Bundle options);
-
- abstract class Stub extends Binder implements IIntentSender {
-
- public Stub() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public android.os.IBinder asBinder() {
- throw new UnsupportedOperationException();
- }
-
- public static IIntentSender asInterface(IBinder binder) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/IntentFilter.java b/hiddenapi/stubs/src/main/java/android/content/IntentFilter.java
deleted file mode 100644
index 347a714c..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/IntentFilter.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package android.content;
-
-public class IntentFilter {
-
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/pm/PackageInstaller.java b/hiddenapi/stubs/src/main/java/android/content/pm/PackageInstaller.java
deleted file mode 100644
index ab6b0de4..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/pm/PackageInstaller.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package android.content.pm;
-
-public class PackageInstaller {
- public static class SessionParams {
- public int installFlags = 0;
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/pm/PackageManager.java b/hiddenapi/stubs/src/main/java/android/content/pm/PackageManager.java
deleted file mode 100644
index 3d7e3a08..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/pm/PackageManager.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package android.content.pm;
-
-import java.util.List;
-
-public class PackageManager {
- public List getInstalledPackagesAsUser(int flags, int userId) {
- throw new UnsupportedOperationException("STUB");
- }
-
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/pm/PackageParser.java b/hiddenapi/stubs/src/main/java/android/content/pm/PackageParser.java
deleted file mode 100644
index bbdeb54b..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/pm/PackageParser.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package android.content.pm;
-
-import java.io.File;
-
-public class PackageParser {
- public static class PackageLite {
- public final String packageName = null;
- }
-
- public final static class Package {
- public ApplicationInfo applicationInfo;
- }
-
- /** Before SDK21 */
- public static PackageLite parsePackageLite(String packageFile, int flags) {
- throw new UnsupportedOperationException("STUB");
- }
-
- /** Since SDK21 */
- public static PackageLite parsePackageLite(File packageFile, int flags) throws PackageParserException {
- throw new UnsupportedOperationException("STUB");
- }
-
- public Package parsePackage(File packageFile, int flags, boolean useCaches)
- throws PackageParserException {
- throw new UnsupportedOperationException("STUB");
- }
-
- /** Since SDK21 */
- public static class PackageParserException extends Exception {
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/AssetManager.java b/hiddenapi/stubs/src/main/java/android/content/res/AssetManager.java
deleted file mode 100644
index 68caa70f..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/AssetManager.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package android.content.res;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-public final class AssetManager {
- public final int addAssetPath(String path) {
- throw new UnsupportedOperationException("STUB");
- }
-
- public void close() {
- throw new UnsupportedOperationException("STUB");
- }
-
- public final InputStream open(String fileName) throws IOException {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/CompatibilityInfo.java b/hiddenapi/stubs/src/main/java/android/content/res/CompatibilityInfo.java
deleted file mode 100644
index c63acede..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/CompatibilityInfo.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content.res;
-
-public class CompatibilityInfo {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/Configuration.java b/hiddenapi/stubs/src/main/java/android/content/res/Configuration.java
deleted file mode 100644
index 80e4df10..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/Configuration.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content.res;
-
-public class Configuration {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/Resources.java b/hiddenapi/stubs/src/main/java/android/content/res/Resources.java
deleted file mode 100644
index cb5ba815..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/Resources.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package android.content.res;
-
-import android.util.DisplayMetrics;
-
-public class Resources {
- public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) {
- throw new UnsupportedOperationException("STUB");
- }
-
- public Resources(ClassLoader classLoader) {
- throw new UnsupportedOperationException("STUB");
- }
-
- public void setImpl(ResourcesImpl impl) {
- throw new UnsupportedOperationException("STUB");
- }
-
- public CompatibilityInfo getCompatibilityInfo() {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/ResourcesImpl.java b/hiddenapi/stubs/src/main/java/android/content/res/ResourcesImpl.java
deleted file mode 100644
index 3f29d11d..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/ResourcesImpl.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content.res;
-
-public class ResourcesImpl {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/ResourcesKey.java b/hiddenapi/stubs/src/main/java/android/content/res/ResourcesKey.java
deleted file mode 100644
index f82c90a3..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/ResourcesKey.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.content.res;
-
-public class ResourcesKey {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/content/res/TypedArray.java b/hiddenapi/stubs/src/main/java/android/content/res/TypedArray.java
deleted file mode 100644
index f067e0fb..00000000
--- a/hiddenapi/stubs/src/main/java/android/content/res/TypedArray.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package android.content.res;
-
-public class TypedArray {
- protected TypedArray(Resources resources) {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/ddm/DdmHandleAppName.java b/hiddenapi/stubs/src/main/java/android/ddm/DdmHandleAppName.java
deleted file mode 100644
index 1ed326b7..00000000
--- a/hiddenapi/stubs/src/main/java/android/ddm/DdmHandleAppName.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package android.ddm;
-
-public class DdmHandleAppName {
- public static void setAppName(String name, int userId) {
- throw new RuntimeException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/graphics/Movie.java b/hiddenapi/stubs/src/main/java/android/graphics/Movie.java
deleted file mode 100644
index 22b2384d..00000000
--- a/hiddenapi/stubs/src/main/java/android/graphics/Movie.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.graphics;
-
-public class Movie {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/graphics/drawable/Drawable.java b/hiddenapi/stubs/src/main/java/android/graphics/drawable/Drawable.java
deleted file mode 100644
index 789035d9..00000000
--- a/hiddenapi/stubs/src/main/java/android/graphics/drawable/Drawable.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.graphics.drawable;
-
-public class Drawable {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/Build.java b/hiddenapi/stubs/src/main/java/android/os/Build.java
deleted file mode 100644
index e0b70fc3..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/Build.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package android.os;
-
-public class Build {
- public static class VERSION {
- public final static int SDK_INT = SystemProperties.getInt(
- "ro.build.version.sdk", 0);
- }
- public static class VERSION_CODES {
- public static final int O_MR1 = 27;
- public static final int P = 28;
- public static final int Q = 29;
- public static final int R = 30;
- public static final int S = 31;
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/Bundle.java b/hiddenapi/stubs/src/main/java/android/os/Bundle.java
deleted file mode 100644
index 24323c6a..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/Bundle.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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.os;
-
-public class Bundle {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/Environment.java b/hiddenapi/stubs/src/main/java/android/os/Environment.java
deleted file mode 100644
index f769f46d..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/Environment.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package android.os;
-
-import java.io.File;
-
-public class Environment {
- public static File getDataProfilesDePackageDirectory(int userId, String packageName) {
- throw new IllegalArgumentException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/Handler.java b/hiddenapi/stubs/src/main/java/android/os/Handler.java
deleted file mode 100644
index dd632722..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/Handler.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.os;
-
-public class Handler {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/IPowerManager.java b/hiddenapi/stubs/src/main/java/android/os/IPowerManager.java
deleted file mode 100644
index dd82db6d..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/IPowerManager.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package android.os;
-
-public interface IPowerManager extends IInterface {
- void reboot(boolean confirm, String reason, boolean wait) throws RemoteException;
-
- abstract class Stub extends Binder implements IPowerManager {
-
- public static IPowerManager asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/IServiceCallback.java b/hiddenapi/stubs/src/main/java/android/os/IServiceCallback.java
deleted file mode 100644
index d3543024..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/IServiceCallback.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package android.os;
-public interface IServiceCallback extends IInterface
-{
- public static abstract class Stub extends android.os.Binder implements android.os.IServiceCallback {
- }
- /**
- * Called when a service is registered.
- *
- * @param name the service name that has been registered with
- * @param binder the binder that is registered
- */
- public void onRegistration(java.lang.String name, android.os.IBinder binder) throws android.os.RemoteException;
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/IServiceManager.java b/hiddenapi/stubs/src/main/java/android/os/IServiceManager.java
deleted file mode 100644
index 7a1b1961..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/IServiceManager.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package android.os;
-
-public interface IServiceManager extends IInterface {
-
- void tryUnregisterService(java.lang.String name, android.os.IBinder service);
-
- IBinder getService(String name);
-
- public void registerForNotifications(String name, IServiceCallback cb);
-
- abstract class Stub extends Binder implements IServiceManager {
- public static IServiceManager asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/IUserManager.java b/hiddenapi/stubs/src/main/java/android/os/IUserManager.java
deleted file mode 100644
index f2295d0b..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/IUserManager.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package android.os;
-
-import android.content.pm.UserInfo;
-
-import androidx.annotation.RequiresApi;
-
-import java.util.List;
-
-public interface IUserManager extends IInterface {
- @RequiresApi(26)
- boolean isUserUnlocked(int userId)
- throws RemoteException;
-
- List getUsers(boolean excludeDying)
- throws RemoteException;
-
- List getUsers(boolean excludePartial, boolean excludeDying, boolean excludePreCreated)
- throws RemoteException;
-
- UserInfo getUserInfo(int userHandle) throws RemoteException;
-
- UserInfo getProfileParent(int userId) throws RemoteException;
-
- boolean isUserUnlockingOrUnlocked(int userId) throws RemoteException;
-
- abstract class Stub extends Binder implements IUserManager {
-
- public static IUserManager asInterface(IBinder obj) {
- throw new RuntimeException("STUB");
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/Parcelable.java b/hiddenapi/stubs/src/main/java/android/os/Parcelable.java
deleted file mode 100644
index 5c716ee5..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/Parcelable.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package android.os;
-
-public interface Parcelable {
- interface Creator{
- public T createFromParcel(Parcel source);
- public T[] newArray(int size);
- }
- void writeToParcel(Parcel dest, int flags);
- int describeContents();
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/PersistableBundle.java b/hiddenapi/stubs/src/main/java/android/os/PersistableBundle.java
deleted file mode 100644
index e06f6f0c..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/PersistableBundle.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.os;
-
-public class PersistableBundle {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/ResultReceiver.java b/hiddenapi/stubs/src/main/java/android/os/ResultReceiver.java
deleted file mode 100644
index 358ae780..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/ResultReceiver.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.os;
-
-public class ResultReceiver {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/SELinux.java b/hiddenapi/stubs/src/main/java/android/os/SELinux.java
deleted file mode 100644
index 991a84fe..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/SELinux.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package android.os;
-
-public class SELinux {
- public static boolean checkSELinuxAccess(String scon, String tcon, String tclass, String perm) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static boolean setFileContext(String path, String context) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static boolean setFSCreateContext(String context){
- throw new UnsupportedOperationException("Stub");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/ShellCallback.java b/hiddenapi/stubs/src/main/java/android/os/ShellCallback.java
deleted file mode 100644
index fe342213..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/ShellCallback.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package android.os;
-
-public class ShellCallback implements Parcelable {
- public static final Parcelable.Creator CREATOR = new Creator() {
- @Override
- public ShellCallback createFromParcel(Parcel source) {
- throw new IllegalArgumentException("STUB");
- }
-
- @Override
- public ShellCallback[] newArray(int size) {
- throw new IllegalArgumentException("STUB");
- }
- };
-
- @Override
- public void writeToParcel(Parcel dest, int flags) {
- throw new IllegalArgumentException("STUB");
- }
-
- @Override
- public int describeContents() {
- throw new IllegalArgumentException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/ShellCommand.java b/hiddenapi/stubs/src/main/java/android/os/ShellCommand.java
deleted file mode 100644
index 56dac90c..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/ShellCommand.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package android.os;
-
-import java.io.FileDescriptor;
-import java.io.InputStream;
-import java.io.PrintWriter;
-
-public abstract class ShellCommand {
- public int exec(Binder target, FileDescriptor in, FileDescriptor out, FileDescriptor err,
- String[] args, ShellCallback callback, ResultReceiver resultReceiver) {
- throw new IllegalArgumentException("STUB!");
- }
-
- public abstract int onCommand(String cmd);
- public abstract void onHelp();
-
- public String getNextOption(){
- throw new IllegalArgumentException("STUB!");
- }
-
- public String getNextArgRequired() {
- throw new IllegalArgumentException("STUB!");
- }
-
- public PrintWriter getErrPrintWriter() {
- throw new IllegalArgumentException("STUB!");
- }
- public PrintWriter getOutPrintWriter() {
- throw new IllegalArgumentException("STUB!");
- }
- public InputStream getRawInputStream() {
- throw new IllegalArgumentException("STUB!");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/SystemProperties.java b/hiddenapi/stubs/src/main/java/android/os/SystemProperties.java
deleted file mode 100644
index 240fa36c..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/SystemProperties.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package android.os;
-
-import android.annotation.NonNull;
-import android.annotation.Nullable;
-
-public class SystemProperties {
- public static String get(@NonNull String key) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static String get(@NonNull String key, @Nullable String def) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static void set(@NonNull String key, @Nullable String val) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static boolean getBoolean(@NonNull String key, boolean def) {
- throw new UnsupportedOperationException("Stub");
- }
-
- public static int getInt(@NonNull String key, int def) {
- throw new UnsupportedOperationException("Stub");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/UserHandle.java b/hiddenapi/stubs/src/main/java/android/os/UserHandle.java
deleted file mode 100644
index 310fe246..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/UserHandle.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package android.os;
-
-import android.annotation.NonNull;
-
-public class UserHandle {
-
- public UserHandle(int h) {
- throw new RuntimeException("STUB");
- }
-
- public int getIdentifier() {
- throw new RuntimeException("STUB");
- }
-
- public static final @NonNull
- UserHandle ALL = null;
-}
diff --git a/hiddenapi/stubs/src/main/java/android/os/UserManager.java b/hiddenapi/stubs/src/main/java/android/os/UserManager.java
deleted file mode 100644
index 1dda5b63..00000000
--- a/hiddenapi/stubs/src/main/java/android/os/UserManager.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package android.os;
-
-import android.content.pm.UserInfo;
-
-import java.util.List;
-
-public class UserManager {
- public List getUsers() {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/permission/IPermissionManager.java b/hiddenapi/stubs/src/main/java/android/permission/IPermissionManager.java
deleted file mode 100644
index 595f4756..00000000
--- a/hiddenapi/stubs/src/main/java/android/permission/IPermissionManager.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package android.permission;
-
-import java.util.List;
-
-public interface IPermissionManager {
-
- List> getSplitPermissions();
-}
diff --git a/hiddenapi/stubs/src/main/java/android/system/ErrnoException.java b/hiddenapi/stubs/src/main/java/android/system/ErrnoException.java
deleted file mode 100644
index 014857bc..00000000
--- a/hiddenapi/stubs/src/main/java/android/system/ErrnoException.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package android.system;
-
-public final class ErrnoException extends Exception {
-
-}
diff --git a/hiddenapi/stubs/src/main/java/android/system/Int32Ref.java b/hiddenapi/stubs/src/main/java/android/system/Int32Ref.java
deleted file mode 100644
index e44e01b0..00000000
--- a/hiddenapi/stubs/src/main/java/android/system/Int32Ref.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package android.system;
-
-import java.util.Objects;
-
-public class Int32Ref {
- public int value;
-
- public Int32Ref(int value) {
- this.value = value;
- }
-
- @Override public String toString() {
- return Objects.toString(this);
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/system/Os.java b/hiddenapi/stubs/src/main/java/android/system/Os.java
deleted file mode 100644
index 04f0ec2b..00000000
--- a/hiddenapi/stubs/src/main/java/android/system/Os.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package android.system;
-
-import android.util.MutableInt;
-
-import androidx.annotation.RequiresApi;
-
-import java.io.FileDescriptor;
-
-public class Os {
- public static int ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) throws ErrnoException {
- throw new ErrnoException();
- }
-
- @RequiresApi(27)
- public static int ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg) throws ErrnoException {
- throw new ErrnoException();
- }
-
- @RequiresApi(31)
- public static int ioctlInt(FileDescriptor fd, int cmd) throws ErrnoException {
- throw new ErrnoException();
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/util/DisplayMetrics.java b/hiddenapi/stubs/src/main/java/android/util/DisplayMetrics.java
deleted file mode 100644
index 35c44ff0..00000000
--- a/hiddenapi/stubs/src/main/java/android/util/DisplayMetrics.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.util;
-
-public class DisplayMetrics {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/util/MutableInt.java b/hiddenapi/stubs/src/main/java/android/util/MutableInt.java
deleted file mode 100644
index 177f52ee..00000000
--- a/hiddenapi/stubs/src/main/java/android/util/MutableInt.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package android.util;
-
-public final class MutableInt {
- public int value;
-
- public MutableInt(int value) {
- this.value = value;
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/util/TypedValue.java b/hiddenapi/stubs/src/main/java/android/util/TypedValue.java
deleted file mode 100644
index dd6c9a34..00000000
--- a/hiddenapi/stubs/src/main/java/android/util/TypedValue.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.util;
-
-public class TypedValue {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/view/IWindowManager.java b/hiddenapi/stubs/src/main/java/android/view/IWindowManager.java
deleted file mode 100644
index 9ad26bc1..00000000
--- a/hiddenapi/stubs/src/main/java/android/view/IWindowManager.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package android.view;
-
-import android.app.IActivityManager;
-import android.os.Binder;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.os.IInterface;
-
-public interface IWindowManager extends IInterface {
- void lockNow(Bundle options);
-
- abstract class Stub extends Binder implements IWindowManager {
- public static IWindowManager asInterface(IBinder obj) {
- throw new UnsupportedOperationException();
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/android/webkit/WebViewDelegate.java b/hiddenapi/stubs/src/main/java/android/webkit/WebViewDelegate.java
deleted file mode 100644
index 3ad7cd29..00000000
--- a/hiddenapi/stubs/src/main/java/android/webkit/WebViewDelegate.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.webkit;
-
-public class WebViewDelegate {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactory.java b/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactory.java
deleted file mode 100644
index e266da66..00000000
--- a/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactory.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.webkit;
-
-public class WebViewFactory {
-}
diff --git a/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactoryProvider.java b/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactoryProvider.java
deleted file mode 100644
index 43b5fd5e..00000000
--- a/hiddenapi/stubs/src/main/java/android/webkit/WebViewFactoryProvider.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package android.webkit;
-
-public class WebViewFactoryProvider {
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/internal/os/BinderInternal.java b/hiddenapi/stubs/src/main/java/com/android/internal/os/BinderInternal.java
deleted file mode 100644
index 728c2ab5..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/internal/os/BinderInternal.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.android.internal.os;
-
-import android.os.IBinder;
-
-public class BinderInternal {
- public static final native IBinder getContextObject();
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/internal/os/ZygoteInit.java b/hiddenapi/stubs/src/main/java/com/android/internal/os/ZygoteInit.java
deleted file mode 100644
index 243b350a..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/internal/os/ZygoteInit.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package com.android.internal.os;
-
-public class ZygoteInit {
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/internal/util/XmlUtils.java b/hiddenapi/stubs/src/main/java/com/android/internal/util/XmlUtils.java
deleted file mode 100644
index 3e35527e..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/internal/util/XmlUtils.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.android.internal.util;
-
-import org.xmlpull.v1.XmlPullParserException;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-
-public class XmlUtils {
- @SuppressWarnings("rawtypes")
- public static final HashMap readMapXml(InputStream in) throws XmlPullParserException, IOException {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/server/LocalServices.java b/hiddenapi/stubs/src/main/java/com/android/server/LocalServices.java
deleted file mode 100644
index 06717abf..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/server/LocalServices.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.android.server;
-
-public class LocalServices {
-
- public static T getService(Class type) {
- throw new UnsupportedOperationException("STUB");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/server/SystemService.java b/hiddenapi/stubs/src/main/java/com/android/server/SystemService.java
deleted file mode 100644
index 2f678e8a..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/server/SystemService.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package com.android.server;
-
-public abstract class SystemService {
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/server/SystemServiceManager.java b/hiddenapi/stubs/src/main/java/com/android/server/SystemServiceManager.java
deleted file mode 100644
index d9e2a920..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/server/SystemServiceManager.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.android.server;
-
-import java.util.ArrayList;
-
-public class SystemServiceManager {
- private final ArrayList mServices = new ArrayList<>();
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/server/am/ActivityManagerService.java b/hiddenapi/stubs/src/main/java/com/android/server/am/ActivityManagerService.java
deleted file mode 100644
index 2d51101f..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/server/am/ActivityManagerService.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.android.server.am;
-
-import com.android.server.SystemService;
-
-public class ActivityManagerService {
- public static final class Lifecycle extends SystemService {
- public ActivityManagerService getService() {
- throw new UnsupportedOperationException("STUB");
- }
- private ProcessRecord findProcessLocked(String process, int userId, String callName) {
- throw new UnsupportedOperationException("STUB");
- }
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/com/android/server/am/ProcessRecord.java b/hiddenapi/stubs/src/main/java/com/android/server/am/ProcessRecord.java
deleted file mode 100644
index 8947ce02..00000000
--- a/hiddenapi/stubs/src/main/java/com/android/server/am/ProcessRecord.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.android.server.am;
-
-public class ProcessRecord {
- String processName = null;
-}
diff --git a/hiddenapi/stubs/src/main/java/dalvik/system/BaseDexClassLoader.java b/hiddenapi/stubs/src/main/java/dalvik/system/BaseDexClassLoader.java
deleted file mode 100644
index 4979dc44..00000000
--- a/hiddenapi/stubs/src/main/java/dalvik/system/BaseDexClassLoader.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package dalvik.system;
-
-import java.nio.ByteBuffer;
-
-public class BaseDexClassLoader extends ClassLoader {
- public BaseDexClassLoader(ByteBuffer[] dexFiles, ClassLoader parent) {
- throw new RuntimeException("Stub!");
- }
-
- public BaseDexClassLoader(ByteBuffer[] dexFiles, String librarySearchPath, ClassLoader parent) {
- throw new RuntimeException("Stub!");
- }
-
- public String getLdLibraryPath() {
- throw new RuntimeException("Stub!");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/dalvik/system/VMRuntime.java b/hiddenapi/stubs/src/main/java/dalvik/system/VMRuntime.java
deleted file mode 100644
index 692b4569..00000000
--- a/hiddenapi/stubs/src/main/java/dalvik/system/VMRuntime.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package dalvik.system;
-
-public class VMRuntime {
-
- public static VMRuntime getRuntime() {
- throw new RuntimeException("Stub!");
- }
-
- // Use `Process.is64Bit()` instead
- public native boolean is64Bit();
-
- public native String vmInstructionSet();
-
- public native boolean isJavaDebuggable();
-}
diff --git a/hiddenapi/stubs/src/main/java/org/xmlpull/v1/XmlPullParserException.java b/hiddenapi/stubs/src/main/java/org/xmlpull/v1/XmlPullParserException.java
deleted file mode 100644
index 220847ba..00000000
--- a/hiddenapi/stubs/src/main/java/org/xmlpull/v1/XmlPullParserException.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package org.xmlpull.v1;
-
-public class XmlPullParserException extends Throwable {
-}
diff --git a/hiddenapi/stubs/src/main/java/sun/misc/CompoundEnumeration.java b/hiddenapi/stubs/src/main/java/sun/misc/CompoundEnumeration.java
deleted file mode 100644
index 26eeedc1..00000000
--- a/hiddenapi/stubs/src/main/java/sun/misc/CompoundEnumeration.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package sun.misc;
-
-import java.util.Enumeration;
-import java.util.NoSuchElementException;
-
-public class CompoundEnumeration implements Enumeration {
- private final Enumeration[] enums;
- private int index = 0;
-
- public CompoundEnumeration(Enumeration[] enums) {
- this.enums = enums;
- }
-
- private boolean next() {
- while (index < enums.length) {
- if (enums[index] != null && enums[index].hasMoreElements()) {
- return true;
- }
- index++;
- }
- return false;
- }
-
- public boolean hasMoreElements() {
- return next();
- }
-
- public E nextElement() {
- if (!next()) {
- throw new NoSuchElementException();
- }
- return enums[index].nextElement();
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/sun/net/www/ParseUtil.java b/hiddenapi/stubs/src/main/java/sun/net/www/ParseUtil.java
deleted file mode 100644
index a3755eec..00000000
--- a/hiddenapi/stubs/src/main/java/sun/net/www/ParseUtil.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package sun.net.www;
-
-public class ParseUtil {
- public static String encodePath(String path, boolean flag) {
- throw new RuntimeException("Stub!");
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/sun/net/www/protocol/jar/Handler.java b/hiddenapi/stubs/src/main/java/sun/net/www/protocol/jar/Handler.java
deleted file mode 100644
index 838a47e5..00000000
--- a/hiddenapi/stubs/src/main/java/sun/net/www/protocol/jar/Handler.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package sun.net.www.protocol.jar;
-
-public abstract class Handler extends java.net.URLStreamHandler {
-}
diff --git a/hiddenapi/stubs/src/main/java/xposed/dummy/XResourcesSuperClass.java b/hiddenapi/stubs/src/main/java/xposed/dummy/XResourcesSuperClass.java
deleted file mode 100644
index 16f38f30..00000000
--- a/hiddenapi/stubs/src/main/java/xposed/dummy/XResourcesSuperClass.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package xposed.dummy;
-
-import android.content.res.Resources;
-
-/**
- * This class is used as super class of XResources.
- *
- * This implementation isn't included in the .dex file. Instead, it's created on the device.
- * Usually, it will extend Resources, but some ROMs use their own Resources subclass.
- * In that case, XResourcesSuperClass will extend the ROM's subclass in an attempt to increase
- * compatibility.
- */
-public class XResourcesSuperClass extends Resources {
- /** Dummy, will never be called (objects are transferred to this class only). */
- protected XResourcesSuperClass() {
- super(null, null, null);
- throw new UnsupportedOperationException();
- }
-
- protected XResourcesSuperClass(ClassLoader classLoader) {
- super(classLoader);
- throw new UnsupportedOperationException();
- }
-}
diff --git a/hiddenapi/stubs/src/main/java/xposed/dummy/XTypedArraySuperClass.java b/hiddenapi/stubs/src/main/java/xposed/dummy/XTypedArraySuperClass.java
deleted file mode 100644
index cefd760b..00000000
--- a/hiddenapi/stubs/src/main/java/xposed/dummy/XTypedArraySuperClass.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package xposed.dummy;
-
-import android.content.res.Resources;
-import android.content.res.TypedArray;
-
-/**
- * This class is used as super class of XResources.XTypedArray.
- *
- * This implementation isn't included in the .dex file. Instead, it's created on the device.
- * Usually, it will extend TypedArray, but some ROMs use their own TypedArray subclass.
- * In that case, XTypedArraySuperClass will extend the ROM's subclass in an attempt to increase
- * compatibility.
- */
-public class XTypedArraySuperClass extends TypedArray {
- /** Dummy, will never be called (objects are transferred to this class only). */
- protected XTypedArraySuperClass(Resources resources) {
- super(resources);
- throw new UnsupportedOperationException();
- }
-}