본문 바로가기

연구

android INJECT permission

 INJECT_EVENTS permission을 얻기위해서는 시스템상에서 같은 sign을 가지도록 해야한다. 즉, 내가 만든 앱만조종 가능할 듯 싶다.

P.S 하지만 루팅 된 기기에서는 쉽게 되다고 한다.
/system에 설치된 앱은 어떤 권한이라도 가질 수있다고 한다. 그래서 단순히 수동으로 app 을 /system(http://androidforums.com/droid-all-things-root/64603-installing-apk-system-app-directory.html)에 설치하면 된다고 한다.

Execute the following commands in the terminal emulator to remount the /system directory as read/write and to install the application into the /system/app directory from the SDCARD:

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /systemcp /sdcard/APP.apk /system/app


If you prefer to use adb from your computer, execute these commands:

adb remount
adb shell cp /sdcard/APP.apk /system/app

Several users have utilized root explorer from the Google marketplace to simplify this process.
Alternatively, check this out: How to compile Android Application with system permissions 

reference :
http://stackoverflow.com/questions/5383401/android-inject-events-permission