屏幕锁设置设置交互式 [英] Set screenlock setting interactively
问题描述
我想将屏幕锁模式设置为无奇巧,所以我可以运行CTS。
I want to set the screenlock mode to None in KitKat so I can run CTS.
我使用的是DragonBoard APQ8074发展从Intrinsyc公司,他们刚刚发布了针对Android 4.4.2奇巧BSP。麻烦的是,它是不稳定的,在设置安全菜单崩溃。所以我不能使用亚行外壳
到输入的KeyEvent 19,20,21,22,23
导航。
I'm using the DragonBoard APQ8074 for development from Intrinsyc, and they just released their BSP for Android KitKat 4.4.2. Trouble is, it's unstable and the Security menu in Settings crashes. So I can't use adb shell
to input keyevents 19, 20, 21, 22, 23
to navigate.
亚行的shell设置
命令似乎应该为这个工作,但事实并非如此。我想这些命令对4.2,4.3和4.4,他们似乎分配值,但他们没有视觉上产生任何变化。
adb shell settings
command seems like it should work for this, but it's not. I tried these commands against 4.2, 4.3 and 4.4, and they seem to assign the values, but they don't visually result in any changes.
shell@msm8974:/ $ settings get system lockscreen_disabled
null
shell@msm8974:/ $ settings put system lockscreen_disabled true
shell@msm8974:/ $ settings get system lockscreen_disabled
true
shell@msm8974:/ $ settings get system screen_brightness
102
shell@msm8974:/ $ settings put system screen_brightness 255
shell@msm8974:/ $ settings get system screen_brightness
255
现在我不知道,如果lockscreen_disabled是我想要的,这里可是<一个href=\"https://android.googlesource.com/platform/frameworks/base/+/android-4.4.2_r2/core/java/android/provider/Settings.java\"相对=nofollow> Settings.java 似乎不提供任何形式的 unlock_mode
的电话,所以我不知道还能做什么。我不想写一个应用程序来做到这一点,我只是想设置锁屏模式无
这样我就可以运行CTS。如果我需要修改源代码,然后进行与放大器;闪光的新形象,我愿意这样做,但我不知道什么修改。感谢您的任何指导。
Now I dunno if lockscreen_disabled is what I want, here, but Settings.java doesn't seem to provide a call to any sort of unlock_mode
, so I dunno what else to do. I don't want to write an app to do this, I just want to set screen lock mode to None
so I can run CTS. If I need to modify source, then make & flash a new image, I'm willing to do that, but I don't know what to modify. Thanks for any guidance.
推荐答案
想通了。
1。更新settings.db利用亚行外壳
shell@msm8974:/ $ su
shell@msm8974:/ # sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite3> update secure set value=1 where name='lockscreen.disabled';
sqlite3> .quit
2。移动或删除locksettings文件
shell@msm8974:/ # mkdir /data/system/lock
shell@msm8974:/ # mv /data/system/locksettings* lock
亚行重新启动
和好到哪里去。
这篇关于屏幕锁设置设置交互式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!