Add files via upload
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "stub"
|
||||
compileSdk = 35
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package android.app;
|
||||
|
||||
/**
|
||||
* Stub for android.app.ActivityManager.
|
||||
* Exposes @hide constants needed for compilation.
|
||||
* At runtime the real ActivityManager class is used — LSPass.setHiddenApiExemptions("")
|
||||
* in ShizukuProvider ensures these hidden fields are accessible.
|
||||
*
|
||||
* Values sourced from AOSP frameworks/base/core/java/android/app/ActivityManager.java
|
||||
*/
|
||||
public class ActivityManager {
|
||||
|
||||
/** @hide Disable hidden API checks when starting instrumentation. */
|
||||
public static final int INSTR_FLAG_DISABLE_HIDDEN_API_CHECKS = 0x00000002;
|
||||
|
||||
/** @hide Do not kill/restart the target app when starting instrumentation. */
|
||||
public static final int INSTR_FLAG_NO_RESTART = 0x00000010;
|
||||
|
||||
/** @hide Run instrumentation in the SDK sandbox process (Android 14+). */
|
||||
public static final int INSTR_FLAG_INSTRUMENT_SDK_SANDBOX = 0x00000080;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.os.Binder;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
public interface IActivityManager extends IInterface {
|
||||
|
||||
void startDelegateShellPermissionIdentity(int uid, String[] permissions) throws RemoteException;
|
||||
|
||||
void stopDelegateShellPermissionIdentity() throws RemoteException;
|
||||
|
||||
boolean startInstrumentation(ComponentName className, String profileFile,
|
||||
int flags, Bundle arguments, IInstrumentationWatcher watcher,
|
||||
IUiAutomationConnection connection, int userId,
|
||||
String abiOverride) throws RemoteException;
|
||||
|
||||
abstract class Stub extends Binder implements IActivityManager {
|
||||
public static IActivityManager asInterface(IBinder obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package android.app;
|
||||
|
||||
public interface IInstrumentationWatcher extends android.os.IInterface {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package android.app;
|
||||
|
||||
public interface IUiAutomationConnection extends android.os.IInterface {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package android.app;
|
||||
|
||||
import android.os.IBinder;
|
||||
|
||||
public class UiAutomationConnection implements IUiAutomationConnection {
|
||||
public UiAutomationConnection() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBinder asBinder() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package android.os;
|
||||
|
||||
public class ServiceManager {
|
||||
public static IBinder getService(String name) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.android.internal.telephony;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
|
||||
public interface ITelephony extends android.os.IInterface {
|
||||
|
||||
int setImsProvisioningInt(int subId, int key, int value) throws RemoteException;
|
||||
|
||||
int getImsProvisioningInt(int subId, int key) throws RemoteException;
|
||||
|
||||
abstract class Stub extends Binder implements ITelephony {
|
||||
public static ITelephony asInterface(IBinder binder) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user