Launcher3Download-android-14.0.0_r28.bat 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @echo off
  2. set url=https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/
  3. set tag=android-14.0.0_r28
  4. set launcher3Url=%url%packages/apps/Launcher3
  5. set frameworkUrl=%url%frameworks/
  6. set frameworksBaseUrl=%frameworkUrl%base/
  7. set frameworksLibsSystemuiUrl=%frameworkUrl%/libs/systemui/
  8. set dirs=packages packages\\apps frameworks frameworks\\libs
  9. (for %%d in (%dirs%) do (
  10. if exist %%d (
  11. rd /q /s "%%d"
  12. echo delete dir %%d
  13. )
  14. mkdir "%%d"
  15. echo create dir %%d
  16. ))
  17. ::和墮Launcher3
  18. echo.
  19. echo.
  20. echo 和墮Launcher3
  21. set appsDir=packages/apps
  22. set launcher3Dir=%appsDir%/Launcher3
  23. @echo on
  24. git -C %appsDir% clone --filter=blob:none --sparse --depth 1 -b %tag% --single-branch --no-checkout %launcher3Url%
  25. @echo off
  26. git -C %launcher3Dir% sparse-checkout init --no-cone
  27. git -C %launcher3Dir% sparse-checkout set /*
  28. @echo on
  29. git -C %launcher3Dir% checkout -b %tag% %tag%
  30. @echo off
  31. ::評茅.git朕村
  32. rd /q /s "%launcher3Dir%/.git"
  33. ::和墮SystemUI、WindowManager-Shell、Framework Aidl
  34. echo.
  35. echo.
  36. echo 和墮SystemUI、WindowManager-Shell、Framework Aidl
  37. set frameworksDir=frameworks
  38. set frameworksBaseDir=%frameworksDir%/base
  39. @echo on
  40. git -C %frameworksDir% clone --filter=blob:none --sparse --depth 1 -b %tag% --single-branch --no-checkout %frameworksBaseUrl%
  41. @echo off
  42. git -C %frameworksBaseDir% sparse-checkout init --no-cone
  43. git -C %frameworksBaseDir% sparse-checkout set !/*
  44. git -C %frameworksBaseDir% sparse-checkout add !/packages/*
  45. git -C %frameworksBaseDir% sparse-checkout add !/packages/SystemUI/*
  46. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/animation/
  47. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/plugin/
  48. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/plugin_core/
  49. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/shared/
  50. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/unfold/
  51. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/common/
  52. git -C %frameworksBaseDir% sparse-checkout add packages/SystemUI/log/
  53. git -C %frameworksBaseDir% sparse-checkout add !/libs/*
  54. git -C %frameworksBaseDir% sparse-checkout add !/libs/WindowManager/*
  55. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/*.*
  56. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/OWNERS
  57. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/**/*.aidl
  58. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/util/**/*.java
  59. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitScreenConstants.java
  60. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/sysui/ShellSharedConstants.java
  61. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/common/TransactionPool.java
  62. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/*.java
  63. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/common/TriangleShape.java
  64. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/animation/Interpolators.java
  65. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java
  66. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/SplashScreenExitAnimationUtils.java
  67. git -C %frameworksBaseDir% sparse-checkout add /libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragAndDropConstants.java
  68. git -C %frameworksBaseDir% sparse-checkout add /core/java/**/*.aidl
  69. @echo on
  70. git -C %frameworksBaseDir% checkout -b %tag% %tag%
  71. @echo off
  72. ::評茅.git朕村
  73. rd /q /s "%frameworksBaseDir%/.git"
  74. ::和墮iconloaderlib、animationlib、viewcapturelib
  75. echo.
  76. echo.
  77. echo 和墮iconloaderlib、animationlib、viewcapturelib
  78. set frameworksLibsDir=frameworks/libs
  79. set frameworksLibsSystemUiDir=%frameworksLibsDir%/systemui
  80. @echo on
  81. git -C %frameworksLibsDir% clone --filter=blob:none --sparse --depth 1 -b %tag% --single-branch --no-checkout %frameworksLibsSystemuiUrl%
  82. @echo off
  83. git -C %frameworksLibsSystemUiDir% sparse-checkout init --no-cone
  84. git -C %frameworksLibsSystemUiDir% sparse-checkout set !/*
  85. git -C %frameworksLibsSystemUiDir% sparse-checkout add !/*/
  86. git -C %frameworksLibsSystemUiDir% sparse-checkout add /iconloaderlib/
  87. git -C %frameworksLibsSystemUiDir% sparse-checkout add /viewcapturelib/
  88. git -C %frameworksLibsSystemUiDir% sparse-checkout add /animationlib/
  89. @echo on
  90. git -C %frameworksLibsSystemUiDir% checkout -b %tag% %tag%
  91. @echo off
  92. ::評茅.git朕村
  93. rd /q /s "%frameworksLibsSystemUiDir%/.git"
  94. @echo on
  95. pause