안드로이드 개발 질문/답변
(글 수 45,052)
베가레이서 사용중인데
루팅을했습니다
그리고
Intent intent = new Intent("android.intent.action.superuser"); // superuser request
intent.putExtra("name", "FileExplorer"); // tell Superuser the name of the requesting app
intent.putExtra("packagename", "com.da.world"); // tel Superuser the name of the requesting package
startActivityForResult(intent, SUPERUSER_REQUEST); // make the request!
이코딩을 해서 실행시켰는데
앱이 죽어버립니다
슈퍼유저권한을 얻기위한코드인줄 알고있는데
잘못된건지...
그리고
자기폰이 루팅된폰인지 확인할수있는방법이 있나요?




su 라는 명령어가 있습니다.
Permission denied가 나오거나 익셉션이 뜨면 루팅 안된 폰이고,
정상적으로 처리되면 루팅 폰입니다.