Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a1662d6

Browse files
update android
1 parent f7dde6d commit a1662d6

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

‎docs/play&office/android.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ $ adb shell #打开adb shell
6161
$ adb root #在手机已经root的情况下打开root权限的adb shell
6262
```
6363

64+
## 去除网络限制提示
65+
66+
谷歌从 Android 5.0 开始就引入了「Captive Portal」机制,主要用来检测 WiFI 网络认证是否正常,默认检测访问的是谷歌墙外服务器。在使用国际上常见的类原生安卓时,身处墙内环境此服务会提示网络受限,即使已经开启 Shadowsocks 等服务。针对此问题可使用 adb 命令修改检测访问的服务器为 google.cn 解决。
67+
68+
```
69+
adb shell settings put global captive_portal_server www.google.cn
70+
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
71+
adb shell settings put global captive_portal_mode 0
72+
```
73+
74+
最后切换一下飞行模式再切回即可解决。
75+
76+
## 刷入谷歌套件
77+
78+
一些场景下因为需要使用 Google play,需要刷入谷歌套件。可选的项目有[opengapps](https://opengapps.org/)[nikgapps](https://nikgapps.com/)以及[lineageos 提供的套件](https://wiki.lineageos.org/gapps)。opengapps 目前更新似乎已经陷入停滞。nikgapps 可以自行定制。
79+
6480
## 解锁 root 权限
6581

6682
使用 Magisk 以解锁 root 权限。在其[官方 release 界面](https://github.com/topjohnwu/Magisk/releases)下载 Magisk apk 文件,将其重命名为.zip 后缀。然后将其拷贝到手机中,最后进入 twrp 刷入此 zip 包即可。

‎docs/uk/play&office/android.md‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,25 @@ $ adb shell #Open adb shell
6161
$ adb root #Open adb shell with root privileges when the phone is already rooted
6262
```
6363

64-
---
64+
## Remove the network restriction prompt
65+
66+
Google has introduced the "Captive Portal" mechanism since Android 5.0, which is mainly used to detect whether the WiFI network authentication is normal. The default detection access is the server outside the Google wall. When using native Android, which is common in the world, this service will prompt that the network is restricted in the wall environment, even if services such as Shadowsocks have been turned on. To solve this problem, you can use the adb command to modify the server to detect access to google.cn.
67+
68+
```
69+
adb shell settings put global captive_portal_server www.google.cn
70+
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
71+
adb shell settings put global captive_portal_mode 0
72+
```
73+
74+
Finally, switch to the flight mode and switch back to solve it.
75+
76+
## Flash into Google Suite
77+
78+
In some scenarios, you need to flash into the Google suite because you need to use Google play. Optional projects are [opengapps](https://opengapps.org/), [nikgapps](https://nikgapps.com/) and [suites provided by lineageos](https://wiki.lineageos.org/gapps). opengapps updates seem to have stalled at the moment. nikgapps can be customized.
79+
80+
## Unlock root privileges
81+
82+
Use Magisk to unlock root privileges. Download the Magisk apk file from its [official release interface](https://github.com/topjohnwu/Magisk/releases), and rename it to a .zip suffix. Then copy it to the phone, and finally enter twrp to flash the zip package.
6583

6684
Ref:
6785

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /