Skip to content

Commit 6b67dda

Browse files
committed
Fix QQ, remove static elf, downgrade hangover, add dxvk, update dependencies, update code to 1.0.23
1 parent 009cd4e commit 6b67dda

File tree

13 files changed

+196
-123
lines changed

13 files changed

+196
-123
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ app.*.map.json
4848
/backup
4949

5050
assets/xa*
51+
assets/patch.tar.gz
52+
53+
android/app/src/main/jniLibs/*
54+
55+
devtools_options.yaml
5156

5257
lib/l10n/app_localizations*

android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
android:icon="@mipmap/ic_launcher"
2323
android:usesCleartextTraffic="true"
2424
android:launchMode="singleInstance"
25-
android:theme="@style/App.Theme">
25+
android:theme="@style/App.Theme"
26+
android:extractNativeLibs="true">
2627
<activity
2728
android:name=".MainActivity"
2829
android:exported="true"
@@ -47,8 +48,8 @@
4748
<activity android:name="com.example.tiny_computer.Signal9Activity" />
4849
<activity-alias
4950
android:name="com.gaurav.avnc.UriReceiverActivity"
50-
android:targetActivity="com.gaurav.avnc.ui.vnc.IntentReceiverActivity">
51-
51+
android:targetActivity="com.gaurav.avnc.ui.vnc.IntentReceiverActivity"
52+
android:exported="false">
5253
<intent-filter>
5354
<action android:name="android.intent.action.VIEW" />
5455

@@ -100,7 +101,8 @@
100101
android:name="com.termux.x11.LoriePreferences"
101102
android:supportsPictureInPicture="false"
102103
android:resizeableActivity="true"
103-
android:process=":x11">
104+
android:process=":x11"
105+
android:exported="false">
104106
<intent-filter>
105107
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
106108
<action android:name="android.intent.action.MAIN" />

android/app/src/main/java/com/termux/x11/CmdEntryPoint.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ public static Context createContext() {
234234
String libPath = res != null ? res.getFile().replace("file:", "") : null;
235235
if (libPath != null) {
236236
try {
237-
System.load(libPath);
237+
//System.load(libPath);
238+
System.loadLibrary("Xlorie");
238239
} catch (Exception e) {
239240
Log.e("CmdEntryPoint", "Failed to dlopen " + libPath, e);
240241
System.err.println("Failed to load native library. Did you install the right apk? Try the universal one.");

android/app/src/main/kotlin/com/example/tiny_computer/MainActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ class MainActivity: FlutterActivity() {
6666
startActivity(Intent(this, com.termux.x11.MainActivity::class.java))
6767
result.success(0)
6868
}
69+
"getNativeLibraryPath" -> {
70+
result.success(getApplicationInfo().nativeLibraryDir)
71+
}
6972
else -> {
7073
// 不支持的方法名
7174
result.notImplemented()

assets/assets.zip

-1.64 MB
Binary file not shown.

assets/busybox

-1.52 MB
Binary file not shown.

assets/patch.tar.gz

-43.4 MB
Binary file not shown.

extra/cross/install-hangover

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ done
4949

5050
echo "正在安装Hangover..."
5151
tar xvf hangover.tar
52-
sudo apt install -y ./hangover-wine_${latest_version}~bookworm_arm64.deb ./hangover-libarm64ecfex_${latest_version}_arm64.deb
52+
sudo apt install -y ./hangover*.deb
5353
if [ $? -ne 0 ]; then
5454
cd /tmp
5555
rm -rf /tmp/hangover
@@ -60,6 +60,19 @@ fi
6060
echo "正在初始化Wine..."
6161
wineboot --init
6262

63+
echo "正在安装DXVK..."
64+
tar xvf dxvk-v*.tar.gz
65+
mv dxvk-v*/x32 /home/tiny/.wine/drive_c/windows/syswow64
66+
mv dxvk-v*/arm64ec /home/tiny/.wine/drive_c/windows/system32
67+
68+
echo "自动配置 DLL 覆盖..."
69+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d8 /d native /f >/dev/null 2>&1
70+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d9 /d native /f >/dev/null 2>&1
71+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d10 /d native /f >/dev/null 2>&1
72+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d10core /d native /f >/dev/null 2>&1
73+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d11 /d native /f >/dev/null 2>&1
74+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v dxgi /d native /f >/dev/null 2>&1
75+
6376
echo "正在修复字体..."
6477
regedit "Z:\\home\\tiny\\.local\\share\\tiny\\extra\\chn_fonts.reg" && wine reg delete "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes" /va /f
6578

extra/cross/install-hangover-stable

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo apt update
55
sudo apt upgrade -y
66

77
hangover_url="https://github.com/AndreRH/hangover/releases/download/hangover-9.20.1/hangover_9.20.1_debian12_bookworm_arm64.tar"
8-
latest_version="10.9"
8+
latest_version="10.6.1"
99

1010
mirror_sites=(
1111
"https://gh.llkk.cc/"
@@ -35,7 +35,7 @@ done
3535

3636
echo "正在安装Hangover..."
3737
tar xvf hangover.tar
38-
sudo apt install -y ./hangover-wine_${latest_version}~bookworm_arm64.deb ./hangover-libarm64ecfex_${latest_version}_arm64.deb
38+
sudo apt install -y ./hangover*.deb
3939
if [ $? -ne 0 ]; then
4040
cd /tmp
4141
rm -rf /tmp/hangover
@@ -46,6 +46,19 @@ fi
4646
echo "正在初始化Wine..."
4747
wineboot --init
4848

49+
echo "正在安装DXVK..."
50+
tar xvf dxvk-v*.tar.gz
51+
mv dxvk-v*/x32 /home/tiny/.wine/drive_c/windows/syswow64
52+
mv dxvk-v*/arm64ec /home/tiny/.wine/drive_c/windows/system32
53+
54+
echo "自动配置 DLL 覆盖..."
55+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d8 /d native /f >/dev/null 2>&1
56+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d9 /d native /f >/dev/null 2>&1
57+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d10 /d native /f >/dev/null 2>&1
58+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d10core /d native /f >/dev/null 2>&1
59+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d11 /d native /f >/dev/null 2>&1
60+
WINEDLLOVERRIDES="d3d8=n,d3d9=n,d3d10=n,d3d10core=n,d3d11=n,dxgi=n" wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v dxgi /d native /f >/dev/null 2>&1
61+
4962
echo "正在修复字体..."
5063
regedit "Z:\\home\\tiny\\.local\\share\\tiny\\extra\\chn_fonts.reg" && wine reg delete "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes" /va /f
5164

extra/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
### assets.zip中的文件:
44

55
- [busybox](https://github.com/meefik/busybox)
6-
- [mediamtx相关](https://github.com/bluenviron/mediamtx)
76
- [tar](https://github.com/Rprop/tar-android-static)
87
- [Xserver XSDL, pulseaudio相关文件](https://github.com/pelya/commandergenius/tree/sdl_android/project/jni/application/xserver)
98
- [virgl](https://github.com/termux/termux-packages/tree/master/x11-packages/virglrenderer-android)

0 commit comments

Comments
 (0)