Update script (again)
This commit is contained in:
parent
f3bb609dcf
commit
e4ee981f06
22
install.bat
22
install.bat
|
@ -7,7 +7,8 @@ echo you must have the appropriate ADB drivers for your device already and all t
|
|||
set PATH=%PATH%;%CD%\res;
|
||||
|
||||
echo press any key to install
|
||||
pause>nul
|
||||
|
||||
set /P EXISTING_INSTALL=Do you already have existing data in the PSM App installed? [Y/N]
|
||||
|
||||
set BUSYBOX_LOCATION=/data/local/tmp/busybox
|
||||
set PSM_DATA_FOLDER=/data/data/com.playstation.psstore
|
||||
|
@ -18,10 +19,14 @@ REM copy busybox over
|
|||
adb push res\busybox /data/local/tmp/busybox
|
||||
adb shell "chmod 777 /data/local/tmp/busybox"
|
||||
|
||||
if /i "%EXISTING_INSTALL%" == "N" Goto :installPSM
|
||||
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% tar c %PSM_DATA_FOLDER% -v -f /data/local/tmp/psm_backup.tar'"
|
||||
adb pull /data/local/tmp/psm_backup.tar
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% rm /data/local/tmp/psm_backup.tar'"
|
||||
|
||||
goto :InstallLIBRARY
|
||||
:installPSM
|
||||
|
||||
REM everything breaks if its on external.
|
||||
adb shell pm setInstallLocation 1
|
||||
|
@ -36,6 +41,11 @@ adb install res/android_id.apk
|
|||
|
||||
adb shell "am start -n pink.yuv.android_id/.MainActivity"
|
||||
|
||||
if "%EXISTING_INSTALL%" == "N" Goto :InstallFAKEPSN
|
||||
goto InstallLIBRARY
|
||||
|
||||
:InstallFAKEPSN
|
||||
|
||||
echo Make sure you enter these PERFECTLY or it wont work !!!
|
||||
set /P ANDROID_ID=Enter "android_id" :
|
||||
set /P PSM_UID=Enter "psstore_uid" :
|
||||
|
@ -76,27 +86,29 @@ adb shell "su -c '%BUSYBOX_LOCATION% chown %PSM_UID%:%PSM_UID% %PSM_DATA_FOLDER%
|
|||
echo transferring cache data ...
|
||||
|
||||
adb push shared_prefs\com.playstation.psstore_preferences.xml /data/local/tmp/pref.xml
|
||||
adb shell "su -c 'false | %BUSYBOX_LOCATION% cp -ir /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/com.playstation.psstore_preferences.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% cp /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/com.playstation.psstore_preferences.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chmod 660 %PSM_DATA_FOLDER%/shared_prefs/com.playstation.psstore_preferences.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chown %PSM_UID%:%PSM_UID% %PSM_DATA_FOLDER%/shared_prefs/com.playstation.psstore_preferences.xml'"
|
||||
|
||||
adb push shared_prefs\LocalLibrary.xml /data/local/tmp/pref.xml
|
||||
adb shell "su -c 'false | %BUSYBOX_LOCATION% cp -ir /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/LocalLibrary.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% cp /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/LocalLibrary.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chmod 660 %PSM_DATA_FOLDER%/shared_prefs/LocalLibrary.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chown %PSM_UID%:%PSM_UID% %PSM_DATA_FOLDER%/shared_prefs/LocalLibrary.xml'"
|
||||
|
||||
adb push shared_prefs\RunningContentInfo.xml /data/local/tmp/pref.xml
|
||||
adb shell "su -c 'false | %BUSYBOX_LOCATION% cp -ir /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/RunningContentInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% cp /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/RunningContentInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chmod 660 %PSM_DATA_FOLDER%/shared_prefs/RunningContentInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chown %PSM_UID%:%PSM_UID% %PSM_DATA_FOLDER%/shared_prefs/RunningContentInfo.xml'"
|
||||
|
||||
adb push shared_prefs\SigninInfo.xml /data/local/tmp/pref.xml
|
||||
adb shell "su -c 'false | %BUSYBOX_LOCATION% cp -ir /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/SigninInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% cp /data/local/tmp/pref.xml %PSM_DATA_FOLDER%/shared_prefs/SigninInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chmod 660 %PSM_DATA_FOLDER%/shared_prefs/SigninInfo.xml'"
|
||||
adb shell "su -c '%BUSYBOX_LOCATION% chown %PSM_UID%:%PSM_UID% %PSM_DATA_FOLDER%/shared_prefs/SigninInfo.xml'"
|
||||
|
||||
adb shell "%BUSYBOX_LOCATION% rm /data/local/tmp/pref.xml"
|
||||
|
||||
:InstallLIBRARY
|
||||
|
||||
REM library.db
|
||||
echo copying library.db ...
|
||||
adb push res\library.db /data/local/tmp/library.db
|
||||
|
|
Loading…
Reference in New Issue