84 Commits
udc ... bka

Author SHA1 Message Date
Apelete Seketeli
7aca1afd17 redfin: Fix gapps selection based on WITH_GMS flag
Fix an issue where some packages are not properly configured due to
WITH_GMS environment variable not being explicitly set.
2025-11-18 17:36:39 +01:00
Apelete Seketeli
0bfc4d1a60 redfin: Fetch vendor from personal repo
Forking vendor tree into Evolution X org repositories requires
privileged rights, and pushing fails due to git lfs:

batch request: git@lfs.undocumented.software: Permission denied (publickey).: exit status 255
error: failed to push some refs to 'github.com:Evolution-X-Devices/vendor_google_redfin.git'

Fetching vendor tree from personal repo as a work-around.
Also fix branch naming convention for device_google_redbull repository.
2025-10-07 01:01:11 +02:00
Apelete Seketeli
3958aa684d redfin: Select apps based on WITH_GMS flag
Selectively build with or without GAPPS and allow files to live in
specified root path depending on WITH_GMS flag.
2025-10-05 00:45:59 +02:00
Apelete Seketeli
eb458a0c6f redfin: Allow files to live in specified root path 2025-10-05 00:45:57 +02:00
Apelete Seketeli
a03113ed73 redfin: Select mini gapps package instead of default gapps 2025-10-05 00:45:55 +02:00
Apelete Seketeli
83e8e3e5ea redfin: Initialise Evolution X 11.x 2025-10-05 00:45:51 +02:00
Alexander Koskovich
3e58f922cf redfin: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2025-09-14 23:33:03 +03:00
Michael Bestas
36dd15a831 redfin: Remove userdebug/eng configuration
Change-Id: Ia50c9d143f3b59f02a73c2dc89837afe63bbf6fb
2025-09-14 23:32:58 +03:00
Michael Bestas
7826285ba2 redfin: Drop unused AndroidBoard.mk
Change-Id: I6149ebbec9ebb3687819d8c72c31ebf124056644
2025-09-10 10:01:28 +03:00
Michael Bestas
5c8abc63f5 redfin: Migrate mount point creation out of AndroidBoard.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
2025-09-08 09:14:57 +03:00
Michael Bestas
ab3559b639 redfin: Shim libsecureuisvc_jni with libgui_shim
Change-Id: Ic6261ee33f1b46a21c02eca9ec0d169bfd9613d2
2025-07-17 15:18:37 +03:00
Michael Bestas
17af242598 redfin: Address missing libbinder symbols
_ZN7android6binder12atrace_beginEmPKc
_ZN7android6binder12atrace_beginEyPKc
_ZN7android6binder10atrace_endEm
_ZN7android6binder10atrace_endEy

Change-Id: I215803d31b617913df2d83bfb6baeebb48d01ceb
2025-07-17 15:18:37 +03:00
Michael Bestas
f5a753a4ac redfin: Drop pixelstats policy
Change-Id: I81ce5905dd87106237400a68e12a0cfb8d5075bd
2025-07-17 15:18:37 +03:00
Michael Bestas
e7ccc0b29b redfin: Move qcom wlan soong namespace to redbull
Change-Id: I22eec1e287679ad99ef9347a05c96dc59dfb3d5f
2025-07-17 15:18:37 +03:00
LuK1337
85cc073a76 redfin: apktool_patch() no longer takes custom arguments
Change-Id: Idf85ae2cd0505c34e55f0e6acec2afc085372b78
2025-07-07 01:28:29 +03:00
Michael Bestas
458ab3ae66 redfin: Remove CleanSpec.mk
Change-Id: I6af355cfbfd5fc388ca25cd25cea9df9e74c41c3
2025-04-06 01:51:36 +03:00
Michael Bestas
cac84d8d4d redfin: Set chre_daemon_dsp_library
Change-Id: If0a2be3eee2f55fcbb48ca9118f4f14f68ac1c32
2025-03-12 07:02:47 +02:00
Michael Bestas
e805ceabee redfin: Remove hardware/qcom/bootctrl import
Change-Id: I34daba0fd7dff1b147e68e7a9a0b54b678089cda
2025-03-12 07:02:47 +02:00
Michael Bestas
a15321e1e2 redfin: Enable ELF checks for libwpa_client dependent libs
Change-Id: I490df02b68da4b9a7088a239672a1dcace66d270
2025-03-10 23:34:36 +02:00
Sebastiano Barezzi
79c068c488 redfin: Drop proto sensors configs
Change-Id: Ie8377977931f18f0f7f3082c1c4e87a53111c593
2025-02-24 08:46:07 +02:00
Michael Bestas
f459e2ac62 redfin: Build ipacm from source
Change-Id: I4da372204b154a42fd487bef3ae6e590177a439f
2025-02-16 16:05:22 +02:00
LuK1337
1098d09607 redfin: Clear LIBC_PRIVATE symbol versions for libmmcamera_faceproc
Change-Id: I1565a6fef5070377650e62dc3e3a45bfd2bfaf5b
2025-01-09 04:57:32 +02:00
Michael Bestas
54ff2cc4b9 redfin: Remove non existent soong namespaces
Change-Id: If0b86441d47da127e37aeed6fcd6cbfff656e3f8
2025-01-06 04:28:02 +02:00
Michael Bestas
71692726fd redfin: Disable OMX service & remove leftover blobs
Change-Id: Ic9335f694a28852560652090c8035069189d839e
2025-01-05 21:39:43 +02:00
Michael Bestas
7c232a6c62 redfin: sepolicy: Label ECOService
Change-Id: Ia9a1b7fc1ac994b3252a5a27ceff5c52a75af6ab
2024-12-23 02:13:38 +02:00
Michael Bestas
da605224a2 Merge branch 'main' of https://android.googlesource.com/device/google/redfin-sepolicy into lineage-22.0
* 'main' of https://android.googlesource.com/device/google/redfin-sepolicy:
  Remove dumpstate from the denylist.

Change-Id: I7bcfd39b07ef2e97347bd168dd12eac77d834fa9
2024-12-11 05:17:29 +02:00
Cosmin Tanislav
3a85247c27 redfin: switch to python extract-utils
Change-Id: Ia2d6a0235d9343d7de0ef69d4197cac7f276af84
2024-11-06 13:10:44 +02:00
Michael Bestas
01e9149ea6 redfin: Adjust override prop key names
Change-Id: Iaa96fd777196fe90f408457a580b80d86b041140
2024-10-20 22:57:26 +03:00
Michael Bestas
238fa4feef redfin: Switch to AOSP Wi-Fi service
Prebuilt blobs crash on 15

Change-Id: I02b593cfd9736c5581216de88c762081e74f3145
2024-09-26 00:54:55 +03:00
Luca Stefani
f9ea0da0b3 redfin: HbmSVManager: Fetch private identifiers at runtime
The following resource symbols are private:
config_displayWhiteBalanceBrightnessFilterIntercept (integer)
config_displayWhiteBalanceBrightnessFilterHorizon (float)

Instead of hardcoding the ids of the symbols (prone to break)
fetch them at runtime.

Change-Id: Ib80c387ba656b867cc278bb379bf3c052b8ae1b5
2024-09-26 00:54:26 +03:00
Michael Bestas
b8ecdf3e5b redfin: Shim libgooglecamerahal with libmeminfo_shim
Change-Id: Idd9dc2fa4eecf1a35fc18218bca662c95b7e3deb
2024-09-26 00:53:58 +03:00
Michael Bestas
a7fcdc0c2f redfin: Shim rebootescrow/keymaster with libcrypto_shim
The following change
e202e51cb0
removed symbols that our libs require.

Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29
2024-09-26 00:53:50 +03:00
Michael Bestas
4e4c7364c1 Merge tag 'android-15.0.0_r1' of https://android.googlesource.com/device/google/redfin into HEAD
Android 15.0.0 release 1

