Skip to content

Fix anti theft duress wipe 1009191646165998973 - #6

Open
Br41n7 wants to merge 5 commits into
levlesec:mainfrom
Br41n7:fix-anti-theft-duress-wipe-1009191646165998973
Open

Fix anti theft duress wipe 1009191646165998973#6
Br41n7 wants to merge 5 commits into
levlesec:mainfrom
Br41n7:fix-anti-theft-duress-wipe-1009191646165998973

Conversation

@Br41n7

@Br41n7 Br41n7 commented Aug 19, 2026

Copy link
Copy Markdown

No description provided.

google-labs-jules Bot and others added 5 commits August 12, 2026 23:23
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant