Android

Android Kiosk Mode

https://developer.android.com/work/cosu.html

#adb shell dpm set-device-owner com.airads.kiosk/.DeviceAdminReceiver
#adb shell dpm set-device-owner com.airads.kiosk.debug/com.airads.kiosk.DeviceAdminReceiver

ADB (Android Debug Bridge)

ADB erase data

#adb devices
#adb reboot bootloader

重新開機至bootloader模式之下
#fastboot devices
#fastboot -w
#fastboot erase cache
#fastboot erase userdata

Android 隱藏虛擬鍵(build.prop)

#adb root  
#adb remount  

#adb shell ls -al /system/build.prop
-rw-r--r-- root root 4237 2015-11-19 04:34 build.prop  

#adb shell pull /system/build.prop ./

編輯edit build.prop  
qemu.hw.mainkeys=1 (加上該定義)

#adb shell push build.prop /system
#adb shell chmod 644 /system/build.prop

ADB 更改系統設定

解析度
#adb shell wm density 160
#adb shell wm size 800x1280

位置精準度(高)
#adb shell settings put secure location_providers_allowed +network

允許不明來源
#adb shell settings put secure install_non_market_apps 1

虛擬鍵的定義
#adb shell settings put secure sysui_nav_bar "space,back\;home\;recent,space"

全螢幕模式下確認視窗(直接設定確認)
#adb shell settings put secure immersive_mode_confirmations "confirmed"

24小時制
#adb shell settings put system time_12_24 24

語系
#adb shell settings put system system_locales "zh-Hant-TW,en-US"

自動對時
#adb shell settings put global auto_time 1

開啟藍芽
#platform-tools/adb shell settings put global bluetooth_on 1
#platform-tools/adb shell service call bluetooth_manager 6

時區
#adb shell setprop persist.sys.timezone "Asia/Taipei"
#adb shell setprop persist.sys.locale "zh-Hant-TW"
#adb shell setprop persist.sys.country "TW"

ADB request shutdown

#adb shell am start -a android.intent.action.ACTION_REQUEST_SHUTDOWN --ez android.intent.extra.KEY_CONFIRM true

ADB launch

By action

adb shell am start -a android.settings.SETTINGS

By package name

adb shell monkey -p {PACKAGE_NAME} 1

results matching ""

    No results matching ""