1. 程式人生 > >adb工具去掉wifi感嘆號、隱藏狀態欄/導航欄

adb工具去掉wifi感嘆號、隱藏狀態欄/導航欄

感嘆號 親測 狀態欄 開頭 baidumap path 安裝 自己 服務器

adb還原恢復: adb shell "settings delete global captive_portal_use_https" ===================================================================================================================== 前提:無需解鎖、無需ROOT!!! 1、手機打開“開發者選項/模式”,開啟“USB調試”; 2、電腦安裝好自己的手機驅動; 3、手機以“USB調試”連接電腦。 ===================================================================================================================== 一、adb工具去掉wifi感嘆號 ◆將附件裏名稱中含有adb的文件,和fastboot.exe復制到 c:/windows/system32目錄 ◆將附件裏名稱中含有adb的所有文件復制到 c:/windows/system目錄 設置path變量值:C:\Windows\System32 電腦上運行cmd命令(鍵盤上“微軟徽標“鍵+“R”鍵),輸入命令(即以“adb”開頭的那段英文)按回車確認,或者下載附件,解壓,然後在解壓後的文件夾裏裏按住Shift鍵的同時右鍵點擊“在此處打開命令窗口”,輸入命令按回車確認(推薦後者)。 1、針對Android5.0-6.0 ①.完全屏蔽網絡檢查功能,最簡單快速,但是就沒有辦法提示wifi登錄(不推薦): adb shell "settings put global captive_portal_detection_enabled 0" 還原恢復: adb shell "settings put global captive_portal_detection_enabled 1" 或 adb shell "settings delete global captive_portal_detection_enabled" ②.用國內的服務器替換掉google的服務器: adb shell "settings put global captive_portal_server noisyfox.cn" 或 adb shell "settings put global captive_portal_server captive.v2ex.co" 還原恢復: adb shell "settings delete global captive_portal_server" 2、針對Android7.0-7.1.0 ①.禁用https(不推薦): adb shell "settings put global captive_portal_use_https 0" 還原恢復: adb shell "settings put global captive_portal_use_https 1" 或 adb shell "settings delete global captive_portal_use_https" ②.用國內的服務器替換掉google的服務器: adb shell "settings put global captive_portal_https_url https://www.noisyfox.cn/generate_204" 或 adb shell "settings put global captive_portal_use_https 0" adb shell "settings put global captive_portal_http_url http://www.noisyfox.cn/generate_204" 或 adb shell "settings put global captive_portal_https_url https://captive.v2ex.co/generate_204"; 或 adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204; 者把上面的https://captive.v2ex.co/generate_204 改成 https://204.io/generate_204 或者 https://google.cn/generate_204 (這個沒試過,上面兩個我試過都行的) 註意:這行命令最後有個分號,也要打進去。 還原恢復: adb shell "settings delete global captive_portal_use_https" 二、adb隱藏狀態欄/導航欄 此方法無痛無害操作簡單 5.0 、6.0、7.0的系統都支持。 1.首先安裝手機驅動,論壇有樓主就不提供了。保證自己的手機選擇MTP能正常連接上電腦 2.進入 手機設置——關於手機——打開開發者模式(未開啟的輕巧內部版本號直到提示開啟) ——開發者模式——打開usb調試模式 3.下載下面的附件解壓出來,在adb文件夾內按shift+右鍵會出現“在此處打開命令窗口”,左鍵選擇 ps:本人電腦系統win10 4.手機連接電腦等待手機正常連接電腦 5.將下列你想實現的方式的代碼輸入並按enter確認 ①全屏沈浸模式(包括狀態欄和虛擬按鍵): adb shell settings put global policy_control immersive.full=* ②沈浸狀態欄: adb shell settings put global policy_control immersive.status=* ③沈浸導航虛擬按鍵(隱藏後底部上劃可以呼出): adb shell settings put global policy_control immersive.navigation=* ④實現指定APP沈浸 adb shell settings put global policy_control immersive.full=com.jingdong.app.mall,com.thestore.main,com.baidu.BaiduMap =號後面是app的包名,我寫了3個,京東 1號店 百度地圖,需要加其它的依此類推; 恢復正常模式(如果隱藏了狀態欄或者虛擬按鍵但是又不想用了): adb shell settings put global policy_control null ===================================================================================================================== 寫在後面:上述方法都是自己本人親測有效,而且隱藏之後各界面都可以從底部上劃呼出。 輸入法使用正常,各APP皆能進入 沈浸虛擬按鍵。無後遺癥。

adb工具去掉wifi感嘆號、隱藏狀態欄/導航欄