Thursday, February 17, 2022

MiTV 4K Enable Debug Mode

MiTV 4K Enable Debug Mode

Settings > About > Build version, click 7 times.
Note: The build version normally is the last info.

{ } Developer option will appear.

{ } Developer option > [x] Developer option 啓用開發者選項 [x] USB debugging USB 調試

A dialog box appear, allow the permission.

Now you can use the ADB:
$ adb connect

The ip address can be found on the network info.

Tuesday, February 08, 2022

Android Grant Drawing Over Other Apps

Android Grant "Drawing over other apps"

Application like SpeedMeter, Assistive Touch may report error or issue about "Drawing over other apps"

You need ADB to grant "Drawing over other apps"


1. find out the package name of the app:
$ adb shell pm list packages

For examples:
com.tuanfadbg.assistivetouchscreenrecorder
visnkmr.apps.timenetspeed

2. grant access
$ adb appops set visnkmr.apps.timenetspeed SYSTEM_ALERT_WINDOW allow

Now you should be able to enable the SpeedMeter or the Assistive Touch apps.