일반 어플은 안된다고 해서

패키지에 넣어서 빌드시키려고 하는데요.

관련 소스를 받아서 그냥 무식하게 넣었더니 에러가 파파팍... ㅜㅜ;;

좀 친절하게 설명 해주실 고수님들 안계실까요?

부탁드립니다.... 흑

제가 넣은 소스는

AndroidManifest.xml 에서 퍼미션 추가하고
<uses-permission android:name="android.permission.MASTER_CLEAR" />
<uses-permission android:name="android.permission.REBOOT" />

해당 소스에서
import android.os.ICheckinService;
import android.os.Power;

import 한후 소스 부분에서

아래와 같이 넣어주었습니다.

ICheckinService service = ICheckinService.Stub.asInterface(ServiceManager.getService("checkin"));
if (service != null) {
 try {
    // This RPC should never return
    service.masterClear();
 } catch (android.os.RemoteException e) {
  // Intentionally blank - there's nothing we can do here
  Log.w("~~~~~~~~~~~~~~", "Unable to invoke ICheckinService.masterClear()");
 }
} else {
 Log.w("~~~~~~~~~~~~~~", "Unable to locate ICheckinService");
}
   
try{
 Log.w("~~~~~~~~~~~~~~", "try OK~~~~~");
 Power.reboot("NULL");
}catch(IOException e){
 Log.w("~~~~~~~~~~~~~~", "try IOException~~~~~");
 e.printStackTrace();    
}