ubuntu下Android编译JNI产生的so库如何push到/system/lib

ubuntu下Android编译JNI产生的so库如何push到/system/lib

adb使用中的几个问题:

问题1:输入 adb,出错。

No command ‘adb’ found, did you mean:
Command ‘cdb’ from package ‘tinycdb’ (main)
Command ‘gdb’ from package ‘gdb’ (main)
Command ‘dab’ from package ‘bsdgames’ (universe)
Command ‘zdb’ from package ‘zfs-fuse’ (universe)
Command ‘mdb’ from package ‘mono-debugger’ (universe)
Command ‘kdb’ from package ‘elektra-bin’ (universe)
Command ‘tdb’ from package ‘tads2-dev’ (multiverse)
Command ‘pdb’ from package ‘python’ (main)
Command ‘jdb’ from package ‘openjdk-6-jdk’ (main)
Command ‘ab’ from package ‘apache2-utils’ (main)
Command ‘ad’ from package ‘netatalk’ (universe)
adb: command not found

解决方法:

编辑~/.bashrc文件,将adb加入导出路径。
执行
source ~/.bashrc

问题2:adb push /root/Desktop/libjpeghandler.so /system/lib 出错。

failed to copy ‘/root/Desktop/libjpeghandler.so’ to ‘/system/lib/libjpeghandler.so’: Read-only file system

解决方法:
系统没有root
需要root,具体方法google搜索。

问题3:adb remount出错。

remount failed: Operation not permitted

解决方法:

adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 777 /system
exit

发布了28 篇原创文章 · 获赞 154 · 访问量 65万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览