BrickReceiver class?

Discussion in 'Android Hacks and Help' started by userdelroot, Aug 6, 2010.

  1. userdelroot
    Offline

    userdelroot New Member

    Joined:
    Aug 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Well I was searching for an answer to a problem I posted in another thread and stumbled across this in the android SDK

    I find that kind of funning considering the eFuse stuff posted about the Droid X


    Code:
    [COLOR=#444444]/*
     * Copyright (C) 2008 The Android Open Source Project
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */[/COLOR]
    
    [COLOR=#0000ff][B]package com.android.server;[/B][/COLOR]
    
    [COLOR=#0000ff][B]import android.content.Context;[/B][/COLOR]
    [COLOR=#0000ff][B]import android.content.Intent;[/B][/COLOR]
    [COLOR=#0000ff][B]import android.content.BroadcastReceiver;[/B][/COLOR]
    [COLOR=#0000ff][B]import android.os.SystemService;[/B][/COLOR]
    [COLOR=#0000ff][B]import android.util.Log;[/B][/COLOR]
    
    [B]public[/B] [B]class[/B] [COLOR=#2040a0]BrickReceiver[/COLOR] [B]extends[/B] [COLOR=#2040a0]BroadcastReceiver[/COLOR] [COLOR=#4444ff][B]{[/B][/COLOR]
        @[COLOR=#2040a0]Override[/COLOR]
        [B]public[/B] [B]void[/B] [COLOR=#2040a0]onReceive[/COLOR][COLOR=#4444ff][B]([/B][/COLOR][COLOR=#2040a0]Context[/COLOR] [COLOR=#2040a0]context[/COLOR], [COLOR=#2040a0]Intent[/COLOR] [COLOR=#2040a0]intent[/COLOR][COLOR=#4444ff][B])[/B][/COLOR] [COLOR=#4444ff][B]{[/B][/COLOR]
            [COLOR=#2040a0]Log[/COLOR].[COLOR=#2040a0]w[/COLOR][COLOR=#4444ff][B]([/B][/COLOR][COLOR=#008000]"BrickReceiver"[/COLOR], [COLOR=#008000]"!!! BRICKING DEVICE !!!"[/COLOR][COLOR=#4444ff][B])[/B][/COLOR][COLOR=#4444ff];[/COLOR]
            [COLOR=#2040a0]SystemService[/COLOR].[COLOR=#2040a0]start[/COLOR][COLOR=#4444ff][B]([/B][/COLOR][COLOR=#008000]"brick"[/COLOR][COLOR=#4444ff][B])[/B][/COLOR][COLOR=#4444ff];[/COLOR]
        [COLOR=#4444ff][B]}[/B][/COLOR]
    [COLOR=#4444ff][B]}[/B][/COLOR]
    
Search tags for this page
android develop systemservice.start
,

systemservice.start

,

systemservice.start(brick)