fix: audio DELETE_FAILED_INTERNAL_ERROR

This commit is contained in:
Barry 2022-06-22 20:48:51 +08:00
parent 6a2b0eeb1c
commit 89fda3a56c
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ echo Find device %1
for /f "delims=" %%i in ('%ADB% %serial% shell pm path com.rom1v.sndcpy') do set sndcpy_installed=%%i
if "%sndcpy_installed%"=="" (
echo Install %SNDCPY_APK%...
%ADB% %serial% uninstall com.rom1v.sndcpy || goto :error
%ADB% %serial% uninstall com.rom1v.sndcpy || echo uninstall failed
%ADB% %serial% install -t -r -g %SNDCPY_APK% || goto :error
echo Install %SNDCPY_APK% success
)

View file

@ -19,7 +19,7 @@ echo "Find device $1"
sndcpy_installed=$($ADB $serial shell pm path com.rom1v.sndcpy)
if [[ $sndcpy_installed == "" ]]; then
echo Install $SNDCPY_APK...
$ADB $serial uninstall com.rom1v.sndcpy
$ADB $serial uninstall com.rom1v.sndcpy || echo uninstall failed
$ADB $serial install -t -r -g $SNDCPY_APK
echo Install $SNDCPY_APK success
fi