* tag 'android-15.0.0_r1' of https://android.googlesource.com/device/google/redfin:
  Update stale OWNERS.
  Remove mandyshen@google.com from OWNERS
  Set "enable_nr_dual_connectivity_qcril" to control module build
  Move license metadata declarations to meta-lic.mk and remove the Android.mk file.
  Convert Android.mk to Android.bp under redfin/dumpstate

Change-Id: I1700fa7eb746d0b3c22424642dda916dda0db8ff
2024-09-26 00:53:09 +03:00
Michael Bestas
69332ca055 redfin: extract-files improvements
Change-Id: I517698ca3b5a93e10a5b167417631c7f8d0ab9e2
2024-09-10 02:53:11 +03:00
Michael Bestas
030f691644 redfin: Update barbet files from last build
Change-Id: I41252cbe2ab5045c3232befdb80205256b5dd92e
2024-09-08 04:51:34 +03:00
Cosmin Tanislav
77c4021315 redfin: do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2024-09-03 01:47:11 +03:00
Michael Bestas
21d4229eaf redfin: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2024-09-03 01:47:11 +03:00
Michael Bestas
ce2c6d1e1e redfin: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-09-03 01:47:11 +03:00
Cosmin Tanislav
f46c6a2fb8 redfin: skip dependencies which aren't defined in .bp
Change-Id: I01a653661856495788c05b720c0577dac44998a4
2024-09-03 01:45:50 +03:00
Michael Bestas
5e37bc5b1b redfin: fix libprotobuf-cpp-lite-21.12 ELF check
Change-Id: I028723e6ff9ef71514857d683e2c65caf9e28fa0
2024-09-03 01:45:50 +03:00
Michael Bestas
ef3c220114 redfin: fix vendor.qti.hardware.tui_comm@1.0 ELF check
Change-Id: Iaaa6a2afd002fc4ac50c5b4718c6b2399b04c9de
2024-09-03 01:45:49 +03:00
Cosmin Tanislav
8ac3d64cf0 redfin: fix vendor.qti.imsrtpservice@3.0 ELF checks
Change-Id: Ia1995d0a3360317843685082e3226ab30f124d09
2024-09-03 01:45:49 +03:00
Aaron Kling
2012fd962c redfin: Add vendor soong imports to extract
Change-Id: Ib19e69dc35af6b04519eeb695228af65f3d01d2a
2024-09-03 01:45:49 +03:00
Aaron Kling
acb713e888 redfin: Enable elf checks
Change-Id: Ia6c9a381abb3384c77532d75e02fd84c841a4d1e
2024-09-03 01:45:49 +03:00
Michael Bestas
93e3f89a4c redfin: Fully switch to prebuilt camera
Fixes:
module "android.hardware.camera.provider@2.7-service-google" variant
"android_vendor_arm64_armv8-a": depends on multiple versions of the
same aidl_interface: android.hardware.camera.metadata-V2-ndk-source,
android.hardware.camera.metadata-V3-ndk-source

Change-Id: Iea8d83616a54881c3e23d7a97b1c367695d13ed2
2024-09-03 01:45:46 +03:00
Michael Bestas
6b484b6058 redfin: Remove carriersettings/vendor regen support
Change-Id: I66e0d253cfe8e5aed9e057069fcdefd39b76f999
2024-09-02 04:08:48 +03:00
Michael Bestas
4339f1762e redfin: Fix blob_fixup update
Change-Id: I51f01fc47cef05e74c3f540b23e51bcacc56a114
2024-09-02 04:08:38 +03:00
Michael Bestas
976d3aa4e5 redfin: Sync extract scripts with templates
Change-Id: I83561b9064f7f27af90e21ac72a9c76e1dad8fad
2024-08-29 11:43:04 +03:00
Pablo Gamito
7f959bb1c8 Remove dumpstate from the denylist. am: 2cc2081263
Original change: https://android-review.googlesource.com/c/device/google/redfin-sepolicy/+/3204090

Change-Id: I23975f9146bcaeaeb2e5720f3e324823a4b05abb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-02 00:54:30 +00:00
Pablo Gamito
2cc2081263 Remove dumpstate from the denylist.
The issue has been fixed.

Bug: 277155912
Flag: EXEMPT se policy change
Change-Id: I1803e0a0dd18c489b5ff4129adff99b087451cbe
2024-08-01 10:59:25 +00:00
Android Build Coastguard Worker
d31921c35b Snap for 11967491 from a2f4d60eb9 to 24Q3-release
Change-Id: I5f0d99b4db05dab391cb5662b48f2b9258a90b56
2024-06-13 23:02:48 +00:00
Michael Wright
a2f4d60eb9 Merge "Update stale OWNERS." into main 2024-06-13 17:13:57 +00:00
Michael Wright
55cf39f012 Update stale OWNERS.
None of the people in this OWNERS file work on haptics anymore. Point to
a maintained OWNERS file so there's only one place to update when the
team changes in the future.

Bug: 346876927
Test: N/A
Flag: EXEMPT OWNERS change
Change-Id: Ia3df4631258f3615057db9f7efe5fa2edd76c6cb
2024-06-13 14:45:54 +01:00
Android Build Coastguard Worker
d7d184c715 Snap for 11954976 from a6e827b460 to 24Q3-release
Change-Id: I3ad1c6e8f2a1b56dc136c2064edc845216addde7
2024-06-11 23:03:21 +00:00
Treehugger Robot
a6e827b460 Merge "Set "enable_nr_dual_connectivity_qcril" to control module build" into main 2024-06-11 02:45:42 +00:00
Android Build Coastguard Worker
d4d10523f6 Snap for 11938003 from bbdeba516d to 24Q3-release
Change-Id: Ic2dcda2e586dec5ec947df48d6afb6e8b6b06a4d
2024-06-06 23:02:53 +00:00
Owner Cleanup Bot
bbdeba516d Remove mandyshen@google.com from OWNERS am: 5bc2c76ced am: b4891e252e
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/3118536

Change-Id: I4e71e03502745be88850f10e6273b3b8f7c65bc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 20:15:49 +00:00
Owner Cleanup Bot
b4891e252e Remove mandyshen@google.com from OWNERS am: 5bc2c76ced
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/3118536

Change-Id: Ie7cb57cbcf9a1ea3e491d0c7bb3f844ec3aec947
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 19:55:05 +00:00
Owner Cleanup Bot
5bc2c76ced Remove mandyshen@google.com from OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.
If this change is unnecessary or in error, vote CR -1 and the bot
will abandon it. Vote CR +1/2 to approve this change.

See the owner's recent activity for context:
https://android-review.googlesource.com/q/mandyshen@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: I48a400947d4abd3a36779f6fa0761f0508ca2283
2024-06-06 17:52:22 +00:00
Herbert Xue
09be3f1607 Set "enable_nr_dual_connectivity_qcril" to control module build
Bug: 331707506
Test: 1. lunch barbet-trunk_staging-eng
      2. m PowerManagerNrDualConnectivityQcril
      3. m ConnectivityThermalPowerManager_2020_and_older_test
