MiWatchKleaner.bat 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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.5
  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.5
  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 - INSTALL MoreLocale
  145. echo.
  146. %ch% 08
  147. %ch% 0f
  148. echo _________________________________________________________________________________
  149. echo. && echo.
  150. %ch% 0a
  151. echo 4 - Retrun to Main Menu
  152. echo.
  153. %ch% 08
  154. %ch% 0f
  155. echo _________________________________________________________________________________
  156. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  157. echo E - exit
  158. %ch% cc
  159. echo ___________________________________________________________________________________
  160. %ch% 0f
  161. Timeout /t 1 >data/null
  162. echo Choose an option:
  163. %ch% 00
  164. echo. && choice /c:123 /M ""
  165. IF %ERRORLEVEL% == 1 GOTO GOOGLE
  166. IF %ERRORLEVEL% == 2 GOTO OTHERS
  167. IF %ERRORLEVEL% == 3 GOTO MORELOCALE
  168. IF %ERRORLEVEL% == 4 GOTO START
  169. :EXIT
  170. exit
  171. :REMOVEAPP
  172. cls
  173. color 47
  174. color 47
  175. %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.calculator && %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
  176. Timeout /t 10 >data/null
  177. %ch% 4F
  178. echo. ******** Apps Removed *****
  179. Timeout /t 2 >data/null
  180. echo.-----------------------------------------------------------------------------------
  181. %ch% 47
  182. Timeout /t 1 >data/null
  183. echo.
  184. echo Press any key to back to MAIN MEMU
  185. %ch% 44
  186. pause
  187. %ch% 00
  188. GOTO START
  189. :CONNECT
  190. cls
  191. color 47
  192. set /p miwatchIp=Please enter MiWatch IP Address:
  193. Timeout /t 5 >data/null
  194. %ch% 4F
  195. %adb% connect %miwatchIp%
  196. Timeout /t 2 >data/null
  197. %adb% devices
  198. echo.-----------------------------------------------------------------------------------
  199. %ch% 47
  200. Timeout /t 1 >data/null
  201. echo.
  202. echo. && echo.
  203. echo Press any key to back to MAIN MEMU
  204. %ch% 44
  205. pause
  206. %ch% 00
  207. GOTO START
  208. :GOOGLE
  209. cls
  210. color 47
  211. echo. Downloading Latest Google Fit
  212. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleFit.apk -P ./data/apps
  213. echo. Installing Latest Google Fit
  214. %adb% install -r data/apps/GoogleFit.apk
  215. echo. Latest Google Fit Installed
  216. echo. Downloading Latest Google Maps
  217. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleMaps.apk -P ./data/apps
  218. echo. Installing Latest Google Maps
  219. %adb% install -r data/apps/GoogleMaps.apk
  220. echo. Latest Google Maps Installed
  221. echo. Downloading Latest Google Quick Search
  222. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleQuickSearch.apk -P ./data/apps
  223. echo. Installing Latest Google Quick Search
  224. %adb% install -r data/apps/GoogleQuickSearch.apk
  225. echo. Latest Google Quick Search Installed
  226. echo. Downloading Latest GoogleTTS
  227. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTTS.apk -P ./data/apps
  228. echo. Installing Latest GoogleTTS
  229. %adb% install -r data/apps/GoogleTTS.apk
  230. echo. Latest GoogleTTS Installed
  231. echo. Downloading Latest Google Translate
  232. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTranslate.apk -P ./data/apps
  233. echo. Installing Latest Google Translate
  234. %adb% install -r data/apps/GoogleTranslate.apk
  235. echo. Latest Google Translate Installed
  236. echo. Downloading Latest Google Wear Keyboard
  237. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/WearKeyboard.apk -P ./data/apps
  238. echo. Installing Latest Google Wear Keyboard
  239. %adb% install -r data/apps/WearKeyboard.apk
  240. echo. Latest Google Wear Keyboard Installed
  241. echo. Downloading Latest Google Calculator
  242. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleCalc.apk -P ./data/apps
  243. echo. Installing Latest Google Calculator
  244. %adb% install -r data/apps/GoogleCalc.apk
  245. echo. Latest Google Calculator Installed
  246. echo. Downloading Latest Google Clock
  247. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleClock.apk -P ./data/apps
  248. echo. Installing Latest Google Clock
  249. %adb% install -r data/apps/GoogleClock.apk
  250. echo. Latest Google Clock Installed
  251. echo. Downloading Latest Google Services
  252. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleServices.apk -P ./data/apps
  253. echo. Installing Latest Google Services
  254. %adb% install -r data/apps/GoogleServices.apk
  255. echo. Latest Google Services Installed
  256. Timeout /t 5 >data/null
  257. %ch% 4F
  258. del /S data\apps\*.apk
  259. echo. ******** All Google Apps Installed *****
  260. Timeout /t 2 >data/null
  261. echo.-----------------------------------------------------------------------------------
  262. %ch% 47
  263. Timeout /t 1 >data/null
  264. echo.
  265. echo. && echo.
  266. echo. && echo.
  267. echo Press any key to back to MAIN MEMU
  268. %ch% 44
  269. pause
  270. %ch% 00
  271. GOTO START
  272. :OTHERS
  273. cls
  274. color 47
  275. echo. Downloading Latest Pujie Black
  276. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/Pujie.apk -P ./data/apps
  277. echo. Installing Latest Pujie Black
  278. %adb% install -r data/apps/Pujie.apk
  279. echo. Latest Pujie Black Installed
  280. echo. Downloading Latest AccuWeather
  281. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/AccuWeather.apk -P ./data/apps
  282. echo. Installing Latest AccuWeather
  283. %adb% install -r data/apps/AccuWeather.apk
  284. echo. Latest AccuWeather Installed
  285. echo. Downloading Latest Ultimate Alexa
  286. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/UltimateAlexa.apk -P ./data/apps
  287. echo. Installing Latest Ultimate Alexa
  288. %adb% install -r data/apps/UltimateAlexa.apk
  289. echo. Latest Ultimate Alexa Installed
  290. Timeout /t 5 >data/null
  291. %ch% 4F
  292. del /S data\apps\*.apk
  293. echo. ******** Other Apps All Installed *****
  294. Timeout /t 2 >data/null
  295. echo.-----------------------------------------------------------------------------------
  296. %ch% 47
  297. Timeout /t 1 >data/null
  298. echo.
  299. echo. && echo.
  300. echo. && echo.
  301. echo Press any key to back to MAIN MEMU
  302. %ch% 44
  303. pause
  304. %ch% 00
  305. GOTO START
  306. :MORELOCALE
  307. cls
  308. color 47
  309. echo. Downloading Latest MoreLocale
  310. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/MoreLocale.apk -P ./data/apps
  311. echo. Installing Latest MoreLocale
  312. %adb% install -r data/apps/MoreLocale.apk
  313. echo. Latest MoreLocale Installed
  314. echo. Running MoreLocale Config
  315. %adb% shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION
  316. Timeout /t 5 >data/null
  317. %ch% 4F
  318. del /S data\apps\*.apk
  319. echo. ******** MoreLocale Installed & Enabled *****
  320. Timeout /t 2 >data/null
  321. echo.-----------------------------------------------------------------------------------
  322. %ch% 47
  323. Timeout /t 1 >data/null
  324. echo.
  325. echo. && echo.
  326. echo. && echo.
  327. echo Press any key to back to MAIN MEMU
  328. %ch% 44
  329. pause
  330. %ch% 00
  331. GOTO START