Termux x11 port

This commit is contained in:
Caten
2024-09-20 21:39:48 +08:00
parent 958d7839ff
commit a117050fde
136 changed files with 19410 additions and 92 deletions

View File

@@ -0,0 +1,29 @@
plugins {
id('com.android.library')
}
android {
namespace 'com.termux.x11.stub'
compileSdkVersion 30
defaultConfig {
minSdkVersion 24
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 28
}
buildFeatures {
buildConfig false
}
buildTypes {
release {
minifyEnabled false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.annotation:annotation:1.8.2'
}

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\src\main\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\src\main\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="C:\Users\29513\Documents\GitHub\termux-x11\shell-loader\stub\build\generated\res\resValues\debug"/></dataSet><mergedItems/></merger>

View File

@@ -0,0 +1,2 @@
R_DEF: Internal format may change without notice
local

View File

@@ -0,0 +1 @@
<manifest />

View File

@@ -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");
}
}

View File

@@ -0,0 +1,6 @@
package android.app;
import android.content.Context;
public abstract class ContextImpl extends Context {
}

View File

@@ -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);
}

View File

@@ -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);
}
}

View File

@@ -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);
}

View File

@@ -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;
}