The_Jaded_One comments on Request for help: Android app to shut down a smartphone late at night - Less Wrong

2 Post author: The_Jaded_One 02 April 2015 11:38AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (30)

You are viewing a single comment's thread. Show more comments above.

Comment author: imuli 02 April 2015 05:51:39PM *  1 point [-]

A more advanced version of this would be to lock the phone into "emergency calls only" mode within a specific time window. I don't know how hard that would be to pull off.

This appears to be possible with the Device Administration API to relock the screen upon receiving an ACTION_USER_PRESENT intent. Neither of which requires a rooted phone.

Comment author: The_Jaded_One 02 April 2015 05:56:50PM 0 points [-]

If you can write an app that kicks the user back to the lock screen within a specific time window, that would be fantastic

Comment author: imuli 02 April 2015 09:21:38PM *  1 point [-]

Basic version debug apk here, (more recent) source on GitHub, and Google Play.

The most notable feature lacking is locking the phone when the start time arrives. PM me if you run into problems. Don't set the end time one minute before the start time, or you'll only be able to unlock the phone in that minute.