MiWatchKleaner.bat 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. echo off
  2. mode con: cols=85 lines=50
  3. set ch=data\chgcolor.exe
  4. set fast=data\fastboot.exe
  5. set adb=data\adb.exe
  6. echo. && echo. && echo.
  7. %ch% cc
  8. echo ___________________________________________________________________________________
  9. %ch% 00
  10. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  11. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  12. %ch% 0f
  13. echo MiWatchKleaner 1.2
  14. %ch% 00
  15. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  16. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  17. %ch% cc
  18. echo ___________________________________________________________________________________
  19. %ch% 0f
  20. Timeout /t 2 >data/null
  21. :START
  22. cls
  23. %ch% 07
  24. echo. && echo. && echo.
  25. %ch% cc
  26. echo ___________________________________________________________________________________
  27. %ch% 0f
  28. echo. && echo. && echo.
  29. echo MiWatchKleaner 1.2
  30. echo.
  31. echo -- MENU --
  32. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  33. Timeout /t 1 >data/null
  34. echo _________________________________________________________________________________
  35. echo. && echo.
  36. %ch% 0a
  37. echo 1 - Connect to MiWatch via Wifi
  38. echo.
  39. %ch% 08
  40. %ch% 0f
  41. echo _________________________________________________________________________________
  42. echo. && echo.
  43. %ch% 0a
  44. echo 2 - Remove Installed Xiaomi Apps
  45. echo.
  46. %ch% 08
  47. %ch% 0f
  48. echo _________________________________________________________________________________
  49. echo. && echo.
  50. %ch% 0a
  51. echo 3 - Install Compatible Apps
  52. echo.
  53. %ch% 08
  54. %ch% 0f
  55. echo _________________________________________________________________________________
  56. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  57. echo E - exit
  58. %ch% cc
  59. echo ___________________________________________________________________________________
  60. %ch% 0f
  61. Timeout /t 1 >data/null
  62. echo Choose an option:
  63. %ch% 00
  64. echo. && choice /c:1234E /M ""
  65. IF %ERRORLEVEL% == 1 GOTO CONNECT
  66. IF %ERRORLEVEL% == 2 GOTO REMOVEAPPS
  67. IF %ERRORLEVEL% == 3 GOTO INSTALLAPPS
  68. IF %ERRORLEVEL% == 5 GOTO EXIT
  69. :EXIT
  70. exit
  71. :REMOVEAPPS
  72. cls
  73. %ch% 07
  74. echo. && echo. && echo.
  75. %ch% cc
  76. echo ___________________________________________________________________________________
  77. %ch% 0f
  78. echo. && echo. && echo.
  79. echo.
  80. echo -- REMOVE XIAOMI APPS MENU --
  81. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  82. Timeout /t 1 >data/null
  83. echo _________________________________________________________________________________
  84. echo. && echo.
  85. %ch% 0a
  86. echo 1 - Remove Xiaomi Apps and Overlays
  87. echo.
  88. %ch% 08
  89. %ch% 0f
  90. echo _________________________________________________________________________________
  91. echo. && echo.
  92. %ch% 0a
  93. echo 2 - Retrun to Main Menu
  94. echo.
  95. %ch% 08
  96. %ch% 0f
  97. echo _________________________________________________________________________________
  98. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  99. echo E - exit
  100. %ch% cc
  101. echo ___________________________________________________________________________________
  102. %ch% 0f
  103. Timeout /t 1 >data/null
  104. echo Choose an option:
  105. %ch% 00
  106. echo. && choice /c:123 /M ""
  107. IF %ERRORLEVEL% == 1 GOTO REMOVEAPP
  108. IF %ERRORLEVEL% == 2 GOTO START
  109. :EXIT
  110. exit
  111. :INSTALLAPPS
  112. cls
  113. %ch% 07
  114. echo. && echo. && echo.
  115. %ch% cc
  116. echo ___________________________________________________________________________________
  117. %ch% 0f
  118. echo. && echo. && echo.
  119. echo.
  120. echo -- INSTALL APPS --
  121. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  122. Timeout /t 1 >data/null
  123. echo _________________________________________________________________________________
  124. echo. && echo.
  125. %ch% 0a
  126. echo 1 - INSTALL Google Apps
  127. echo (Google Fit, Google Maps, Google Quick Search,
  128. echo Google Translate, Google TTS, WearOs Keyboard)
  129. echo.
  130. %ch% 08
  131. %ch% 0f
  132. echo _________________________________________________________________________________
  133. echo. && echo.
  134. %ch% 0a
  135. echo 2 - INSTALL Other Apps
  136. echo (AccuWeather, Alberto Store, PujieBlack,
  137. echo Ultimate Alexa)
  138. echo.
  139. %ch% 08
  140. %ch% 0f
  141. echo _________________________________________________________________________________
  142. echo. && echo.
  143. %ch% 0a
  144. echo 3 - Retrun to Main Menu
  145. echo.
  146. %ch% 08
  147. %ch% 0f
  148. echo _________________________________________________________________________________
  149. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  150. echo E - exit
  151. %ch% cc
  152. echo ___________________________________________________________________________________
  153. %ch% 0f
  154. Timeout /t 1 >data/null
  155. echo Choose an option:
  156. %ch% 00
  157. echo. && choice /c:123 /M ""
  158. IF %ERRORLEVEL% == 1 GOTO GOOGLE
  159. IF %ERRORLEVEL% == 2 GOTO OTHERS
  160. IF %ERRORLEVEL% == 3 GOTO START
  161. :EXIT
  162. exit
  163. :REMOVEAPP
  164. cls
  165. color 47
  166. color 47
  167. %adb% shell pm uninstall -k --user 0 com.ximalayaos.wear.common && %adb% shell pm uninstall -k --user 0 com.eg.android.AlipayGphone && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.hotwordle && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.fitness && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.watchface.function && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.watchface.art && %adb% shell pm uninstall -k --user 0 com.xiaomi.account && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.watchface.album && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.watchface.decomposite && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.watchface.classic && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.tutorial && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.deskclock && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.sportlogger && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.weather && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.charging && %adb% shell pm uninstall -k --user 0 com.xiaomi.mihome && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.anonymous.xiaoai && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.lpa && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.market && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.setupprovider && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.xiaoai && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.card && %adb% shell pm uninstall -k --user 0 com.google.android.inputmethod.pinyin && %adb% shell pm uninstall -k --user 0 com.sogou.ime.wear && %adb% shell pm uninstall -k --user 0 com.tencent.qqmusicwatch && %adb% shell pm uninstall -k --user 0 com.sogou.map.android.maps && %adb% shell pm uninstall -k --user 0 com.umetrip.android.msky.app && %adb% shell pm uninstall -k --user 0 com.gotokeep.keep && %adb% shell pm uninstall -k --user 0 com.tigerbrokers.stock
  168. Timeout /t 10 >data/null
  169. %ch% 4F
  170. echo. ******** Apps Removed *****
  171. Timeout /t 2 >data/null
  172. echo.-----------------------------------------------------------------------------------
  173. %ch% 47
  174. Timeout /t 1 >data/null
  175. echo.
  176. echo Press any key to back to MAIN MEMU
  177. %ch% 44
  178. pause
  179. %ch% 00
  180. GOTO START
  181. :CONNECT
  182. cls
  183. color 47
  184. set /p miwatchIp=Please enter MiWatch IP Address:
  185. Timeout /t 5 >data/null
  186. %ch% 4F
  187. %adb% connect %miwatchIp%
  188. Timeout /t 2 >data/null
  189. %adb% devices
  190. echo.-----------------------------------------------------------------------------------
  191. %ch% 47
  192. Timeout /t 1 >data/null
  193. echo.
  194. echo. && echo.
  195. echo Press any key to back to MAIN MEMU
  196. %ch% 44
  197. pause
  198. %ch% 00
  199. GOTO START
  200. :GOOGLE
  201. cls
  202. color 47
  203. echo. Downloading Latest Google Fit
  204. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleFit.apk -P ./data/apps
  205. echo. Installing Latest Google Fit
  206. %adb% install data/apps/GoogleFit.apk
  207. echo. Latest Google Fit Installed
  208. echo. Downloading Latest Google Maps
  209. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleMaps.apk -P ./data/apps
  210. echo. Installing Latest Google Maps
  211. %adb% install data/apps/GoogleMaps.apk
  212. echo. Latest Google Maps Installed
  213. echo. Downloading Latest Google Quick Search
  214. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleQuickSearch.apk -P ./data/apps
  215. echo. Installing Latest Google Quick Search
  216. %adb% install data/apps/GoogleQuickSearch.apk
  217. echo. Latest Google Quick Search Installed
  218. echo. Downloading Latest GoogleTTS
  219. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTTS.apk -P ./data/apps
  220. echo. Installing Latest GoogleTTS
  221. %adb% install data/apps/GoogleTTS.apk
  222. echo. Latest GoogleTTS Installed
  223. echo. Downloading Latest Google Translate
  224. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTranslate.apk -P ./data/apps
  225. echo. Installing Latest Google Translate
  226. %adb% install data/apps/GoogleTranslate.apk
  227. echo. Latest Google Translate Installed
  228. echo. Downloading Latest Google Wear Keyboard
  229. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/WearKeyboard.apk -P ./data/apps
  230. echo. Installing Latest Google Wear Keyboard
  231. %adb% install data/apps/WearKeyboard.apk
  232. echo. Latest Google Wear Keyboard Installed
  233. echo. Downloading Latest Google Calculator
  234. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleCalc.apk -P ./data/apps
  235. echo. Installing Latest Google Calculator
  236. %adb% install data/apps/GoogleCalc.apk
  237. echo. Latest Google Calculator Installed
  238. Timeout /t 5 >data/null
  239. %ch% 4F
  240. del /S data\apps\*.apk
  241. echo. ******** All Google Apps Installed *****
  242. Timeout /t 2 >data/null
  243. echo.-----------------------------------------------------------------------------------
  244. %ch% 47
  245. Timeout /t 1 >data/null
  246. echo.
  247. echo. && echo.
  248. echo. && echo.
  249. echo Press any key to back to MAIN MEMU
  250. %ch% 44
  251. pause
  252. %ch% 00
  253. GOTO START
  254. :OTHERS
  255. cls
  256. color 47
  257. echo. Downloading Latest Pujie Black
  258. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/Pujie.apk -P ./data/apps
  259. echo. Installing Latest Pujie Black
  260. %adb% install data/apps/Pujie.apk
  261. echo. Latest Pujie Black Installed
  262. echo. Downloading Latest AccuWeather
  263. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/AccuWeather.apk -P ./data/apps
  264. echo. Installing Latest AccuWeather
  265. %adb% install data/apps/AccuWeather.apk
  266. echo. Latest AccuWeather Installed
  267. echo. Downloading Latest Ultimate Alexa
  268. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/UltimateAlexa.apk -P ./data/apps
  269. echo. Installing Latest Ultimate Alexa
  270. %adb% install data/apps/UltimateAlexa.apk
  271. echo. Latest Ultimate Alexa Installed
  272. Timeout /t 5 >data/null
  273. %ch% 4F
  274. del /S data\apps\*.apk
  275. echo. ******** Other Apps All Installed *****
  276. Timeout /t 2 >data/null
  277. echo.-----------------------------------------------------------------------------------
  278. %ch% 47
  279. Timeout /t 1 >data/null
  280. echo.
  281. echo Please reboot tablet to see changes
  282. echo. && echo.
  283. echo. && echo.
  284. echo Press any key to back to MAIN MEMU
  285. %ch% 44
  286. pause
  287. %ch% 00
  288. GOTO START