Skip to content

Commit d9c4c24

Browse files
committed
Update hint text, permission and version, update code to v1.0.25
1 parent 3b84c7d commit d9c4c24

File tree

13 files changed

+250
-176
lines changed

13 files changed

+250
-176
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ body:
88
value: |
99
**必读须知:**
1010
- 请先搜索[所有issue](https://github.com/Cateners/tiny_computer/issues?q=is%3Aissue),**相同问题重复提交会被直接关闭**
11+
- 请先自查[常见使用问题](https://github.com/Cateners/tiny_computer/blob/master/extra/faq.md),是否能解决你的问题
1112
- 本模板中的每项要求都有其特定原因,请完整填写
1213
1314
- type: input

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 小小电脑
44

5-
给所有安卓 arm64 设备的“PC 应用引擎”平替。你可以在小小电脑上安装 PC 级 WPS、CAJ Viewer、亿图图示等软件。
5+
给所有安卓 9 以上 arm64 设备的“PC 应用引擎”平替。你可以在小小电脑上安装 PC 级 WPS、CAJ Viewer、亿图图示等软件。
66

77
Run Debian Bookworm with XFCE/LXQt/... on Android with just one click - optimized for Chinese users. This package comes preinstalled with the Fcitx Pinyin input method and doesn't require Termux.
88

@@ -21,7 +21,7 @@ Note: Since version 1.0.23, English UI is supported, though some hint texts rema
2121

2222
[![1](https://github.com/Cateners/tiny_computer/raw/master/readme/img2.png)](https://github.com/Cateners/tiny_computer/blob/master/readme/img2.png)
2323

24-
- 可方便地改变屏幕缩放,不用担心屏幕过大或过小
24+
- 可方便地改变屏幕缩放,不用担心屏幕过大或过小(仅 novnc)
2525

2626
[![1](https://github.com/Cateners/tiny_computer/raw/master/readme/img3.gif)](https://github.com/Cateners/tiny_computer/blob/master/readme/img3.gif)
2727

@@ -87,26 +87,6 @@ lib 目录:
8787
split -b 98M debian.tar.xz
8888
```
8989

90-
还需要对 flutter 的一些默认配置作修改,因为其与项目中 build.gradle 的一些设置冲突。
91-
92-
- 注释或删除 `flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy` 路径下与 `ShrinkResources` 相关的 `if` 代码块。
93-
94-
```groovy
95-
// if (shouldShrinkResources(project)) {
96-
// release {
97-
// // Enables code shrinking, obfuscation, and optimization for only
98-
// // your project's release build type.
99-
// minifyEnabled(true)
100-
// // Enables resource shrinking, which is performed by the Android Gradle plugin.
101-
// // The resource shrinker can't be used for libraries.
102-
// shrinkResources(isBuiltAsApp(project))
103-
// // Fallback to `android/app/proguard-rules.pro`.
104-
// // This way, custom Proguard rules can be configured as needed.
105-
// proguardFiles(project.android.getDefaultProguardFile("proguard-android-optimize.txt"), flutterProguardRules, "proguard-rules.pro")
106-
// }
107-
// }
108-
```
109-
11090
接下来就可以编译了。我使用的命令如下:
11191

11292
```bash

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050
applicationId "com.fct.tiny"
5151
// You can update the following values to match your application needs.
5252
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
53-
minSdkVersion 27 //proot version //ffmpeg_kit; flutter.minSdkVersion
53+
minSdkVersion 28 // glob() version //proot version //ffmpeg_kit; flutter.minSdkVersion
5454
targetSdkVersion 28 //https://github.com/termux/termux-app/issues/1072; native; linker; flutter.targetSdkVersion
5555
versionCode flutterVersionCode.toInteger()
5656
versionName flutterVersionName

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<uses-permission android:name="android.permission.CAMERA" />
88
<uses-permission android:name="android.permission.RECORD_AUDIO" />
99

10+
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
1011
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
1112
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
1213
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

extra/faq.md

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# 小小电脑使用常见问题
2+
3+
## 目录
4+
1. [安卓12及以上注意事项:错误码9](#安卓12及以上注意事项错误码9)
5+
2. [安卓13注意事项](#安卓13注意事项)
6+
3. [用一会就断掉](#用一会就断掉)
7+
4. [如何访问设备文件?](#如何访问设备文件)
8+
5. [如何访问SD卡文件?](#如何访问SD卡文件)
9+
6. [自带的火狐浏览器无法下载文件](#自带的火狐浏览器无法下载文件)
10+
7. [安装更多软件?](#安装更多软件)
11+
8. [WPS没有常用字体?](#WPS没有常用字体)
12+
9. [中文输入法?](#中文输入法)
13+
10. [外接鼠标移不到边缘](#外接鼠标移不到边缘)
14+
11. [镜像正在同步](#镜像正在同步)
15+
12. [找不到sys/cdefs.h](#找不到syscdefsh)
16+
13. [安装一些软件很慢](#安装一些软件很慢)
17+
14. [联发科处理器可以用吗?](#联发科处理器可以用吗)
18+
15. [怎么安装星火应用商店?](#怎么安装星火应用商店)
19+
20+
---
21+
22+
### 安卓12及以上注意事项:错误码9
23+
如果你的系统版本大于等于android 12
24+
可能会在使用过程中异常退出(返回错误码9)
25+
届时本软件会提供方案指引你修复
26+
并不难
27+
但是软件没有权限
28+
不能帮你修复
29+
30+
你也可以在高级设置里手动前往错误页面
31+
32+
---
33+
34+
### 安卓13注意事项
35+
如果你的系统版本大于等于android 13
36+
那么很可能一些网页应用如jupyter notebook
37+
bilibili客户端等等不可用
38+
可以去全局设置开启getifaddrs桥接
39+
40+
---
41+
42+
### 用一会就断掉
43+
这应该是出现了错误9的情况
44+
下次出现此情况时
45+
按设备的返回键(或用返回手势)
46+
应该能看到软件提供的修复引导
47+
48+
---
49+
50+
### 如何访问设备文件?
51+
如果你给了存储权限
52+
那么通过主目录下的文件夹
53+
就可以访问设备存储
54+
要访问整个设备存储可以访问sd文件夹
55+
此外主文件夹的很多文件夹与设备文件夹绑定
56+
比如主文件夹的下载文件夹就是设备的下载文件夹
57+
58+
另外!任何支持SAF的安卓软件
59+
都可以在不打开小小电脑的情况下直接访问小小电脑的文件
60+
61+
---
62+
63+
### 如何访问SD卡文件?
64+
首先用其他文件管理器查看SD卡路径
65+
(通常为/storage/xxxx...)
66+
然后把该地址输入到小小电脑的文件管理器回车即可
67+
68+
注意不要只输/storage
69+
或者从/storage文件夹点进去
70+
那样是没有权限的
71+
72+
如果路径不是/storage...那就大概没权限访问了
73+
74+
---
75+
76+
### 自带的火狐浏览器无法下载文件
77+
检查是否授予小小电脑存储权限(特别是“所有文件访问权限”)
78+
79+
火狐下载的文件会保存在设备的下载文件夹,如果没有存储权限,当然会下载失败
80+
如果不想授予存储权限也可在火狐的设置里更改下载文件保存位置
81+
82+
---
83+
84+
### 安装更多软件?
85+
本软件的初衷是作为PC应用引擎的平替
86+
所以我不会提供安装除WPS等软件外的帮助
87+
另外你需要一些Linux系统使用经验
88+
89+
如果你想安装其他软件
90+
可以使用容器自带的tmoe
91+
但并不保证安装了能用哦
92+
(事实上, 目前容器里的
93+
VSCode、输入法
94+
都是用tmoe安装的
95+
就连系统本身也是用tmoe安装的)
96+
97+
也可以在网上搜索
98+
"ubuntu安装xxx教程"
99+
"linux安装xxx教程"等等
100+
101+
要注意容器环境和完整Linux有不同
102+
你可能需要做一些修补工作
103+
比如基于Electron的软件通常需要添加--no-sandbox参数才能使用
104+
105+
---
106+
107+
### WPS没有常用字体?
108+
如果你需要更多字体
109+
在给了存储权限的情况下
110+
直接将字体复制到设备存储的Fonts文件夹即可
111+
一些常用的办公字体
112+
可以在Windows电脑的C:\Windows\Fonts文件夹找到
113+
由于可能的版权问题
114+
软件不能帮你做
115+
116+
---
117+
118+
### 中文输入法?
119+
关于中文输入的问题
120+
强烈建议不要使用安卓中文输入法直接输入中文
121+
而是使用英文键盘通过容器的输入法(Ctrl+空格切换)输入中文
122+
避免丢字错字
123+
124+
v1.0.25更新:
125+
现在在AVNC内可以直接输入中文了。原理是当你发送中文时,软件会通过剪切板将文字发送出去,然后通过Shift+Insert执行一次粘贴操作。如果你使用的软件不支持此快捷键,那就输入不了(对于终端软件,粘贴快捷键可能是Ctrl+Shift+Insert,所以可以在按住Ctrl后正常输入中文),还是用容器的输入法输入吧!
126+
127+
---
128+
129+
### 外接鼠标移不到边缘
130+
最可能的情况是
131+
你的设备使用手势控制而不是三大金刚键
132+
边缘是系统留给你手势操作用的
133+
大概没什么办法
134+
不过也许可以双指捏合使屏幕范围稍微变小一点?
135+
136+
---
137+
138+
### 镜像正在同步
139+
偶尔会出现这种情况
140+
一段时间后就会同步完成
141+
142+
请几个小时后再试一次
143+
144+
---
145+
146+
### 找不到sys/cdefs.h
147+
点击修复无法编译C语言程序的快捷指令
148+
149+
---
150+
151+
### 安装一些软件很慢
152+
请尝试使用魔法
153+
154+
---
155+
156+
### 联发科处理器可以用吗?
157+
联发科处理器只是没有成熟的开源图形驱动供加速而已
158+
不考虑速度的话都能用的
159+
160+
---
161+
162+
### 怎么安装星火应用商店?
163+
最简单的方法是使用GXDE版本,它预装星火应用商店(
164+
165+
当然最常用的版本--XFCE版本不预装星火应用商店也是有理由的。小小电脑的linux环境和正常的linux电脑有不少区别,许多应用不经过修补本就不能正常用。所以很容易出现星火应用商店中下载安装的应用无法使用的情况。

extra/solution.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 典型使用场景
2+
3+
正在完善中
4+
5+
## 目录
6+
7+
### 我想把小小电脑作为PC应用引擎使用,安装WPS、CAJ Viewer、亿图图示软件。
8+
9+
### 我想使用小小电脑编程。
10+
11+
###

lib/l10n/intl_en.arb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"fileAccessHint": "Request additional file permissions to access special directories.",
5656
"requestStoragePermission": "Request Storage Permission",
5757
"requestAllFilesAccess": "Request All Files Access",
58+
"ignoreBatteryOptimization": "Ignore Battery Optimization",
5859
"graphicsAcceleration": "Graphics Acceleration",
5960
"experimentalFeature": "Experimental Feature",
6061
"graphicsAccelerationHint": "Utilizes device GPU to improve graphics performance, but may cause system instability due to device variations.\n\nVirgl provides acceleration for OpenGL ES applications.",
@@ -98,5 +99,9 @@
9899
"copyingContainerSystem": "Copying Container System",
99100
"installingContainerSystem": "Installing Container System",
100101
"installationComplete": "Installation Complete",
101-
"reinstallingBootPackage": "Reinstalling Boot Package"
102+
"reinstallingBootPackage": "Reinstalling Boot Package",
103+
"issueUrl": "Issue Report",
104+
"faqUrl": "FAQ",
105+
"solutionUrl": "Usage Guide",
106+
"firstLoadInstructions": "The first load may take about 5 to 10 minutes...\n\nNormally, the software will automatically redirect to the graphical interface after loading.\n\nIn the graphical interface:\n- Tap for left-click\n- Long press for right-click\n- Two-finger tap to open the keyboard\n- Two-finger swipe for mouse wheel\n\nPlease do not exit the software during installation.\n\nWhile waiting, you can click the button below to request permissions.\n\nMany folders in Tiny Computer (e.g., Downloads, Documents, Pictures) are bound to the corresponding device folders. Without these permissions, access to these folders will be denied.\n\nIf you don't need to access these folders, you can skip granting file permissions (but this may cause Firefox to fail when downloading files due to denied access to the Downloads folder)."
102107
}

lib/l10n/intl_zh.arb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"fileAccessHint": "通过这里获取更多文件权限,以实现对特殊目录的访问。",
5656
"requestStoragePermission": "申请存储权限",
5757
"requestAllFilesAccess": "申请所有文件访问权限",
58+
"ignoreBatteryOptimization": "忽略电池优化",
5859
"graphicsAcceleration": "图形加速",
5960
"experimentalFeature": "实验性功能",
6061
"graphicsAccelerationHint": "图形加速可部分利用设备GPU提升系统图形处理表现,但由于设备差异也可能导致容器系统及软件运行不稳定甚至异常退出。\n\nVirgl可为使用OpenGL ES的应用提供加速。",
@@ -98,5 +99,9 @@
9899
"copyingContainerSystem": "正在复制容器系统",
99100
"installingContainerSystem": "正在安装容器系统",
100101
"installationComplete": "安装完成",
101-
"reinstallingBootPackage": "正在重新安装引导包"
102+
"reinstallingBootPackage": "正在重新安装引导包",
103+
"issueUrl": "问题反馈",
104+
"faqUrl": "常见问题",
105+
"solutionUrl": "典型场景使用指南",
106+
"firstLoadInstructions": "第一次加载大概需要5到10分钟...\n\n正常情况下,加载完成后软件会自动跳转到图形界面。\n\n在图形界面时:\n- 点击为鼠标左键\n- 长按为鼠标右键\n- 双指点击可弹出键盘\n- 双指划动为鼠标滚轮\n\n请不要在安装时退出软件。\n\n在等待时,可以点击下面的按钮申请一下权限。\n\n小小电脑的许多文件夹,比如下载、文档、图片等等都和设备的这些文件夹绑定,如果不授予这些权限会导致这些文件夹无权访问。\n\n但如果你不需要访问这些文件夹,也可以不授予文件权限(可能导致火狐浏览器下载文件失败,因为无权访问下载文件夹)。"
102107
}

lib/l10n/intl_zh_Hant.arb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"fileAccessHint": "在此處取得更多檔案權限,以便存取特殊目錄。",
5656
"requestStoragePermission": "申請儲存權限",
5757
"requestAllFilesAccess": "申請所有檔案存取權限",
58+
"ignoreBatteryOptimization": "忽略電池優化",
5859
"graphicsAcceleration": "圖形加速",
5960
"experimentalFeature": "實驗性功能",
6061
"graphicsAccelerationHint": "圖形加速可部分利用裝置 GPU 增強系統圖形效能,但因裝置差異可能導致容器系統與軟體執行不穩或異常退出。\n請酌情開啟。",
@@ -98,5 +99,9 @@
9899
"copyingContainerSystem": "正在複製容器系統",
99100
"installingContainerSystem": "正在安裝容器系統",
100101
"installationComplete": "安裝完成",
101-
"reinstallingBootPackage": "正在重新安裝啟動套件"
102+
"reinstallingBootPackage": "正在重新安裝啟動套件",
103+
"issueUrl": "問題回報",
104+
"faqUrl": "常見問題",
105+
"solutionUrl": "使用指南",
106+
"firstLoadInstructions": "第一次載入大概需要5到10分鐘...\n\n正常情況下,載入完成後軟體會自動跳轉到圖形介面。\n\n在圖形介面時:\n- 點擊為滑鼠左鍵\n- 長按為滑鼠右鍵\n- 雙指點擊可彈出鍵盤\n- 雙指滑動為滑鼠滾輪\n\n請不要在安裝時退出軟體。\n\n在等待時,可以點擊下面的按鈕申請權限。\n\n小小電腦的許多資料夾,比如下載、文件、圖片等等都和裝置的這些資料夾綁定,如果不授予這些權限會導致這些資料夾無權存取。\n\n但如果你不需要存取這些資料夾,也可以不授予檔案權限(可能導致火狐瀏覽器下載檔案失敗,因為無權存取下載資料夾)。"
102107
}

lib/main.dart

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -592,16 +592,27 @@ class _InfoPageState extends State<InfoPage> {
592592
},
593593
body: Padding(padding: const EdgeInsets.all(8), child: Column(
594594
children: [
595-
ValueListenableBuilder(valueListenable: G.helpText, builder:(context, value, child) {
596-
return Text(value);
597-
}),
595+
Text(AppLocalizations.of(context)!.firstLoadInstructions),
598596
const SizedBox.square(dimension: 16),
599-
Wrap(alignment: WrapAlignment.center, spacing: 4.0, runSpacing: 4.0, children: D.faq
597+
Wrap(alignment: WrapAlignment.center, spacing: 4.0, runSpacing: 4.0, children: [
598+
OutlinedButton(style: D.commandButtonStyle, child: Text(AppLocalizations.of(context)!.requestStoragePermission), onPressed: () {
599+
Permission.storage.request();
600+
}),
601+
OutlinedButton(style: D.commandButtonStyle, child: Text(AppLocalizations.of(context)!.requestAllFilesAccess), onPressed: () {
602+
Permission.manageExternalStorage.request();
603+
}),
604+
OutlinedButton(style: D.commandButtonStyle, child: Text(AppLocalizations.of(context)!.ignoreBatteryOptimization), onPressed: () {
605+
Permission.ignoreBatteryOptimizations.request();
606+
}),
607+
]),
608+
const SizedBox.square(dimension: 16),
609+
Wrap(alignment: WrapAlignment.center, spacing: 4.0, runSpacing: 4.0, children: D.links
600610
.asMap().entries.map<Widget>((e) {
601-
return OutlinedButton(style: D.commandButtonStyle, child: Text(e.value["q"]!), onPressed: () {
602-
G.helpText.value = e.value["a"]!;
603-
});
604-
}).toList())],
611+
return OutlinedButton(style: D.commandButtonStyle, child: Text(Util.getl10nText(e.value["name"]!, context)), onPressed: () {
612+
launchUrl(Uri.parse(e.value["value"]!), mode: LaunchMode.externalApplication);
613+
});
614+
}).toList()),
615+
],
605616
)),
606617
isExpanded: _expandState[0],
607618
),

0 commit comments

Comments
 (0)