Android Open Source - Widget lock PTScreenOff






Project Summary

This is a plugin for the PowerToggles to simulate the power button click to turn off the screen. It will not lock the device like the lock widget. It works better with the smart lock on Android 5.0+ because it will not lock the device when the smart lock is in use..

Web Site / Source Repository

PTScreenOff is hosted in the following web site
https://github.com/helloworld1/PTScreenOff

If you think the Android project PTScreenOff listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Project Detail

The following table is the detailed list of PTScreenOff.

ItemValue
Java File Count12
Supported screen sizes[mdpi]
Target SDK Version21
Minimum SDK Version4
Activity Count1
Required Permissionsandroid.permission.ACCESS_SUPERUSER




License

The license information of PTScreenOff is as follows:

GNU General Public License

Resource Files

There are 2 image files in PTScreenOff. The names of the image files are listed as follows.

off.png
off_transparent.png

The following screenshort is generated from the image listed above.

null

Java Source Files

eu.chainfire.libsuperuser.Application.java
eu.chainfire.libsuperuser.Debug.java
eu.chainfire.libsuperuser.HideOverlaysReceiver.java
eu.chainfire.libsuperuser.ShellNotClosedException.java
eu.chainfire.libsuperuser.ShellOnMainThreadException.java
eu.chainfire.libsuperuser.Shell.java
eu.chainfire.libsuperuser.StreamGobbler.java
org.liberty.android.ptplugin.screenoff.MainActivityTest.java
org.liberty.android.ptplugin.screenoff.MainActivity.java
org.liberty.android.ptplugin.screenoff.MainReceiver.java
org.liberty.android.ptplugin.screenoff.PowerTogglesPlugin.java
org.liberty.android.ptplugin.screenoff.ScreenOffUtil.java