2021-11-19 17:37:36 -07:00
|
|
|
# Wasted
|
|
|
|
|
2022-01-13 23:01:05 -07:00
|
|
|
Lock a device and wipe its data on panic trigger.
|
2021-11-19 17:37:36 -07:00
|
|
|
|
2022-01-04 19:16:30 -07:00
|
|
|
[<img
|
|
|
|
src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
|
2021-12-16 06:28:36 -07:00
|
|
|
alt="Get it on F-Droid"
|
|
|
|
height="80">](https://f-droid.org/packages/me.lucky.wasted/)
|
2022-01-17 07:29:46 -07:00
|
|
|
[<img
|
|
|
|
src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png"
|
|
|
|
alt="Get it on Google Play"
|
|
|
|
height="80">](https://play.google.com/store/apps/details?id=me.lucky.wasted)
|
2021-12-16 06:28:36 -07:00
|
|
|
|
2022-01-04 19:16:30 -07:00
|
|
|
<img
|
2022-01-14 00:00:40 -07:00
|
|
|
src="https://raw.githubusercontent.com/x13a/Wasted/main/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png"
|
2022-01-04 19:16:30 -07:00
|
|
|
width="30%"
|
|
|
|
height="30%">
|
2021-12-16 07:12:59 -07:00
|
|
|
|
2022-01-13 16:57:01 -07:00
|
|
|
You can use [PanicKit](https://guardianproject.info/code/panickit/), tile, shortcut or send a
|
2022-01-22 07:38:44 -07:00
|
|
|
message with authentication code. On trigger, using
|
2021-12-16 07:12:59 -07:00
|
|
|
[Device Administration API](https://developer.android.com/guide/topics/admin/device-admin), it
|
2022-01-13 23:01:05 -07:00
|
|
|
locks a device and optionally runs wipe.
|
2021-12-16 07:12:59 -07:00
|
|
|
|
2022-01-10 07:46:32 -07:00
|
|
|
Also you can:
|
|
|
|
- limit the maximum number of failed password attempts
|
2022-01-13 23:01:05 -07:00
|
|
|
- wipe a device when it was not unlocked for N days
|
2022-01-02 16:33:01 -07:00
|
|
|
|
2022-01-12 20:47:24 -07:00
|
|
|
The app works in `Work Profile` too. Use [Shelter](https://github.com/PeterCxy/Shelter) to install
|
|
|
|
risky apps and `Wasted` in it. Then you can wipe this profile data with one click without wiping
|
|
|
|
the whole device.
|
2022-01-06 15:36:09 -07:00
|
|
|
|
|
|
|
Only encrypted device may guarantee that the data will not be recoverable.
|
|
|
|
|
2022-01-10 07:46:32 -07:00
|
|
|
## Permissions
|
|
|
|
|
2022-01-25 07:14:43 -07:00
|
|
|
`DEVICE_ADMIN`
|
|
|
|
|
|
|
|
lock and wipe
|
2022-01-25 05:18:04 -07:00
|
|
|
|
2022-01-10 07:46:32 -07:00
|
|
|
`FOREGROUND_SERVICE`
|
|
|
|
|
2022-01-11 20:45:09 -07:00
|
|
|
[Wipe on inactivity] receive unlock events
|
2022-01-10 07:46:32 -07:00
|
|
|
|
|
|
|
`RECEIVE_BOOT_COMPLETED`
|
|
|
|
|
2022-01-11 20:45:09 -07:00
|
|
|
[Wipe on inactivity] persist wipe job across reboots
|
2022-01-10 07:46:32 -07:00
|
|
|
|
2021-12-16 07:12:59 -07:00
|
|
|
## Example
|
|
|
|
|
2022-01-17 01:39:03 -07:00
|
|
|
Broadcast:
|
2021-12-16 07:12:59 -07:00
|
|
|
```sh
|
|
|
|
$ adb shell am broadcast \
|
2021-12-17 16:26:43 -07:00
|
|
|
-a me.lucky.wasted.action.TRIGGER \
|
|
|
|
-n me.lucky.wasted/.CodeReceiver \
|
2021-12-16 07:12:59 -07:00
|
|
|
-e code "b49a6576-0c27-4f03-b96b-da53501022ba"
|
|
|
|
```
|
|
|
|
|
2021-11-20 22:37:15 -07:00
|
|
|
## License
|
2022-01-04 19:16:30 -07:00
|
|
|
[![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
2021-11-20 22:30:09 -07:00
|
|
|
|
2022-01-04 19:16:30 -07:00
|
|
|
This application is Free Software: You can use, study share and improve it at your will.
|
|
|
|
Specifically you can redistribute and/or modify it under the terms of the
|
|
|
|
[GNU General Public License v3](https://www.gnu.org/licenses/gpl.html) as published by the Free
|
|
|
|
Software Foundation.
|