Fix anti theft duress wipe 1009191646165998973 - #6
Open
Br41n7 wants to merge 5 commits into
Open
Conversation
Fix critical bugs in Defense.java and LockUpPlausibleService.java. Specifically: - Insert missing break statements in Defense.java switch block to prevent fallthrough to wipeData. - Re-implement text-checking in LockUpPlausibleService.java to use stateless clean string comparison of entered text against target password, preventing false positive device wipes. - Add missing desiredResponse and notifyUser preferences to preferences.xml. - Refactor Defense.java to be a clean Java helper instead of extending AppCompatActivity. - Establish settings.gradle, build.gradle, gradle.properties, and app/build.gradle to support Gradle 8.8 and compilation of Android SDK 34. - Migrate legacy support library dependencies and imports to modern AndroidX. - Create PlausibleServiceTest JVM unit test to verify text cleaning and password matching behavior. Co-authored-by: Br41n7 <[email protected]>
Allow users to configure their lockup password in SettingsActivity and prevent automatic wipes on app launch. Key changes: - Enable deniabilityPw EditTextPreference in preferences.xml and SettingsActivity.java for lockup password configuration. - Update LockUpService.java mUsbAttachReceiver to only start forensic staging monitoring when an external USB device or accessory is actually attached (ACTION_USB_DEVICE_ATTACHED / ACTION_USB_ACCESSORY_ATTACHED). - Update LockUpService.java mAppInstallReceiver to inspect newly added packages specifically rather than scanning all installed applications, avoiding launch-time wipes. - Add unit test testUsbAttachedActionFilter in PlausibleServiceTest.java. Co-authored-by: Br41n7 <[email protected]>
Set Java 8 source and target compatibility in app/build.gradle and suppress JDK deprecation warnings in gradle.properties to ensure compatibility across AIDE and standard IDEs. Confirmed successful build of app-debug.apk. Co-authored-by: Br41n7 <[email protected]>
Complete audit, refactoring, and documentation for LockUp self-defense app. - Enable lockup/duress password configuration in preferences.xml and SettingsActivity.java. - Re-implement LockUpPlausibleService.java to use clean, stateless text matching against deniabilityPw. - Fix switch fallthrough in Defense.java and refactor Defense to be a standard helper class. - Update LockUpService.java to restrict forensic monitoring to active USB attachments and inspect newly added packages specifically. - Fix thread lifecycle management in LockUpService.java. - Add complete Gradle 8.8 build configuration (Java 8 compatibility for AIDE and Android Studio). - Migrate support library references to AndroidX and add Android 12 exported attributes. - Document all fixes in README.md and add PlausibleServiceTest unit test suite. Co-authored-by: Br41n7 <[email protected]>
Added <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="34" /> directly into AndroidManifest.xml. This resolves AIDE's internal AAPT manifest merger issue (where minSdkVersion defaulted to 1 and failed against appcompat) and enables R.java resource generation when compiling inside AIDE. Co-authored-by: Br41n7 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.