git clone
cd rk2918_tools
make
cp afptool img_unpack img_maker mkkrnlimg /usr/local/bin
img_unpack release_update_new.img img
afptool -unpack update.img update
cd update
cd Image
simg2img system.img system_test.img
mkdir system_m
mount -o loop system_test.img system_m
替换APK
修改 parameter.txt的
0x00080000@0x00074000(cache),0x00400000@0x000F4000(system),0x00008000@0x004F4000(metadata)
0x00400000 16进制转10进制:4194304
4194304*512除于1024 ,然后在除于1024=2,048
make_ext4fs -l 2048M -s -a system system_new.img system_m
make_ext4fs -l 2048M -s -a system system.ext4img system
umount system_m
rm -rf system_m system_test.img system.img
mv system_new.img system.img
cd ..
cp package-file parameter
afptool -pack . ../update_new.img
cd ..
rm -rf update update.img
mv update_new.img update.img
img_maker -rk32 loader.img update.img release_update_new.img
git clone
cd rk2918_tools
make
cp afptool img_unpack img_maker mkkrnlimg /usr/local/bin
img_unpack release_update_new.img img
afptool -unpack update.img update
cd update
cd Image
simg2img system.img system_test.img
mkdir system_m
mount -o loop system_test.img system_m
替换APK
修改 parameter.txt的
0x00080000@0x00074000(cache),0x00400000@0x000F4000(system),0x00008000@0x004F4000(metadata)
0x00400000 16进制转10进制:4194304
4194304*512除于1024 ,然后在除于1024=2,048
make_ext4fs -l 2048M -s -a system system_new.img system_m
make_ext4fs -l 2048M -s -a system system.ext4img system
umount system_m
rm -rf system_m system_test.img system.img
mv system_new.img system.img
cd ..
cp package-file parameter
afptool -pack . ../update_new.img
cd ..
rm -rf update update.img
mv update_new.img update.img
img_maker -rk32 loader.img update.img release_update_new.img
举报