Android代码-锁定手机(锁定屏幕,戒手机)

上传者: 39840650 | 上传时间: 2021-04-24 12:32:02 | 文件大小: 3.86MB | 文件类型: ZIP
LockSurface 锁定手机界面,使无法正常操作,让您暂时离开手机,而专注于眼下比玩手机更重要的事。 本应用是作者系统研究安卓的 Window 的阶段性总结 使用须知 本应用通过一点并不复杂的技术实现锁定手机主屏幕,使主屏幕区域无法再接收任何触摸事件(最长锁两天),适用的应用场景有戒一段时间手机以保持专注做其他更重要的事,防止熊孩子以及其他你不愿意让其碰你手机的人碰你手机。这里所言的主屏幕并不包括状态栏(显示信号和电量的顶部那一条)和导航栏(虚拟按键或实体按键),也就是锁定后你仍可以拉出通知栏并操作。当然国内的很多定制版 安卓 ROM 都仿苹果的 UI 风格,所以可能能从界面下方划出操作栏,这点作者本人并没做测试,所以欢迎大家反馈。总结起来就是本应用无法锁定的界面包括通知栏,控制栏(这点存疑,等你们给我反馈。)状态栏,导航栏,以及锁屏界面。任何导致应用在后台被意外杀死的事件都会导致锁定被解除,所以如果您安装有绿色守护,阻止运行等应用请把此应用加入白名单。本应用在作者本人的原生系 ROM 上面使用效果还是很给力的,所以劝大家慎用。 安装包下载 LockSurface 界面预览

文件下载

资源详情

[{"title":"( 74 个子文件 3.86MB ) Android代码-锁定手机(锁定屏幕,戒手机)","children":[{"title":"LockSurface-master","children":[{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"art","children":[{"title":"enframe_2017-05-10-16-29-56.png <span style='color:#111;'> 1.18MB </span>","children":null,"spread":false},{"title":"enframe_2017-05-10-16-30-29.png <span style='color:#111;'> 1.10MB </span>","children":null,"spread":false},{"title":"enframe_2017-05-10-16-35-53.png <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false}],"spread":true},{"title":".idea","children":[{"title":"libraries","children":[{"title":"Gradle__android_arch_lifecycle_livedata_core_1_1_0.xml <span style='color:#111;'> 685B </span>","children":null,"spread":false},{"title":"Gradle__android_arch_lifecycle_runtime_1_1_0.xml <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"Gradle__android_arch_core_runtime_1_1_0.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_compat_27_1_1.xml <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_appcompat_v7_27_1_1.xml <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_fragment_27_1_1.xml <span style='color:#111;'> 699B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_test_rules_1_0_1.xml <span style='color:#111;'> 649B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_core_utils_27_1_1.xml <span style='color:#111;'> 709B </span>","children":null,"spread":false},{"title":"Gradle__android_arch_lifecycle_common_1_1_0_jar.xml <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"Gradle__android_arch_lifecycle_viewmodel_1_1_0.xml <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_annotations_27_1_1_jar.xml <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_test_runner_1_0_1.xml <span style='color:#111;'> 654B </span>","children":null,"spread":false},{"title":"Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml <span style='color:#111;'> 576B </span>","children":null,"spread":false},{"title":"Gradle__android_arch_core_common_1_1_0_jar.xml <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"Gradle__javax_inject_javax_inject_1_jar.xml <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_test_espresso_espresso_core_3_0_1.xml <span style='color:#111;'> 707B </span>","children":null,"spread":false},{"title":"Gradle__junit_junit_4_12_jar.xml <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"Gradle__com_squareup_javawriter_2_1_1_jar.xml <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml <span style='color:#111;'> 762B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_animated_vector_drawable_27_1_1.xml <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_core_ui_27_1_1.xml <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"Gradle__com_android_support_support_vector_drawable_27_1_1.xml <span style='color:#111;'> 734B </span>","children":null,"spread":false}],"spread":false},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false},{"title":"caches","children":[{"title":"build_file_checksums.ser <span style='color:#111;'> 534B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.xml <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"xiaofei_dev","children":[{"title":"locksurface","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"xiaofei_dev","children":[{"title":"locksurface","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 412B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable","children":[{"title":"button_state_selector.xml <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"text_bg.xml <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"button_default.xml <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"ic_setting.png <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"button_pressed.xml <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"ic_lock.png <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"floating_icon.xml <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"activity_about.xml <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"dialog_setting.xml <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v21","children":[{"title":"button_state_selector.xml <span style='color:#111;'> 227B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"xiaofei_dev","children":[{"title":"locksurface","children":[{"title":"ui","children":[{"title":"AboutActivity.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 9.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"backstage","children":[{"title":"MyReceiver.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"LockService.java <span style='color:#111;'> 6.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"MyApplication.java <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"OpenUtil.java <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"ToastUtil.java <span style='color:#111;'> 735B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"release","children":[{"title":"output.json <span style='color:#111;'> 236B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 25.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 532B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明