Change-Id: If2fb55f111c1a7833673ee5e2e3114b7a3ea59c3
2024-06-06 14:52:55 +08:00
Android Build Coastguard Worker
0f2f0f3526 Snap for 11847214 from 7e9b1dc88a to 24Q3-release
Change-Id: I1310c5973a1485a5baffbe5546de5156ebabf314
2024-05-16 01:03:16 +00:00
Xin Li
7e9b1dc88a [automerger skipped] Merge Android 24Q2 Release (ab/11526283) to aosp-main-future am: a421ceac2c -s ours
am skip reason: Merged-In I0b45c28183e3ba3225eb925cf3fd2110a14c1b2b with SHA-1 d305a9d37d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/27273861

Change-Id: I3d2e9bf8046a207d14aca2c4a1019626dd9c363c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 20:18:56 +00:00
Xin Li
a421ceac2c Merge Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I0b45c28183e3ba3225eb925cf3fd2110a14c1b2b
Change-Id: I0065ebafcd8db6d9348f51da75f30fab720968f5
2024-05-13 13:11:03 -07:00
Android Build Coastguard Worker
6c6dbfaa26 Snap for 11816316 from 77e63c1cc8 to 24Q3-release
Change-Id: I53c4cc5bdb2af6beb035ca2140a971136a6c8d70
2024-05-08 23:02:58 +00:00
Wei Li
77e63c1cc8 Move license metadata declarations to meta-lic.mk and remove the Android.mk file. am: e839be5fd4 am: 1d4297808c
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/3077691

Change-Id: If6e52f8efd281aadb5ae6495613fb2a436f65939
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-08 04:38:25 +00:00
Wei Li
1d4297808c Move license metadata declarations to meta-lic.mk and remove the Android.mk file. am: e839be5fd4
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/3077691

Change-Id: I6e6a7b7298b32ff0758137e3d94dc3d64373d487
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-08 04:11:45 +00:00
Wei Li
e839be5fd4 Move license metadata declarations to meta-lic.mk and remove the Android.mk file.
Bug: 311544087
Test: CIs
Change-Id: I3521dea829aa2e26072181dc00702cf471ebecf3
2024-05-07 16:36:51 -07:00
Android Build Coastguard Worker
ca8fb43a45 Snap for 11784291 from 2491e9e4f7 to 24Q3-release
Change-Id: I9f02c024d38381da4128483bb4bb09a71fd76aab
2024-04-30 23:03:44 +00:00
Treehugger Robot
2491e9e4f7 Merge "Convert Android.mk to Android.bp under redfin/dumpstate" into main am: d8abfb0361 am: 736c5de611
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/2836012

Change-Id: I6494ba01ba49e088c5fe65904c6f5f154a40d92d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 18:55:32 +00:00
Treehugger Robot
736c5de611 Merge "Convert Android.mk to Android.bp under redfin/dumpstate" into main am: d8abfb0361
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/2836012

Change-Id: I75f3d771a99b6bd2a3c94242f8fa527791c2a46f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 18:37:51 +00:00
Treehugger Robot
d8abfb0361 Merge "Convert Android.mk to Android.bp under redfin/dumpstate" into main 2024-04-30 18:14:46 +00:00
Xin Li
40d3f81704 [automerger skipped] Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future am: 8a3642a753 -s ours
am skip reason: Merged-In I24f2ab83d742ada22b2cc2fdd1994e327b909274 with SHA-1 573e1b8d40 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin-sepolicy/+/27145171

Change-Id: I738186fd7b476b0e1bd30851de690062926e6eb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-29 23:45:57 +00:00
Xin Li
8a3642a753 Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I24f2ab83d742ada22b2cc2fdd1994e327b909274
Change-Id: I618169fc4199e68b01965abaa41b59580286f59c
2024-04-29 11:48:06 -07:00
Android Build Coastguard Worker
258add85c2 Snap for 11545716 from ac9ebf84d2 to 24Q3-release
Change-Id: I300ef93dd050f82560bd39035a5ee7be43025610
2024-03-08 00:02:27 +00:00
Xin Li
ac9ebf84d2 [automerger skipped] Merge Android 14 QPR2 to AOSP main am: dfd63b7edc -s ours am: 80271318ac -s ours
am skip reason: Merged-In I41325acda1e8805b210b589f69ed2b70e047ce66 with SHA-1 092e9507a1 is already in history

Original change: https://android-review.googlesource.com/c/device/google/redfin/+/2989220

Change-Id: Ie1c7443cf6cecf1e760d3933adc06f8c68f74a98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-07 10:46:50 +00:00
Xin Li
0ed64b37d6 [automerger skipped] Merge Android 14 QPR2 to AOSP main am: 220d4f7c3d -s ours am: 573e1b8d40 -s ours
am skip reason: Merged-In Icb38a6fe30574c9908b61745666b04946b2f8b07 with SHA-1 8e144b4cae is already in history

Original change: https://android-review.googlesource.com/c/device/google/redfin-sepolicy/+/2989698

Change-Id: Iec9dea58d3fcae6ace9e08f49df0c378fb38efdc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-07 10:46:19 +00:00
Xin Li
80271318ac [automerger skipped] Merge Android 14 QPR2 to AOSP main am: dfd63b7edc -s ours
am skip reason: Merged-In I41325acda1e8805b210b589f69ed2b70e047ce66 with SHA-1 092e9507a1 is already in history

Original change: https://android-review.googlesource.com/c/device/google/redfin/+/2989220

Change-Id: I94c9c1eb58bd73766c9ace120f56ccd41afb3f40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-07 09:55:26 +00:00
Xin Li
573e1b8d40 [automerger skipped] Merge Android 14 QPR2 to AOSP main am: 220d4f7c3d -s ours
am skip reason: Merged-In Icb38a6fe30574c9908b61745666b04946b2f8b07 with SHA-1 8e144b4cae is already in history

Original change: https://android-review.googlesource.com/c/device/google/redfin-sepolicy/+/2989698

Change-Id: I24f2ab83d742ada22b2cc2fdd1994e327b909274
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-07 09:54:54 +00:00
Xin Li
dfd63b7edc Merge Android 14 QPR2 to AOSP main
Bug: 319669529
Merged-In: I41325acda1e8805b210b589f69ed2b70e047ce66
Change-Id: I191e783bd56684e501f75ad716f008b7565eb13f
2024-03-06 09:29:49 -08:00
Xin Li
220d4f7c3d Merge Android 14 QPR2 to AOSP main
Bug: 319669529
Merged-In: Icb38a6fe30574c9908b61745666b04946b2f8b07
Change-Id: I50c47315a7d9f0a60dbd95807125556eed8853b6
2024-03-06 09:29:49 -08:00
Android Build Coastguard Worker
d9435126c2 Snap for 11520864 from d305a9d37d to 24Q3-release
Change-Id: I2e882f6b6b9cf2a7f4e9d098a4107c14ea53f35a
2024-03-02 02:02:59 +00:00
Xin Li
7771f58acf [automerger skipped] Merge Android 24Q1 Release (ab/11220357) am: 8e144b4cae -s ours
am skip reason: Merged-In I3bf97e6bde2b820e7cc2f6281b1224a8d3f24b95 with SHA-1 5f729de5ec is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin-sepolicy/+/25974036

Change-Id: Ibf5530c15be5f4f2931a4dcdd9dc1455a85c60e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 02:02:32 +00:00
Xin Li
8e144b4cae Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I3bf97e6bde2b820e7cc2f6281b1224a8d3f24b95
Change-Id: Icb38a6fe30574c9908b61745666b04946b2f8b07
2024-01-17 22:13:05 -08:00
Herbert Xue
f43a72c598 Convert Android.mk to Android.bp under redfin/dumpstate
Bug: 311544087
Test: lunch aosp_redfin-trunk_staging-userdebug, m android.hardware.dumpstate@1.1-service.redfin
Change-Id: I40e70657f57cda1240594d13bcef79ec0e155a33
2023-11-17 14:03:43 +08:00
37 changed files with 337 additions and 2060 deletions

