User Tools

Site Tools


android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android [2023/10/16 08:57] fe80:f840:deb4:bbc3:6582:0245:a3a6:dfadandroid [2025/09/17 15:12] (current) – [Configs] ealmr
Line 1: Line 1:
-====== flashing ======+====== TrebleDroid ======
  
-  http://pan.baidu.com/s/1pJoKqkr +Download GSI ROMs from
-  fastboot flash recovery recovery.img +
-  fastboot boot recovery.img+
  
-====== Magisk modules ======+https://github.com/TrebleDroid/treble_experimentations/wiki/Generic-System-Image-%28GSI%29-list
  
-  * https://github.com/NVISOsecurity/MagiskTrustUserCerts+flash GSI image into super partition:
  
-====== configs ======+  #reboot phone into fastboot mode 
 +  #reboot into fastbootd mode 
 +  fastboot reboot fastboot 
 +  #flash system image 
 +  fastboot flash system /path/to/image 
 +   
 +support fingerprint:
  
-swap back and menu key:+support pattern unlock:
  
-  /system/usr/keylayout/Generic.kl+support adaptive brightness: 
-  key 158 MENU WAKE_DROPPED + 
-  key 139 BACK WAKE_DROPPED+support switch different refresh rates: 
 + 
 +====== Configs ====== 
 + 
 +  settings put secure show_rotation_suggestions 0 
 + 
 +set captive portal for Android 10 ~ 14: 
 + 
 +  export HTTP_URL= 
 +  export HTTPS_URL= 
 +  settings put global captive_portal_mode 1 
 +  settings put global captive_portal_http_url $HTTP_URL 
 +  settings put global captive_portal_https_url $HTTPS_URL
      
 +  
 +other portal servers:
 +  http[s]://www.gstatic.com/generate_204
 +  http[s]://dl.google.com/generate_204
 +
 captive portal server: captive portal server:
  
Line 24: Line 45:
   adb shell settings put global captive_portal_mode 1 #https://www.v2ex.com/t/387818   adb shell settings put global captive_portal_mode 1 #https://www.v2ex.com/t/387818
   adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204   adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
-   
-  # worked for Android 10 ( https://wiki.orzfly.com/topics/android-captive-portal ): 
-  settings put global captive_portal_http_url http://developers.google.cn/generate_204 
-  settings put global captive_portal_https_url https://developers.google.cn/generate_204 
-   
-  #other portal servers: 
-  http[s]://www.gstatic.com/generate_204 
      
 enable ADB over tcp: enable ADB over tcp:
Line 44: Line 58:
   adb connect ip:5555   adb connect ip:5555
   adb shell   adb shell
 +  
 +
 +swap back and menu key:
 +
 +  /system/usr/keylayout/Generic.kl:
 +  key 158 MENU WAKE_DROPPED
 +  key 139 BACK WAKE_DROPPED
 +  
 +====== flashing ======
 +
 +  http://pan.baidu.com/s/1pJoKqkr
 +  fastboot flash recovery recovery.img
 +  fastboot boot recovery.img
 +
 +====== Magisk modules ======
 +
 +  * https://github.com/NVISOsecurity/MagiskTrustUserCerts
android.1697446662.txt.gz · Last modified: by fe80:f840:deb4:bbc3:6582:0245:a3a6:dfad

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki