android 平台移植sfdisk mkfs.ext4等工具使用

1、

mount -o rw,remount /

 
chmod -R 777 sbin/mkfs.ext4
chmod -R 777 sbin/mkfs.fat
chmod -R 777 sbin/mtools
chmod -R 777 sbin/sfdisk
chmod -R 777 sbin/yes.coreutils
chmod -R 777 sbin/dd.coreutils


chmod -R 777 system/lib/lib/ld-2.23.so
chmod -R 777 system/lib/lib/libc-2.23.so
chmod -R 777 system/lib/lib/libfdisk.so.1.1.0
chmod -R 777 system/lib/lib/libsmartcols.so.1.1.0
chmod -R 777 system/lib/lib/libtinfo.so.5.9
chmod -R 777 system/lib/lib/libuuid.so.1.3.0
chmod -R 777 system/lib/lib/libblkid.so.1.1.0
chmod -R 777 system/lib/lib/libext2fs.so.2.4
chmod -R 777 system/lib/lib/libcom_err.so.2.1
chmod -R 777 system/lib/lib/libe2p.so.2.3
chmod -R 777 system/lib/lib/libpthread-2.23.so


cd sbin
ln -s mtools mcopy
cd ..


ln -s system/lib/lib lib


cd /system/lib/lib


ln -s  ld-2.23.so ld-linux-armhf.so.3
ln -s libc-2.23.so libc.so.6




ln -s libfdisk.so.1.1.0 libfdisk.so.1
ln -s libsmartcols.so.1.1.0  libsmartcols.so.1
ln -s  libtinfo.so.5.9  libtinfo.so.5
ln -s  libuuid.so.1.3.0   libuuid.so.1
ln -s libblkid.so.1.1.0  libblkid.so.1


ln -s libext2fs.so.2.4  libext2fs.so.2
ln -s libcom_err.so.2.1   libcom_err.so.2
ln -s libe2p.so.2.3  libe2p.so.2
ln -s libpthread-2.23.so  libpthread.so.0


cd ../../../

https://download.csdn.net/download/ldinvicible/10504916库文件路径

你可能感兴趣的:(linux)