susantjs
susantjs

Reputation: 939

How to reset android by program?

How to reset android phone to original status by program?

or Can we use adb to trigger sth?

Many thanks for replying~

Upvotes: 0

Views: 4012

Answers (2)

MH.
MH.

Reputation: 45493

Apart from through the Device Administration API, you cannot simply invoke a call and completely factory reset a device, that I'm aware of.

There happens to be a android.permission.MASTER_CLEAR permission, but in order for the system to actually grant you that, your app will need to have 'signature' or 'signatureOrSystem' permissions, according to a Google Groups thread. The only way to get one of those is to sign the app against the same certificate as the system, which basically means you either have to work for a device manufacturer or compile and sign your own firmware.

Upvotes: 3

Huang
Huang

Reputation: 4842

I remember that on API8 (2.2) or later, through the DeviceAdmin API, you can perform a factory reset. But this is extremely dangerous to the users, isn't it?

Upvotes: 0

Related Questions