Apollodancer Hey everyone I've searched the forum and couldn't find the answer, I was looking at the wasted apps but it doesn't seem to work. I want to have data usb connection to wipe phone, i know this is possible? Any ideas Thank you
KleinesSinchen The Wasted app has not been updated in a long time. Three things: I looked on the source code of Wasted for a minute. I'm not sure if the method wipeData called by Wasted will still work on newer versions of Android. There is a newer method wipeDevice that can be invoked by a Device Owner app. (Hope I got this correctly, searched around a bit). https://developer.android.com/reference/android/app/admin/DevicePolicyManager As appealing a "deletion trap" on USB connection sounds, it has been mentioned a few times in this forum that this actually downgrades security on GrapheneOS: To be able to decide that anything else than a charger has been connected, the USB connection has to be established at first. This gives the connected device the opportunity to try attacking/exploiting the phone. The setting "Charge only" will prevent any connection and doesn't expose big attack surface. To have something like Wasted be able to work, USB must be set to "On" If the attacker expects Wasted or similar they can interrupt the wipe/factory reset by preventing recovery system from loading. Try Wasted on a test device with Android 13 or lower. It should generally work there, but it won't be of any use on latest GrapheneOS (even if it did work somehow)
Apollodancer Ok no worries thank you. That's been a great help. Also with the wasted app, the tile function isn't working to wipe the phone, would that be a similar issue?
Zormedin Another "problem" with the wasted app: It needs admin privileges to "wipe" which makes it even worse. Fully enabled USB to be able to detect connectivity and then executing the "wipe"... Like others said already: Set USB to charging only and set a duress PIN or duress password (depending on what you use to unlock your device) to destroy the key used for decryption and you should be good to go.