smartphone app调用layout-notouch的资源方法

关闭系统的touchscreen hardware feature。

删除 /vendor/etc/permissions/中android.hardware.touchscreen.multitouch.jazzhand.xml,

并将handheld_core_hardware.xml中

name="android.hardware.touchscreen" />注释掉。


然后重启手机,再执行 pm list features验证,没有下面输出:

feature:android.hardware.touchscreen

feature:android.hardware.touchscreen.multitouch

feature:android.hardware.touchscreen.multitouch.distinct

feature:android.hardware.touchscreen.multitouch.jazzhand


就说明Android没有touchscreen的hardware feature了。

你可能感兴趣的:(smartphone app调用layout-notouch的资源方法)