Advertisement
aperio

Android 14 crDroid 10.x Device pantah patch - use patch -p1

Jun 6th, 2024
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.77 KB | None | 0 0
  1. diff --git a/Android.mk b/Android.mk
  2. index 3c67914..efe1b9b 100644
  3. --- a/Android.mk
  4. +++ b/Android.mk
  5. @@ -41,13 +41,4 @@ $(DM_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  6. @rm -rf $@
  7. $(hide) ln -sf /product/lib64/$(notdir $@) $@
  8.  
  9. -HBM_LIBS := libhbmsvmanager_jni.so
  10. -HBM_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT)/priv-app/HbmSVManager/lib/arm64/,$(notdir $(HBM_LIBS)))
  11. -$(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  12. - @echo "HBM lib link: $@"
  13. - @mkdir -p $(dir $@)
  14. - @rm -rf $@
  15. - $(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
  16. -
  17. -ALL_DEFAULT_INSTALLED_MODULES += $(DM_32_SYMLINKS) $(DM_64_SYMLINKS) $(HBM_SYMLINKS)
  18. endif
  19. diff --git a/BoardConfigLineage.mk b/BoardConfigLineage.mk
  20. index b5841c9..6a5cf86 100644
  21. --- a/BoardConfigLineage.mk
  22. +++ b/BoardConfigLineage.mk
  23. @@ -5,3 +5,4 @@
  24. #
  25.  
  26. BUILD_BROKEN_DUP_RULES := true
  27. +DISABLE_ARTIFACT_PATH_REQUIREMENTS := true
  28. \ No newline at end of file
  29. diff --git a/cheetah/proprietary-files.txt b/cheetah/proprietary-files.txt
  30. index c132f91..3250fe8 100644
  31. --- a/cheetah/proprietary-files.txt
  32. +++ b/cheetah/proprietary-files.txt
  33. @@ -98,10 +98,6 @@ system_ext/lib64/com.google.edgetpu_app_service-V2-ndk.so
  34. system_ext/lib64/com.google.edgetpu_vendor_service-V2-ndk.so
  35. system_ext/lib64/libedgetpu_dba.google.so
  36.  
  37. -# HBM
  38. -system_ext/lib64/libhbmsvmanager_jni.so
  39. -system_ext/priv-app/HbmSVManager/HbmSVManager.apk
  40. -
  41. # Hotword
  42. system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
  43. system_ext/framework/com.android.hotwordenrollment.common.util.jar
  44. diff --git a/device-lineage.mk b/device-lineage.mk
  45. index 92197b4..c7d330f 100644
  46. --- a/device-lineage.mk
  47. +++ b/device-lineage.mk
  48. @@ -7,6 +7,9 @@
  49. # Overlays
  50. DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
  51.  
  52. +# AudioFX
  53. +TARGET_EXCLUDES_AUDIOFX := true
  54. +
  55. # ANGLE - Almost Native Graphics Layer Engine
  56. PRODUCT_PACKAGES += \
  57. ANGLE
  58. @@ -27,6 +30,9 @@ include hardware/google/pixel/powershare/device.mk
  59. # wireless_charger HAL service
  60. include device/google/gs-common/wireless_charger/wireless_charger.mk
  61.  
  62. +# PixelParts
  63. +include packages/apps/PixelParts/device.mk
  64. +
  65. # Build necessary packages for vendor
  66.  
  67. # Audio
  68. diff --git a/device-panther.mk b/device-panther.mk
  69. index 39c3a54..382d374 100644
  70. --- a/device-panther.mk
  71. +++ b/device-panther.mk
  72. @@ -404,7 +404,3 @@ PRODUCT_VENDOR_PROPERTIES += \
  73. PRODUCT_PRODUCT_PROPERTIES += \
  74. ro.quick_start.oem_id=00e0 \
  75. ro.quick_start.device_id=panther
  76. -
  77. -# HBM
  78. -PRODUCT_PACKAGES += \
  79. - HbmSVManagerOverlayPanther
  80. diff --git a/lineage_cheetah.mk b/lineage_cheetah.mk
  81. index 203eed3..cd75bfc 100644
  82. --- a/lineage_cheetah.mk
  83. +++ b/lineage_cheetah.mk
  84. @@ -19,9 +19,15 @@ PRODUCT_BRAND := google
  85. PRODUCT_MODEL := Pixel 7 Pro
  86. PRODUCT_NAME := lineage_cheetah
  87.  
  88. -# Boot animation
  89. -TARGET_SCREEN_HEIGHT := 3120
  90. -TARGET_SCREEN_WIDTH := 1440
  91. +# Crdroid Extra Stuffs
  92. +TARGET_SUPPORTS_QUICK_TAP := true
  93. +TARGET_IS_PIXEL := true
  94. +TARGET_IS_PIXEL_7 := true
  95. +TARGET_PIXEL_STAND_SUPPORTED := true
  96. +WITH_GAPPS := true
  97. +TARGET_HAS_UDFPS := true
  98. +TARGET_BOOT_ANIMATION_RES := 1080
  99. +EXTRA_UDFPS_ANIMATIONS := true
  100.  
  101. PRODUCT_BUILD_PROP_OVERRIDES += \
  102. TARGET_PRODUCT=cheetah \
  103. diff --git a/lineage_panther.mk b/lineage_panther.mk
  104. index 1265b97..ec6068b 100644
  105. --- a/lineage_panther.mk
  106. +++ b/lineage_panther.mk
  107. @@ -19,9 +19,16 @@ PRODUCT_BRAND := google
  108. PRODUCT_MODEL := Pixel 7
  109. PRODUCT_NAME := lineage_panther
  110.  
  111. -# Boot animation
  112. -TARGET_SCREEN_HEIGHT := 2400
  113. -TARGET_SCREEN_WIDTH := 1080
  114. +# Crdroid Extra Stuffs
  115. +TARGET_SUPPORTS_QUICK_TAP := true
  116. +TARGET_IS_PIXEL := true
  117. +TARGET_IS_PIXEL_7 := true
  118. +TARGET_PIXEL_STAND_SUPPORTED := true
  119. +WITH_GAPPS := true
  120. +TARGET_HAS_UDFPS := true
  121. +TARGET_BOOT_ANIMATION_RES := 1080
  122. +EXTRA_UDFPS_ANIMATIONS := true
  123. +
  124.  
  125. PRODUCT_BUILD_PROP_OVERRIDES += \
  126. TARGET_PRODUCT=panther \
  127. diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
  128. new file mode 100644
  129. index 0000000..eea642c
  130. --- /dev/null
  131. +++ b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
  132. @@ -0,0 +1,12 @@
  133. +<?xml version="1.0" encoding="utf-8"?>
  134. +<!--
  135. + Copyright (C) 2023 The LineageOS Project
  136. + SPDX-License-Identifier: Apache-2.0
  137. +-->
  138. +<resources>
  139. + <!-- Preferred max refresh rate at AOD & Ambient Display, if supported by the display. -->
  140. + <integer name="config_aodMaxRefreshRate">60</integer>
  141. +
  142. + <!-- Whether show refresh rate QS tile -->
  143. + <bool name="config_showRefreshRateQsTile">true</bool>
  144. +</resources>
  145. diff --git a/overlay-lineage/packages/apps/Settings/res/values/config.xml b/overlay-lineage/packages/apps/Settings/res/values/config.xml
  146. index fa7193f..1a17755 100644
  147. --- a/overlay-lineage/packages/apps/Settings/res/values/config.xml
  148. +++ b/overlay-lineage/packages/apps/Settings/res/values/config.xml
  149. @@ -17,4 +17,10 @@
  150. <resources>
  151. <!-- Whether to show Smooth Display feature in Settings Options -->
  152. <bool name="config_show_smooth_display">true</bool>
  153. +
  154. + <!-- Whether to show peak refresh rate in display settings -->
  155. + <bool name="config_show_peak_refresh_rate_switch">true</bool>
  156. +
  157. + <!-- Whether to show min refresh rate in display settings -->
  158. + <bool name="config_show_min_refresh_rate_switch">true</bool>
  159. </resources>
  160. diff --git a/panther/proprietary-files.txt b/panther/proprietary-files.txt
  161. index 87e7902..3981aa2 100644
  162. --- a/panther/proprietary-files.txt
  163. +++ b/panther/proprietary-files.txt
  164. @@ -98,10 +98,6 @@ system_ext/lib64/com.google.edgetpu_app_service-V2-ndk.so
  165. system_ext/lib64/com.google.edgetpu_vendor_service-V2-ndk.so
  166. system_ext/lib64/libedgetpu_dba.google.so
  167.  
  168. -# HBM
  169. -system_ext/lib64/libhbmsvmanager_jni.so
  170. -system_ext/priv-app/HbmSVManager/HbmSVManager.apk
  171. -
  172. # Hotword
  173. system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
  174. system_ext/framework/com.android.hotwordenrollment.common.util.jar
  175. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/Android.bp b/panther/rro_overlays/HbmSVManagerOverlay/Android.bp
  176. deleted file mode 100644
  177. index 698c8e4..0000000
  178. --- a/panther/rro_overlays/HbmSVManagerOverlay/Android.bp
  179. +++ /dev/null
  180. @@ -1,8 +0,0 @@
  181. -package {
  182. - default_applicable_licenses: ["Android-Apache-2.0"],
  183. -}
  184. -
  185. -runtime_resource_overlay {
  186. - name: "HbmSVManagerOverlayPanther",
  187. - vendor: true
  188. -}
  189. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml b/panther/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml
  190. deleted file mode 100644
  191. index b8e8d1f..0000000
  192. --- a/panther/rro_overlays/HbmSVManagerOverlay/AndroidManifest.xml
  193. +++ /dev/null
  194. @@ -1,9 +0,0 @@
  195. -<?xml version="1.0" encoding="utf-8"?>
  196. -<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  197. - package="com.android.hbmsvmanager.overlay">
  198. -
  199. - <overlay
  200. - android:isStatic="true"
  201. - android:priority="0"
  202. - android:targetPackage="com.android.hbmsvmanager" />
  203. -</manifest>
  204. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png
  205. deleted file mode 100644
  206. index 2ab2090..0000000
  207. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_0_cal0.png and /dev/null differ
  208. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png
  209. deleted file mode 100644
  210. index bb923b2..0000000
  211. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_1_cal0.png and /dev/null differ
  212. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png
  213. deleted file mode 100644
  214. index afe092e..0000000
  215. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_2_cal0.png and /dev/null differ
  216. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png
  217. deleted file mode 100644
  218. index 32efd29..0000000
  219. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_3_cal0.png and /dev/null differ
  220. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png
  221. deleted file mode 100644
  222. index 6869ec0..0000000
  223. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_4_cal0.png and /dev/null differ
  224. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png b/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png
  225. deleted file mode 100644
  226. index 8df33eb..0000000
  227. Binary files a/panther/rro_overlays/HbmSVManagerOverlay/res/drawable/SCI_5_cal0.png and /dev/null differ
  228. diff --git a/panther/rro_overlays/HbmSVManagerOverlay/res/values/config.xml b/panther/rro_overlays/HbmSVManagerOverlay/res/values/config.xml
  229. deleted file mode 100644
  230. index 27fcc0e..0000000
  231. --- a/panther/rro_overlays/HbmSVManagerOverlay/res/values/config.xml
  232. +++ /dev/null
  233. @@ -1,47 +0,0 @@
  234. -<?xml version="1.0" encoding="utf-8"?>
  235. -<!--
  236. -/*
  237. -** Copyright 2020, The Android Open Source Project
  238. -**
  239. -** Licensed under the Apache License, Version 2.0 (the "License");
  240. -** you may not use this file except in compliance with the License.
  241. -** You may obtain a copy of the License at
  242. -**
  243. -** http://www.apache.org/licenses/LICENSE-2.0
  244. -**
  245. -** Unless required by applicable law or agreed to in writing, software
  246. -** distributed under the License is distributed on an "AS IS" BASIS,
  247. -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  248. -** See the License for the specific language governing permissions and
  249. -** limitations under the License.
  250. -*/
  251. --->
  252. -
  253. -<resources>
  254. - <string-array name="config_calibrated_compensation_images">
  255. - <item>SCI_0_cal0.png</item>
  256. - <item>SCI_1_cal0.png</item>
  257. - <item>SCI_2_cal0.png</item>
  258. - <item>SCI_3_cal0.png</item>
  259. - <item>SCI_4_cal0.png</item>
  260. - <item>SCI_5_cal0.png</item>
  261. - </string-array>
  262. - <array name="config_compensation_images">
  263. - <item>@drawable/SCI_0_cal0</item>
  264. - <item>@drawable/SCI_1_cal0</item>
  265. - <item>@drawable/SCI_2_cal0</item>
  266. - <item>@drawable/SCI_3_cal0</item>
  267. - <item>@drawable/SCI_4_cal0</item>
  268. - <item>@drawable/SCI_5_cal0</item>
  269. - </array>
  270. - <integer name="config_compensation_filter_horizon">1500</integer>
  271. - <dimen name="config_compensation_filter_intercept">10.0</dimen>
  272. - <array name="config_compensation_thresholds">
  273. - <item>10000.0</item>
  274. - <item>20000.0</item>
  275. - <item>40000.0</item>
  276. - <item>60000.0</item>
  277. - <item>80000.0</item>
  278. - <item>100000.0</item>
  279. - </array>
  280. -</resources>
  281.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement