[WIP]App to shutdown(making encryption effective) your phone when police seize it, automatically

Updates are found below, install those instead.

I'm currently working on fontsize issues and typos.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

I am developing an android app on the basis that when your devices are illegally seized, they are placed into some sort of lead-lined signal blocking pouch.
The purpose of the pouch is to block the "factory reset" text or message that is coming in to destroy contents on the phone, either by overwriting data or just formatting the partitions like a standard android phone.

The app monitors the status of cellular signals and data connections, and it will disable or enable certain radios, such as cell network or wifi, to get a working data connection. If it's unable to obtain any internet in any means possible, it'll shut down the phone.

The purpose of shutting down the device is that device encryption is only effective while the decryption key is not stored in RAM, hence the password request when you turn it on.

The underlying method is based on two profiles, one to monitor cell signal as it is the first sign that your phone is being blocked. The other is based on a timed system to disable airplane mode, enable mobile data, and enable or disable wifi(depending on wifi reliability), in order to check if you can get an internet connection.
They both can be operated separately or at the same time, but they are best run in conjunction. The time based internet check uses around 2 megabytes of data per month at most, much lower if you have a wifi connection at home.

There are problems where you are underground or have a bad phone antenna, or have bad signal often. I did program a feature that makes it harder for intermittent signal to shut down the device, but it will still be an issue. Its hard to tell how well that part will work as phone antenna's are different with every company, and you will just have to test the program on your own time.

I've also added some basic compatibly with anti-theft apps. You will be able to send a text to your phone to disable these profiles so anti-theft programs would not be broken by the phone being shutdown. You set the password, and it is encrypted :)
You're also able to remotely shut it down with a different password, if you want.

The app was made in tasker, since I can't code all that well, and its pretty easy to work with.
/
/
REQUIREMENTS
Busybox, or at least SHA512 hash capability in the shell.
Root access
Secure Settings Plugin
Android 4.2 or higher.
|
|
|
OPTIONAL TOOLS
Tasker, for debugging or contributing easier.
|
|
|
NOTICE
This app comes with no warranties, or guarantees. I am not responsible if it does not work properly on your phone, damages your phone, or breaks something, its slightly different on every phone. Bug reports are encouraged. I have my GPG key and debug data ready within the app.

Technically, the only system changing action this app does is disabling and enabling airplane mode and mobile data, and conducting shutdowns.
Root is required for airplane modes, and recently for mobile data in android 5.
|
|
|
GPLV3 License.
Source Project, Tasker Compatible and APK
https://drive.google.com/file/d/0BzM409_JzYwCRnVXQ1luOWM5Ums/view?usp=sharing
Signature
https://drive.google.com/file/d/0BzM409_JzYwCanBIN2tkZTB4Z00/view?usp=sharing
/
/
I would have used HTML to make all this text look nice, but GPG and HTML are never good friends while foruming.

Fingerprint=4C7A 434A E052 8CCA B987 08EA 0492 A692 A6CA B3A0
|
|
Give a review and a few suggestions, and any bug reports would be awesome.
Thanks
99ytrewq911

|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWeeLDAAoJEASSppKmyrOgkqIH/3YDZd1hMzIZ/BTTcC3lu0mK
hhADTwpeUFmquNNZWqr1keQbkcyr+Nv8t4EblzBeuiQETdLtnqcG4SvIfLJ51bUQ
+3U1KMK9cFSzST+SegpFWTBG2wabGlSZd+n8AvHl3ltKfB7GyQGhmtBdCAlM16gl
qOKMxebnaIFoU3WMwGL3idEQSU87YMolJmIBhPiL4aoeffl3cuDz/KDBx7pTTdp8
UuF3QekTnCn4tr04Hzj0YNKHQm6Suh3BCLj8YyhAbH81W+IOrex8GM0CC2SVlrDY
GE+8h5I45lhpbXn3WzbwcbYRAFb2N/prZJpPH3H/+Cywp4H8BH8Lx+eoYGaxJgw=
=F3hx
-----END PGP SIGNATURE-----

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQENBFTpOIcBCACqUVuUVvkZ2Seh7i+bbC9od5X0h0NBYU5f22FiaLzyezsPOWo2
+hyTCBVdSh68RrNA5OZoGCVb2r8Oh6KNL48VQlZ1t6QDX58RbbLO3OKp2Z5myD1m
d5D5mw7a7uMXbGQy5e0BBjmn9MHJIuGrfwfkEzImhmYqDlHoo1mjHTDFOln2QSeT
zg03FgR2Lm1OrnjRR87/4CDxDY47Hmr5HbrbLnd35waVC2RRUWgzpbS88CJeZFqM
FPiAcZiDjo3CTrTB57thzGKkc2VEBNOHm3JZ3xnMQlmsgreUiZ/liwN5Q3t/+Tpf
RcLQfFzizhQSC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8+na+eiXi4Xd/Wy0
DPe/7J9mvMgWoTA0OMdJ/aGIWVVT8KLfBfgbJYGwpLYNwuB5/+jXTvGVNwwA1JTF
YYYXr/i/N3vyJYVmjAUoNJEk0QrtNagdA2fLpFnEvng2luDKTBpOroaMpOcmj1kC
p/b+ySYb01lEHzNKxVDnSJ6Y1wpNa3AX1iSp9Fvm9giuRozx
=/vCT
-----END PGP PUBLIC KEY BLOCK-----

Patch uploaded. 0.56a-beta.

Includes everything below and switches a test font back to normal.
This update was published at the same time 0.56 is, but I included 0.56 to stay open/transparent.
apk and source
https://drive.google.com/file/d/0BzM409_JzYwCMUJRdW1Kcl83Z0k/view?usp=sharing
sig
https://drive.google.com/file/d/0BzM409_JzYwCdEY4NGRBd283S28/view?usp=sharing

Patch uploaded. 0.56-beta.

Fixed a bug where I forgot to change the version number within the UI.
Fixed a bug where setting the time would only take effect on the next cycle.
Worked on font sizing, you should be able to scroll if a text segment does not fit.
Make some notifications stay for longer, as its hard to read when they go away so fast.
apk and source
https://drive.google.com/file/d/0BzM409_JzYwCNU1PdWlGdng5TDg/view?usp=sharing
sig
https://drive.google.com/file/d/0BzM409_JzYwCWUNVWlZHZkhWYmc/view?usp=sharing

Hotfix uploaded. 0.55-beta.

Made fonts change with screen size, experimental change. Should not effect functionality or stability.
apk and source
https://drive.google.com/file/d/0BzM409_JzYwCQjdyZnVCZ3cwNmM/view?usp=sharing
sig
https://drive.google.com/file/d/0BzM409_JzYwCS3BTUHRybHZNODA/view?usp=sharing

Hotfix uploaded. 0.54-beta.

Fixed the default time of 30 minutes not being declared on startup, causing a battery and data draining loop.
You can fix without updating if you disable all profiles, set the time in the options page, and re-enable your profiles.
apk and source
https://drive.google.com/file/d/0BzM409_JzYwCN3dpUm9INnJYMFU/view?usp=sharing
sig
https://drive.google.com/file/d/0BzM409_JzYwCd1Z2WEJMVFVqYkk/view?usp=sharing

Umm, so when I am driving down to LA, and I lose connection to a tower and don't encounter one for another half hour, my phone will shut off in my pocket?

Or perhaps my job requires me to work inside of a giant chunk of metal (a ship) for hours on end where cellular service is rare, my phone will shut itself off?

Thats a problem I am afraid of.

It really depends on where you live, where you travel, and what phone and carrier you have.

Its unfortunate that it'll only work for some people.

You can change the settings for a time limit to ease the effects, but that lowers effectiveness.

I only find myself not having a signal in extremely crowded environments, but that's me and my carrier. It's impossible to tell for other people. Users will have to make a choice before installing unfortunately.

In cases where you are without signal for any extended period of time, your cellphone won't be much use anyway.
As long as it gives a clear indication that it'll turn itself off (alarm sound just before shutdown or 5 second vibration), it shouldn't really be a problem. You'll just have to turn it on again when you are clear of that area or situation.

1 Like

Indeed, that, vibration and a notification is setup. Its basic at the moment, but I'll make notifications every time the program is going to run a test, and status of said test.

You're able to cancel it from the notification