Interesting Flip 2 Stuff - HSBERG/TCL-FLIP-2-GUIDE GitHub Wiki
Secret Codes
Enable adb: *#*#DEBUG#*#* (*#*#33284#*#*)
Launcher list all apps: *#*#217703#*#*
barometer calibration: *#*#1013#*#*
carrier choose: *#*#22384#*#*
testing settings *#*#73884647#*#*
(Does something, not sure what)
Enable APN editing: *#*#9663223#*#*
Settings
Enable PackageManager: resetprop -n ro.vendor.tct.endurance true
Enable virtual mouse (Without Magisk Module): settings put system keyboard_pointer_enable 1
Enable developer mode: settings put global development_settings_enabled 1
Allow hotspot: settings put global hotspot_entitlement_check_mode 0
Logging
Disable Write Protect: /vendor/bin/write_protect 0
dumpsys package log a on
dumpsys package log DEBUG_LOGGING on
dumpsys package log ENABLE_TRACE on
(I don't know what this is for, personally, but feel free to use it.
Creating the vMouse manually (Not Preferred) (credit to @NeutronScott)
Gflip6_TF:/ $ su
Gflip6_TF:/ # PATH=$(magisk --path)/.magisk/busybox:$PATH
Gflip6_TF:/ # mkdir -p /data/adb/modules/mymodule && cd $_
Gflip6_TF:/data/adb/modules/mymodule # vi module.prop
Gflip6_TF:/data/adb/modules/mymodule # mkdir -p system/usr/keylayout && cd $_
Gflip6_TF:/data/adb/modules/mymodule/system/usr/keylayout # cp /system/usr/keylayout/mtk-kpd.kl .
Gflip6_TF:/data/adb/modules/mymodule/system/usr/keylayout # cp /system/usr/keylayout/matrix-keypad.kl .
Gflip6_TF:/data/adb/modules/mymodule/system/usr/keylayout # vi matrix-keypad.kl
The contents of module.prop is described in the [Magisk Developer Guide](https://topjohnwu.github.io/Magisk/guides.html#moduleprop)
"I replaced key 138 FAVORITE_CONTACTS with key 138 FOCUS which disables the built-in function of the * key. (You can also change QUICK_DIAL in mtk-kpd.kl but I wouldn't touch the volume/power key!) Now that it does nothing we can assign it a function with an accessibility app."