{"id":13848786,"url":"https://github.com/wordpress-mobile/PasscodeLock-Android","last_synced_at":"2025-07-12T13:32:23.838Z","repository":{"id":10552051,"uuid":"12751351","full_name":"wordpress-mobile/PasscodeLock-Android","owner":"wordpress-mobile","description":"Android Library that provides passcode lock to your app","archived":false,"fork":false,"pushed_at":"2021-12-03T03:55:18.000Z","size":570,"stargazers_count":352,"open_issues_count":5,"forks_count":141,"subscribers_count":49,"default_branch":"trunk","last_synced_at":"2024-07-01T10:56:09.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wordpress-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-GPL","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-11T08:27:41.000Z","updated_at":"2023-10-12T08:58:24.000Z","dependencies_parsed_at":"2022-09-18T19:00:46.152Z","dependency_job_id":null,"html_url":"https://github.com/wordpress-mobile/PasscodeLock-Android","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FPasscodeLock-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FPasscodeLock-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FPasscodeLock-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FPasscodeLock-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wordpress-mobile","download_url":"https://codeload.github.com/wordpress-mobile/PasscodeLock-Android/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213949805,"owners_count":15661676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:00:57.600Z","updated_at":"2024-08-04T19:03:22.003Z","avatar_url":"https://github.com/wordpress-mobile.png","language":"Java","readme":"* * *\n\n**Not Maintained!**  \n*This project is no longer being actively maintained. Use at your own risk!*\n\n* * *\n\n# App passcode library for Android\n\nAn app passcode protection implementation, which allows user to protect the app with a four digit code.\n\nOnce 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.\n\n**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 :)**\n\n## Example Usage\n\nAdd it as a maven dependency in your build.gradle file. PasscodeLock is hosted on the maven central repository.\n\n* In your build.gradle:\n```groovy\ndependencies {\n    // use the latest 1.x version\n    compile 'org.wordpress:passcodelock:1.+'\n}\n```\n* Edit your `AndroidManifest.xml` and declare the following activities:\n```xml\n\u003cactivity\n    android:name=\"org.wordpress.passcodelock.PasscodeUnlockActivity\"\n    android:theme=\"@style/Theme.Sherlock.Light.NoActionBar\"\n    android:windowSoftInputMode=\"stateHidden\" \u003e\n\u003c/activity\u003e\n\u003cactivity\n    android:name=\"org.wordpress.passcodelock.PasscodeManagePasswordActivity\"\n    android:theme=\"@style/Theme.Sherlock.Light.NoActionBar\"\n    android:windowSoftInputMode=\"stateHidden\" \u003e\n\u003c/activity\u003e\n```\n\n* Add the following line in `onCreate` of your App file:\n```java\nAppLockManager.getInstance().enableDefaultAppLockIfAvailable(this);\n```\n\n* In your project you need to use `PasscodePreferenceFragment` in your Preference Activity. See [SettingsActivity][2] 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](https://github.com/wordpress-mobile/WordPress-Android/blob/develop/WordPress/src/main/res/xml/settings.xml#L39) via [PasscodePreferenceFragment#setPreferences](https://github.com/wordpress-mobile/PasscodeLock-Android/blob/develop/library/src/org/wordpress/passcodelock/PasscodePreferenceFragment.java#L50).\n\n## Customization\n\nIf you want to customize the pinlock icon, the one available in the unlock screen, override the `passcode_logo.xml` drawable resource.\n\n## Hack the library\n\n* Copy `gradle.properties-example` to `gradle.properties` in the `library/` directory of the project.\n\nPublish it to bintray:\n\n```shell\n$ ./gradlew assemble publishToMavenLocal bintrayUpload -PbintrayUser=FIXME -PbintrayKey=FIXME -PdryRun=false\n```\n\n## Apps that use this library\n- [WordPress for Android][1]\n\n## License\nDual licensed under MIT, and GPL.\n\n[1]: https://github.com/wordpress-mobile/WordPress-Android\n\n[2]: https://github.com/wordpress-mobile/WordPress-Android/blob/develop/WordPress/src/main/java/org/wordpress/android/ui/prefs/SettingsActivity.java\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress-mobile%2FPasscodeLock-Android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwordpress-mobile%2FPasscodeLock-Android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress-mobile%2FPasscodeLock-Android/lists"}