package=com.hypergryph.arknights.bilibili
if [ "$(dumpsys package $package | grep -c "arm64-v8a")" == "0" ];then
echo "当前明日方舟为32位\n正在已64位强制安装..."
echo "安装过程略长，请耐心等待..."
su -c pm path $package | sed -E  's/(.*):(.*)/\2/'|xargs pm install -r --abi arm64-v8a
echo "安装完毕"
else
echo "当前明日方舟为64位\n正在已32位强制安装...,"
echo "安装过程略长，请耐心等待..."
su -c pm path $package | sed -E  's/(.*):(.*)/\2/'|xargs pm install -r --abi armeabi-v7a
echo "安装完毕"
fi