GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wordpress-mobile/PasscodeLock-Android: Android Library that provides passcode lock to your app

BranchesTags
Open more actions menu

Latest commit

 

History

156 Commits
156 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
library
library
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
LICENSE-GPL
LICENSE-GPL
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation


Not Maintained!
This project is no longer being actively maintained. Use at your own risk!


App passcode library for Android

An app passcode protection implementation, which allows user to protect the app with a four digit code.

Once enabled a four-digit passcode needs to be entered any time your mobile app is launched. This way your app is safe even if your smartphone or tablet falls into the wrong hands.

Note: This library doesn't add any extra protection to your data. App data will not be encrypted, the library just adds a pin lock screen that makes the app safe even if your kids put their hands on the device :)

Example Usage

Add it as a maven dependency in your build.gradle file. PasscodeLock is hosted on the maven central repository.

  • In your build.gradle:
dependencies {
    // use the latest 1.x version
    compile 'org.wordpress:passcodelock:1.+'
}
  • Edit your AndroidManifest.xml and declare the following activities:
<activity
    android:name="org.wordpress.passcodelock.PasscodeUnlockActivity"
    android:theme="@style/Theme.Sherlock.Light.NoActionBar"
    android:windowSoftInputMode="stateHidden" >
</activity>
<activity
    android:name="org.wordpress.passcodelock.PasscodeManagePasswordActivity"
    android:theme="@style/Theme.Sherlock.Light.NoActionBar"
    android:windowSoftInputMode="stateHidden" >
</activity>
  • Add the following line in onCreate of your App file:
AppLockManager.getInstance().enableDefaultAppLockIfAvailable(this);
  • In your project you need to use PasscodePreferenceFragment in your Preference Activity. See SettingsActivity as a usage reference. Optionally, you may pass an argument that tells it whether or not to inflate its own preferences, this is only needed if you plan on providing the preferences via PasscodePreferenceFragment#setPreferences.

Customization

If you want to customize the pinlock icon, the one available in the unlock screen, override the passcode_logo.xml drawable resource.

Hack the library

  • Copy gradle.properties-example to gradle.properties in the library/ directory of the project.

Publish it to bintray:

$ ./gradlew assemble publishToMavenLocal bintrayUpload -PbintrayUser=FIXME -PbintrayKey=FIXME -PdryRun=false

Apps that use this library

  • WordPress for Android

License

Dual licensed under MIT, and GPL.

About

Android Library that provides passcode lock to your app

Resources

Readme
Activity
Custom properties

Stars

348 stars

Watchers

43 watching

Forks

139 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.