Skip to content

Commit

Permalink
cleanup project
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 committed Apr 28, 2021
1 parent 790e927 commit 9b4dd82
Show file tree
Hide file tree
Showing 26 changed files with 33 additions and 346 deletions.
9 changes: 9 additions & 0 deletions hideapi/src/main/java/$android/provider/Settings$Secure.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package $android.provider;

import android.content.ContentResolver;

public class Settings$Secure {
public static String getStringForUser(ContentResolver resolver, String name, int userHandle) {
throw new IllegalArgumentException("Stub!");
}
}
15 changes: 0 additions & 15 deletions hideapi/src/main/java/android/app/ActivityManagerNative.java

This file was deleted.

15 changes: 6 additions & 9 deletions hideapi/src/main/java/android/app/ActivityThread.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package android.app;

import android.content.pm.IPackageManager;

public class ActivityThread {
static volatile IPackageManager sPackageManager;

private ContextImpl mSystemContext;
private ContextImpl mSystemUiContext;
public static ActivityThread currentActivityThread() {
throw new IllegalArgumentException("Stub!");
}

public static ActivityThread currentActivityThread() { throw new IllegalArgumentException("Stub!"); }
public ContextImpl getSystemContext() { throw new IllegalArgumentException("Stub!"); }
public static Application currentApplication() { throw new IllegalArgumentException("Stub!"); }
public ContextImpl getSystemContext() {
throw new IllegalArgumentException("Stub!");
}
}
7 changes: 0 additions & 7 deletions hideapi/src/main/java/android/app/ContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@

import android.content.Context;
import android.content.ContextWrapper;
import android.content.pm.PackageManager;

class ContextImpl extends ContextWrapper {
private PackageManager mPackageManager;

public ContextImpl(Context base) {
super(base);
}

final Context getOuterContext() {
throw new IllegalArgumentException("Stub!");
}
}
21 changes: 0 additions & 21 deletions hideapi/src/main/java/android/app/IActivityManager.java

This file was deleted.

6 changes: 0 additions & 6 deletions hideapi/src/main/java/android/app/IApplicationThread.java

This file was deleted.

4 changes: 0 additions & 4 deletions hideapi/src/main/java/android/app/ProfilerInfo.java

This file was deleted.

5 changes: 5 additions & 0 deletions hideapi/src/main/java/android/content/IClipboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@

public interface IClipboard {
ClipData getPrimaryClip(String pkg, int userId) throws RemoteException;

ClipDescription getPrimaryClipDescription(String callingPackage, int userId) throws RemoteException;

boolean hasPrimaryClip(String callingPackage, int userId) throws RemoteException;

boolean hasClipboardText(String callingPackage, int userId) throws RemoteException;

void addPrimaryClipChangedListener(IOnPrimaryClipChangedListener listener,
String callingPackage, int userId) throws RemoteException;

void removePrimaryClipChangedListener(IOnPrimaryClipChangedListener listener,
String callingPackage, int userId) throws RemoteException;

Expand Down
4 changes: 0 additions & 4 deletions hideapi/src/main/java/android/content/IContentProvider.java

This file was deleted.

This file was deleted.

15 changes: 5 additions & 10 deletions hideapi/src/main/java/android/content/pm/IPackageManager.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
package android.content.pm;

import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;

public interface IPackageManager extends IInterface {
abstract class Stub extends Binder implements IPackageManager {
static int TRANSACTION_queryIntentActivities = -1;
int getPackageUid(String packageName, int flags, int userId) throws RemoteException;

@Override
public IBinder asBinder() {
abstract class Stub extends Binder implements IPackageManager {
public static IPackageManager asInterface(IBinder binder) {
throw new IllegalArgumentException("Stub!");
}

public static IPackageManager asInterface(IBinder binder) {
@Override
public IBinder asBinder() {
throw new IllegalArgumentException("Stub!");
}
}

ParceledListSlice<ResolveInfo> queryIntentActivities(Intent intent, String resolvedType, int flags, int userId) throws RemoteException;
String[] getPackagesForUid(int uid) throws RemoteException;
int getPackageUid(String packageName, int flags, int userId) throws RemoteException;
}
16 changes: 0 additions & 16 deletions hideapi/src/main/java/android/content/pm/ParceledListSlice.java

This file was deleted.

4 changes: 0 additions & 4 deletions hideapi/src/main/java/android/os/IPermissionController.java

This file was deleted.

18 changes: 0 additions & 18 deletions hideapi/src/main/java/android/os/IServiceManager.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
package android.os;

public interface IServiceManager extends IInterface {
// Pie
IBinder getService(String name) throws RemoteException;

IBinder checkService(String name) throws RemoteException;

void addService(String name, IBinder service, boolean allowIsolated, int dumpFlags)
throws RemoteException;

String[] listServices(int dumpFlags) throws RemoteException;

void setPermissionController(IPermissionController controller)
throws RemoteException;

// Oreo
void addService(String name, IBinder service, boolean allowIsolated)
throws RemoteException;

String[] listServices() throws RemoteException;
}
6 changes: 0 additions & 6 deletions hideapi/src/main/java/android/os/ServiceManager.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
package android.os;

public final class ServiceManager {
private static IServiceManager sServiceManager;

private static IServiceManager getIServiceManager() {
throw new IllegalArgumentException("Stub!");
}

public static IBinder getService(String name) {
throw new IllegalArgumentException("Stub!");
}
Expand Down
49 changes: 0 additions & 49 deletions hideapi/src/main/java/android/os/ServiceManagerNative.java

This file was deleted.

8 changes: 4 additions & 4 deletions hideapi/src/main/java/android/os/ShellCallback.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package android.os;

public class ShellCallback implements Parcelable {
protected ShellCallback(Parcel in) {
throw new IllegalArgumentException("Stub!");
}

public static final Creator<ShellCallback> CREATOR = new Creator<ShellCallback>() {
@Override
public ShellCallback createFromParcel(Parcel in) {
Expand All @@ -17,6 +13,10 @@ public ShellCallback[] newArray(int size) {
}
};

protected ShellCallback(Parcel in) {
throw new IllegalArgumentException("Stub!");
}

@Override
public int describeContents() {
throw new IllegalArgumentException("Stub!");
Expand Down
11 changes: 0 additions & 11 deletions hideapi/src/main/java/android/os/SystemProperties.java

This file was deleted.

16 changes: 0 additions & 16 deletions hideapi/src/main/java/android/util/Singleton.java

This file was deleted.

22 changes: 0 additions & 22 deletions hideapi/src/main/java/com/android/internal/app/IAppOpsService.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9b4dd82

Please sign in to comment.