MiWatchKleaner.bat 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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.6
  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.6
  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.
  57. %ch% 0a
  58. echo 4 - Restore Uninstall App
  59. echo.
  60. %ch% 08
  61. %ch% 0f
  62. echo _________________________________________________________________________________
  63. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  64. echo E - exit
  65. %ch% cc
  66. echo ___________________________________________________________________________________
  67. %ch% 0f
  68. Timeout /t 1 >data/null
  69. echo Choose an option:
  70. %ch% 00
  71. echo. && choice /c:1234E /M ""
  72. IF %ERRORLEVEL% == 1 GOTO CONNECT
  73. IF %ERRORLEVEL% == 2 GOTO REMOVEAPPS
  74. IF %ERRORLEVEL% == 3 GOTO INSTALLAPPS
  75. IF %ERRORLEVEL% == 4 GOTO REINSTALLAPPS
  76. IF %ERRORLEVEL% == 5 GOTO EXIT
  77. :EXIT
  78. exit
  79. :REMOVEAPPS
  80. cls
  81. %ch% 07
  82. echo. && echo. && echo.
  83. %ch% cc
  84. echo ___________________________________________________________________________________
  85. %ch% 0f
  86. echo. && echo. && echo.
  87. echo.
  88. echo -- REMOVE XIAOMI APPS MENU --
  89. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  90. Timeout /t 1 >data/null
  91. echo _________________________________________________________________________________
  92. echo. && echo.
  93. %ch% 0a
  94. echo 1 - Remove Xiaomi Apps and Overlays
  95. echo.
  96. %ch% 08
  97. %ch% 0f
  98. echo _________________________________________________________________________________
  99. echo. && echo.
  100. %ch% 0a
  101. echo 2 - Retrun to Main Menu
  102. echo.
  103. %ch% 08
  104. %ch% 0f
  105. echo _________________________________________________________________________________
  106. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  107. echo E - exit
  108. %ch% cc
  109. echo ___________________________________________________________________________________
  110. %ch% 0f
  111. Timeout /t 1 >data/null
  112. echo Choose an option:
  113. %ch% 00
  114. echo. && choice /c:123 /M ""
  115. IF %ERRORLEVEL% == 1 GOTO REMOVEAPP
  116. IF %ERRORLEVEL% == 2 GOTO START
  117. :EXIT
  118. exit
  119. :INSTALLAPPS
  120. cls
  121. %ch% 07
  122. echo. && echo. && echo.
  123. %ch% cc
  124. echo ___________________________________________________________________________________
  125. %ch% 0f
  126. echo. && echo. && echo.
  127. echo.
  128. echo -- INSTALL APPS --
  129. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  130. Timeout /t 1 >data/null
  131. echo _________________________________________________________________________________
  132. echo. && echo.
  133. %ch% 0a
  134. echo 1 - INSTALL Google Apps
  135. echo (Google Fit, Google Maps, Google Quick Search,
  136. echo Google Translate, Google TTS, WearOs Keyboard)
  137. echo.
  138. %ch% 08
  139. %ch% 0f
  140. echo _________________________________________________________________________________
  141. echo. && echo.
  142. %ch% 0a
  143. echo 2 - INSTALL Other Apps
  144. echo (AccuWeather, Alberto Store, PujieBlack,
  145. echo Ultimate Alexa)
  146. echo.
  147. %ch% 08
  148. %ch% 0f
  149. echo _________________________________________________________________________________
  150. echo. && echo.
  151. %ch% 0a
  152. echo 3 - INSTALL MoreLocale
  153. echo.
  154. %ch% 08
  155. %ch% 0f
  156. echo _________________________________________________________________________________
  157. echo. && echo.
  158. %ch% 0a
  159. echo 4 - Retrun to Main Menu
  160. echo.
  161. %ch% 08
  162. %ch% 0f
  163. echo _________________________________________________________________________________
  164. echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo. && echo.
  165. echo E - exit
  166. %ch% cc
  167. echo ___________________________________________________________________________________
  168. %ch% 0f
  169. Timeout /t 1 >data/null
  170. echo Choose an option:
  171. %ch% 00
  172. echo. && choice /c:123 /M ""
  173. IF %ERRORLEVEL% == 1 GOTO GOOGLE
  174. IF %ERRORLEVEL% == 2 GOTO OTHERS
  175. IF %ERRORLEVEL% == 3 GOTO MORELOCALE
  176. IF %ERRORLEVEL% == 4 GOTO START
  177. :EXIT
  178. exit
  179. :REMOVEAPP
  180. cls
  181. color 47
  182. color 47
  183. %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.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.wear.anonymous.xiaoai && %adb% shell pm uninstall -k --user 0 com.xiaomi.wear.lpa && %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
  184. Timeout /t 10 >data/null
  185. %ch% 4F
  186. echo. ******** Apps Removed *****
  187. Timeout /t 2 >data/null
  188. echo.-----------------------------------------------------------------------------------
  189. %ch% 47
  190. Timeout /t 1 >data/null
  191. echo.
  192. echo Press any key to back to MAIN MEMU
  193. %ch% 44
  194. pause
  195. %ch% 00
  196. GOTO START
  197. :CONNECT
  198. cls
  199. color 47
  200. set /p miwatchIp=Please enter MiWatch IP Address:
  201. Timeout /t 5 >data/null
  202. %ch% 4F
  203. %adb% connect %miwatchIp%
  204. Timeout /t 2 >data/null
  205. %adb% devices
  206. echo.-----------------------------------------------------------------------------------
  207. %ch% 47
  208. Timeout /t 1 >data/null
  209. echo.
  210. echo. && echo.
  211. echo Press any key to back to MAIN MEMU
  212. %ch% 44
  213. pause
  214. %ch% 00
  215. GOTO START
  216. :GOOGLE
  217. cls
  218. color 47
  219. echo. Downloading Latest Google Fit
  220. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleFit.apk -P ./data/apps
  221. echo. Installing Latest Google Fit
  222. %adb% install -r data/apps/GoogleFit.apk
  223. echo. Latest Google Fit Installed
  224. echo. Downloading Latest Google Maps
  225. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleMaps.apk -P ./data/apps
  226. echo. Installing Latest Google Maps
  227. %adb% install -r data/apps/GoogleMaps.apk
  228. echo. Latest Google Maps Installed
  229. echo. Downloading Latest Google Quick Search
  230. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleQuickSearch.apk -P ./data/apps
  231. echo. Installing Latest Google Quick Search
  232. %adb% install -r data/apps/GoogleQuickSearch.apk
  233. echo. Latest Google Quick Search Installed
  234. echo. Downloading Latest GoogleTTS
  235. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTTS.apk -P ./data/apps
  236. echo. Installing Latest GoogleTTS
  237. %adb% install -r data/apps/GoogleTTS.apk
  238. echo. Latest GoogleTTS Installed
  239. echo. Downloading Latest Google Translate
  240. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleTranslate.apk -P ./data/apps
  241. echo. Installing Latest Google Translate
  242. %adb% install -r data/apps/GoogleTranslate.apk
  243. echo. Latest Google Translate Installed
  244. echo. Downloading Latest Google Wear Keyboard
  245. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/WearKeyboard.apk -P ./data/apps
  246. echo. Installing Latest Google Wear Keyboard
  247. %adb% install -r data/apps/WearKeyboard.apk
  248. echo. Latest Google Wear Keyboard Installed
  249. echo. Downloading Latest Google Calculator
  250. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleCalc.apk -P ./data/apps
  251. echo. Installing Latest Google Calculator
  252. %adb% install -r data/apps/GoogleCalc.apk
  253. echo. Latest Google Calculator Installed
  254. echo. Downloading Latest Google Clock
  255. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleClock.apk -P ./data/apps
  256. echo. Installing Latest Google Clock
  257. %adb% install -r data/apps/GoogleClock.apk
  258. echo. Latest Google Clock Installed
  259. echo. Downloading Latest Google Services
  260. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Google/GoogleServices.apk -P ./data/apps
  261. echo. Installing Latest Google Services
  262. %adb% install -r data/apps/GoogleServices.apk
  263. echo. Latest Google Services Installed
  264. Timeout /t 5 >data/null
  265. %ch% 4F
  266. del /S data\apps\*.apk
  267. echo. ******** All Google Apps Installed *****
  268. Timeout /t 2 >data/null
  269. echo.-----------------------------------------------------------------------------------
  270. %ch% 47
  271. Timeout /t 1 >data/null
  272. echo.
  273. echo. && echo.
  274. echo. && echo.
  275. echo Press any key to back to MAIN MEMU
  276. %ch% 44
  277. pause
  278. %ch% 00
  279. GOTO START
  280. :OTHERS
  281. cls
  282. color 47
  283. echo. Downloading Latest Pujie Black
  284. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/Pujie.apk -P ./data/apps
  285. echo. Installing Latest Pujie Black
  286. %adb% install -r data/apps/Pujie.apk
  287. echo. Latest Pujie Black Installed
  288. echo. Downloading Latest AccuWeather
  289. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/AccuWeather.apk -P ./data/apps
  290. echo. Installing Latest AccuWeather
  291. %adb% install -r data/apps/AccuWeather.apk
  292. echo. Latest AccuWeather Installed
  293. echo. Downloading Latest Ultimate Alexa
  294. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/UltimateAlexa.apk -P ./data/apps
  295. echo. Installing Latest Ultimate Alexa
  296. %adb% install -r data/apps/UltimateAlexa.apk
  297. echo. Latest Ultimate Alexa Installed
  298. Timeout /t 5 >data/null
  299. %ch% 4F
  300. del /S data\apps\*.apk
  301. echo. ******** Other Apps All Installed *****
  302. Timeout /t 2 >data/null
  303. echo.-----------------------------------------------------------------------------------
  304. %ch% 47
  305. Timeout /t 1 >data/null
  306. echo.
  307. echo. && echo.
  308. echo. && echo.
  309. echo Press any key to back to MAIN MEMU
  310. %ch% 44
  311. pause
  312. %ch% 00
  313. GOTO START
  314. :MORELOCALE
  315. cls
  316. color 47
  317. echo. Downloading Latest MoreLocale
  318. data\wget.exe -q http://kithub.cf/Karl/MiWatchKleaner-APKs/raw/master/Others/MoreLocale.apk -P ./data/apps
  319. echo. Installing Latest MoreLocale
  320. %adb% install -r data/apps/MoreLocale.apk
  321. echo. Latest MoreLocale Installed
  322. echo. Running MoreLocale Config
  323. %adb% shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION
  324. Timeout /t 5 >data/null
  325. %ch% 4F
  326. del /S data\apps\*.apk
  327. echo. ******** MoreLocale Installed & Enabled *****
  328. Timeout /t 2 >data/null
  329. echo.-----------------------------------------------------------------------------------
  330. %ch% 47
  331. Timeout /t 1 >data/null
  332. echo.
  333. echo. && echo.
  334. echo. && echo.
  335. echo Press any key to back to MAIN MEMU
  336. %ch% 44
  337. pause
  338. %ch% 00
  339. GOTO START
  340. :REINSTALLAPPS
  341. cls
  342. color 47
  343. set /p appToEnable=Please enter app name to re-enable:
  344. Timeout /t 5 >data/null
  345. echo. Re-enabling %appToEnable%
  346. %ch% 4F
  347. %adb% shell cmd package install-existing %appToEnable%
  348. Timeout /t 2 >data/null
  349. echo.-----------------------------------------------------------------------------------
  350. %ch% 47
  351. Timeout /t 1 >data/null
  352. echo.
  353. echo. && echo.
  354. echo. && echo.
  355. echo Press any key to back to MAIN MEMU
  356. %ch% 44
  357. pause
  358. %ch% 00
  359. GOTO START