2014年9月9日 星期二

如何將ubuntu編譯後的執行檔案push到Android設備的/system/bin裡頭?(Permission denied)

最近在移植一款平板的G-sensor,想使用i2c tool,但該如何將ubuntu編譯後的執行檔案push到Android設備的/system/bin裡頭呢?
若直接將檔案push 到/system/bin將會遇到Read-only file system的錯誤訊息,解法如下述:

1. adb shell
2.mount -o rw,remount -t ext3 /system
3. adb push "file path & file name" to /system/bin
4. adb shell
5. cd /system/bin
6. chmod 777 i2cdetect, i2cdump, i2cget, i2cset四個檔案

接下來就可以使用i2c tool啦



沒有留言:

張貼留言