androidpermissionsandroid-emulator

How can I brick the Android emulator?


I'm want to demonstrate how bad a malicious application can be. I'm looking for a pre-installed application on the application on the android emulator or an application that has "brick" permission on the device. Rather than bricking my device, I would much prefer bricking the emulator instead!

My device is a Samsung galaxy i7500.


Solution

  • You won't find any apps on the Android Market that do this. Just try the code for yourself:

    Not granting permission android.permission.BRICK to package com.example.app (protectionLevel=2 flags=0x4444)

    Only applications with the same signature as the system can use the BRICK permission (protectionLevel=2).

    You'd need to build the Android platform yourself in order to attempt this.

    See also BrickReceiver for an example of how it supposedly should work.