[android-developers] How to disable the Android device (android.permission.BRICK?)

2010-02-21 Thread a2ronus
Hi,

(I'm new to posting questions on Google Groups. Suggestions on good
posting behaviour are appreciated. :)  )

I would like to achieve the following: I would like to temporarily
disable the Android device when the user performs 3 wrong logins in a
row. The login is another issue I'm not interested in here. I'm
interested in blocking the phone.

I've been searching for some time now. I found some messages on
disabling buttons, but they seem to be bad usability. On top of that,
it might not be supported anymore in future APIs. So I kept looking
and found: 
http://developer.android.com/reference/android/Manifest.permission.html#BRICK.
This seems to suggest something in the API that I can use, but can't
find it. I'm interested in how to use this permission, and I'm also
interested in what the consequences are. Does using some bricking
method imply that the phone is permanently bricked, or is there still
a way to restore the phone, so you don't have to throw it away?

I hope somebody would be able to enlighten me by providing some
answers or pointers on where to look.

Thanks in advance,

a2ronus

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to disable the Android device (android.permission.BRICK?)

2010-02-21 Thread Sean Hodges
I dont think I fully understand your question... Are you looking for
something in the public API that will render a user's Android device
useless for a period of time?

Just how far do you expect this bricking to go? Will they still be
able to use their phone for other purposes, e.g. making emergency
calls?

If you're looking for your app to be invasive to the user, you're
unlikely to find it in the public API. Perhaps take a look at how the
various lock screen apps work.


On Fri, Feb 19, 2010 at 9:49 PM, a2ronus aaron.jan...@gmail.com wrote:
 Hi,

 (I'm new to posting questions on Google Groups. Suggestions on good
 posting behaviour are appreciated. :)  )

 I would like to achieve the following: I would like to temporarily
 disable the Android device when the user performs 3 wrong logins in a
 row. The login is another issue I'm not interested in here. I'm
 interested in blocking the phone.

 I've been searching for some time now. I found some messages on
 disabling buttons, but they seem to be bad usability. On top of that,
 it might not be supported anymore in future APIs. So I kept looking
 and found: 
 http://developer.android.com/reference/android/Manifest.permission.html#BRICK.
 This seems to suggest something in the API that I can use, but can't
 find it. I'm interested in how to use this permission, and I'm also
 interested in what the consequences are. Does using some bricking
 method imply that the phone is permanently bricked, or is there still
 a way to restore the phone, so you don't have to throw it away?

 I hope somebody would be able to enlighten me by providing some
 answers or pointers on where to look.

 Thanks in advance,

 a2ronus

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en