@echo off
@title Пакет "Яндекс. Приложения" - Установка
set adb=AndroidDebugBridge\adb.exe
set libs-device=/system/lib
echo.
echo START DOWNLOADING...
echo DO NOT DISCONNECT USB-CABLE!
%adb% shell mkdir /sdcard/temp
%adb% push Yandex\app\YaStore.apk /sdcard/temp/
%adb% push Yandex\app\YaSearch.apk /sdcard/temp/
%adb% push Yandex\app\YaTranslate.apk /sdcard/temp/
%adb% push Yandex\app\YaNews.apk /sdcard/temp/
%adb% push Yandex\app\YaMoney.apk /sdcard/temp/
%adb% push Yandex\app\YaMaps.apk /sdcard/temp/
%adb% push Yandex\app\YaMail.apk /sdcard/temp/
%adb% push Yandex\app\YaDisk.apk /sdcard/temp/
%adb% push Yandex\lib\libgnustl_shared.so /sdcard/temp/
%adb% push Yandex\lib\libSpeechKitGUI.so /sdcard/temp/
%adb% push Yandex\lib\libLibs-store.so /sdcard/temp/
%adb% push Yandex\lib\libSpeechKit-store.so /sdcard/temp/
%adb% push Yandex\lib\libPAL-store.so /sdcard/temp/
%adb% push Yandex\lib\libCore-store.so /sdcard/temp/
%adb% push Yandex\lib\libcache_local.so /sdcard/temp/
%adb% push Yandex\lib\libyandexmaps_344.so /sdcard/temp/
%adb% shell cp /sdcard/temp/YaStore.apk /system/app
%adb% shell cp /sdcard/temp/YaSearch.apk /system/app
%adb% shell cp /sdcard/temp/YaNews.apk /system/app
%adb% shell cp /sdcard/temp/YaMoney.apk /system/app
%adb% shell cp /sdcard/temp/YaTranslate.apk /system/app
%adb% shell cp /sdcard/temp/YaMaps.apk /system/app
%adb% shell cp /sdcard/temp/YaMail.apk /system/app
%adb% shell cp /sdcard/temp/YaDisk.apk /system/app
%adb% shell cp /sdcard/temp/libgnustl_shared.so /system/lib/
%adb% shell cp /sdcard/temp/libSpeechKitGUI.so /system/lib/
%adb% shell cp /sdcard/temp/libLibs-store.so /system/lib/
%adb% shell cp /sdcard/temp/libSpeechKit-store.so /system/lib/
%adb% shell cp /sdcard/temp/libPAL-store.so /system/lib/
%adb% shell cp /sdcard/temp/libCore-store.so /system/lib/
%adb% shell cp /sdcard/temp/libcache_local.so /system/lib/
%adb% shell cp /sdcard/temp/libyandexmaps_344.so /system/lib/
%adb% shell chmod 644 /system/app/YaStore.apk
%adb% shell chmod 644 /system/app/YaSearch.apk
%adb% shell chmod 644 /system/app/YaTranslate.apk
%adb% shell chmod 644 /system/app/YaNews.apk
%adb% shell chmod 644 /system/app/YaMoney.apk
%adb% shell chmod 644 /system/app/YaMaps.apk
%adb% shell chmod 644 /system/app/YaMail.apk
%adb% shell chmod 644 /system/app/YaDisk.apk
%adb% shell rm -r /sdcard/temp
%adb% shell exit
echo Rebooting...
pause
%adb% reboot
taskkill /F /IM adb.exe
echo.
echo Установка завершена! | Installation Finished!
pause >nul