View File

@@ -2,7 +2,6 @@ soong_namespace {
imports: [
"hardware/google/interfaces",
"hardware/google/pixel",
"hardware/qcom/bootctrl",
],
}

View File

@@ -1,38 +0,0 @@
#
# Copyright 2018 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,default-permissions.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,libnfc-nci.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,fstab.postinstall,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,ueventd.rc,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,wpa_supplicant.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,hals.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,media_profiles_V1_0.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,media_codecs_performance.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,device_state_configuration.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,task_profiles.json,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,p2p_supplicant.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,wpa_supplicant.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/redfin,wpa_supplicant_overlay.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-1p-copy-files,device/google/redfin,audio_policy_configuration.xml))
ifeq ($(USES_DEVICE_GOOGLE_REDFIN),true)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
endif

View File

@@ -1,58 +0,0 @@
# Copyright 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# If you don't need to do a full clean build but would like to touch
# a file or delete some intermediate files, add a clean step to the end
# of the list. These steps will only be run once, if they haven't been
# run before.
#
# E.g.:
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
#
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
# files that are missing or have been moved.
#
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
# Use $(OUT_DIR) to refer to the "out" directory.
#
# If you need to re-do something that's already mentioned, just copy
# the command and add it to the bottom of the list. E.g., if a change
# that you made last week required touching a file and a change you
# made today requires touching the same file, just copy the old
# touch step and add it to the end of the list.
#
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
# For example:
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
# Vibrator HAL switch to AIDL
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.vibrator@1.3-service.redfin.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.vibrator@1.3-service.redfin)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.vibrator@1.3-service.redfin.xml)
# Update to USB HAL 1.3
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.usb@1.2-service.redfin)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.usb@1.2-service.redfin.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.usb@1.2-service.redfin.xml)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.usb@1.3-service.redfin)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.usb@1.3-service.redfin.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.usb@1.3-service.redfin.xml)

2
OWNERS
View File

@@ -1 +1 @@
per-file thermal_info_config_redfin.json = tstrudel@google.com,wvw@google.com,joaodias@google.com,paillon@google.com,jychen@google.com,kamewang@google.com,yihocheng@google.com,mandyshen@google.com,davidchao@google.com,jenhaochen@google.com,liumartin@google.com
per-file thermal_info_config_redfin.json = tstrudel@google.com,wvw@google.com,joaodias@google.com,paillon@google.com,jychen@google.com,kamewang@google.com,yihocheng@google.com,davidchao@google.com,jenhaochen@google.com,liumartin@google.com

View File

@@ -42,6 +42,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
# All components inherited here go to vendor image
#
# TODO(b/136525499): move *_vendor.mk into the vendor makefile later
TARGET_SUPPORTS_OMX_SERVICE := false
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
@@ -57,9 +58,6 @@ ifneq ($(PRODUCT_VENDOR_FREEZE_SYSTEM_BUILD),true)
endif
endif
# Don't build super.img.
PRODUCT_BUILD_SUPER_PARTITION := false
# b/113232673 STOPSHIP deal with Qualcomm stuff later
# PRODUCT_RESTRICT_VENDOR_FILES := all

Binary file not shown.

View File

