mirror of
https://github.com/chiteroman/TrickyStore.git
synced 2025-07-17 15:29:32 +00:00
works now
This commit is contained in:
2
stub/src/main/AndroidManifest.xml
Normal file
2
stub/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest/>
|
||||
13
stub/src/main/java/android/content/pm/IPackageManager.java
Normal file
13
stub/src/main/java/android/content/pm/IPackageManager.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package android.content.pm;
|
||||
|
||||
import android.os.IBinder;
|
||||
|
||||
public interface IPackageManager {
|
||||
String[] getPackagesForUid(int uid);
|
||||
|
||||
class Stub {
|
||||
public static IPackageManager asInterface(IBinder binder) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
}
|
||||
19
stub/src/main/java/android/os/ServiceManager.java
Normal file
19
stub/src/main/java/android/os/ServiceManager.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package android.os;
|
||||
|
||||
public class ServiceManager {
|
||||
public static IBinder getService(String name) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
}
|
||||
|
||||
public static void addService(String name, IBinder binder) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
}
|
||||
|
||||
public static IBinder checkService(String name) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
}
|
||||
|
||||
public static String[] listServices() {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package android.system.keystore2;
|
||||
|
||||
public interface IKeystoreService {
|
||||
String DESCRIPTOR = "android.system.keystore2.IKeystoreService";
|
||||
|
||||
class Stub {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package android.system.keystore2;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public class KeyDescriptor implements Parcelable {
|
||||
public String alias;
|
||||
public byte[] blob;
|
||||
public int domain = 0;
|
||||
public long nspace = 0;
|
||||
|
||||
protected KeyDescriptor(Parcel in) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
public static final Creator<KeyDescriptor> CREATOR = new Creator<KeyDescriptor>() {
|
||||
@Override
|
||||
public KeyDescriptor createFromParcel(Parcel in) {
|
||||
return new KeyDescriptor(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyDescriptor[] newArray(int size) {
|
||||
return new KeyDescriptor[size];
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel parcel, int i) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package android.system.keystore2;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public class KeyEntryResponse implements Parcelable {
|
||||
// public IKeystoreSecurityLevel iSecurityLevel;
|
||||
public KeyMetadata metadata;
|
||||
|
||||
protected KeyEntryResponse(Parcel in) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
public static final Creator<KeyEntryResponse> CREATOR = new Creator<KeyEntryResponse>() {
|
||||
@Override
|
||||
public KeyEntryResponse createFromParcel(Parcel in) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyEntryResponse[] newArray(int size) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel parcel, int i) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
41
stub/src/main/java/android/system/keystore2/KeyMetadata.java
Normal file
41
stub/src/main/java/android/system/keystore2/KeyMetadata.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package android.system.keystore2;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public class KeyMetadata implements Parcelable {
|
||||
// public Authorization[] authorizations;
|
||||
public byte[] certificate;
|
||||
public byte[] certificateChain;
|
||||
public KeyDescriptor key;
|
||||
public int keySecurityLevel = 0;
|
||||
public long modificationTimeMs = 0;
|
||||
|
||||
protected KeyMetadata(Parcel in) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
public static final Creator<KeyMetadata> CREATOR = new Creator<KeyMetadata>() {
|
||||
@Override
|
||||
public KeyMetadata createFromParcel(Parcel in) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyMetadata[] newArray(int size) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel parcel, int i) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user