Fix QQ, remove static elf, downgrade hangover, add dxvk, update dependencies, update code to 1.0.23

This commit is contained in:
Caten
2025-06-12 18:15:30 +08:00
parent 12997c8fd6
commit f20bcfb91b
13 changed files with 196 additions and 123 deletions

View File

@@ -22,7 +22,8 @@
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true"
android:launchMode="singleInstance"
android:theme="@style/App.Theme">
android:theme="@style/App.Theme"
android:extractNativeLibs="true">
<activity
android:name=".MainActivity"
android:exported="true"
@@ -47,8 +48,8 @@
<activity android:name="com.example.tiny_computer.Signal9Activity" />
<activity-alias
android:name="com.gaurav.avnc.UriReceiverActivity"
android:targetActivity="com.gaurav.avnc.ui.vnc.IntentReceiverActivity">
android:targetActivity="com.gaurav.avnc.ui.vnc.IntentReceiverActivity"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@@ -100,7 +101,8 @@
android:name="com.termux.x11.LoriePreferences"
android:supportsPictureInPicture="false"
android:resizeableActivity="true"
android:process=":x11">
android:process=":x11"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
<action android:name="android.intent.action.MAIN" />

View File

@@ -234,7 +234,8 @@ public class CmdEntryPoint extends ICmdEntryInterface.Stub {
String libPath = res != null ? res.getFile().replace("file:", "") : null;
if (libPath != null) {
try {
System.load(libPath);
//System.load(libPath);
System.loadLibrary("Xlorie");
} catch (Exception e) {
Log.e("CmdEntryPoint", "Failed to dlopen " + libPath, e);
System.err.println("Failed to load native library. Did you install the right apk? Try the universal one.");

View File

@@ -66,6 +66,9 @@ class MainActivity: FlutterActivity() {
startActivity(Intent(this, com.termux.x11.MainActivity::class.java))
result.success(0)
}
"getNativeLibraryPath" -> {
result.success(getApplicationInfo().nativeLibraryDir)
}
else -> {
// 不支持的方法名
result.notImplemented()