@@ -9,10 +9,8 @@ $(call inherit-product, device/google/redbull/device-lineage.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/redfin/overlay-lineage
# Camera
PRODUCT_PACKAGES += \
android.hardware.camera.device-V2-ndk.vendor:64 \
android.hardware.camera.provider-V2-ndk.vendor:64
# CHRE
$(call soong_config_set,chre,chre_daemon_dsp_library,//vendor/google/redfin:libadsprpc)
# HBM
PRODUCT_PACKAGES += \
@@ -21,9 +19,5 @@ PRODUCT_PACKAGES += \
# PowerShare
include hardware/google/pixel/powershare/device.mk
# Wi-Fi
PRODUCT_PACKAGES += \
android.hardware.wifi-V2-ndk.vendor:64
# wireless_charger HAL service
include device/google/redfin/wireless_charger/wireless_charger.mk

View File

@@ -24,8 +24,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_ven
LOCAL_PATH := device/google/redfin
PRODUCT_SOONG_NAMESPACES += \
device/google/redfin \
hardware/qcom/wlan/legacy
device/google/redfin
DEVICE_PACKAGE_OVERLAYS += device/google/redfin/redfin/overlay
@@ -61,12 +60,6 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/acdbdata/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/Headset_cal.acdb \
$(LOCAL_PATH)/audio/acdbdata/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/Speaker_cal.acdb \
$(LOCAL_PATH)/audio/acdbdata/adsp_avs_config.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/adsp_avs_config.acdb
# Audio ACDB workspace files for QACT
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/acdbdata/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/workspaceFile.qwsp
endif
endif
# CS35L41 B0 SPEAKER AMP
@@ -96,10 +89,6 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/cs35l41/B2/cs35l41-revB2-dsp1-spk-prot.wmfw:$(TARGET_COPY_OUT_VENDOR)/firmware/cs35l41-revB2-dsp1-spk-prot.wmfw \
$(LOCAL_PATH)/audio/cs35l41/B2/R-cs35l41-revB2-dsp1-spk-prot.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/R-cs35l41-revB2-dsp1-spk-prot.bin
# Audio CS35L41 speaker calibration tool
PRODUCT_PACKAGES_DEBUG += \
crus_sp_cal
# Audio audiozoom config data
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audiozoom.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audiozoom.xml
@@ -161,12 +150,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/thermal_info_config_$(PRODUCT_HARDWARE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
# Support to disable thermal protection at run time
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc
endif
# GPS ANTENNA_INFO configuration file
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/gnss_antenna_info.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss_antenna_info.conf
@@ -231,3 +214,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
NfcOverlayRedfin
# Set soong config variable to control module build
$(call soong_config_set,ctpm,enable_nr_dual_connectivity_qcril,true)

48
dumpstate/Android.bp Normal file
View File

@@ -0,0 +1,48 @@
//
// Copyright 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package {
// See: http://go/android-license-faq
default_applicable_licenses: [
"Android-Apache-2.0",
],
}
cc_binary {
name: "android.hardware.dumpstate@1.1-service.redfin",
init_rc: ["android.hardware.dumpstate@1.1-service.redfin.rc"],
relative_install_path: "hw",
srcs: [
"DumpstateDevice.cpp",
"service.cpp",
],
shared_libs: [
"android.hardware.dumpstate@1.0",
"android.hardware.dumpstate@1.1",
"libbase",
"libcutils",
"libdumpstateutil",
"libhidlbase",
"liblog",
"libutils",
],
cflags: [
"-Werror",
"-Wall",
],
proprietary: true,
}

View File

@@ -1,44 +0,0 @@
#
# Copyright 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.dumpstate@1.1-service.redfin
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_INIT_RC := android.hardware.dumpstate@1.1-service.redfin.rc
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
DumpstateDevice.cpp \
service.cpp
LOCAL_SHARED_LIBRARIES := \
android.hardware.dumpstate@1.0 \
android.hardware.dumpstate@1.1 \
libbase \
libcutils \
libdumpstateutil \
libhidlbase \
liblog \
libutils
LOCAL_CFLAGS := -Werror -Wall
LOCAL_MODULE_TAGS := optional
LOCAL_PROPRIETARY_MODULE := true
include $(BUILD_EXECUTABLE)

21
evolution.dependencies Normal file
View File

@@ -0,0 +1,21 @@
[
{
"repository": "device_google_gs-common",
"target_path": "device/google/gs-common"
},
{
"repository": "device_google_redbull",
"target_path": "device/google/redbull",
"branch": "bka"
},
{
"repository": "apelete/proprietary_vendor_google_redfin",
"target_path": "vendor/google/redfin",
"remote" : "github-non-los",
"branch": "lineage-23.0"
},
{
"repository": "kernel_google_redbull",
"target_path": "kernel/google/redbull"
}
]

13
extract-files.py Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
set -e
MY_DIR="$(cd "$(dirname "${0}")"; pwd -P)"
pushd "${MY_DIR}/redfin"
./extract-files.py $@
popd

View File

@@ -1,85 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=redfin
VENDOR=google
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
KANG=
SECTION=
while [ "${#}" -gt 0 ]; do
case "${1}" in
-n | --no-cleanup )
CLEAN_VENDOR=false
;;
-k | --kang )
KANG="--kang"
;;
-s | --section )
SECTION="${2}"; shift
CLEAN_VENDOR=false
;;
* )
SRC="${1}"
;;
esac
shift
done
if [ -z "${SRC}" ]; then
SRC="adb"
fi
function blob_fixup() {
case "${1}" in
product/etc/felica/common.cfg)
sed -i -e '$a00000018,1' -e '/^00000014/d' -e '/^00000015/d' "${2}"
;;
# Fix typo in qcrilmsgtunnel whitelist
product/etc/sysconfig/nexus.xml)
sed -i 's/qulacomm/qualcomm/' "${2}"
;;
esac
}
function prepare_firmware() {
if [ "${SRC}" != "adb" ]; then
bash "${ANDROID_ROOT}"/lineage/scripts/pixel/prepare-firmware.sh "${DEVICE}" "${SRC}"
fi
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
extract "${MY_DIR}/proprietary-files-carriersettings.txt" "${SRC}" "${KANG}" --section "${SECTION}"
extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" "${KANG}" --section "${SECTION}"
if [ -z "${SECTION}" ]; then
extract_firmware "${MY_DIR}/proprietary-firmware.txt" "${SRC}"
fi
"${MY_DIR}/setup-makefiles.sh"

View File

@@ -1,24 +0,0 @@
#
# Copyright (C) 2018 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=1
write /sys/class/power_supply/dc/current_max 75000
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=0
write /sys/class/power_supply/dc/current_max 1100000
on property:vendor.disable.wlc=1
write /sys/class/power_supply/wireless/online 0

View File

@@ -1,6 +0,0 @@
[
{
"repository": "android_device_google_redbull",
"target_path": "device/google/redbull"
}
]

View File

@@ -23,9 +23,24 @@ TARGET_SCREEN_HEIGHT := 2340
TARGET_SCREEN_WIDTH := 1080
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_PRODUCT=redfin \
PRIVATE_BUILD_DESC="redfin-user 14 UP1A.231105.001.B2 11260668 release-keys"
BuildDesc="redfin-user 14 UP1A.231105.001.B2 11260668 release-keys" \
BuildFingerprint=google/redfin/redfin:14/UP1A.231105.001.B2/11260668:user/release-keys \
DeviceProduct=redfin
BUILD_FINGERPRINT := google/redfin/redfin:14/UP1A.231105.001.B2/11260668:user/release-keys
ifeq ($(WITH_GMS),false)
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/priv-app/OmniStyle/OmniStyle.apk
else
TARGET_USES_MINI_GAPPS := true
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/priv-app/OmniStyle/OmniStyle.apk \
system/app/GoogleExtShared/GoogleExtShared.apk \
system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk \
system/etc/permissions/privapp-permissions-google.xml \
system/priv-app/DocumentsUIGoogle/DocumentsUIGoogle.apk \
system/priv-app/TagGoogle/TagGoogle.apk
endif
$(call inherit-product, vendor/google/redfin/redfin-vendor.mk)

View File

@@ -1,26 +0,0 @@
LOCAL_PATH := $(call my-dir)
#A/B builds require us to create the mount points at compile time.
#Just creating it for all cases since it does not hurt.
FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT)
$(FIRMWARE_MOUNT_POINT):
@echo "Creating $(FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
# copy kernel headers to the build tree
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr: $(wildcard $(PRODUCT_VENDOR_KERNEL_HEADERS)/*)
rm -rf $@
mkdir -p $@/include
cp -a $(PRODUCT_VENDOR_KERNEL_HEADERS)/. $@/include
#----------------------------------------------------------------------
# build and sign the final stage of bootloader
#----------------------------------------------------------------------
.PHONY: aboot
ifeq ($(USESECIMAGETOOL), true)
aboot: gensecimage_target gensecimage_install
else
aboot: $(INSTALLED_BOOTLOADER_MODULE)
endif

67
redfin/HbmSVManager.patch Normal file
View File

@@ -0,0 +1,67 @@
--- a/smali/com/android/hbmsvmanager/filter/AmbientFilterFactory.smali
+++ b/smali/com/android/hbmsvmanager/filter/AmbientFilterFactory.smali
@@ -35,14 +35,22 @@
.method public static createBrightnessFilter(Ljava/lang/String;Landroid/content/res/Resources;)Lcom/android/hbmsvmanager/filter/AmbientFilter;
.locals 2
- const v0, 0x10e005f
+ const v0, 0
+
+ invoke-static {p1}, Lcom/android/hbmsvmanager/filter/AmbientFilterFactory;->getFilterHorizonIdentifier(Landroid/content/res/Resources;)I
+
+ move-result v0
.line 53
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getInteger(I)I
move-result v0
- const v1, 0x10500b4
+ const v1, 0
+
+ invoke-static {p1}, Lcom/android/hbmsvmanager/filter/AmbientFilterFactory;->getFilterInterceptIdentifier(Landroid/content/res/Resources;)I
+
+ move-result v1
.line 60
invoke-static {p1, v1}, Lcom/android/hbmsvmanager/filter/AmbientFilterFactory;->getFloat(Landroid/content/res/Resources;I)F
@@ -89,3 +97,39 @@
return p0
.end method
+
+.method private static getFilterHorizonIdentifier(Landroid/content/res/Resources;)I
+ .registers 4
+ .param p0, "resources" # Landroid/content/res/Resources;
+
+ .line 7
+ const-string v0, "integer"
+
+ const-string v1, "android"
+
+ const-string v2, "config_displayWhiteBalanceBrightnessFilterHorizon"
+
+ invoke-virtual {p0, v2, v0, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
+
+ move-result v0
+
+ return v0
+.end method
+
+.method private static getFilterInterceptIdentifier(Landroid/content/res/Resources;)I
+ .registers 4
+ .param p0, "resources" # Landroid/content/res/Resources;
+
+ .line 11
+ const-string v0, "dimen"
+
+ const-string v1, "android"
+
+ const-string v2, "config_displayWhiteBalanceBrightnessFilterIntercept"
+
+ invoke-virtual {p0, v2, v0, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
+
+ move-result v0
+
+ return v0
+.end method

99
redfin/extract-files.py Executable file
View File

@@ -0,0 +1,99 @@
#!/usr/bin/env -S PYTHONPATH=../../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.extract import extract_fns_user_type
from extract_utils.extract_pixel import (
extract_pixel_factory_image,
extract_pixel_firmware,
pixel_factory_image_regex,
pixel_firmware_regex,
)
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.fixups_lib import (
lib_fixups,
lib_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'hardware/google/interfaces',
'hardware/google/pixel',
'hardware/qcom/sm7250/display',
'hardware/qcom/sm7250/gps',
'hardware/qcom/wlan/legacy',
'vendor/qcom/opensource/display',
]
def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
return f'{lib}_{partition}' if partition == 'vendor' else None
lib_fixups: lib_fixups_user_type = {
**lib_fixups,
(
'vendor.qti.hardware.tui_comm@1.0',
'vendor.qti.imsrtpservice@3.0',
): lib_fixup_vendor_suffix,
}
blob_fixups: blob_fixups_user_type = {
'product/etc/felica/common.cfg': blob_fixup()
.patch_file('osaifu-keitai.patch'),
'product/etc/sysconfig/nexus.xml': blob_fixup()
.regex_replace('qulacomm', 'qualcomm'),
'system_ext/lib64/libsecureuisvc_jni.so': blob_fixup()
.add_needed('libgui_shim.so'),
'system_ext/priv-app/HbmSVManager/HbmSVManager.apk': blob_fixup()
.apktool_patch('HbmSVManager.patch'),
(
'vendor/bin/hw/android.hardware.rebootescrow-service.citadel',
'vendor/lib64/android.hardware.keymaster@4.1-impl.nos.so',
): blob_fixup()
.add_needed('libcrypto_shim.so'),
(
'vendor/bin/hw/citadeld',
'vendor/lib/libmedia_ecoservice.so',
'vendor/lib64/libmedia_ecoservice.so',
'vendor/lib64/libnos_citadeld_proxy.so',
): blob_fixup()
.add_needed('libbinder_shim.so'),
'vendor/lib/libmmcamera_faceproc.so': blob_fixup()
.clear_symbol_version('__aeabi_memcpy')
.clear_symbol_version('__aeabi_memset')
.clear_symbol_version('__gnu_Unwind_Find_exidx'),
'vendor/lib64/libgooglecamerahal.so': blob_fixup()
.add_needed('libmeminfo_shim.so'),
} # fmt: skip
extract_fns: extract_fns_user_type = {
pixel_factory_image_regex: extract_pixel_factory_image,
pixel_firmware_regex: extract_pixel_firmware,
}
module = ExtractUtilsModule(
'redfin',
'google',
device_rel_path='device/google/redfin/redfin',
blob_fixups=blob_fixups,
lib_fixups=lib_fixups,
namespace_imports=namespace_imports,
add_firmware_proprietary_file=True,
extract_fns=extract_fns,
)
module.add_proprietary_file('proprietary-files-carriersettings.txt')
module.add_proprietary_file('proprietary-files-vendor.txt')
if __name__ == '__main__':
utils = ExtractUtils.device(module)
utils.run()

View File

@@ -0,0 +1,24 @@
From aab255f2807cfc460c0dce40decd5554d49c0076 Mon Sep 17 00:00:00 2001
From: jabashque <jabashque@gmail.com>
Date: Mon, 5 Feb 2024 21:36:03 +0000
Subject: [PATCH 1/1] Enable Osaifu-Keitai on non-Japanese SKUs
---
common.cfg | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/common.cfg b/common.cfg
index 3b78765..00f53cb 100644
--- a/common.cfg
+++ b/common.cfg
@@ -11,6 +11,5 @@
02030001,0
02030002,0
02030003,intent:#Intent;action=android.settings.NFC_SETTINGS;end
-00000014,content://com.google.android.pixelnfc.provider.DeviceInfoContentProvider/isJapanSku
-00000015,is_japan_sku
00000016,0001
+00000018,1
--
2.47.0

View File

@@ -1,4 +1,4 @@
# All blobs are extracted from Google factory images for each new ASB
# All blobs below are extracted from the release mentioned in proprietary-files.txt
product/etc/CarrierSettings/1and1_de.pb
product/etc/CarrierSettings/2degrees_nz.pb
product/etc/CarrierSettings/a1_at.pb

View File

@@ -1,4 +1,5 @@
# All blobs are extracted from Google factory images for each new ASB
# All blobs below are extracted from the release mentioned in proprietary-files.txt
vendor/app/CACertService/CACertService.apk
vendor/app/CneApp/CneApp.apk;REQUIRED=CneApp.libvndfwk_detect_jni.qti_symlink
vendor/app/IWlanService/IWlanService.apk
@@ -54,7 +55,6 @@ vendor/bin/imsdatadaemon
vendor/bin/imsqmidaemon
vendor/bin/imsrcsd
vendor/bin/init.qti.chg_policy.sh
vendor/bin/ipacm
vendor/bin/irsc_util
vendor/bin/loc_launcher
vendor/bin/lowi-server
@@ -197,7 +197,6 @@ vendor/dsp/cdsp/libvpt_action_recognition.so
vendor/dsp/cdsp/libvpt_preproc.so
vendor/dsp/cdsp/libvpt_preproc_postproc.so
vendor/dsp/cdsp/ubwcdma_dynlib.so
vendor/etc/IPACM_cfg.xml
vendor/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb
vendor/etc/acdbdata/MTP/MTP_General_cal.acdb
vendor/etc/acdbdata/MTP/MTP_Global_cal.acdb
@@ -283,6 +282,7 @@ vendor/etc/gpfspath_oem_config.xml
vendor/etc/init/android.hardware.authsecret-service.citadel.rc
vendor/etc/init/android.hardware.biometrics.fingerprint@2.2-service.fpc.rc
vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc
vendor/etc/init/android.hardware.camera.provider@2.7-service-google.rc
vendor/etc/init/android.hardware.confirmationui@1.0-service-google.rc
vendor/etc/init/android.hardware.drm-service.widevine-v17.rc
vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc
@@ -308,7 +308,6 @@ vendor/etc/init/init-ramoops.rc
vendor/etc/init/init.time_daemon.rc
vendor/etc/init/init.vendor.sensors.rc
vendor/etc/init/init_citadel.rc
vendor/etc/init/ipacm.rc
vendor/etc/init/netmgrd.rc
vendor/etc/init/port-bridge.rc
vendor/etc/init/qcrild.rc
@@ -409,14 +408,13 @@ vendor/etc/sensors/config/sns_smd.json
vendor/etc/sensors/config/sns_tilt.json
vendor/etc/sensors/config/tcs3701.json
vendor/etc/sensors/hals.conf
vendor/etc/sensors/proto/sns_direct_channel.proto
vendor/etc/sensors/proto/sns_formatter_notify.proto
vendor/etc/sensors/sns_reg_config
vendor/etc/ssg/ta_config.json
vendor/etc/ssg/tz_whitelist.json
vendor/etc/thermal.mps
vendor/etc/twoshay_config.json
vendor/etc/vintf/manifest/android.hardware.authsecret-service.citadel.xml
vendor/etc/vintf/manifest/android.hardware.camera.provider@2.7-service-google.xml
vendor/etc/vintf/manifest/android.hardware.confirmationui@1.0-service-google.xml
vendor/etc/vintf/manifest/android.hardware.identity.strongbox.xml
vendor/etc/vintf/manifest/android.hardware.keymaster@4.1-service.citadel.xml
@@ -638,32 +636,12 @@ vendor/lib/lib-rtpcore.so
vendor/lib/lib-rtpsl.so
vendor/lib/lib-siputility.so
vendor/lib/lib-uceservice.so
vendor/lib/libAlacSwDec.so
vendor/lib/libApeSwDec.so
vendor/lib/libC2D2.so
vendor/lib/libCB.so
vendor/lib/libFlacSwDec.so
vendor/lib/libGPQTEEC_vendor.so
vendor/lib/libGPTEE_vendor.so
vendor/lib/libGPreqcancel.so
vendor/lib/libGPreqcancel_svc.so
vendor/lib/libI420colorconvert.so
-vendor/lib/libMpeg4SwEncoder.so
vendor/lib/libMpeghSwEnc.so
vendor/lib/libOmxAacDec.so
vendor/lib/libOmxAlacDec.so
vendor/lib/libOmxAlacDecSw.so
vendor/lib/libOmxAmrDec.so
vendor/lib/libOmxAmrwbplusDec.so
vendor/lib/libOmxApeDec.so
vendor/lib/libOmxApeDecSw.so
vendor/lib/libOmxDsdDec.so
vendor/lib/libOmxEvrcDec.so
vendor/lib/libOmxG711Dec.so
vendor/lib/libOmxMpeghDecSw.so
vendor/lib/libOmxMpeghEncSw.so
vendor/lib/libOmxQcelp13Dec.so
vendor/lib/libOmxWmaDec.so
vendor/lib/libOpenCL-pixel.so
vendor/lib/libOpenCL.so
vendor/lib/libQSEEComAPI.so
@@ -684,7 +662,7 @@ vendor/lib/libadm.so
vendor/lib/libadpcmdec.so
vendor/lib/libadreno_utils.so
vendor/lib/libadsp_default_listener.so
-vendor/lib/libadsprpc.so
vendor/lib/libadsprpc.so
vendor/lib/libaoa.so
vendor/lib/libash.so
vendor/lib/libasn1cper.so
@@ -744,13 +722,12 @@ vendor/lib/libdpps.so
vendor/lib/libdrc.so
vendor/lib/libdrmfs.so
vendor/lib/libdrmtime.so
vendor/lib/libdsd2pcm.so
vendor/lib/libdsi_netctrl.so
vendor/lib/libdsutils.so
vendor/lib/libexthwplugin.so
vendor/lib/libfastcrc.so
vendor/lib/libfastcvdsp_stub.so
-vendor/lib/libfastcvopt.so
vendor/lib/libfastcvopt.so
vendor/lib/libgcs-calwrapper.so
vendor/lib/libgcs-ipc.so
vendor/lib/libgcs-osal.so
@@ -1002,7 +979,7 @@ vendor/lib/vendor.qti.hardware.soter@1.0.so
vendor/lib/vendor.qti.hardware.trustedui@1.0.so
vendor/lib/vendor.qti.hardware.trustedui@1.1.so
vendor/lib/vendor.qti.hardware.trustedui@1.2.so
vendor/lib/vendor.qti.hardware.tui_comm@1.0.so
vendor/lib/vendor.qti.hardware.tui_comm@1.0.so;MODULE_SUFFIX=_vendor
vendor/lib/vendor.qti.hardware.wifidisplaysession@1.0.so
vendor/lib/vendor.qti.hardware.wigig.netperftuner@1.0.so
vendor/lib/vendor.qti.ims.callcapability@1.0.so
@@ -1014,7 +991,7 @@ vendor/lib/vendor.qti.ims.rcsconfig@1.1.so
vendor/lib/vendor.qti.ims.rcsconfig@2.0.so
vendor/lib/vendor.qti.ims.rcsconfig@2.1.so
vendor/lib/vendor.qti.imsrtpservice@3.0-service-Impl.so
vendor/lib/vendor.qti.imsrtpservice@3.0.so
vendor/lib/vendor.qti.imsrtpservice@3.0.so;MODULE_SUFFIX=_vendor
vendor/lib/vendor.qti.latency@2.0.so
vendor/lib/vendor.qti.latency@2.1.so
vendor/lib/vendor.qti.latency@2.2.so
@@ -1182,30 +1159,12 @@ vendor/lib64/lib-rtpcore.so
vendor/lib64/lib-rtpsl.so
vendor/lib64/lib-siputility.so
vendor/lib64/lib-uceservice.so
vendor/lib64/libAlacSwDec.so
vendor/lib64/libApeSwDec.so
vendor/lib64/libC2D2.so
vendor/lib64/libCB.so
vendor/lib64/libFlacSwDec.so
vendor/lib64/libGPQTEEC_vendor.so
vendor/lib64/libGPTEE_vendor.so
vendor/lib64/libGPreqcancel.so
vendor/lib64/libGPreqcancel_svc.so
vendor/lib64/libI420colorconvert.so
-vendor/lib64/libMpeg4SwEncoder.so
vendor/lib64/libMpeghSwEnc.so
vendor/lib64/libOmxAacDec.so
vendor/lib64/libOmxAlacDec.so
vendor/lib64/libOmxAlacDecSw.so
vendor/lib64/libOmxAmrDec.so
vendor/lib64/libOmxAmrwbplusDec.so
vendor/lib64/libOmxApeDec.so
vendor/lib64/libOmxApeDecSw.so
vendor/lib64/libOmxEvrcDec.so
vendor/lib64/libOmxG711Dec.so
vendor/lib64/libOmxMpeghEncSw.so
vendor/lib64/libOmxQcelp13Dec.so
vendor/lib64/libOmxWmaDec.so
vendor/lib64/libOpenCL-pixel.so
vendor/lib64/libOpenCL.so
vendor/lib64/libQSEEComAPI.so
@@ -1219,6 +1178,8 @@ vendor/lib64/libVkLayer_q3dtools.so
vendor/lib64/lib_aion_buffer.so
vendor/lib64/lib_goog_chi_node_utils.so
vendor/lib64/lib_goog_metadata_utils.so
vendor/lib64/lib_profiler.so
vendor/lib64/lib_sensor_listener.so
vendor/lib64/liba2dpoffload.so
vendor/lib64/libacdb-fts.so
vendor/lib64/libacdbloader.so
@@ -1226,7 +1187,7 @@ vendor/lib64/libacdbrtac.so
vendor/lib64/libadiertac.so
vendor/lib64/libadreno_utils.so
vendor/lib64/libadsp_default_listener.so
-vendor/lib64/libadsprpc.so
vendor/lib64/libadsprpc.so
vendor/lib64/libaoa.so
vendor/lib64/libash.so
vendor/lib64/libasn1cper.so
@@ -1297,7 +1258,7 @@ vendor/lib64/libdysco_core.so
vendor/lib64/libembmsservice.so
vendor/lib64/libexthwplugin.so
vendor/lib64/libfastcvdsp_stub.so
-vendor/lib64/libfastcvopt.so
vendor/lib64/libfastcvopt.so
vendor/lib64/libg3a_gabc.so
vendor/lib64/libg3a_gaf_v3.so
vendor/lib64/libg3a_ghawb.so
@@ -1344,7 +1305,6 @@ vendor/lib64/libhexagon_nn_stub.so
vendor/lib64/libhfp.so
vendor/lib64/libhta_hexagon_runtime.so
vendor/lib64/libidl.so
vendor/lib64/libipanat.so
vendor/lib64/libipebpsstriping.so
vendor/lib64/libizat_core.so
vendor/lib64/libjnihelper.so
@@ -1389,7 +1349,6 @@ vendor/lib64/libnosprotos.so
vendor/lib64/libnpu.so
vendor/lib64/liboemcrypto.so
vendor/lib64/libofflinelog.so
vendor/lib64/liboffloadhal.so
vendor/lib64/libopenvx.so
vendor/lib64/libops.so
vendor/lib64/libos.so
@@ -1480,7 +1439,7 @@ vendor/lib64/libswvdec.so
vendor/lib64/libsynx.so
vendor/lib64/libsysmon_cdsp_skel.so
vendor/lib64/libsystem_health_mon.so
-vendor/lib64/libthermalclient.so
vendor/lib64/libthermalclient.so
vendor/lib64/libthermallistener.so
vendor/lib64/libthreadutils.so
vendor/lib64/libtime_genoff.so
@@ -1612,7 +1571,7 @@ vendor/lib64/vendor.qti.hardware.soter@1.0.so
vendor/lib64/vendor.qti.hardware.trustedui@1.0.so
vendor/lib64/vendor.qti.hardware.trustedui@1.1.so
vendor/lib64/vendor.qti.hardware.trustedui@1.2.so
vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so
vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so;MODULE_SUFFIX=_vendor
vendor/lib64/vendor.qti.hardware.vpp@1.1.so
vendor/lib64/vendor.qti.hardware.vpp@1.2.so
vendor/lib64/vendor.qti.hardware.wifidisplaysession@1.0.so
@@ -1626,7 +1585,7 @@ vendor/lib64/vendor.qti.ims.rcsconfig@1.1.so
vendor/lib64/vendor.qti.ims.rcsconfig@2.0.so
vendor/lib64/vendor.qti.ims.rcsconfig@2.1.so
vendor/lib64/vendor.qti.imsrtpservice@3.0-service-Impl.so
vendor/lib64/vendor.qti.imsrtpservice@3.0.so
vendor/lib64/vendor.qti.imsrtpservice@3.0.so;MODULE_SUFFIX=_vendor
vendor/lib64/vendor.qti.latency@2.0.so
vendor/lib64/vendor.qti.latency@2.1.so
vendor/lib64/vendor.qti.latency@2.2.so

View File

@@ -102,15 +102,15 @@ product/priv-app/WfcActivation/WfcActivation.apk;PRESIGNED
system_ext/etc/permissions/com.google.android.camera.extensions.xml
system_ext/framework/com.google.android.camera.extensions.jar
# HBM - from barbet AP2A.240605.024
system_ext/priv-app/HbmSVManager/HbmSVManager.apk|c1a7aa6051cc79b98e2241711953d148f391eb63
# HBM
system_ext/priv-app/HbmSVManager/HbmSVManager.apk
# Hotword
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
system_ext/framework/com.android.hotwordenrollment.common.util.jar
# Permissions
system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-lineage.xml
# Permissions - from barbet AP2A.240805.005
system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-lineage.xml|c1d5e4252e534432d2f204b8f0196b7b9f79025e
# Qualcomm IMS
system_ext/etc/permissions/org_codeaurora_ims.xml
@@ -154,8 +154,8 @@ system_ext/priv-app/EuiccSupportPixelPermissions/EuiccSupportPixelPermissions.ap
system_ext/priv-app/RilConfigService/RilConfigService.apk
system_ext/priv-app/grilservice/grilservice.apk;PRESIGNED
# Radio - from barbet AP1A.240405.002
system_ext/priv-app/ConnectivityThermalPowerManager/ConnectivityThermalPowerManager.apk|7624c30babbbe250f0e557a2566c22fac9c9d303
# Radio - from barbet AP2A.240805.005
system_ext/priv-app/ConnectivityThermalPowerManager/ConnectivityThermalPowerManager.apk|682ec8729ecb0f80a173cfa28d970678d14731ed
# SecureUI
system_ext/app/com.qualcomm.qti.services.secureui/com.qualcomm.qti.services.secureui.apk
@@ -169,11 +169,3 @@ system_ext/etc/permissions/vzw_mvs_permissions.xml
system_ext/priv-app/MyVerizonServices/MyVerizonServices.apk;PRESIGNED
system_ext/priv-app/OBDM_Permissions/OBDM_Permissions.apk;PRESIGNED
system_ext/priv-app/obdm_stub/obdm_stub.apk;PRESIGNED
# vendor partition
# Wi-Fi service - from barbet AP2A.240605.024
vendor/bin/hw/vendor.google.wifi_ext-service-vendor|2f00a17b75612cbf8fb3685fe0d183148a70dd03
vendor/etc/init/vendor.google.wifi_ext-service.rc|8565ca57da131819441d6fb87abfcae134ed2ef9
vendor/etc/vintf/manifest/manifest_wifi_ext_aidl.xml|f273a6ab68268f73935c36bdecea0aad97cbe70f
vendor/lib64/vendor.google.wifi_ext-V3-ndk.so|9fcddf2e1eab7978f6c57270170b3f4a9aea04b8

1
redfin/setup-makefiles.py Executable file
View File

@@ -0,0 +1 @@
#!./extract-files.py --regenerate_makefiles

View File

@@ -1,47 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2019-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
_input_image="${1}"
_output_file="${2}"
if [ -z "${_input_image}" ]; then
echo "No input image supplied"
exit 1
fi
if [ -z "${_output_file}" ]; then
echo "No output filename supplied"
exit 1
fi
CARRIER_SKIP_FILES=()
# Initialize the helper
setup_vendor_deps "${ANDROID_ROOT}"
generate_prop_list_from_image "${_input_image}" "${_output_file}" CARRIER_SKIP_FILES carriersettings
function header() {
sed -i "1s/^/${1}\n/" "${_output_file}"
}
header "# All blobs are extracted from Google factory images for each new ASB"

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +0,0 @@
# b/277155912
dontaudit dumpstate default_android_service:service_manager { find };

View File

@@ -1,22 +0,0 @@
r_dir_file(pixelstats_vendor, sysfs_pixelstats)
unix_socket_connect(pixelstats_vendor, chre, chre)
get_prop(pixelstats_vendor, hwservicemanager_prop)
hwbinder_use(pixelstats_vendor)
allow pixelstats_vendor hal_pixelstats_hwservice:hwservice_manager find;
allow pixelstats_vendor fwk_stats_hwservice:hwservice_manager find;
binder_call(pixelstats_vendor, statsd)
binder_use(pixelstats_vendor)
allow pixelstats_vendor fwk_stats_service:service_manager find;
allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
# OrientationCollector
# HIDL sensorservice
allow pixelstats_vendor fwk_sensor_hwservice:hwservice_manager find;
# AIDL sensorservice
allow pixelstats_vendor fwk_sensor_service:service_manager find;
binder_call(pixelstats_vendor, system_server)

View File

@@ -1,2 +0,0 @@
# pixelstats_vendor/OrientationCollector
binder_call(system_server, pixelstats_vendor)

1
sepolicy/vendor/google/vndservice.te vendored Normal file
View File

@@ -0,0 +1 @@
type eco_service, vndservice_manager_type;

View File

@@ -0,0 +1 @@
media.ecoservice u:object_r:eco_service:s0

View File

@@ -1,3 +0,0 @@
# Wireless charge
allow pixelstats_vendor sysfs_wlc:dir search;
allow pixelstats_vendor sysfs_wlc:file rw_file_perms;

13
setup-makefiles.py Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
set -e
MY_DIR="$(cd "$(dirname "${0}")"; pwd -P)"
pushd "${MY_DIR}/redfin"
./setup-makefiles.py
popd

View File

@@ -1,40 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=redfin
VENDOR=google
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
# Warning headers and guards
write_headers
write_makefiles "${MY_DIR}/proprietary-files.txt" true
write_makefiles "${MY_DIR}/proprietary-files-carriersettings.txt" true
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"
# Finish
write_footers

View File

@@ -1,3 +1 @@
chasewu@google.com
eliptus@google.com
michaelwr@google.com
file:platform/hardware/google/pixel:/vibrator/OWNERS

View File

@@ -1,5 +1,4 @@
# This wireless_charger folder is used to keep the compatibility for later google devices
PRODUCT_SOONG_NAMESPACES += vendor/google/interfaces
PRODUCT_PACKAGES += vendor.google.wireless_charger-default
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/redfin/wireless_charger/compatibility_matrix.xml