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:
29
android/shell-loader/stub/build.gradle
Normal file
29
android/shell-loader/stub/build.gradle
Normal 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'
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
#Mon Aug 19 12:52:09 CST 2024
|
||||
@@ -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:.*:<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:.*:<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:.*:<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:.*:<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:.*:<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:.*:<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>
|
||||
@@ -0,0 +1,2 @@
|
||||
R_DEF: Internal format may change without notice
|
||||
local
|
||||
@@ -0,0 +1 @@
|
||||
0 Warning/Error
|
||||
@@ -0,0 +1 @@
|
||||
com.termux.x11.stub
|
||||
Binary file not shown.
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