MiWatchKleaner.bat 14 KB

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