Debian: updated postinstall script
This commit is contained in:
Binary file not shown.
@@ -1,40 +1,13 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
#OBB_VERSION=191224
|
||||
OBB_VERSION=$ANDROID_PACKAGE_VERSION_CODE
|
||||
|
||||
echo "Extracting data files"
|
||||
cd $SECURE_STORAGE_DIR
|
||||
./busybox tar xzf $UNSECURE_STORAGE_DIR/data-1.tar.gz
|
||||
rm -f $UNSECURE_STORAGE_DIR/data-1.tar.gz
|
||||
ARCH=`getprop ro.product.cpu.abi`
|
||||
echo "Detected architecture $ARCH"
|
||||
# We only support armeabi-v7a and x86
|
||||
case $ARCH in
|
||||
armeabi-v7a)
|
||||
;;
|
||||
x86)
|
||||
;;
|
||||
arm64-v8a)
|
||||
ARCH=armeabi-v7a
|
||||
;;
|
||||
arm64_v8a)
|
||||
ARCH=armeabi-v7a
|
||||
;;
|
||||
x86_64)
|
||||
ARCH=x86
|
||||
;;
|
||||
x86-64)
|
||||
ARCH=x86
|
||||
;;
|
||||
*)
|
||||
echo "=== ERROR ERROR ERROR ==="
|
||||
echo "Unsupported architecture: $ARCH"
|
||||
sleep 10000
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "Copying files for architecture $ARCH"
|
||||
./busybox cp -af img-$ARCH/. img/
|
||||
echo "Removing files for other architectures"
|
||||
./busybox rm -rf img-armeabi-v7a img-x86
|
||||
./busybox tar xvJf $ANDROID_OBB_DIR/main.$OBB_VERSION.$ANDROID_PACKAGE_NAME.obb
|
||||
echo "Extracting overlay data files"
|
||||
./busybox tar xvJf $DATADIR/overlay.tar.xz
|
||||
cd $SECURE_STORAGE_DIR/img
|
||||
echo "Installation path: $SECURE_STORAGE_DIR/img"
|
||||
./postinstall.sh
|
||||
|
||||
Reference in New Issue
Block a user