Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Last active January 10, 2020 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakueikozo/cc40408dc36ed4c8f3737c19d8ed6426 to your computer and use it in GitHub Desktop.
Save bakueikozo/cc40408dc36ed4c8f3737c19d8ed6426 to your computer and use it in GitHub Desktop.
unlock asp hidden games
#!/system/bin/sh
# save to usb as /bin/sync
echo "this is script for unlock hidden all games" > /dev/console
BASEDIR="/mnt/vendor/res/local/"
LANGS=("English" "Japanese" "Korean" "Simplified_Chinese" "Traditional_Chinese");
for language in "${LANGS[@]}"
do
cd $BASEDIR/$language
pwd > /dev/console
NUM=`grep '\[ID\]' games.ini | /system/bin/busybox wc -l`
echo "games.ini has $NUM games." > /dev/console
mount -o rw,remount /mnt/data
if [ $NUM != "40" ]; then
rm /mnt/data/cdkey/*.cdk
echo "[$language] locked console,it will unlock" > /dev/console
echo "rw remount" > /dev/console
mount -o rw,remount /mnt/vendor
if [ -e games_org.ini ]; then
echo "already backup and unlocked console" > /dev/console
else
cp games.ini games_org.ini
cat games.ini lock.ini > games_unlock.ini
cp games_unlock.ini games.ini
rm games_unlock.ini
fi
echo "sync" > /dev/console
/system/bin/sync
echo "ro remount" > /dev/console
mount -o ro,remount /mnt/vendor
else
echo "[$language] unlocked console.no work" > /dev/console
fi
done
/system/bin/sync
reboot -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment