mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 16:35:47 +08:00
Termux x11 port
This commit is contained in:
1
android/shell-loader/stub/src/main/AndroidManifest.xml
Normal file
1
android/shell-loader/stub/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1 @@
|
||||
<manifest />
|
||||
@@ -0,0 +1,17 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.pm.IPackageManager;
|
||||
|
||||
public class ActivityThread {
|
||||
public static ActivityThread systemMain() {
|
||||
throw new RuntimeException("STUB");
|
||||
}
|
||||
|
||||
public ContextImpl getSystemContext() {
|
||||
throw new RuntimeException("STUB");
|
||||
}
|
||||
|
||||
public static IPackageManager getPackageManager() {
|
||||
throw new RuntimeException("STUB");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public abstract class ContextImpl extends Context {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.IIntentSender;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
|
||||
public interface IActivityManager {
|
||||
public IIntentSender getIntentSender(int type,
|
||||
String packageName, IBinder token, String resultWho,
|
||||
int requestCode, Intent[] intents, String[] resolvedTypes,
|
||||
int flags, Bundle bOptions, int userId);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package android.content;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/**
|
||||
* Stub - will be replaced by system at runtime
|
||||
*/
|
||||
public interface IIntentReceiver {
|
||||
public static abstract class Stub implements IIntentReceiver {
|
||||
public abstract void performReceive(Intent intent, int resultCode, String data, Bundle extras,
|
||||
boolean ordered, boolean sticky, int sendingUser);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package android.content;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
|
||||
/**
|
||||
* Stub - will be replaced by system at runtime
|
||||
*/
|
||||
public abstract class IIntentSender {
|
||||
abstract void send(int code, Intent intent, String resolvedType, IBinder whitelistToken,
|
||||
IIntentReceiver finishedReceiver, String requiredPermission, Bundle options);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package android.content.pm;
|
||||
|
||||
public interface IPackageManager {
|
||||
PackageInfo getPackageInfo(String packageName, long flags, int userId) throws android.os.RemoteException;
|
||||
PackageInfo getPackageInfo(String packageName, int flags, int userId) throws android.os.RemoteException;
|
||||
String[] getPackagesForUid(int uid) throws android.os.RemoteException;
|
||||
}
|
||||
Reference in New Issue
Block a user