api-impl: misc stubs and fixes for Spotify II

This commit is contained in:
Daniel Panero
2024-11-03 01:04:40 +01:00
committed by Dani Pani
parent 4b36bca4c6
commit f48fce5932
9 changed files with 85 additions and 16 deletions

View File

@@ -23,4 +23,8 @@ public final class Debug {
public static long getNativeHeapAllocatedSize() {
return 0;
}
public static boolean waitingForDebugger() {
return false;
}
}

View File

@@ -22,7 +22,7 @@ package android.os;
* processes, by creating a Messenger pointing to a Handler in one process,
* and handing that Messenger to another process.
*/
public final class Messenger {
public final class Messenger implements Parcelable {
private final IMessenger mTarget;
/**
@@ -83,4 +83,18 @@ public final class Messenger {
public int describeContents() {
return 0;
}
/**
* Create a Messenger from a raw IBinder, which had previously been
* retrieved with {@link #getBinder}.
*
* @param target The IBinder this Messenger should communicate with.
*/
public Messenger(IBinder target) {
mTarget = new IMessenger() {
@Override
public void send(Message msg) {
}
};
}
}

View File

@@ -0,0 +1,4 @@
package android.os;
public class PersistableBundle extends BaseBundle {
}