253 Commits
vic ... udc

Author SHA1 Message Date
078863bf5c akita: Initialize for Evolution X 9.x
Signed-off-by: AnierinB <anierin@evolution-x.org>
2024-09-10 14:09:43 -07:00
Michael Bestas
f1ebf50282 akita: extract-files improvements
Change-Id: I517698ca3b5a93e10a5b167417631c7f8d0ab9e2
2024-09-10 02:50:07 +03:00
Cosmin Tanislav
802ae694dc akita: do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2024-09-07 16:17:18 +03:00
Michael Bestas
376278a2d2 akita: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2024-09-07 15:59:21 +03:00
Michael Bestas
3ec9cc3bab akita: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-09-07 15:58:57 +03:00
Cosmin Tanislav
a563d578e1 akita: skip dependencies which aren't defined in .bp
Change-Id: I01a653661856495788c05b720c0577dac44998a4
2024-09-07 15:58:02 +03:00
Michael Bestas
06346e0abd akita: fix libprotobuf-cpp-full-21.12 ELF check
Change-Id: I24632ade0e1ead24fc7f4ab3ca017962510c807a
2024-09-07 15:57:53 +03:00
Michael Bestas
c9d010af8f akita: fix libprotobuf-cpp-lite-21.12 ELF check
Change-Id: I028723e6ff9ef71514857d683e2c65caf9e28fa0
2024-09-07 15:57:43 +03:00
Michael Bestas
eea06b63fb akita: fix edge TPU ELF checks
Change-Id: I759752ccc133d7047d415eb83c5d3c55820437a4
2024-09-07 15:57:32 +03:00
Aaron Kling
cfbeadba6b akita: Add vendor soong imports to extract
Change-Id: Ib19e69dc35af6b04519eeb695228af65f3d01d2a
2024-09-07 15:56:57 +03:00
Aaron Kling
efdee76326 akita: Enable elf checks
Change-Id: Ia6c9a381abb3384c77532d75e02fd84c841a4d1e
2024-09-07 15:56:32 +03:00
Michael Bestas
11ca3e1e5d akita: Remove unused audio lib
Change-Id: I076202c2e4e2b2058aa5adb3a43600b9de64b784
2024-09-07 15:55:55 +03:00
Michael Bestas
440b86e4fb akita: Remove unused RIL libs
Change-Id: Iaf93e17c12c5621142d12b249bc9cac3893684dc
2024-09-07 15:54:57 +03:00
Michael Bestas
ef92776a36 proprietary-files: AP2A.240905.003.A1
Change-Id: I8f8d068a2b0a44fdf975d511ea7f563bf07416ee
2024-09-04 21:21:18 +03:00
Michael Bestas
2caca0f29e Update fingerprint/build description from AP2A.240905.003.A1
Change-Id: I3f252315d5677317f7445ebf456103d3cb6bb2f0
2024-09-04 06:03:06 +03:00
Michael Bestas
aef1ffa74f Merge tag 'android-14.0.0_r68' into staging/lineage-21_merge-android-14.0.0_r68
Android 14.0.0 release 68

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZteGUwAKCRDorT+BmrEO
# eA0OAJ9WeXJFEjpCAYuf7ARM1UQyAUt+7gCgkb1iUsTd2grNh4xP/8LHl/tlk7w=
# =qNPk
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Sep  4 00:57:39 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2593 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Ankur Bakshi (12) and Lokesh Kumar Goel (1)
# Via Android Build Coastguard Worker (11) and Bill Yi (1)
* tag 'android-14.0.0_r68':
  Update Akita SVN to 19
  Update Akita SVN to 18
  Update Akita SVN to 17
  Update Akita SVN to 18
  Update Akita SVN to 17
  Update Akita SVN to 17
  Update Akita SVN to 16
  akita: Use build_flags for SVN
  Update Akita SVN to 15
  Update Akita SVN to 14
  Update Akita SVN to 15
  Update Akita SVN to 14
  Update Akita SVN to 14

Change-Id: I5d93f8e5db06fa43fad9f567275a021960100d90
2024-09-04 05:53:46 +03:00
Michael Bestas
04e0b46232 akita: Sync extract scripts with templates
Change-Id: I83561b9064f7f27af90e21ac72a9c76e1dad8fad
2024-08-28 11:15:25 +03:00
Bill Yi
6b9bfe87c0 Merge commit 'fe6ee6ae050842f282ef77bbd5f43d1a7cfb52bc' into HEAD
Change-Id: I7ef1fd70cd7676b4cd0f74d1201f739c836a56e9
2024-08-26 18:19:52 -07:00
Michael Bestas
d80e1716de Update fingerprint/build description from AP2A.240805.005.A1
Change-Id: I7f95a1b1d3e2e2966a832c5115023bc6175d93cc
2024-08-15 06:31:23 +03:00
Android Build Coastguard Worker
fe6ee6ae05 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28321743', 'googleplex-android-review.googlesource.com/28319880', 'googleplex-android-review.googlesource.com/28808209'] into 24Q2-release.
Change-Id: I035a2c47691d9e0756da9abdc8503b82aa5b6c8f
2024-08-15 00:44:33 +00:00
Ankur Bakshi
76f57fdd80 Update Akita SVN to 19
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:392c47e3aa7e90007e282feaa6af0e6417d85637)
Merged-In: I54a6a09bc86975cd77b2f809c931ea90f991c6e0
Change-Id: I54a6a09bc86975cd77b2f809c931ea90f991c6e0
2024-08-15 00:40:51 +00:00
Ankur Bakshi
aa45ccc331 Update Akita SVN to 18
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9084edda20a7683fde83642b24904b3e6f4705fd)
Merged-In: I968c21293ca3cd5e2c7031166509724906e4e564
Change-Id: I968c21293ca3cd5e2c7031166509724906e4e564
2024-08-15 00:40:39 +00:00
Ankur Bakshi
e579b41208 Update Akita SVN to 17
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b563711f742596a61e5a446441e18e033561c95d)
Merged-In: Icc34ff13970b95fa3b60149356650271b74ff084
Change-Id: Icc34ff13970b95fa3b60149356650271b74ff084
2024-08-15 00:40:26 +00:00
Michael Bestas
4142effebd Merge tag 'android-14.0.0_r55' into staging/lineage-21_merge-android-14.0.0_r55
Android 14.0.0 Release 55 (AP2A.240805.005)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZrKMegAKCRDorT+BmrEO
# eOhFAJwNQZcgMX2gp4w26LRXr14zx0iQyACeNrvFIaThU7sO1mIoiO0s6abpIDg=
# =6b5X
# -----END PGP SIGNATURE-----
# gpg: directory '/home/mkbestas/.gnupg' created
# gpg: keybox '/home/mkbestas/.gnupg/pubring.kbx' created
# gpg: Signature made Tue Aug  6 20:50:02 2024 UTC
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Can't check signature: No public key

# By Ankur Bakshi
# Via Android Build Coastguard Worker (8) and others
* tag 'android-14.0.0_r55':
  Update Akita SVN to 15
  Update Akita SVN to 14
  Update Akita SVN to 14
  Update Akita SVN to 13
  Update Akita SVN to 12
  Update Akita SVN to 12

Change-Id: I81ad8b32195305a1cc5acb1c87ed48b66ea4802c
2024-08-12 20:53:15 +00:00
Xin Li
7efdda000a Merge commit '076e2c72402d21b942b58b93d907194560144187'
Change-Id: Ia56475e7ad77e5d8adc740c31c69f3a2bd7e68df
2024-07-30 14:37:37 -07:00
Android Build Coastguard Worker
04d33a5a43 [coastguard skipped] Merge sparse cherrypicks from sparse-12117444-L01000030005313047 into 24Q2-release.
COASTGUARD_SKIP: I968c21293ca3cd5e2c7031166509724906e4e564
COASTGUARD_SKIP: Icc34ff13970b95fa3b60149356650271b74ff084
COASTGUARD_SKIP: I3023eeec5d3b1fddf7a08029cc7d8e9ebb3cab49

Change-Id: I98e9727a70ea237c7ff5d26efcfbb790bf431053
2024-07-23 01:42:10 +00:00
Android Build Coastguard Worker
3d949be56c Merge cherrypicks of ['googleplex-android-review.googlesource.com/28321743', 'googleplex-android-review.googlesource.com/28319880'] into sparse-12117444-L01000030005313047.
SPARSE_CHANGE: Icc34ff13970b95fa3b60149356650271b74ff084
SPARSE_CHANGE: I968c21293ca3cd5e2c7031166509724906e4e564

Change-Id: I3023eeec5d3b1fddf7a08029cc7d8e9ebb3cab49
2024-07-23 01:38:34 +00:00
Ankur Bakshi
a849e2f182 Update Akita SVN to 18
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9084edda20a7683fde83642b24904b3e6f4705fd)
Merged-In: I968c21293ca3cd5e2c7031166509724906e4e564
Change-Id: I968c21293ca3cd5e2c7031166509724906e4e564
2024-07-23 01:35:13 +00:00
Ankur Bakshi
065b4b9c3a Update Akita SVN to 17
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b563711f742596a61e5a446441e18e033561c95d)
Merged-In: Icc34ff13970b95fa3b60149356650271b74ff084
Change-Id: Icc34ff13970b95fa3b60149356650271b74ff084
2024-07-23 01:35:01 +00:00
Android Build Coastguard Worker
a9f1f785ed [coastguard skipped] Merge sparse cherrypicks from sparse-12117444-L47200030005308169 into 24Q2-release.
COASTGUARD_SKIP: I2bd2b1d8cba64ee4669171bdba7dcd2eb0888569
COASTGUARD_SKIP: Icc34ff13970b95fa3b60149356650271b74ff084

Change-Id: I24a725ad8b5b528643b28729fe6bc05890959eed
2024-07-23 00:05:59 +00:00
Android Build Coastguard Worker
86845a15a1 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28321743'] into sparse-12117444-L47200030005308169.
SPARSE_CHANGE: Icc34ff13970b95fa3b60149356650271b74ff084

Change-Id: I2bd2b1d8cba64ee4669171bdba7dcd2eb0888569
2024-07-23 00:03:20 +00:00
Ankur Bakshi
68b0c9b564 Update Akita SVN to 17
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b563711f742596a61e5a446441e18e033561c95d)
Merged-In: Icc34ff13970b95fa3b60149356650271b74ff084
Change-Id: Icc34ff13970b95fa3b60149356650271b74ff084
2024-07-22 23:59:39 +00:00
Android Build Coastguard Worker
86f0599de2 Merge cherrypicks of ['googleplex-android-review.googlesource.com/27696927', 'googleplex-android-review.googlesource.com/27695889', 'googleplex-android-review.googlesource.com/28086916', 'googleplex-android-review.googlesource.com/28321249'] into 24Q2-release.
Change-Id: I4f6a9f44bcac2c606a1c4ff71521feb2d26d8932
2024-07-19 20:28:52 +00:00
Ankur Bakshi
9091ed2adc Update Akita SVN to 16
Bug: 352170103
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4dcd183e6dff40647c0152fcb674a6f9fd8312b5)
Merged-In: Ib48ae8e7a23ecb1bb03b19f91ee29fc800a614eb
Change-Id: Ib48ae8e7a23ecb1bb03b19f91ee29fc800a614eb
2024-07-19 20:11:02 +00:00
Lokesh Kumar Goel
261eb909e6 akita: Use build_flags for SVN
Flag: build.RELEASE_SVN_AKITA
Bug: 332726030
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b04f5d3274477e116ba475bf27a1ff7e13efb7e0)
Merged-In: Ia8a7f80c40eb39c8b2cf835ac7733da1585731d7
Change-Id: Ia8a7f80c40eb39c8b2cf835ac7733da1585731d7
2024-07-19 20:10:40 +00:00
Ankur Bakshi
1a25e6f722 Update Akita SVN to 15
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:be8299afa7b31c1ea6e9527f12626717f9f03f32)
Merged-In: I86942ff5e49632bc7813b895d19c7bc8a554ff81
Change-Id: I86942ff5e49632bc7813b895d19c7bc8a554ff81
2024-07-19 20:10:19 +00:00
Ankur Bakshi
e7b9892534 Update Akita SVN to 14
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e88cb1b2926110a244d5630e0774c4deccff2e56)
Merged-In: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
Change-Id: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
2024-07-19 20:09:55 +00:00
Michael Bestas
8f9547df4d akita: Declare display lib as symlink during extraction
Change-Id: I97c07aa18250d37080e3f7d9c5c179a297f69657
2024-07-04 02:04:10 +03:00
Michael Bestas
9dfcae9bae akita: Declare DM libs as symlinks during extraction
Change-Id: Icb6c2c284037f67478c80725f63b4a7db7c552c0
2024-07-04 02:03:57 +03:00
Michael Bestas
2131db9168 Update fingerprint/build description from AP2A.240705.005
Change-Id: I7d4b47c76ec0b162dc0a75129a905eb5d02e7e48
2024-07-03 18:18:56 +03:00
Michael Bestas
f3d5a81bc6 Merge tag 'android-14.0.0_r53' into staging/lineage-21_merge-android-14.0.0_r53
Android 14.0.0 release 53

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZoRXzQAKCRDorT+BmrEO
# eNk9AJ91Wz+3AhV+BoSp58RNR02jPXyRZwCfbPtYnM3eA5EDi1UAYqvD9B9Kfn4=
# =Xufe
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Jul  2 22:41:01 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2561 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Ankur Bakshi
# Via Android Build Coastguard Worker (5) and Bill Yi (2)
* tag 'android-14.0.0_r53':
  Update Akita SVN to 11
  Update Akita SVN to 10
  Update Akita SVN to 10

Change-Id: I31b0b95bfab519f870bc9b924e398cf342392f65
2024-07-03 07:09:18 +03:00
Android Build Coastguard Worker
fda33decbd [coastguard skipped] Merge sparse cherrypicks from sparse-12025142-L84800030004828472 into 24Q2-release.
COASTGUARD_SKIP: Ib228717d753a51af18391abca0f33e82512c864a
COASTGUARD_SKIP: I86942ff5e49632bc7813b895d19c7bc8a554ff81
COASTGUARD_SKIP: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437

Change-Id: I7f5c93c0d04e85c567744b4615d409d396cc8fe7
2024-06-29 22:16:53 +00:00
Android Build Coastguard Worker
458d79c949 Merge cherrypicks of ['googleplex-android-review.googlesource.com/27696927', 'googleplex-android-review.googlesource.com/27695889'] into sparse-12025142-L84800030004828472.
SPARSE_CHANGE: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
SPARSE_CHANGE: I86942ff5e49632bc7813b895d19c7bc8a554ff81

Change-Id: Ib228717d753a51af18391abca0f33e82512c864a
2024-06-29 22:12:12 +00:00
Ankur Bakshi
e47c62e1e0 Update Akita SVN to 15
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:be8299afa7b31c1ea6e9527f12626717f9f03f32)
Merged-In: I86942ff5e49632bc7813b895d19c7bc8a554ff81
Change-Id: I86942ff5e49632bc7813b895d19c7bc8a554ff81
2024-06-29 22:08:13 +00:00
Ankur Bakshi
d60a6fc8c3 Update Akita SVN to 14
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e88cb1b2926110a244d5630e0774c4deccff2e56)
Merged-In: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
Change-Id: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
2024-06-29 22:07:58 +00:00
Android Build Coastguard Worker
acdbc6dd59 [coastguard skipped] Merge sparse cherrypicks from sparse-12025142-L69100030004828691 into 24Q2-release.
COASTGUARD_SKIP: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
COASTGUARD_SKIP: Ia8467774094d85af13602b01ce43ceac0d02d829

Change-Id: I1883b32b98c7d4ed4809942e0cc9860bcc3074ba
2024-06-29 21:33:44 +00:00
Android Build Coastguard Worker
9829e6d2e3 Merge cherrypicks of ['googleplex-android-review.googlesource.com/27696927'] into sparse-12025142-L69100030004828691.
SPARSE_CHANGE: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437

Change-Id: Ia8467774094d85af13602b01ce43ceac0d02d829
2024-06-29 21:31:00 +00:00
Ankur Bakshi
7bc26a76ae Update Akita SVN to 14
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e88cb1b2926110a244d5630e0774c4deccff2e56)
Merged-In: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
Change-Id: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
2024-06-29 21:27:22 +00:00
Michael Bestas
d0ffe30613 akita: Add GoogleCamera_6gb_or_more_ram.xml
Change-Id: I77d4457cd67b9ae2bd554bc077fb9a0f4c2357ea
2024-06-28 15:06:54 +03:00
Michael Bestas
ffd567287a akita: Disable Wi-Fi verbose logging by default
Change-Id: Iafe9f4b83d157906ca6b9114db52ab27b1a01878
2024-06-23 02:59:11 +03:00
Michael Bestas
a9aaa5f94f akita: Initial aam policy
Change-Id: I81cf99339193df3ed5341fb34e338363cd63fa24
2024-06-23 02:58:22 +03:00
Michael Bestas
c56d32fe15 akita: Add aam HAL to compatibility matrix
Change-Id: I778cd13c318afc6048fff4b317bb6974dcc0da24
2024-06-23 02:58:22 +03:00
emilchung
3168b7c5b9 akita: Remove obsolete source of sensor of AK3.
These files are not used anymore, removed them.

Bug: 245007498
Test: build pass and check the build on AK3.
Change-Id: I1c5bf048413954c752e60fddf1b0fa6114d84708
2024-06-23 02:58:22 +03:00
Michael Bestas
fb70ae9099 akita: Remove debuggable check from modem logger
Allows disabling modem logging for userdebug builds

Change-Id: Id34f80600d40cc84f8fc5661b66b7075558ac18f
2024-06-23 02:58:22 +03:00
Michael Bestas
6bbabf24a8 akita: Add prebuilt kernel to lineage.dependencies
Change-Id: Iab5f4f4b2d98606e4f658c69e8f16f73ce7924bb
2024-06-23 02:58:22 +03:00
jabashque
83bb4f289e akita: Enable Osaifu-Keitai on non-Japanese SKUs
https://github.com/kormax/osaifu-keitai-google-pixel/

Test 1 & 2 on a Global SKU Google Pixel 6a (bluejay):
- Observe that Osaifu-Keitai doesn't function WITHOUT this change.
- Observe that Osaifu-Keitai functions normally WITH this change.

Test 3 & 4 on a Japanese SKU Google Pixel Fold (felix):
- Observe that Osaifu-Keitai functions normally WITHOUT this change.
- Observe that Osaifu-Keitai continues to function normally WITH this change.

Change-Id: I9faac2e130714a41e6922b62d2019dae0d615a3b
Signed-off-by: AnierinB <anierin@evolution-x.org>
2024-06-23 02:58:21 +03:00
Chirayu Desai
c96d1308d0 akita: Set TARGET_PREBUILT_KERNEL
Change-Id: I156a4af77bd619f855f734983b24677531156c4d
2024-06-23 02:58:21 +03:00
Tommy Webb
f3eddab96d akita: Update IWLAN config with IMS changes
Resolve issues with VoWiFi (Wi-Fi Calling) for Pixel 8 series, which
now uses a different proprietary package for its qualified networks
service.

Issue: calyxos#1324
Change-Id: Ie2984ff22cf786eb82a536bfb1d9ffaff15ae079
2024-06-23 02:58:21 +03:00
Jesse Chan
10960d0e00 akita: overlay: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2024-06-23 02:58:21 +03:00
Michael Bestas
f05174d1df akita: overlay: Configure aux cameras for Aperture
Change-Id: I3d1c93057b5c2a1ba09c06a945d538d2043f30fd
2024-06-23 02:58:21 +03:00
Tommy Webb
29757df54b akita: Limit max fingerprints to 4 per user
Trying to add more than 4 fingerprints per user causes the Udfps
overlay to not appear and shows the following message in logs:
`E Biometrics/EnrollClient: Reached enrollment limit`.

Issue: calyxos#1630
Change-Id: I26707d5b50b28d032b117e22ba703c5fc0dfe3a2
2024-06-23 02:58:20 +03:00
Chirayu Desai
732c894462 akita: Build EuiccSupportPixelOverlay
Change-Id: I46db4122b89798457338f6751982865571529ba6
2024-06-23 02:58:20 +03:00
Ethan Chen
2baba486c4 akita: Disable userdebug diagnostics
* We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2024-06-23 02:58:20 +03:00
Michael Bestas
1f0b50d350 akita: Include wireless_charger makefile
This includes the required sepolicy and compatibility matrix
in the build.

Change-Id: I3096357c5f45e664a7b39870fdc053e48d1361ad
2024-06-23 02:58:20 +03:00
Bruno Martins
c875546b1a akita: overlay: Declare support for wireless charging
Change-Id: Iba6a8b357779a3bb2134f2fc0878819339615239
2024-06-23 02:58:20 +03:00
Danny Lin
f8be0d1fb1 akita: overlay: Settings: Enable Smooth Display setting
Pixel 8a (akita) has peak refresh rates higher than
60 Hz, so allow users to toggle high-refresh rate like on stock.

Change-Id: I7fcbb905b61575de8c5e9d9a935463932551fb6a
2024-06-23 02:58:20 +03:00
Alessandro Astone
1a35712370 akita: Rename privapp-permissions file to avoid conflict with gapps
When these permissions are updated and MindTheGapps are installed
addon.d will revert them to their previous state, preventing the
system to boot for missing privapp permissions in the whitelist.

Change-Id: I1a458dc242efcd422569b871dbfe084a33c76903
2024-06-23 02:58:19 +03:00
Michael Bestas
f75fbc684f akita: Add extract-files.sh helper script
Change-Id: Ie5f4c6ab8debf1a2b11db45b0cb6957e2539ac80
2024-06-23 02:58:19 +03:00
Chirayu Desai
ef58b964aa akita: Set up proprietary files extraction
* The proprietary files lists are generated by comparing stock partition
  contents with AOSP generated partitions.

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: I17b78ccf212d8364070c40fe3c7d06d4048e3fe4
2024-06-23 02:58:19 +03:00
Ethan Chen
0ac3cbdf55 akita: Declare EUICC permissions
This is a squash of the following:

Author: Ethan Chen <intervigil@gmail.com>
Date:   Sat Dec 1 13:53:00 2018 -0800

    Declare EUICC permission

    Change-Id: I1b151021ca9fc6cf35141b2ccb337bc83197089e

Author: razorloves <razorloves@gmail.com>
Date:   Fri Oct 18 00:06:22 2019 -0500

    Move eUICC permissions xml to /product

    All eUICC items were moved to /product in Q.

    Change-Id: I614f86b16f61959c47465863ab1d5d55030209ab

Author: Michael Bestas <mkbestas@lineageos.org>
Date:   Mon Apr 8 00:46:17 2024 +0300

    shusky: Enable EUICC MEP feature

    As seen on stock

    Change-Id: If7c834ba2bb972b2867939a1f47468a0f1ff6e69

Change-Id: I323dce8b848b44e45ed21002950059e58719113c
2024-06-23 02:02:54 +03:00
Chirayu Desai
a949f1c960 akita: Add initial Lineage product makefiles
Co-authored-by: Michael Bestas <mkbestas@gmail.com>
Change-Id: I0781b6d4d74680ce7f0d860048871da7c2d43fb6
2024-06-23 02:00:27 +03:00
Michael Bestas
341de72499 akita: Update sepolicy path
Change-Id: Ia24ef37000ed9e1cdf994a32447b0250e3f89186
2024-06-23 01:54:55 +03:00
Michael Bestas
1d003c7bd9 Add .gitupstream
Change-Id: I2c0ab4e6b31282f6d8be88942c4fe9c38871d7d0
2024-06-23 01:53:25 +03:00
Michael Bestas
48c46f6445 Add 'sepolicy/' from tag 'android-14.0.0_r50'
git-subtree-dir: sepolicy
git-subtree-mainline: 7323b91751
git-subtree-split: 2cf7ac217a
Change-Id: I2d702fc7754b1894e33d01aa17acf04c0f2f142a
2024-06-23 01:48:27 +03:00
Bill Yi
d45cba068b Merge commit '19f4e3f0bc092286adb9cab728b60dc9f8415d0a' into HEAD
Change-Id: I1bc012e4881af9dfeb88a6477747c23f6910632f
2024-06-21 09:41:07 -07:00
Bill Yi
25c824d747 Merge commit '582e065dfe12fb1723a447def713cb026c3f990a' into HEAD
Change-Id: I2c2bd2dc8578d01c467ca34d238f587c98ed374c
2024-06-21 09:40:58 -07:00
Bill Yi
476e1963a8 Merge commit '3e2681506b17a1387debfe4a026118cda541ac52' into HEAD
Change-Id: Ia3a7b4198807a35d4221b45293e3bdd88d3439fc
2024-06-21 09:40:43 -07:00
Android Build Coastguard Worker
076e2c7240 [coastguard skipped] Merge sparse cherrypicks from sparse-11973172-L89500030004648534 into 24Q2-release.
COASTGUARD_SKIP: I86942ff5e49632bc7813b895d19c7bc8a554ff81
COASTGUARD_SKIP: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
COASTGUARD_SKIP: I234aad9a680a947ba5ad459482be451d79b2f74f

Change-Id: I5bb8a7170528e5f33c58bec2d9a241b0b68f4ce9
2024-06-17 19:18:09 +00:00
Android Build Coastguard Worker
33e66779be Merge cherrypicks of ['googleplex-android-review.googlesource.com/27696927', 'googleplex-android-review.googlesource.com/27695889'] into sparse-11973172-L89500030004648534.
SPARSE_CHANGE: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
SPARSE_CHANGE: I86942ff5e49632bc7813b895d19c7bc8a554ff81

Change-Id: I234aad9a680a947ba5ad459482be451d79b2f74f
2024-06-17 19:14:10 +00:00
Ankur Bakshi
edaa7b29c1 Update Akita SVN to 15
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:be8299afa7b31c1ea6e9527f12626717f9f03f32)
Merged-In: I86942ff5e49632bc7813b895d19c7bc8a554ff81
Change-Id: I86942ff5e49632bc7813b895d19c7bc8a554ff81
2024-06-17 19:10:02 +00:00
Ankur Bakshi
1863a1a8e8 Update Akita SVN to 14
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e88cb1b2926110a244d5630e0774c4deccff2e56)
Merged-In: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
Change-Id: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
2024-06-17 19:09:47 +00:00
Android Build Coastguard Worker
debc15d015 [coastguard skipped] Merge sparse cherrypicks from sparse-11973172-L60000030004607106 into 24Q2-release.
COASTGUARD_SKIP: Id976dd82d405db4f4515d089a69614030812059e
COASTGUARD_SKIP: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437

Change-Id: Ifff85468b515813a65591ad8d14a67a347dde51f
2024-06-17 17:30:50 +00:00
Android Build Coastguard Worker
50a09aa617 Merge cherrypicks of ['googleplex-android-review.googlesource.com/27696927'] into sparse-11973172-L60000030004607106.
SPARSE_CHANGE: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437

Change-Id: Id976dd82d405db4f4515d089a69614030812059e
2024-06-17 17:24:55 +00:00
Ankur Bakshi
bac1bbeefe Update Akita SVN to 14
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e88cb1b2926110a244d5630e0774c4deccff2e56)
Merged-In: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
Change-Id: I33aa4b1b2b00f4345b02a1c0e8ab8c77de6a0437
2024-06-17 17:19:42 +00:00
Android Build Coastguard Worker
a9e1f456f8 Merge cherrypicks of ['googleplex-android-review.googlesource.com/27630616', 'googleplex-android-review.googlesource.com/27697257'] into 24Q2-release.
Change-Id: I92460bd89e14afc169841aab6439619db271ac3f
2024-06-13 05:22:30 +00:00
Ankur Bakshi
864b14fbbb Update Akita SVN to 13
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dfd155f5f03f5fee3183162422eefb71575e3baf)
Merged-In: I58d0f6263c5d73ec3c18d3532464e94e71100bc7
Change-Id: I58d0f6263c5d73ec3c18d3532464e94e71100bc7
2024-06-13 05:12:41 +00:00
Ankur Bakshi
d23de9fcbf Update Akita SVN to 12
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f482f4a83a5a1d81e38f16ad90bcb5f6f6ec3bb9)
Merged-In: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e
Change-Id: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e
2024-06-13 05:12:25 +00:00
Android Build Coastguard Worker
b73c7bf980 [coastguard skipped] Merge sparse cherrypicks from sparse-11942872-L82900030004355486 into 24Q2-release.
COASTGUARD_SKIP: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e
COASTGUARD_SKIP: I564e79869d0817f853403fbb53803cf482d34bba

Change-Id: Ic778d7601581f4961d11988b228af8710362863f
2024-06-07 22:33:50 +00:00
Android Build Coastguard Worker
19f4e3f0bc Merge cherrypicks of ['googleplex-android-review.googlesource.com/27630616'] into sparse-11942872-L82900030004355486.
SPARSE_CHANGE: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e

Change-Id: I564e79869d0817f853403fbb53803cf482d34bba
2024-06-07 22:30:53 +00:00
Ankur Bakshi
560c0f3ab3 Update Akita SVN to 12
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f482f4a83a5a1d81e38f16ad90bcb5f6f6ec3bb9)
Merged-In: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e
Change-Id: If2b1a9b5daa7aa1f207906025ac9493fc66dfb5e
2024-06-07 22:29:04 +00:00
Android Build Coastguard Worker
582e065dfe Merge cherrypicks of ['googleplex-android-review.googlesource.com/27366598'] into 24Q2-release.
Change-Id: Ia40545af4203f369fe067ae611a2c8852893e5fd
2024-06-07 17:56:14 +00:00
Ankur Bakshi
8519776b02 Update Akita SVN to 11
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea5dd2637c27f8145bcbe45a37ac5623a247083f)
Merged-In: I7df163d0597f4327ef1748157e1607e2d89e705c
Change-Id: I7df163d0597f4327ef1748157e1607e2d89e705c
2024-06-07 17:55:34 +00:00
Android Build Coastguard Worker
625ec3ea65 [coastguard skipped] Merge sparse cherrypicks from sparse-11860263-L41200030004374858 into 24Q2-release.
COASTGUARD_SKIP: I0c71b39a573d34a434bc52bfc4c56d3d6f0dc6bf
COASTGUARD_SKIP: I4edbb23d8fbc5e8d470902447b20f656b54f1c35

Change-Id: I9c2426c721c48e4332c599fc9d5ee5f3c97e4c93
2024-06-07 05:15:19 +00:00
Android Build Coastguard Worker
0c6988265a Merge cherrypicks of ['googleplex-android-review.googlesource.com/27067420'] into sparse-11860263-L41200030004374858.
SPARSE_CHANGE: I4edbb23d8fbc5e8d470902447b20f656b54f1c35

Change-Id: I0c71b39a573d34a434bc52bfc4c56d3d6f0dc6bf
2024-06-07 05:11:14 +00:00
Ankur Bakshi
972a380860 Update Akita SVN to 10
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dfdf97835330373de402718db17e606f932111d1)
Merged-In: I4edbb23d8fbc5e8d470902447b20f656b54f1c35
Change-Id: I4edbb23d8fbc5e8d470902447b20f656b54f1c35
2024-06-07 05:08:59 +00:00
Bill Yi
7323b91751 Adjust PRODUCT_RELEASE_CONFIG_MAPS due to refactor.
BUG: 339035687
Change-Id: I10f253443cf329404b65871135a1ffd160ccbed4
2024-06-06 15:51:19 -07:00
Android Build Coastguard Worker
3e2681506b Merge cherrypicks of ['googleplex-android-review.googlesource.com/27067420'] into 24Q2-release.
Change-Id: Ibd044e8fbeae3c92de94c84aaccbdbcca28a4b9f
2024-05-21 04:29:40 +00:00
Ankur Bakshi
9ddca698df Update Akita SVN to 10
Bug: 336526332
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dfdf97835330373de402718db17e606f932111d1)
Merged-In: I4edbb23d8fbc5e8d470902447b20f656b54f1c35
Change-Id: I4edbb23d8fbc5e8d470902447b20f656b54f1c35
2024-05-21 04:25:07 +00:00
Android Build Coastguard Worker
2cf7ac217a Snap for 11308440 from 6df3cdacbb to 24Q2-release
Change-Id: If4a540a8bb856013713e38e37e5da44b32db7f3b
2024-01-13 02:07:23 +00:00
Ken Yang
6df3cdacbb [automerger skipped] selinux: label the I2C 0x36 0x69 wakeup node am: 920e2cc3d6 am: dc3ab3174d -s ours
am skip reason: Merged-In I6971dfcbc9bf0eeae5620eb280a5af2f623be54e with SHA-1 bbf47c75cf is already in history

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

Change-Id: Iced90f01e976651ab75bc5cecd04b8b0572d61a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 09:22:20 +00:00
Ken Yang
dc3ab3174d selinux: label the I2C 0x36 0x69 wakeup node am: 920e2cc3d6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25868963

Change-Id: I9104fe04cf35962a55a2df4ab04d4e3fc1cda7e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 08:34:28 +00:00
Ken Yang
026df07b9a [automerger skipped] selinux: label the I2C 0x36 0x69 wakeup node am: 4175f1cfde am: 04627ae9c5 -s ours
am skip reason: Merged-In I05f0d910d684854929205f001041755dfa7648aa with SHA-1 70054ef36c is already in history

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

Change-Id: I2df1b2cf40311f5ced8775f16f724946d0d3d3b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 05:36:16 +00:00
Ken Yang
04627ae9c5 selinux: label the I2C 0x36 0x69 wakeup node am: 4175f1cfde
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25859540

Change-Id: Ib6898a028613d21ee91680425c3433e7d1185ba6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 04:31:05 +00:00
Ken Yang
920e2cc3d6 selinux: label the I2C 0x36 0x69 wakeup node
1. add the additional 10 and 11 I2C address
2. correct the bus id from 10c90000 to 10cb0000

Bug: 316561238
Change-Id: I6971dfcbc9bf0eeae5620eb280a5af2f623be54e
Merged-In: I6971dfcbc9bf0eeae5620eb280a5af2f623be54e
Signed-off-by: Ken Yang <yangken@google.com>
2024-01-12 04:24:40 +00:00
Ken Yang
bbf47c75cf selinux: label the I2C 0x36 0x69 wakeup node
1. add the additional 10 I2C address
2. correct the bus id from 10c90000 to 10cb0000

Bug: 316561238
Signed-off-by: Ken Yang <yangken@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5a7f8ab5ac5272bcabd850c39b30cce679001932)
Merged-In: I6971dfcbc9bf0eeae5620eb280a5af2f623be54e
Change-Id: I6971dfcbc9bf0eeae5620eb280a5af2f623be54e
2024-01-12 03:15:28 +00:00
Android Build Coastguard Worker
1aea1748eb Snap for 11302939 from 70054ef36c to 24Q2-release
Change-Id: Ice1c8a249d7039fb4f0f872cf94b842c6fd40ce5
2024-01-12 01:09:54 +00:00
Ken Yang
4175f1cfde selinux: label the I2C 0x36 0x69 wakeup node
Bug: 316561238
Change-Id: I05f0d910d684854929205f001041755dfa7648aa
Merged-In: I05f0d910d684854929205f001041755dfa7648aa
Signed-off-by: Ken Yang <yangken@google.com>
2024-01-11 04:17:34 +00:00
Ken Yang
70054ef36c selinux: label the I2C 0x36 0x69 wakeup node
Bug: 316561238
Signed-off-by: Ken Yang <yangken@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d4feec6a39a07d5d43233a8858a675b1359b448d)
Merged-In: I05f0d910d684854929205f001041755dfa7648aa
Change-Id: I05f0d910d684854929205f001041755dfa7648aa
2024-01-11 04:15:46 +00:00
Android Build Coastguard Worker
367a646c68 Snap for 11261634 from 2597333531 to 24Q2-release
Change-Id: I6caf21a9c276579a02b67b03659e7e453947d46b
2023-12-30 02:01:26 +00:00
Jack Wu
2597333531 [automerger skipped] SELinux: fix avc denials am: a8cd93be09 am: 912c13b4b7 -s ours
am skip reason: Merged-In Ib0b8383158aa5ef987ca03a6951bab378c48dbd4 with SHA-1 c2ff1a167b is already in history

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

Change-Id: I69cca8e42ceacfcf94d8e467309c96236e6ee8b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-29 03:49:55 +00:00
Jack Wu
912c13b4b7 SELinux: fix avc denials am: a8cd93be09
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25755027

Change-Id: I90e1a9dcef4a9dbb1d0207145dd013259aa218a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-29 03:19:58 +00:00
Android Build Coastguard Worker
713ba53f5c Snap for 11260009 from c2ff1a167b to 24Q2-release
Change-Id: Ife4b29557c0166884cf90d25ab6c13ff7e76db38
2023-12-29 00:02:00 +00:00
Jack Wu
a8cd93be09 SELinux: fix avc denials
Fix the avc denials for sysfs_wakeup

bug: 317314288
Test: no avc denials for sysfs_wakeup
Change-Id: Ib0b8383158aa5ef987ca03a6951bab378c48dbd4
Merged-In: Ib0b8383158aa5ef987ca03a6951bab378c48dbd4
Signed-off-by: Jack Wu <wjack@google.com>
2023-12-27 07:43:44 +00:00
Jack Wu
c2ff1a167b SELinux: fix avc denials
Fix the avc denials for sysfs_wakeup

bug: 317314288
Test: no avc denials for sysfs_wakeup
Change-Id: Ib0b8383158aa5ef987ca03a6951bab378c48dbd4
Signed-off-by: Jack Wu <wjack@google.com>
2023-12-27 15:41:08 +08:00
Android Build Coastguard Worker
3d2699dc72 Snap for 11255311 from 22e231b72d to 24Q2-release
Change-Id: I180ad2b424ddce0512a5588bca9e6727ac923f77
2023-12-27 00:03:20 +00:00
Jack Wu
22e231b72d SELinux: fix avc denials
Fix the avc denials for sysfs_wakeup

bug: 317314288
Test: no avc denials for sysfs_wakeup
Change-Id: Ib3eaee7216b91e8e58a71e017bdcddca8c43a801
Signed-off-by: Jack Wu <wjack@google.com>
2023-12-26 09:34:59 +00:00
Android Build Coastguard Worker
37930f8ef4 Snap for 11227258 from 3158e2d46e to 24Q2-release
Change-Id: I53f6118c39db80ac0fa7dc2b43d346b573782804
2023-12-16 02:01:12 +00:00
Treehugger Robot
3158e2d46e Merge "Revert "allow vendor init to access percpu_pagelist_high_fraction"" into main 2023-11-27 01:45:54 +00:00
Cheng Chang
0da0d6c1af sepolicy: allow hal_gnss_default call am: f438970a99 am: 0684e61ccb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25446022

Change-Id: Ia4a149652ee4966ceb7d738466a66e6205796db5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-24 12:29:44 +00:00
Cheng Chang
0684e61ccb sepolicy: allow hal_gnss_default call am: f438970a99
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25446022

Change-Id: I7ebb825c62673fc0e8e74c30a6cfddfb25d4b6a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-24 11:58:18 +00:00
Cheng Chang
f438970a99 sepolicy: allow hal_gnss_default call
avc:  denied  { call } for  comm="servicemanager"
scontext=u:r:servicemanager:s0 tcontext=u:r:hal_gnss_default:s0
tclass=binder permissive=0

Bug: 312647680
Test: verify no avc denied with patch
Change-Id: If9b02634dd34ec5ca5300f4d110725b99345df5e
2023-11-23 00:58:43 +00:00
Martin Liu
0470d3d03c Revert "allow vendor init to access percpu_pagelist_high_fraction"
This reverts commit 83d9e5bd31.

Bug: 309409009
Reason for revert: move to common pixel policy ag/25305147

Change-Id: Ia1f40f02dd6ce8575356a578dc6b14094428a1d7
2023-11-21 09:33:28 +00:00
Darren Hsu
846c562d3e sepolicy: allow hal_power_stats to read GPS files am: adb42e4290 am: f688bcc60e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24677347

Change-Id: I12125ee29d4a9fd6aeb3e1729db5d8738b28ba73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-15 09:05:04 +00:00
Darren Hsu
f688bcc60e sepolicy: allow hal_power_stats to read GPS files am: adb42e4290
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24677347

Change-Id: Ib20c62afe9107e5765c9198ff33d9d09f68380dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-15 08:34:58 +00:00
Treehugger Robot
0eaa882878 Merge "allow vendor init to access percpu_pagelist_high_fraction" into main 2023-11-10 03:14:25 +00:00
Martin Liu
83d9e5bd31 allow vendor init to access percpu_pagelist_high_fraction
Bug: 309409009
Test: boot
Change-Id: Ie5b10d435f043da635b4de8d50ff01f6f221c119
Signed-off-by: Martin Liu <liumartin@google.com>
2023-11-10 10:18:28 +08:00
Darren Hsu
adb42e4290 sepolicy: allow hal_power_stats to read GPS files
avc:  denied  { search } for  name="gps" dev="dm-46" ino=373
scontext=u:r:hal_power_stats_default:s0
tcontext=u:object_r:vendor_gps_file:s0 tclass=dir permissive=0

Bug: 289764363
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ie362e06c51c87c34c11551d3b13278d21c7222fc
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-11-08 02:35:50 +00:00
Treehugger Robot
e707e07235 [automerger skipped] Merge "[DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction" into udc-qpr-dev am: 467d378ae4 am: a59caa830d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie3bc110da3ed45e1aba98670406b4b717d225ee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 02:20:35 +00:00
Martin Liu
d9e7a7abc1 [automerger skipped] [DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction am: 3a5a9ab8c0 am: 2d26bdeecd -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic11867b42b7abffc8415424093243be57297bfe9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 02:20:32 +00:00
Treehugger Robot
a59caa830d Merge "[DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction" into udc-qpr-dev am: 467d378ae4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25280883

Change-Id: I7fe5af7c9c3e1a750e9f0945b81998ebe1c3b8a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 01:42:43 +00:00
Martin Liu
2d26bdeecd [DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction am: 3a5a9ab8c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25280883

Change-Id: I6d9d9aafb6bd3929d5e4bbbbba7f06ce80f5273b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 01:42:40 +00:00
Treehugger Robot
467d378ae4 Merge "[DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction" into udc-qpr-dev 2023-11-08 01:20:26 +00:00
Cheng Chang
8722b4cbe6 gps: Allow hal_gnss_pixel toggle coredump node am: 82ddd40aeb am: a7d7e6d944
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25229055

Change-Id: I18fb493f3c365e6ba14cc88b95a46a135673a840
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-07 10:54:44 +00:00
Cheng Chang
a7d7e6d944 gps: Allow hal_gnss_pixel toggle coredump node am: 82ddd40aeb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25229055

Change-Id: I17ba97826a98760dce40c967065b717d62049f4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-07 10:16:14 +00:00
Martin Liu
3a5a9ab8c0 [DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction
Bug: 309409009
Test: boot
Change-Id: Iec26ef9650d06f265bf484d66cec0ef4bb365bee
Signed-off-by: Martin Liu <liumartin@google.com>
2023-11-07 15:46:51 +08:00
Cheng Chang
82ddd40aeb gps: Allow hal_gnss_pixel toggle coredump node
Bug: 308527972
Test: b/308527972#comment12
Change-Id: I9060ce551b42a3c1f1482bbe734dec393ff48de5
2023-11-02 23:25:37 +00:00
Treehugger Robot
83e72138ec Merge "gps: allow hal_gnss_default to use coredump node" into udc-qpr-dev am: 09c658415f am: f65707cb65
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25030388

Change-Id: Ie269d04adfdf7d51c7bdc2ab1181c0179d8e09ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-31 12:57:44 +00:00
Treehugger Robot
f65707cb65 Merge "gps: allow hal_gnss_default to use coredump node" into udc-qpr-dev am: 09c658415f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25030388

Change-Id: I78ea9a897ebbdfc065d73dfe39f7d1ef7e8daee4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-31 12:24:45 +00:00
Treehugger Robot
09c658415f Merge "gps: allow hal_gnss_default to use coredump node" into udc-qpr-dev 2023-10-31 12:00:06 +00:00
Cheng Chang
41202d39da gps: allow hal_gnss_default to use coredump node
Bug: 307461066
Test: b/307461066 verified the SIGABRT/SIGSEGV signal
Test: b/307461066 verification test
Change-Id: I46aa1450cb42c5e7e3d5a01dabae499f2af46b26
2023-10-25 08:04:44 +00:00
Avinash Malipatil
07c53a3298 SEPolicy change to allow ImsMedia to set priority of audio threads. am: 79c86953ca am: be2cac8910
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25123539

Change-Id: I7a18fbc155d977136c23036217e9e354dd470223
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 03:21:13 +00:00
Avinash Malipatil
be2cac8910 SEPolicy change to allow ImsMedia to set priority of audio threads. am: 79c86953ca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25123539

Change-Id: Ie003d2d620faa0fac18b2971c8539ba2dbd1c8ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 02:53:37 +00:00
Avinash Malipatil
79c86953ca SEPolicy change to allow ImsMedia to set priority of audio threads.
Setting real-time thread priority for audio threads is a must to handle voice stream during vowifi calls.

AVC Error: auditd  : avc:  denied  { find } for pid=9346 uid=1001 name=scheduling_policy scontext=u:r:radio:s0 tcontext=u:object_r:scheduling_policy_service:s0 tclass=service_manager permissive=0

Bug: 306298801

Test: adb shell 'ps -Tl -p '
Change-Id: I69742ae8c5f1017fc45e24c417fc6e1875fe3e14
2023-10-23 14:48:48 +00:00
Jacky Liu
67550d367a Update sepolicy for new static i2c bus numbers
Bug: 305242309
Test: Boot to home
Change-Id: I0d819246d9e8859a720a711368a1d01100607f65
2023-10-23 14:28:10 +08:00
Ken Yang
2b138648af SELinux: fix wakeup selinux issue
Bug: 305600876
Change-Id: I6335c8a5e16c6fb3287a533c56a78c712c9cbc1b
Signed-off-by: Ken Yang <yangken@google.com>
2023-10-20 12:28:27 +00:00
Ken Yang
60c5f59d49 Revert "SELinux: fix wakeup selinux issue"
This reverts commit 9b6820b26f.

Reason for revert: duplicated SELinux entries in zuma-sepolicy

Change-Id: I059f64483702de033c698e5f21810aba0cb4f3e1
2023-10-20 09:36:35 +00:00
Ken Yang
9b6820b26f SELinux: fix wakeup selinux issue
Bug: 305600876
Change-Id: I4be4254eb511b283a48bd6d561745e920e568ef0
Signed-off-by: Ken Yang <yangken@google.com>
2023-10-20 05:45:16 +00:00
Alan Chen
7f7c1cabeb [automerger skipped] Allow gril to use radio ext aidl am: c723e3e5a2 am: a06f6aec98 -s ours
am skip reason: Merged-In If72630b90eb1f15a832a936cd080604a486cd17f with SHA-1 32e2b620d1 is already in history

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

Change-Id: Ide00a776de463cbecd670292b88c10d60aa3bd55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 05:21:21 +00:00
Alan Chen
a06f6aec98 Allow gril to use radio ext aidl am: c723e3e5a2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25109723

Change-Id: I9a9b218342e459cadd1880f038506627c93a5e7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 04:19:29 +00:00
Alan Chen
c723e3e5a2 Allow gril to use radio ext aidl
These changes are copied from the reverted commit
2d635d58d3 (ag/24847488).

Bug: 285459428
Test: manual - verified there are no avc denied logs
Change-Id: If72630b90eb1f15a832a936cd080604a486cd17f
Merged-In: If72630b90eb1f15a832a936cd080604a486cd17f
2023-10-19 08:32:58 +00:00
Alan Chen
32e2b620d1 Allow gril to use radio ext aidl
These changes are copied from the reverted commit
2d635d58d3 (ag/24847488).

Bug: 285459428
Test: manual - verified there are no avc denied logs
Change-Id: If72630b90eb1f15a832a936cd080604a486cd17f
2023-10-18 03:57:06 +00:00
Shinru Han
f36237cfee gps: Allow vendor_init set gps property am: aeb740e7c4 am: 1cd4799530
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25068816

Change-Id: I126208700ff0dc1e7e9b6e053bdae433c0db9ee8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 03:36:34 +00:00
Shinru Han
1cd4799530 gps: Allow vendor_init set gps property am: aeb740e7c4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/25068816

Change-Id: I4cf8d9527eaa49386233240965ef886da5c8abab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 02:51:55 +00:00
Shinru Han
aeb740e7c4 gps: Allow vendor_init set gps property
W /system/bin/init: type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.gps.hal.service.name pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_gps_prop:s0 tclass=property_service permissive=0'

Test: gps property is present on user build
Test: atest VtsHalGnssTargetTest on user build
Bug: 305162098
Change-Id: Ic56413182d0d721a1543b3b510e17f39813c7ad3
2023-10-17 08:12:48 +00:00
Wilson Sung
8664ef6d50 Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 305600460
Bug: 305600876
Change-Id: I110045274188a16264a90317d208c8b895addcb0
2023-10-16 05:59:40 +00:00
Cheng Chang
f4886a36cc gps: add sepolicy to coredump node am: 1ee114f4d7 am: d42a620d41
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24918561

Change-Id: I3f6440accd1b4930d89db93fbfe78be164807d5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 16:23:44 +00:00
Cheng Chang
d42a620d41 gps: add sepolicy to coredump node am: 1ee114f4d7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24918561

Change-Id: Id9c4b2ad71d998d96e46b7d0b459241b2f22b98c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 15:51:45 +00:00
Cheng Chang
1ee114f4d7 gps: add sepolicy to coredump node
Bug: 303343788
Test: b/303343788 verified the SIGABRT/SIGSEGV signal
Change-Id: I5587f632d4cbd2d9210e37c08a19981fb9967a80
2023-10-05 02:47:11 +00:00
Sam Dubey
9af43574a6 Merge "Revert "Allow selinux for gril to use radio ext aidl"" into main 2023-10-04 15:41:04 +00:00
Sam Dubey
1a7ca8326d Merge "Revert "Allow selinux for gril to use radio ext aidl"" into udc-qpr-dev am: befa27b85e am: ff4852d13b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24940170

Change-Id: I1a1e5d6839fe445b84097b5bb7508e9a4d65f948
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 15:38:53 +00:00
Sam Dubey
8f7a6dba89 Revert "Allow selinux for gril to use radio ext aidl"
Revert submission 24799507-ak3_ssc_aidl

Reason for revert: Broke next target, b/303392497

Reverted changes: /q/submissionid:24799507-ak3_ssc_aidl

Change-Id: Ib2a84012f953683308b906193e457ef8a479867f
Merged-In: Ib2a84012f953683308b906193e457ef8a479867f
2023-10-04 15:32:19 +00:00
Sam Dubey
ff4852d13b Merge "Revert "Allow selinux for gril to use radio ext aidl"" into udc-qpr-dev am: befa27b85e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24940170

Change-Id: I284004786847d02e2204cd4522aaa3c4b18a52ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 15:07:44 +00:00
Sam Dubey
befa27b85e Merge "Revert "Allow selinux for gril to use radio ext aidl"" into udc-qpr-dev 2023-10-04 14:34:18 +00:00
Sam Dubey
31d1e1160b Revert "Allow selinux for gril to use radio ext aidl"
Revert submission 24799507-ak3_ssc_aidl

Reason for revert: Broke next target, b/303392497

Reverted changes: /q/submissionid:24799507-ak3_ssc_aidl

Change-Id: Ib2a84012f953683308b906193e457ef8a479867f
2023-10-04 13:11:40 +00:00
Shinru Han
35bef58909 Merge "gps: pixel gnss aidl service (sepolicy)" into udc-qpr-dev am: 4f1985f354 am: 77968195f7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24498897

Change-Id: If423bc3a872e6596e4748eb548e64614fca38bdd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 09:57:50 +00:00
Shinru Han
77968195f7 Merge "gps: pixel gnss aidl service (sepolicy)" into udc-qpr-dev am: 4f1985f354
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24498897

Change-Id: I4fd76a5167e91da8b74a796882a165627aa2412b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 09:29:42 +00:00
Shinru Han
4f1985f354 Merge "gps: pixel gnss aidl service (sepolicy)" into udc-qpr-dev 2023-10-04 09:06:22 +00:00
Alan Chen
447a66dd74 Allow selinux for gril to use radio ext aidl am: 2d635d58d3 am: b61356877e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24847488

Change-Id: Iadf8b8f46f98cff587c5b404adc75759525f3c63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 08:54:09 +00:00
Alan Chen
b61356877e Allow selinux for gril to use radio ext aidl am: 2d635d58d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24847488

Change-Id: Id43467a31c048ab95206d2dab355d6e1eceace73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 08:24:13 +00:00
Shinru Han
69d9e01e8a gps: pixel gnss aidl service (sepolicy)
avc:  denied  { call } for  scontext=u:r:servicemanager:s0 tcontext=u:r:hal_gnss_pixel:s0 tclass=binder permissive=0
avc:  denied  { call } for  scontext=u:r:hal_gnss_pixel:s0 tcontext=u:r:hal_gnss_default:s0 tclass=binder permissive=0
avc:  denied  { call } for  scontext=u:r:hal_gnss_default:s0 tcontext=u:r:hal_gnss_pixel:s0 tclass=binder permissive=0
avc:  denied  { read } for  name="modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
avc:  denied  { open } for  path="/sys/devices/platform/cpif/modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
avc:  denied  { getattr } for  path="/sys/devices/platform/cpif/modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Bug: 298924540
Test: No avc deny
Change-Id: I77ec1cb171781dd3c671a975a5c049a48d5bcccb
2023-10-03 08:53:15 +00:00
Alan Chen
2d635d58d3 Allow selinux for gril to use radio ext aidl
Test: manual - verified there are no avc denied logs
Bug: 285459428
Change-Id: I38c88d82860f37e34772b786a8940db02dc17ac6
2023-10-03 05:22:32 +00:00
Edwin Tung
ca875aa18e gps: gnss aidl service (sepolicy) am: 76686f69d9 am: 325b59f289
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24896011

Change-Id: I00e3ba4fde73cb1ff7c6b29bf5ce1f232b098acb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-02 11:12:30 +00:00
Edwin Tung
325b59f289 gps: gnss aidl service (sepolicy) am: 76686f69d9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24896011

Change-Id: I73578c52b62fd16cbf662fde3ee6e5a0205d3bc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-02 10:06:30 +00:00
Edwin Tung
76686f69d9 gps: gnss aidl service (sepolicy)
avc:  denied  { read } for  name="u:object_r:vendor_gps_prop:s0" dev="tmpfs" ino=372 scontext=u:r:hal_gnss_default:s0 tcontext=u:object_r:vendor_gps_prop:s0 tclass=file permissive=0

Bug: 295810526
Test: No avc denied
Change-Id: I686cd19143dc58706af8b43a4b87a73e23a43fd3
2023-09-29 11:59:47 +08:00
Desmond Huang
d6637d93a5 Relocate common tracking denial entries
Bug: 299029620
Change-Id: Id520cd37bedb9b7507396f0fae24e4b6f4fe3dbf
2023-09-15 03:39:14 +00:00
Desmond Huang
f081cedad0 Remove obsolete entries
Bug: 299029620
Change-Id: I6edb77911ee0d63188bf1aa54d4162480e9a7f71
2023-09-15 03:36:57 +00:00
Edwin Tung
3efe11595b Merge "gps: remove permissive gnssd hal_gnss_default" into udc-qpr-dev am: c3faae21ea am: 0a3ae091b7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24687594

Change-Id: Ia1b85d95b6da331a8e800642a2e95ee460560461
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 18:07:25 +00:00
Edwin Tung
0a3ae091b7 Merge "gps: remove permissive gnssd hal_gnss_default" into udc-qpr-dev am: c3faae21ea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24687594

Change-Id: Ie1321e117e10cbdbf269ad0c1fffe128140db181
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 17:17:07 +00:00
Edwin Tung
c3faae21ea Merge "gps: remove permissive gnssd hal_gnss_default" into udc-qpr-dev 2023-09-11 16:43:34 +00:00
Wilson Sung
fa64780395 Update SELinux error am: dfe9efa9ff am: a3021b472e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24687591

Change-Id: I5a368cf822e7370a0efef87ee0b58cc2a0765bce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 07:46:50 +00:00
Wilson Sung
a3021b472e Update SELinux error am: dfe9efa9ff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24687591

Change-Id: I3d9f65f78f2256b8921d6c714a33e4ff1ce6f648
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 06:53:46 +00:00
Edwin Tung
3ffbeda496 gps: remove permissive gnssd hal_gnss_default
Bug: 265391808
Test: gnss works
Change-Id: Ib4f2dd73255d333930a4d8ad0884b3f54c5f0f0a
2023-09-08 12:04:09 +08:00
Wilson Sung
dfe9efa9ff Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 299553682
Bug: 299553227
Change-Id: I1a40d2c1cff2ea5e252047601166584546349e67
2023-09-08 11:35:04 +08:00
Edwin Tung
96f5354183 gps: allow vendor_init to set gps debug prop am: f4405c835b am: 8e4aea0b4f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24658030

Change-Id: I406844e11fac41e75f462ace151469479bf2ea18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 09:43:21 +00:00
Edwin Tung
8e4aea0b4f gps: allow vendor_init to set gps debug prop am: f4405c835b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24658030

Change-Id: I5a8b3f5a63edd3fe5c62b718c8866308396ec5ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 08:46:37 +00:00
Edwin Tung
f4405c835b gps: allow vendor_init to set gps debug prop
Bug: 298871633

Test: build pass, check sepolicy
and gps log in bugreport

Change-Id: Ice46d0ae5ddd0b7e7362684917b0b0e7c7183db9
2023-09-05 13:05:47 +08:00
Wilson Sung
563b666341 Update SELinux error am: 5ad65f26f7 am: f9695506b3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24329845

Change-Id: I7ef96abfe999b8469e67493be4ebb0eb9b5ab191
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 04:14:21 +00:00
Wilson Sung
f9695506b3 Update SELinux error am: 5ad65f26f7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24329845

Change-Id: Id0b4eee2af0a7701aa6b87e00972ce58c3925aee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 03:33:34 +00:00
Edwin Tung
3667cf9c9c gps: remove unused sepolicy am: 10251376c0 am: 0b3231bb54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24325865

Change-Id: I13421764f5fa0de0b8bf8745f03883079f4878fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 10:28:16 +00:00
Wilson Sung
5ad65f26f7 Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 294967729
Change-Id: I3b17e72e9364c57458423142f3509a3dd8425c69
2023-08-08 17:48:43 +08:00
Edwin Tung
0b3231bb54 gps: remove unused sepolicy am: 10251376c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24325865

Change-Id: I7d555cdfa521a24d891a06c804c464f05b681e23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 09:46:16 +00:00
Edwin Tung
10251376c0 gps: remove unused sepolicy
Bug: 246482115
Test: gps works
Change-Id: I43ba2a4dad4034b953ed6608c93a5ff1abe16bd2
2023-08-07 18:10:02 +08:00
Edwin Tung
833002d9c8 gps: Add sepolicy for gps am: a648924b14 am: 9d0009c25a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24319937

Change-Id: I1189b89215fe41f4ff4912a455405f2026efac07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07 04:19:26 +00:00
Edwin Tung
9d0009c25a gps: Add sepolicy for gps am: a648924b14
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24319937

Change-Id: Iafa1f7bb4c81fce27739033640aff8562795d870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07 03:38:08 +00:00
Edwin Tung
a648924b14 gps: Add sepolicy for gps
Bug: 294482059
Bug: 294481452
Bug: 294175645

Test: Fix data/vendor/gps avc denied
Change-Id: I3a93b7b8c8e6aff3fbd114fa5bf49ed0f8140258
2023-08-04 17:00:56 +08:00
Edwin Tung
12b5cec067 Add sepolicy for gnssd am: e19e985013 am: 0296e8a3fc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24061446

Change-Id: I6c9331a3b8bfc4f4e448f0214c3e46ec74232e10
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-17 06:14:13 +00:00
Edwin Tung
0296e8a3fc Add sepolicy for gnssd am: e19e985013
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24061446

Change-Id: I09ac89df355d34b6a91b7091e24b3a768f19cbd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-17 05:34:06 +00:00
Edwin Tung
e19e985013 Add sepolicy for gnssd
Bug: 265391808
Test: No avc denied
Change-Id: Ib4645bc0f26ac261c7aae6f1b621303e88e09690
2023-07-17 11:32:31 +08:00
Treehugger Robot
77fb918d62 Merge "Update SELinux error" into udc-qpr-dev am: 309ef096ac am: 972964a0e6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23891666

Change-Id: I9e77f33c606347634f8decbbc47e33fe80beebf3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-10 08:33:59 +00:00
Treehugger Robot
972964a0e6 Merge "Update SELinux error" into udc-qpr-dev am: 309ef096ac
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23891666

Change-Id: I8899f5f6682c8e7f7807a73103eaa18a99f60c83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-10 07:54:45 +00:00
Treehugger Robot
309ef096ac Merge "Update SELinux error" into udc-qpr-dev 2023-07-10 07:06:55 +00:00
Ken Yang
92b83ca54f SELinux: fix the avc denial am: c5e2845283 am: bcc54f2632
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23901401

Change-Id: I7a5ea2d87fbce82bd49e81099a37d6735cb68e06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 08:24:05 +00:00
Ken Yang
bcc54f2632 SELinux: fix the avc denial am: c5e2845283
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23901401

Change-Id: I2d67ca26c680ca1625dd20e16e92d5aa730ce5ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 07:43:45 +00:00
Ken Yang
c5e2845283 SELinux: fix the avc denial
Bug: 289856364
Change-Id: Ib3b1ea0b578f72a422be6f94d94cf8ddf5523ae2
Signed-off-by: Ken Yang <yangken@google.com>
2023-07-05 22:47:38 +00:00
Wilson Sung
f22f1eb0ee Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 289856364
Bug: 289856386
Bug: 289856465
Change-Id: I53cc55e152912c0a94957e216e4a3ea6dde3133c
2023-07-04 11:17:02 +08:00
Darren Hsu
6f9db781ed sepolicy: allow system_suspend to read gnss sysfs am: 566095b9ae am: 3a2e4957af
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23840927

Change-Id: I1195a1df36b79481672773b77926b165bbadb6b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 04:16:24 +00:00
Darren Hsu
3a2e4957af sepolicy: allow system_suspend to read gnss sysfs am: 566095b9ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23840927

Change-Id: I071d9807da21adb58b595da33e0fd0b3207a9717
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 03:14:00 +00:00
Darren Hsu
566095b9ae sepolicy: allow system_suspend to read gnss sysfs
avc:  denied  { read } for  name="wakeup61" dev="sysfs" ino=65863
scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir
permissive=0 bug=b/288984031

Bug: 288984031
Test: capture a bug report and check there is no
avc denial related to gnss
Change-Id: Iab3e835ae1d3b874eb8acbe18278b5ba1d7cb126
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-06-30 07:23:11 +08:00
Ken Yang
5df8fa2317 SELinux: fix avc denials am: 560e733bec am: 80533d0d47
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23846313

Change-Id: I03f6505acd2be9da9373ecbe1890be157092fcc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 08:23:15 +00:00
Ken Yang
80533d0d47 SELinux: fix avc denials am: 560e733bec
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23846313

Change-Id: I6941f67c119a110b722ae4afc439834e0948a875
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 07:39:52 +00:00
Ken Yang
560e733bec SELinux: fix avc denials
Fix the avc denials for sysfs_wakeup

Bug: 288049074
Change-Id: Ibc0d59597373d9ec378c90c7b372876b846b4338
Signed-off-by: Ken Yang <yangken@google.com>
2023-06-29 06:59:30 +00:00
Android Culprit Assistant
b3fcc2b15b Revert "SELinux: fix avc denials" am: 8cc94857ed am: b7766afa7f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23844494

Change-Id: I0f67ed5f0a1bd8c3c58efe84d0655d4b9af13791
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 14:48:38 +00:00
Android Culprit Assistant
b7766afa7f Revert "SELinux: fix avc denials" am: 8cc94857ed
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23844494

Change-Id: I20a1c981b0bb572f5225579854ebab6ba7f17657
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 14:04:22 +00:00
Android Culprit Assistant
8cc94857ed Revert "SELinux: fix avc denials"
This revert was created by Android Culprit Assistant. The culprit was identified in the following culprit search session (http://go/aca-get/ad8a70f9-8859-4f13-b4b4-2a7903a68e85).

Change-Id: Id230b3dc859469b64df2245efd82d3a92cefafe4
2023-06-28 12:59:43 +00:00
Ken Yang
60e47b6432 SELinux: fix avc denials am: 253a4052cc am: 7a9789104c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23767291

Change-Id: Ia373c72737c7dc996ede92151115dbcb8e8dcc82
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 04:32:58 +00:00
Ken Yang
7a9789104c SELinux: fix avc denials am: 253a4052cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23767291

Change-Id: I085c778b45c9d84a34ec8c744acb6d597c439edb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 03:48:00 +00:00
Ken Yang
253a4052cc SELinux: fix avc denials
Fix the avc denials fof sysfs_wakeup

Bug: 288049074
Change-Id: I646047b9114884a33cc36035eaa1d1d5d9f99d1c
Signed-off-by: Ken Yang <yangken@google.com>
2023-06-28 02:30:48 +00:00
Wilson Sung
753f542363 Update SELinux error am: 6557908358 am: df6262d0a6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23824283

Change-Id: I31db79a46d241984752a61c26f9ea46c2500620f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-27 06:42:54 +00:00
Wilson Sung
df6262d0a6 Update SELinux error am: 6557908358
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23824283

Change-Id: If39e356cd72cf15f1325f4ba6fcc50ded15a7bf3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-27 05:52:37 +00:00
Wilson Sung
6557908358 Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 288984267
Bug: 288984031
Bug: 288983920
Change-Id: Ic51ed7b691493498c09744903152bb714e3ee805
2023-06-27 11:52:02 +08:00
Wilson Sung
d2c81af98f Update SELinux error am: c1fd684e0f am: 07a64067a6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23740932

Change-Id: If58042e58e6c95161474478195c1f38e81fbe2e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 10:41:09 +00:00
Wilson Sung
07a64067a6 Update SELinux error am: c1fd684e0f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23740932

Change-Id: I22cd43662e3f8a9cd824e27f4718b3baad8fffb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 08:47:50 +00:00
Wilson Sung
c1fd684e0f Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 288049074
Bug: 288049372
Change-Id: Ia62a97443649d8ee15f8907ad99251b7c2a3b316
2023-06-20 16:08:13 +08:00
Colin Ko
1c53c4cbde Allow vendor_init to set camera debug prop am: 1605f391a2 am: 1ccc2906ef am: ce4f564857
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: I52bc256d85c1a78a44e69a9f00925fb802d0c197
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 10:15:05 +00:00
Colin Ko
bfb7625f2f Allow vendor_init to set camera debug prop am: 1605f391a2 am: 626b85a71a am: 7b0675a3b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: I54e393ebed136f9ee17c045987800d5f4fc1b15c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 10:14:40 +00:00
Colin Ko
ce4f564857 Allow vendor_init to set camera debug prop am: 1605f391a2 am: 1ccc2906ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: Iad9e12ef9b803d33dbff7aede974e557d90ae9a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 09:28:24 +00:00
Colin Ko
7b0675a3b8 Allow vendor_init to set camera debug prop am: 1605f391a2 am: 626b85a71a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: I121ed92e2d163c50da98c1f67ea910a9c7e2fcab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 09:22:26 +00:00
Colin Ko
1ccc2906ef Allow vendor_init to set camera debug prop am: 1605f391a2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: I3cf62a4de16608a6a0f28bad9c95541fc125a98f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 08:40:37 +00:00
Colin Ko
626b85a71a Allow vendor_init to set camera debug prop am: 1605f391a2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23688444

Change-Id: I67021e871792667654a965e151bc5ef43b3e81ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 08:36:23 +00:00
Colin Ko
1605f391a2 Allow vendor_init to set camera debug prop
Bug: 286780112
Test: build pass, check sepolicy
Change-Id: I67d940524e4d6d14d9d589230dacad1778fa48ab
2023-06-14 06:22:57 +00:00
Edwin Tung
4fac554fca Add sepolicy for gnssd am: c2b07bc5f6 am: 54cc662804
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23517406

Change-Id: I81019102fe1b0083d72b2fba961b642c8c91bbe4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-05 05:57:16 +00:00
Edwin Tung
54cc662804 Add sepolicy for gnssd am: c2b07bc5f6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23517406

Change-Id: Ibae7a9ff10eb9b0c5ca38fd73df1c0f5d8a5d71e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-05 05:15:38 +00:00
Edwin Tung
c2b07bc5f6 Add sepolicy for gnssd
Bug: 265391808
Test: build pass
Change-Id: I27d4ebe455967ffd732cea05d7375fbe7be5ab62
2023-06-05 10:43:33 +08:00
Adam Shih
9f3c8e7990 Merge "introduce a new sepolicy owner" 2023-05-15 02:11:41 +00:00
Adam Shih
c51b3a0bf8 introduce a new sepolicy owner
Bug: 281631102
Test: N/A
Change-Id: Ib808823923cf0537e210a39cb253c0a9be36d2ec
2023-05-12 02:30:11 +00:00
Edwin Tung
23d57328c2 Add sepolicy for gnssd am: 1be1e15c26 am: 4a1768e884
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23056927

Change-Id: I3d4eb6d23809f3637f8eb301f0c451de965f07c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 02:39:43 +00:00
Edwin Tung
4a1768e884 Add sepolicy for gnssd am: 1be1e15c26
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/23056927

Change-Id: Ifc5c66fec25559ab6bbc8d45c51300ba9a40ba41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 01:56:09 +00:00
Edwin Tung
1be1e15c26 Add sepolicy for gnssd
Bug: 269987831
Test: build pass
Change-Id: I3b852b7c7b7f1813830a9ceca476d658099a2c55
2023-05-09 22:32:49 +08:00
yihsiangpeng
2e372dcc25 Add sepolicy for wireless charging nodes am: 63679bd1c6 am: 6a80f00041
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/22339170

Change-Id: Ib45c33499bbeb75fea66eef89601daecb66b187a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 23:59:56 +00:00
yihsiangpeng
6a80f00041 Add sepolicy for wireless charging nodes am: 63679bd1c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/22339170

Change-Id: I2d956d84e608022df66ecee9203a8964d8c843ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 22:35:21 +00:00
yihsiangpeng
a71b1c04be Add sepolicy for wireless charging nodes am: 63679bd1c6 am: 9178e21226
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/22339170

Change-Id: I0d1ef0595e3352d3db75f51b1cc8f6225fba3185
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 20:08:54 +00:00
yihsiangpeng
9178e21226 Add sepolicy for wireless charging nodes am: 63679bd1c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/22339170

Change-Id: I2197975809bc79953570c614240b40972f22457f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:17:01 +00:00
yihsiangpeng
63679bd1c6 Add sepolicy for wireless charging nodes
Bug: 274992535
Change-Id: Iab70a6ca65ee862ecaede7f3b48db1558523aff0
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
2023-03-30 15:05:15 +08:00
Ken Tsou
bb41a39452 sepolicy: update WLC i2c path
The wrong path makes healthd unable to get the wireless status, so there
is no wireless charging detection notification on the UI.

Bug: 268556382
Change-Id: I8c99276050a9fca08f5782621452f92c3bb74565
Signed-off-by: Ken Tsou <kentsou@google.com>
2023-02-10 08:48:25 +08:00
Tai Kuo
5c0cf72611 Update vibrator SEPolicy for possible paths
Bug: 264625320
Test: Check sysfs path with ls -Z.
Change-Id: I897c614139a9cf56db298164bc2325d57a8e3949
2023-01-31 17:12:09 +08:00
Ken Yang
79305057ba Merge "WLC: Cleanup the sysfs_wlc policies" 2023-01-13 14:41:30 +00:00
Wilson Sung
ae37456db7 Permissive gnssd hal_gnss_default
Bug: 265391808
Change-Id: I2f7bef485662a439941dd60c579228883c65d138
2023-01-13 18:27:03 +08:00
Ken Yang
35abedfc90 WLC: Cleanup the sysfs_wlc policies
Bug: 263830018
Change-Id: Ia0f5b6b15e0dc3fb503b78a1a3db4e3e47e85a41
Signed-off-by: Ken Yang <yangken@google.com>
2023-01-06 19:59:51 +00:00
Edwin Tung
76c4fbe080 gps: add gnssd initial sepolicy
Bug: 261364552
Test: build pass
Change-Id: Ieaf9a12445e4b53d05a707fe0029db4e87ed0b8b
2023-01-05 13:42:36 +08:00
kuanyuhuang
3e2f786213 Add sepolicy for allowing accessing bluetooth uart and lpm related device nodes
set /dev/ttySAC18, /dev/logbuffer_tty18 and /dev/logbuffer_btlpm
device node permission

Bug: 261526478
Test: manual
Change-Id: I1011caef3a00048dca117e7d51e049f6f202278e
2022-12-08 05:50:50 +00:00
Chase Wu
4d6ced5764 cs40l26: Add haptics initial sepolicy
Bug: 258559924
Test: build pass
Change-Id: I8a3de447362bb338562df0416dbef173f95aa362
Signed-off-by: Chase Wu <chasewu@google.com>
2022-11-14 14:42:49 +08:00
Cyan_Hsieh
4ace6462dc Initial device akita sepolicy
Bug: 249656909
Change-Id: I5097753f3daa8bf7c83c4a09f86877d823e01bb7
2022-10-14 17:27:15 +08:00
Umer Abdullah
678c3ed68b Initial empty repository 2022-10-11 13:33:03 +00:00
60 changed files with 3859 additions and 452 deletions

1
.gitupstream Normal file
View File

@@ -0,0 +1 @@
https://android.googlesource.com/device/google/akita

View File

@@ -17,7 +17,8 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_akita.mk \
$(LOCAL_DIR)/aosp_akita_fullmte.mk \
$(LOCAL_DIR)/factory_akita.mk
$(LOCAL_DIR)/factory_akita.mk \
$(LOCAL_DIR)/lineage_akita.mk
COMMON_LUNCH_CHOICES := \
aosp_akita-trunk_staging-userdebug

5
BoardConfigEvolution.mk Normal file
View File

@@ -0,0 +1,5 @@
#
# Copyright (C) 2024 The Evolution X Project
#
# SPDX-License-Identifier: Apache-2.0
#

7
BoardConfigLineage.mk Normal file
View File

@@ -0,0 +1,7 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/akita/aam_compatibility_matrix.xml

View File

@@ -0,0 +1,10 @@
<compatibility-matrix version="1.0" type="framework">
<hal format="aidl" optional="true">
<name>vendor.google.aam</name>
<version>1-2</version>
<interface>
<name>IAam</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View File

@@ -43,5 +43,8 @@ BOARD_KERNEL_CMDLINE += disable_dma32=on
include device/google/zuma/BoardConfig-common.mk
-include vendor/google_devices/zuma/prebuilts/BoardConfigVendor.mk
-include vendor/google_devices/akita/proprietary/BoardConfigVendor.mk
include device/google/akita-sepolicy/akita-sepolicy.mk
include device/google/akita/sepolicy/akita-sepolicy.mk
include device/google/akita/wifi/BoardConfig-wifi.mk
include device/google/akita/akita/BoardConfigLineage.mk
include device/google/akita/akita/BoardConfigEvolution.mk

View File

@@ -0,0 +1,7 @@
#
# Copyright (C) 2024 The Evolution X Project
#
# SPDX-License-Identifier: Apache-2.0
#
include device/google/akita/BoardConfigEvolution.mk

View File

@@ -0,0 +1,9 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
include device/google/akita/BoardConfigLineage.mk
include vendor/google/akita/BoardConfigVendor.mk

View File

@@ -0,0 +1,7 @@
#
# Copyright (C) 2024 The Evolution X
#
# SPDX-License-Identifier: Apache-2.0
#
$(call inherit-product, device/google/akita/device-evolution.mk)

9
akita/device-lineage.mk Normal file
View File

@@ -0,0 +1,9 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
TARGET_VENDOR_PROP += device/google/akita/akita/vendor.prop
$(call inherit-product, device/google/akita/device-lineage.mk)

133
akita/extract-files.sh Executable file
View File

@@ -0,0 +1,133 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=akita
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}/../../../.."
export TARGET_ENABLE_CHECKELF=true
# If XML files don't have comments before the XML header, use this flag
# Can still be used with broken XML files by using blob_fixup
export TARGET_DISABLE_XML_FIXING=true
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
ONLY_FIRMWARE=
KANG=
SECTION=
CARRIER_SKIP_FILES=()
VENDOR_SKIP_FILES=()
while [ "${#}" -gt 0 ]; do
case "${1}" in
--only-firmware)
ONLY_FIRMWARE=true
;;
-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)
[ "$2" = "" ] && return 0
sed -i -e '$a00000018,1' -e '/^00000014/d' -e '/^00000015/d' "${2}"
;;
vendor/etc/init/init.modem_logging_control.rc)
[ "$2" = "" ] && return 0
sed -i 's/ && property:ro.debuggable=0//' "${2}"
;;
*)
return 1
;;
esac
return 0
}
function blob_fixup_dry() {
blob_fixup "$1" ""
}
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}"
if [ -z "${ONLY_FIRMWARE}" ]; then
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
generate_prop_list_from_image "product.img" "${MY_DIR}/proprietary-files-carriersettings.txt" CARRIER_SKIP_FILES carriersettings
extract "${MY_DIR}/proprietary-files-carriersettings.txt" "${SRC}" "${KANG}" --section "${SECTION}"
readarray -t VENDOR_SKIP_FILES < <(cat "${MY_DIR}/skip-files-vendor.txt" | sed -E "/^[[:blank:]]*(#|$)/d")
VENDOR_TXT="${MY_DIR}/proprietary-files-vendor.txt"
generate_prop_list_from_image "vendor.img" "${VENDOR_TXT}" VENDOR_SKIP_FILES
# libExynosC2*Dec & libExynosC2*Enc depend on libacryl & libexynosv4l2, which are gnu makefile targets
set_disable_checkelf "vendor/lib64/libExynosC2H263Dec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2H263Enc.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2H264Dec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2H264Enc.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2HevcDec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2HevcEnc.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Mpeg4Dec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Mpeg4Enc.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Vp8Dec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Vp8Enc.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Vp9Dec.so" "${VENDOR_TXT}"
set_disable_checkelf "vendor/lib64/libExynosC2Vp9Enc.so" "${VENDOR_TXT}"
set_module_suffix "vendor/lib64/com.google.edgetpu_app_service-V3-ndk.so" "-vendor" "${VENDOR_TXT}"
set_module_suffix "vendor/lib64/com.google.edgetpu_vendor_service-V2-ndk.so" "-vendor" "${VENDOR_TXT}"
extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" "${KANG}" --section "${SECTION}"
fi
if [ -z "${SECTION}" ]; then
extract_firmware "${MY_DIR}/proprietary-firmware.txt" "${SRC}"
fi
"${MY_DIR}/setup-makefiles.sh"

View File

@@ -0,0 +1,343 @@
# 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/4ka_sk.pb
product/etc/CarrierSettings/a1_at.pb
product/etc/CarrierSettings/a1_bg.pb
product/etc/CarrierSettings/a1_hr.pb
product/etc/CarrierSettings/a1_mk.pb
product/etc/CarrierSettings/a1_si.pb
product/etc/CarrierSettings/ahamo_jp.pb
product/etc/CarrierSettings/airtel_in.pb
product/etc/CarrierSettings/ais_th.pb
product/etc/CarrierSettings/altice_us.pb
product/etc/CarrierSettings/andorratelecom_ad.pb
product/etc/CarrierSettings/antel_uy.pb
product/etc/CarrierSettings/appalachian_us.pb
product/etc/CarrierSettings/apt_tw.pb
product/etc/CarrierSettings/asda_gb.pb
product/etc/CarrierSettings/assurance_us.pb
product/etc/CarrierSettings/astca_as.pb
product/etc/CarrierSettings/att5g_us.pb
product/etc/CarrierSettings/att5gsa_us.pb
product/etc/CarrierSettings/att_mx.pb
product/etc/CarrierSettings/att_us.pb
product/etc/CarrierSettings/attbootstrap_us.pb
product/etc/CarrierSettings/attmvnos_us.pb
product/etc/CarrierSettings/base_be.pb
product/etc/CarrierSettings/batelco_bh.pb
product/etc/CarrierSettings/bell_ca.pb
product/etc/CarrierSettings/bite_lt.pb
product/etc/CarrierSettings/bite_lv.pb
product/etc/CarrierSettings/bluegrass_us.pb
product/etc/CarrierSettings/bob_at.pb
product/etc/CarrierSettings/boost_us.pb
product/etc/CarrierSettings/boosttmo_us.pb
product/etc/CarrierSettings/bouygues_fr.pb
product/etc/CarrierSettings/bsnl_in.pb
product/etc/CarrierSettings/btb_gb.pb
product/etc/CarrierSettings/btc_gb.pb
product/etc/CarrierSettings/cablemovil_es.pb
product/etc/CarrierSettings/carolinawest_us.pb
product/etc/CarrierSettings/carrier_list.pb
product/etc/CarrierSettings/celcom_my.pb
product/etc/CarrierSettings/cellcom_il.pb
product/etc/CarrierSettings/cellcom_us.pb
product/etc/CarrierSettings/cellcommno_us.pb
product/etc/CarrierSettings/celluarone_us.pb
product/etc/CarrierSettings/chatr_ca.pb
product/etc/CarrierSettings/chinamobile_hk.pb
product/etc/CarrierSettings/cht_tw.pb
product/etc/CarrierSettings/cityfone_ca.pb
product/etc/CarrierSettings/claro_pr.pb
product/etc/CarrierSettings/congstar_de.pb
product/etc/CarrierSettings/consumercellularatt_us.pb
product/etc/CarrierSettings/consumercellulartmo_us.pb
product/etc/CarrierSettings/coopvoce_it.pb
product/etc/CarrierSettings/coppervalley_us.pb
product/etc/CarrierSettings/coriolis_fr.pb
product/etc/CarrierSettings/cox_us.pb
product/etc/CarrierSettings/cricket5g_us.pb
product/etc/CarrierSettings/cricket_us.pb
product/etc/CarrierSettings/cspire_nl.pb
product/etc/CarrierSettings/cspire_us.pb
product/etc/CarrierSettings/default.pb
product/etc/CarrierSettings/digi_hu.pb
product/etc/CarrierSettings/digi_my.pb
product/etc/CarrierSettings/digi_ro.pb
product/etc/CarrierSettings/digimobil_es.pb
product/etc/CarrierSettings/dish5gsa_us.pb
product/etc/CarrierSettings/dishatt_us.pb
product/etc/CarrierSettings/dito_ph.pb
product/etc/CarrierSettings/dna_fi.pb
product/etc/CarrierSettings/docomo_jp.pb
product/etc/CarrierSettings/docomomvno_jp.pb
product/etc/CarrierSettings/dtac_th.pb
product/etc/CarrierSettings/du_ae.pb
product/etc/CarrierSettings/eastlink_ca.pb
product/etc/CarrierSettings/ee_gb.pb
product/etc/CarrierSettings/eir_ie.pb
product/etc/CarrierSettings/elisa1_fi.pb
product/etc/CarrierSettings/elisa2_fi.pb
product/etc/CarrierSettings/elisa_ee.pb
product/etc/CarrierSettings/enreach_nl.pb
product/etc/CarrierSettings/eplus_de.pb
product/etc/CarrierSettings/erate_no.pb
product/etc/CarrierSettings/esn_gb.pb
product/etc/CarrierSettings/etisalat_ae.pb
product/etc/CarrierSettings/euskaltel_es.pb
product/etc/CarrierSettings/evolve_us.pb
product/etc/CarrierSettings/fastweb_it.pb
product/etc/CarrierSettings/fet_tw.pb
product/etc/CarrierSettings/fi_at.pb
product/etc/CarrierSettings/fi_us.pb
product/etc/CarrierSettings/fido_ca.pb
product/etc/CarrierSettings/finetwork_es.pb
product/etc/CarrierSettings/firstnet_us.pb
product/etc/CarrierSettings/firstnetpacific2_us.pb
product/etc/CarrierSettings/firstnetpacific_us.pb
product/etc/CarrierSettings/fizz_ca.pb
product/etc/CarrierSettings/fl1_li.pb
product/etc/CarrierSettings/free_fr.pb
product/etc/CarrierSettings/free_re.pb
product/etc/CarrierSettings/freedommobile_ca.pb
product/etc/CarrierSettings/gamma_gb.pb
product/etc/CarrierSettings/gci_us.pb
product/etc/CarrierSettings/gibtel_gi.pb
product/etc/CarrierSettings/giffgaff_gb.pb
product/etc/CarrierSettings/giga_sg.pb
product/etc/CarrierSettings/globe_ph.pb
product/etc/CarrierSettings/guuk_es.pb
product/etc/CarrierSettings/h3_at.pb
product/etc/CarrierSettings/h3_gb.pb
product/etc/CarrierSettings/h3_ie.pb
product/etc/CarrierSettings/h3_se.pb
product/etc/CarrierSettings/h3g27202_ie.pb
product/etc/CarrierSettings/halebop_se.pb
product/etc/CarrierSettings/help_at.pb
product/etc/CarrierSettings/homobile_it.pb
product/etc/CarrierSettings/hotmobile_il.pb
product/etc/CarrierSettings/ice_no.pb
product/etc/CarrierSettings/idea_in.pb
product/etc/CarrierSettings/idmobile_gb.pb
product/etc/CarrierSettings/iliad_it.pb
product/etc/CarrierSettings/inland_us.pb
product/etc/CarrierSettings/jazztel_es.pb
product/etc/CarrierSettings/kddi_jp.pb
product/etc/CarrierSettings/kddimvno_jp.pb
product/etc/CarrierSettings/kena_it.pb
product/etc/CarrierSettings/koodo_ca.pb
product/etc/CarrierSettings/kpn_nl.pb
product/etc/CarrierSettings/lebara_es.pb
product/etc/CarrierSettings/lebara_fr.pb
product/etc/CarrierSettings/lebara_gb.pb
product/etc/CarrierSettings/liberty_pr.pb
product/etc/CarrierSettings/lifecell_ua.pb
product/etc/CarrierSettings/linemo_jp.pb
product/etc/CarrierSettings/llamaya_es.pb
product/etc/CarrierSettings/lmt_lv.pb
product/etc/CarrierSettings/lowi_es.pb
product/etc/CarrierSettings/luckymobile_ca.pb
product/etc/CarrierSettings/lum_ca.pb
product/etc/CarrierSettings/lyca_es.pb
product/etc/CarrierSettings/m1_sg.pb
product/etc/CarrierSettings/manxcontract_im.pb
product/etc/CarrierSettings/manxprepaid_im.pb
product/etc/CarrierSettings/masmovil_es.pb
product/etc/CarrierSettings/maxis_my.pb
product/etc/CarrierSettings/meo_pt.pb
product/etc/CarrierSettings/metropcs_us.pb
product/etc/CarrierSettings/mobily_sa.pb
product/etc/CarrierSettings/monacotelecom_mc.pb
product/etc/CarrierSettings/movistar_es.pb
product/etc/CarrierSettings/movistar_mx.pb
product/etc/CarrierSettings/nextech_us.pb
product/etc/CarrierSettings/nos_pt.pb
product/etc/CarrierSettings/nova_gr.pb
product/etc/CarrierSettings/nova_is.pb
product/etc/CarrierSettings/o2_cz.pb
product/etc/CarrierSettings/o2_de.pb
product/etc/CarrierSettings/o2_sk.pb
product/etc/CarrierSettings/o2postpaid_gb.pb
product/etc/CarrierSettings/o2prepaid_de.pb
product/etc/CarrierSettings/o2prepaid_gb.pb
product/etc/CarrierSettings/omantel_om.pb
product/etc/CarrierSettings/onecall_no.pb
product/etc/CarrierSettings/ooredoo_kw.pb
product/etc/CarrierSettings/ooredoo_qa.pb
product/etc/CarrierSettings/optus_au.pb
product/etc/CarrierSettings/orange_be.pb
product/etc/CarrierSettings/orange_es.pb
product/etc/CarrierSettings/orange_fr.pb
product/etc/CarrierSettings/orange_gp.pb
product/etc/CarrierSettings/orange_lu.pb
product/etc/CarrierSettings/orange_pl.pb
product/etc/CarrierSettings/orange_re.pb
product/etc/CarrierSettings/orange_ro.pb
product/etc/CarrierSettings/orange_sk.pb
product/etc/CarrierSettings/others.pb
product/etc/CarrierSettings/paradisemobile_bm.pb
product/etc/CarrierSettings/partner_il.pb
product/etc/CarrierSettings/pcmobilebell_ca.pb
product/etc/CarrierSettings/pelephone_il.pb
product/etc/CarrierSettings/pepephone_es.pb
product/etc/CarrierSettings/play_pl.pb
product/etc/CarrierSettings/plus_pl.pb
product/etc/CarrierSettings/post_lu.pb
product/etc/CarrierSettings/povo_jp.pb
product/etc/CarrierSettings/proximus_be.pb
product/etc/CarrierSettings/publicmobile_ca.pb
product/etc/CarrierSettings/r_es.pb
product/etc/CarrierSettings/racc_es.pb
product/etc/CarrierSettings/rakuten_jp.pb
product/etc/CarrierSettings/reachmobileatt_us.pb
product/etc/CarrierSettings/redpocketatt_us.pb
product/etc/CarrierSettings/redpockettmo_us.pb
product/etc/CarrierSettings/rjio_in.pb
product/etc/CarrierSettings/rogers5g_ca.pb
product/etc/CarrierSettings/rogers_ca.pb
product/etc/CarrierSettings/rogerswpn_ca.pb
product/etc/CarrierSettings/salt_ch.pb
product/etc/CarrierSettings/salt_li.pb
product/etc/CarrierSettings/sasktel_ca.pb
product/etc/CarrierSettings/sfr_fr.pb
product/etc/CarrierSettings/shaw_ca.pb
product/etc/CarrierSettings/simba_sg.pb
product/etc/CarrierSettings/siminn_is.pb
product/etc/CarrierSettings/simple_us.pb
product/etc/CarrierSettings/simyo_es.pb
product/etc/CarrierSettings/singtel_sg.pb
product/etc/CarrierSettings/skinny_nz.pb
product/etc/CarrierSettings/skt_kr.pb
product/etc/CarrierSettings/sky_gb.pb
product/etc/CarrierSettings/skylo_zz.pb
product/etc/CarrierSettings/smart_ph.pb
product/etc/CarrierSettings/smartone_hk.pb
product/etc/CarrierSettings/smarty_gb.pb
product/etc/CarrierSettings/softbank_jp.pb
product/etc/CarrierSettings/solomobile_ca.pb
product/etc/CarrierSettings/spark_nz.pb
product/etc/CarrierSettings/spectrum_us.pb
product/etc/CarrierSettings/spmtelecom_pm.pb
product/etc/CarrierSettings/sprint_us.pb
product/etc/CarrierSettings/sprintprepaid_us.pb
product/etc/CarrierSettings/sprintwholesale_us.pb
product/etc/CarrierSettings/spusu_at.pb
product/etc/CarrierSettings/starhub_sg.pb
product/etc/CarrierSettings/stc_bh.pb
product/etc/CarrierSettings/stc_kw.pb
product/etc/CarrierSettings/stc_sa.pb
product/etc/CarrierSettings/strata_us.pb
product/etc/CarrierSettings/sunrise_ch.pb
product/etc/CarrierSettings/sweno_es.pb
product/etc/CarrierSettings/swisscom_ch.pb
product/etc/CarrierSettings/swisscom_li.pb
product/etc/CarrierSettings/talkmobile_gb.pb
product/etc/CarrierSettings/tango_lu.pb
product/etc/CarrierSettings/tango_us.pb
product/etc/CarrierSettings/tbaytel_ca.pb
product/etc/CarrierSettings/tchibo_de.pb
product/etc/CarrierSettings/tdc_dk.pb
product/etc/CarrierSettings/telcel_mx.pb
product/etc/CarrierSettings/telco_re.pb
product/etc/CarrierSettings/tele2_ee.pb
product/etc/CarrierSettings/tele2_lt.pb
product/etc/CarrierSettings/tele2_lv.pb
product/etc/CarrierSettings/tele2_se.pb
product/etc/CarrierSettings/telecable2_es.pb
product/etc/CarrierSettings/telekom_de.pb
product/etc/CarrierSettings/telekom_gr.pb
product/etc/CarrierSettings/telekom_hr.pb
product/etc/CarrierSettings/telekom_hu.pb
product/etc/CarrierSettings/telekom_mk.pb
product/etc/CarrierSettings/telekom_pl.pb
product/etc/CarrierSettings/telekom_ro.pb
product/etc/CarrierSettings/telekom_si.pb
product/etc/CarrierSettings/telekom_sk.pb
product/etc/CarrierSettings/telemach_si.pb
product/etc/CarrierSettings/telenet_be.pb
product/etc/CarrierSettings/telenor_dk.pb
product/etc/CarrierSettings/telenor_no.pb
product/etc/CarrierSettings/telenor_se.pb
product/etc/CarrierSettings/telia_dk.pb
product/etc/CarrierSettings/telia_ee.pb
product/etc/CarrierSettings/telia_fi.pb
product/etc/CarrierSettings/telia_lt.pb
product/etc/CarrierSettings/telia_no.pb
product/etc/CarrierSettings/telia_se.pb
product/etc/CarrierSettings/telstra_au.pb
product/etc/CarrierSettings/telus_ca.pb
product/etc/CarrierSettings/tesco_gb.pb
product/etc/CarrierSettings/three_dk.pb
product/etc/CarrierSettings/tim_it.pb
product/etc/CarrierSettings/tmobile_at.pb
product/etc/CarrierSettings/tmobile_cz.pb
product/etc/CarrierSettings/tmobile_nl.pb
product/etc/CarrierSettings/tmobile_us.pb
product/etc/CarrierSettings/tmomvno_nl.pb
product/etc/CarrierSettings/tmomvno_us.pb
product/etc/CarrierSettings/tracfoneatt_us.pb
product/etc/CarrierSettings/tracfonetmo_us.pb
product/etc/CarrierSettings/tracfoneverizon_us.pb
product/etc/CarrierSettings/truemove_th.pb
product/etc/CarrierSettings/truphone_us.pb
product/etc/CarrierSettings/truphone_zz.pb
product/etc/CarrierSettings/tstar_tw.pb
product/etc/CarrierSettings/turkcell_tr.pb
product/etc/CarrierSettings/turktelekom_tr.pb
product/etc/CarrierSettings/twm_tw.pb
product/etc/CarrierSettings/u264a_ca.pb
product/etc/CarrierSettings/u264a_us.pb
product/etc/CarrierSettings/u264ab_ca.pb
product/etc/CarrierSettings/u264ao_at.pb
product/etc/CarrierSettings/u264ap_at.pb
product/etc/CarrierSettings/ultra_us.pb
product/etc/CarrierSettings/umobile_my.pb
product/etc/CarrierSettings/unifi_my.pb
product/etc/CarrierSettings/unionwireless_us.pb
product/etc/CarrierSettings/uqmobile5gsa_jp.pb
product/etc/CarrierSettings/uqmobile_jp.pb
product/etc/CarrierSettings/uscc_us.pb
product/etc/CarrierSettings/verizon_us.pb
product/etc/CarrierSettings/verymobile_it.pb
product/etc/CarrierSettings/viaero_us.pb
product/etc/CarrierSettings/videotron_ca.pb
product/etc/CarrierSettings/vimla_se.pb
product/etc/CarrierSettings/vinaphone_vn.pb
product/etc/CarrierSettings/virgin_ca.pb
product/etc/CarrierSettings/virgin_gb.pb
product/etc/CarrierSettings/virgin_us.pb
product/etc/CarrierSettings/virgintelco_es.pb
product/etc/CarrierSettings/visible_us.pb
product/etc/CarrierSettings/visiblev_us.pb
product/etc/CarrierSettings/viti_pf.pb
product/etc/CarrierSettings/vodafone_au.pb
product/etc/CarrierSettings/vodafone_cz.pb
product/etc/CarrierSettings/vodafone_de.pb
product/etc/CarrierSettings/vodafone_es.pb
product/etc/CarrierSettings/vodafone_gb.pb
product/etc/CarrierSettings/vodafone_gr.pb
product/etc/CarrierSettings/vodafone_hu.pb
product/etc/CarrierSettings/vodafone_ie.pb
product/etc/CarrierSettings/vodafone_in.pb
product/etc/CarrierSettings/vodafone_it.pb
product/etc/CarrierSettings/vodafone_nl.pb
product/etc/CarrierSettings/vodafone_nz.pb
product/etc/CarrierSettings/vodafone_om.pb
product/etc/CarrierSettings/vodafone_pt.pb
product/etc/CarrierSettings/vodafone_qa.pb
product/etc/CarrierSettings/vodafone_ro.pb
product/etc/CarrierSettings/vodafone_tr.pb
product/etc/CarrierSettings/webbing_hk.pb
product/etc/CarrierSettings/windtre_it.pb
product/etc/CarrierSettings/xfinity2_us.pb
product/etc/CarrierSettings/xfinity_us.pb
product/etc/CarrierSettings/yes_my.pb
product/etc/CarrierSettings/yesss_at.pb
product/etc/CarrierSettings/yettel_bg.pb
product/etc/CarrierSettings/yettel_hu.pb
product/etc/CarrierSettings/yoigo_es.pb
product/etc/CarrierSettings/zain_bh.pb
product/etc/CarrierSettings/zain_kw.pb
product/etc/CarrierSettings/zain_sa.pb
product/etc/CarrierSettings/zeop_re.pb

File diff suppressed because it is too large Load Diff

153
akita/proprietary-files.txt Normal file
View File

@@ -0,0 +1,153 @@
# All blobs are extracted from Google factory images for each new ASB
# product partition
# AiAi
product/priv-app/AICorePrebuilt/AICorePrebuilt.apk;PRESIGNED
product/priv-app/DeviceIntelligenceNetworkPrebuilt-v.U.14.playstore/DeviceIntelligenceNetworkPrebuilt-v.U.14.playstore.apk;PRESIGNED
product/priv-app/DevicePersonalizationPrebuiltPixel2023-v.U.14.playstore/DevicePersonalizationPrebuiltPixel2023-v.U.14.playstore.apk;PRESIGNED
# Audio
product/etc/ambient/matcher_tah.leveldb
product/etc/firmware/music_detector.descriptor
product/etc/firmware/music_detector.sound_model
product/etc/firmware/music_detector.sound_model_2
product/etc/firmware/music_detector.sound_model_tflite
# Camera
product/priv-app/GoogleCamera/GoogleCamera.apk;OVERRIDES=Aperture,Camera2;PRESIGNED
# Camera extensions
product/etc/permissions/androidx.camera.extensions.impl.xml
product/priv-app/PixelCameraServices/PixelCameraServices.apk;PRESIGNED
# Felica
product/etc/felica/common.cfg
product/etc/felica/mfm.cfg
product/etc/felica/mfs.cfg
# Hardware info
product/etc/permissions/com.google.android.hardwareinfo.xml
product/framework/libhwinfo.jar
product/priv-app/HardwareInfo/HardwareInfo.apk;PRESIGNED
# Hotword
product/priv-app/HotwordEnrollmentOKGoogleFUSIONPro/HotwordEnrollmentOKGoogleFUSIONPro.apk;PRESIGNED
product/priv-app/HotwordEnrollmentXGoogleFUSIONPro/HotwordEnrollmentXGoogleFUSIONPro.apk;PRESIGNED
# IMS
product/etc/sysconfig/allowlist_com.shannon.imsservice.xml
# Permissions
product/etc/permissions/privapp-permissions-google-p.xml:product/etc/permissions/privapp-permissions-google-p-evolution.xml
product/etc/sysconfig/GoogleCamera_6gb_or_more_ram.xml
product/etc/sysconfig/google-hiddenapi-package-whitelist.xml
product/etc/sysconfig/nexus.xml
product/etc/sysconfig/pixel_experience_2017.xml
product/etc/sysconfig/pixel_experience_2018.xml
product/etc/sysconfig/pixel_experience_2019.xml
product/etc/sysconfig/pixel_experience_2019_midyear.xml
product/etc/sysconfig/pixel_experience_2020.xml
product/etc/sysconfig/pixel_experience_2020_midyear.xml
product/etc/sysconfig/pixel_experience_2021.xml
product/etc/sysconfig/pixel_experience_2021_midyear.xml
product/etc/sysconfig/pixel_experience_2022.xml
product/etc/sysconfig/pixel_experience_2022_midyear.xml
product/etc/sysconfig/pixel_experience_2023.xml
product/etc/sysconfig/pixel_experience_2023_midyear.xml
# Radio
product/etc/permissions/com.android.sdm.plugins.connmo.xml
product/etc/permissions/com.android.sdm.plugins.dcmo.xml
product/etc/permissions/com.android.sdm.plugins.diagmon.xml
product/lib64/libdmengine.so;SYMLINK=product/priv-app/DMService/lib/arm64/libdmengine.so
product/lib64/libdmjavaplugin.so;SYMLINK=product/priv-app/DMService/lib/arm64/libdmjavaplugin.so
product/priv-app/CarrierSettings_signed_45.0.591154042/CarrierSettings_signed_45.0.591154042.apk;PRESIGNED
product/priv-app/CarrierWifi/CarrierWifi.apk;PRESIGNED
product/priv-app/ConnMO/ConnMO.apk
product/priv-app/DCMO/DCMO.apk
product/priv-app/DMService/DMService.apk
product/priv-app/DiagMon/DiagMon.apk
product/priv-app/EuiccGoogle/EuiccGoogle.apk;PRESIGNED
product/priv-app/TetheringEntitlement/TetheringEntitlement.apk
# VZW
product/app/VZWAPNLib/VZWAPNLib.apk;PRESIGNED
product/etc/permissions/com.android.omadm.service.xml
product/etc/permissions/com.google.omadm.trigger.xml
product/etc/permissions/com.verizon.apn.xml
product/etc/permissions/com.verizon.services.xml
product/etc/permissions/features-verizon.xml
product/etc/sysconfig/allowlist_com.android.omadm.service.xml
product/priv-app/AppDirectedSMSService/AppDirectedSMSService.apk;PRESIGNED
product/priv-app/OemDmTrigger/OemDmTrigger.apk
product/priv-app/WfcActivation/WfcActivation.apk;PRESIGNED
# system_ext partition
# Camera extensions
system_ext/etc/permissions/com.google.android.camera.extensions.xml
system_ext/etc/permissions/com.google.android.camerax.extensions.xml
system_ext/framework/com.google.android.camera.extensions.jar
system_ext/framework/com.google.android.camerax.extensions.jar
# Display
system_ext/lib64/libpixeldisplaymanager_jni.so;SYMLINK=system_ext/priv-app/PixelDisplayService/lib/arm64/libpixeldisplaymanager_jni.so
system_ext/priv-app/PixelDisplayService/PixelDisplayService.apk
# Edge TPU
system_ext/bin/hw/vendor.google.edgetpu_app_service@1.0-service
system_ext/etc/init/vendor.google.edgetpu_app_service@1.0-service.rc
system_ext/etc/public.libraries-google.txt
system_ext/etc/vintf/manifest/vendor.google.edgetpu_app_service@1.0-service.xml
system_ext/lib64/com.google.edgetpu_app_service-V3-ndk.so
system_ext/lib64/com.google.edgetpu_vendor_service-V2-ndk.so
system_ext/lib64/libedgetpu_dba.google.so
# Hotword
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
system_ext/framework/com.android.hotwordenrollment.common.util.jar
# IMS
system_ext/etc/permissions/com.android.qns.xml
system_ext/etc/permissions/com.shannon.imsservice.xml
system_ext/etc/permissions/com.shannon.rcsservice.xml
system_ext/lib64/libmediaadaptor.so
system_ext/priv-app/PixelQualifiedNetworksService/PixelQualifiedNetworksService.apk
system_ext/priv-app/ShannonIms/ShannonIms.apk;PRESIGNED
system_ext/priv-app/ShannonRcs/ShannonRcs.apk;PRESIGNED
# Permissions
system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-evolution.xml
# Radio
system_ext/etc/default-permissions/default-permissions-euiccpixel.xml
system_ext/etc/permissions/com.android.omadm.radioconfig.xml
system_ext/etc/permissions/com.google.android.rilextension.xml
system_ext/etc/permissions/com.google.euiccpixel.permissions.xml
system_ext/etc/permissions/com.google.euiccpixel.xml
system_ext/etc/permissions/google-ril.xml
system_ext/framework/RadioConfigLib.jar
system_ext/framework/google-ril.jar
system_ext/priv-app/CarrierSetup/CarrierSetup.apk;PRESIGNED
system_ext/priv-app/ConnectivityThermalPowerManager/ConnectivityThermalPowerManager.apk
system_ext/priv-app/EuiccGoogleOverlay/EuiccGoogleOverlay.apk
system_ext/priv-app/EuiccSupportPixel-P23/EuiccSupportPixel-P23.apk;PRESIGNED
system_ext/priv-app/EuiccSupportPixel-P23/esim-full-v1-m40.img
system_ext/priv-app/EuiccSupportPixel-P23/esim-full-v1-m41.img
system_ext/priv-app/EuiccSupportPixel-P23/esim-full-v1.img
system_ext/priv-app/EuiccSupportPixelPermissions/EuiccSupportPixelPermissions.apk;PRESIGNED
system_ext/priv-app/RilConfigService/RilConfigService.apk
system_ext/priv-app/grilservice/grilservice.apk;PRESIGNED
system_ext/priv-app/ril-extension/ril-extension.apk;PRESIGNED
# RIL
system_ext/app/OemRilHookService/OemRilHookService.apk
system_ext/etc/permissions/com.samsung.slsi.telephony.oemril.xml
system_ext/etc/permissions/oemrilhook.xml
system_ext/framework/oemrilhook.jar
system_ext/priv-app/OemRilService/OemRilService.apk;PRESIGNED
# VZW
system_ext/etc/permissions/vzw_mvs_permissions.xml
system_ext/priv-app/MyVerizonServices/MyVerizonServices.apk;PRESIGNED

View File

@@ -0,0 +1,13 @@
# All firmware images are extracted from Google factory images for each new ASB
abl.img;AB
bl1.img;AB
bl2.img;AB
bl31.img;AB
gcf.img;AB
gsa.img;AB
gsa_bl1.img;AB
ldfw.img;AB
modem.img;AB
pbl.img;AB
tzsw.img;AB

82
akita/setup-makefiles.sh Executable file
View File

@@ -0,0 +1,82 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=akita
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}/../../../.."
export TARGET_ENABLE_CHECKELF=true
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}"
function vendor_imports() {
cat <<EOF >>"$1"
"device/google/akita",
"hardware/google/av",
"hardware/google/gchips",
"hardware/google/graphics/common",
"hardware/google/interfaces",
"hardware/google/pixel",
EOF
}
function lib_to_package_fixup_vendor_variants() {
if [ "$2" != "vendor" ]; then
return 1
fi
case "$1" in
com.google.edgetpu_app_service-V3-ndk | \
com.google.edgetpu_vendor_service-V2-ndk)
echo "$1-vendor"
;;
libprotobuf-cpp-full-21.12)
echo "libprotobuf-cpp-full"
;;
libprotobuf-cpp-lite-21.12)
echo "libprotobuf-cpp-lite"
;;
libacryl | \
libexynosv4l2) ;;
*)
return 1
;;
esac
}
function lib_to_package_fixup() {
lib_to_package_fixup_clang_rt_ubsan_standalone "$1" ||
lib_to_package_fixup_proto_3_9_1 "$1" ||
lib_to_package_fixup_vendor_variants "$@"
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
# Warning headers and guards
write_headers
write_makefiles "${MY_DIR}/proprietary-files.txt"
write_makefiles "${MY_DIR}/proprietary-files-carriersettings.txt"
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt"
append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"
# Finish
write_footers

1029
akita/skip-files-vendor.txt Normal file

File diff suppressed because it is too large Load Diff

16
akita/vendor.prop Normal file
View File

@@ -0,0 +1,16 @@
# DRM
drm.service.enabled=true
media.mediadrmservice.enable=true
# Fingerprint
ro.vendor.fingerprint.ta.name=g7a.app
# Radio
persist.vendor.ril.ecc.use.xml=1
persist.vendor.ril.support_nr_ds=1
persist.vendor.ril.use_radio_hal=2.1
ro.vendor.config.build_carrier=europen
vendor.rild.libpath=libsitril.so
# SSR
vendor.debug.ssrdump.type=sscoredump

View File

@@ -55,7 +55,7 @@ PRODUCT_COPY_FILES += \
device/google/akita/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/waves_preset.mps
# userdebug specific
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/akita/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/BLUETOOTH.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.mods \
device/google/akita/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSFREE.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.mods \

View File

@@ -14,7 +14,7 @@
# limitations under the License.
#
PRODUCT_RELEASE_CONFIG_MAPS += vendor/google_devices/release/phones/release_config_map.mk
PRODUCT_RELEASE_CONFIG_MAPS += $(wildcard vendor/google_devices/release/phones/pixel_2024_midyear/release_config_map.mk)
TARGET_KERNEL_DIR ?= device/google/akita-kernel
TARGET_BOARD_KERNEL_HEADERS := device/google/akita-kernel/kernel-headers
@@ -241,7 +241,7 @@ PRODUCT_PRODUCT_PROPERTIES += \
ro.support_one_handed_mode=true
# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=295006 \
persist.bluetooth.bqr.vnd_quality_mask=29 \
@@ -362,7 +362,7 @@ PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.udfps.auto_exposure_compensation_supported=true
# Fingerprint Auth Filter
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.udfps.auth_filter.log_all_coverages=true \
persist.vendor.udfps.auth_filter.data_collection_enabled=false
@@ -385,8 +385,15 @@ PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.vibrator.hal.context.settlingtime=5000
# Increment the SVN for any official public releases
ifdef RELEASE_SVN_AKITA
TARGET_SVN ?= $(RELEASE_SVN_AKITA)
else
# Set this for older releases that don't use build flag
TARGET_SVN ?= 19
endif
PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.build.svn=9
ro.vendor.build.svn=$(TARGET_SVN)
# Keyboard height ratio and bottom padding in dp for portrait mode
PRODUCT_PRODUCT_PROPERTIES += \

11
device-evolution.mk Normal file
View File

@@ -0,0 +1,11 @@
#
# Copyright (C) 2024 The Evolution X Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-evolution
# Udfps
TARGET_HAS_UDFPS += true

50
device-lineage.mk Normal file
View File

@@ -0,0 +1,50 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
# ANGLE - Almost Native Graphics Layer Engine
PRODUCT_PACKAGES += \
ANGLE
# EUICC
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.euicc.mep.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.mep.xml \
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml
PRODUCT_PACKAGES += \
EuiccSupportPixelOverlay
# Kernel
TARGET_PREBUILT_KERNEL := device/google/akita-kernel/Image.lz4
# wireless_charger HAL service
include device/google/gs-common/wireless_charger/wireless_charger.mk
# Build necessary packages for vendor
# Codec2
PRODUCT_PACKAGES += \
libexynosv4l2
# Fingerprint
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
# Graphics
PRODUCT_PACKAGES += \
libEGL_angle \
libGLESv1_CM_angle \
libGLESv2_angle
# Identity credential
PRODUCT_PACKAGES += \
android.hardware.identity_credential.xml
# Sensors
PRODUCT_PACKAGES += \
sensors.dynamic_sensor_hal

11
evolution.dependencies Normal file
View File

@@ -0,0 +1,11 @@
[
{
"repository": "device_google_zuma",
"target_path": "device/google/zuma"
},
{
"repository": "device/google/akita-kernel",
"target_path": "device/google/akita-kernel",
"remote": "aosp-akita"
}
]

13
extract-files.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
MY_DIR="$(cd "$(dirname "${0}")"; pwd -P)"
"${MY_DIR}/akita/extract-files.sh" "$@"

34
lineage_akita.mk Normal file
View File

@@ -0,0 +1,34 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit some common Evolution X stuff.
TARGET_DISABLE_EPPE := true
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Inherit device configuration
$(call inherit-product, device/google/akita/aosp_akita.mk)
$(call inherit-product, device/google/zuma/lineage_common.mk)
$(call inherit-product, device/google/zuma/evolution_common.mk)
include device/google/akita/akita/device-lineage.mk
include device/google/akita/akita/device-evolution.mk
# Device identifier. This must come after all inclusions
PRODUCT_BRAND := google
PRODUCT_MODEL := Pixel 8a
PRODUCT_NAME := lineage_akita
# Boot animation
TARGET_SCREEN_HEIGHT := 2400
TARGET_SCREEN_WIDTH := 1080
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_PRODUCT=akita \
PRIVATE_BUILD_DESC="akita-user 14 AP2A.240905.003.A1 12234140 release-keys"
BUILD_FINGERPRINT := google/akita/akita:14/AP2A.240905.003.A1/12234140:user/release-keys
$(call inherit-product, vendor/google/akita/akita-vendor.mk)

View File

@@ -13,7 +13,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_SOONG_NAMESPACES += \
device/google/akita/location/gnssd
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/akita/location/gnssd/release/gps.cfg:vendor/etc/gnss/gps.cfg
PRODUCT_VENDOR_PROPERTIES += \

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2024 The Evolution X Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Android version screen, build maintainer -->
<string name="build_maintainer_summary" translatable="false">Oscar Mariscal</string>
<string name="build_maintainer_donate_url" translatable="false">https://PayPal.me/osmjr1019</string>
</resources>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 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.
-->
<resources>
<integer name="config_fingerprintMaxTemplatesPerUser">4</integer>
<!-- IWLAN-->
<string name="config_qualified_networks_service_package">com.android.qns</string>
</resources>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2019, The LineageOS 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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether device has screen with higher aspect ratio -->
<bool name="config_haveHigherAspectRatioScreen">true</bool>
<!-- Whether the device supports wireless charging or not -->
<bool name="config_deviceSupportsWirelessCharging">true</bool>
</resources>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- An array of triplets made of (camera ID, approximate zoom ratio, exact zoom ratio).
These values will be added to the lens selector if one or more cameras uses the
multi-camera API to let the user select which lens to use.
It's highly recommended to leave config_enableAuxCameras to false, since with
multi-camera API you only use a single camera device for all sensors.
You may enable it if you need auxiliary camera devices for a set of cameras on one
of the device's side (e.g. logical main back camera but multiple physical camera
devices on front), in that case if a main device side's lens is referenced here
all the auxiliary camera devices of that side will be ignored.
You may be able to get the exact zoom ratio needed to trigger the lens switch from
your stock camera app and observing the zoom ratio it sets with the following command:
adb shell dumpsys media.camera | grep 'android.control.zoomRatio' -1
Example for Google Pixel 7 Pro's back camera configuration:
<string-array name="config_logicalZoomRatios">
<item>0</item> <item>0.5</item> <item>0.55632502</item>
<item>0</item> <item>2.0</item> <item>2.0</item>
<item>0</item> <item>5.0</item> <item>5.0</item>
</string-array>
-->
<string-array name="config_logicalZoomRatios">
<item>0</item> <item>0.5</item> <item>0.53060198</item>
<item>0</item> <item>2.0</item> <item>2.0</item>
</string-array>
</resources>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 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.
-->
<resources>
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">true</bool>
</resources>

View File

@@ -129,11 +129,6 @@
<!-- boolean indicating whether or not to disable shutdown idle instance timer in the bridged mode when connected to a power source -->
<bool translatable="false" name ="config_wifiFrameworkSoftApDisableBridgedModeShutdownIdleInstanceWhenCharging">true</bool>
<!-- Indicate whether the verbose logging is always on -->
<!-- 0: verbose logging controlled by user
1: verbose logging on by default for userdebug
2: verbose logging on by default for all builds -->
<integer translatable="false" name="config_wifiVerboseLoggingAlwaysOnLevel">1</integer>
<!-- Boolean indicating whether DTIM multiplier configuration is enabled. DTIM multiplier value
is when the system is in the suspended mode -->
<bool translatable="false" name="config_wifiDtimMultiplierConfigEnabled">true</bool>

View File

@@ -1,30 +0,0 @@
# Copyright (C) 2009 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)
# HAL module implementation stored in
# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware>.so
include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
LOCAL_SRC_FILES := sensors_dummy.c
LOCAL_MODULE := sensors.akita
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
LOCAL_PROPRIETARY_MODULE := true
include $(BUILD_SHARED_LIBRARY)

View File

@@ -1,409 +0,0 @@
/*
* Copyright (C) 2009 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.
*/
/* this implements a sensors hardware library for the Android emulator.
* the following code should be built as a shared library that will be
* placed into /system/lib/hw/sensors.goldfish.so
*
* it will be loaded by the code in hardware/libhardware/hardware.c
* which is itself called from com_android_server_SensorService.cpp
*/
#define SENSORS_SERVICE_NAME "sensors"
#define LOG_TAG "Dummy_Sensors"
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <log/log.h>
#include <cutils/sockets.h>
#include <hardware/sensors.h>
#include <pthread.h>
#if 0
#define D(...) ALOGD(__VA_ARGS__)
#else
#define D(...) ((void)0)
#endif
#define E(...) ALOGE(__VA_ARGS__)
/** SENSOR IDS AND NAMES
**/
#define MAX_NUM_SENSORS 8
#define SUPPORTED_SENSORS ((1<<MAX_NUM_SENSORS)-1)
#define ID_BASE SENSORS_HANDLE_BASE
#define ID_ACCELERATION (ID_BASE+0)
#define ID_MAGNETIC_FIELD (ID_BASE+1)
#define ID_ORIENTATION (ID_BASE+2)
#define ID_TEMPERATURE (ID_BASE+3)
#define ID_PROXIMITY (ID_BASE+4)
#define ID_LIGHT (ID_BASE+5)
#define ID_PRESSURE (ID_BASE+6)
#define ID_HUMIDITY (ID_BASE+7)
#define SENSORS_ACCELERATION (1 << ID_ACCELERATION)
#define SENSORS_MAGNETIC_FIELD (1 << ID_MAGNETIC_FIELD)
#define SENSORS_ORIENTATION (1 << ID_ORIENTATION)
#define SENSORS_TEMPERATURE (1 << ID_TEMPERATURE)
#define SENSORS_PROXIMITY (1 << ID_PROXIMITY)
#define SENSORS_LIGHT (1 << ID_LIGHT)
#define SENSORS_PRESSURE (1 << ID_PRESSURE)
#define SENSORS_HUMIDITY (1 << ID_HUMIDITY)
#define ID_CHECK(x) ((unsigned)((x) - ID_BASE) < MAX_NUM_SENSORS)
#define SENSORS_LIST \
SENSOR_(ACCELERATION,"acceleration") \
SENSOR_(MAGNETIC_FIELD,"magnetic-field") \
SENSOR_(ORIENTATION,"orientation") \
SENSOR_(TEMPERATURE,"temperature") \
SENSOR_(PROXIMITY,"proximity") \
SENSOR_(LIGHT, "light") \
SENSOR_(PRESSURE, "pressure") \
SENSOR_(HUMIDITY, "humidity")
static const struct {
const char* name;
int id; } _sensorIds[MAX_NUM_SENSORS] =
{
#define SENSOR_(x,y) { y, ID_##x },
SENSORS_LIST
#undef SENSOR_
};
static const char*
_sensorIdToName( int id )
{
int nn;
for (nn = 0; nn < MAX_NUM_SENSORS; nn++)
if (id == _sensorIds[nn].id)
return _sensorIds[nn].name;
return "<UNKNOWN>";
}
static int
_sensorIdFromName( const char* name )
{
int nn;
if (name == NULL)
return -1;
for (nn = 0; nn < MAX_NUM_SENSORS; nn++)
if (!strcmp(name, _sensorIds[nn].name))
return _sensorIds[nn].id;
return -1;
}
/* return the current time in nanoseconds */
static int64_t now_ns(void) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
}
/** SENSORS POLL DEVICE
**
** This one is used to read sensor data from the hardware.
** We implement this by simply reading the data from the
** emulator through the QEMUD channel.
**/
typedef struct SensorDevice {
struct sensors_poll_device_1 device;
sensors_event_t sensors[MAX_NUM_SENSORS];
uint32_t pendingSensors;
int64_t timeStart;
int64_t timeOffset;
uint32_t active_sensors;
int fd;
pthread_mutex_t lock;
} SensorDevice;
/* Grab the file descriptor to the emulator's sensors service pipe.
* This function returns a file descriptor on success, or -errno on
* failure, and assumes the SensorDevice instance's lock is held.
*
* This is needed because set_delay(), poll() and activate() can be called
* from different threads, and poll() is blocking.
*
* 1) On a first thread, de-activate() all sensors first, then call poll(),
* which results in the thread blocking.
*
* 2) On a second thread, slightly later, call set_delay() then activate()
* to enable the acceleration sensor.
*
* The system expects this to unblock the first thread which will receive
* new sensor events after the activate() call in 2).
*
* This cannot work if both threads don't use the same connection.
*
* TODO(digit): This protocol is brittle, implement another control channel
* for set_delay()/activate()/batch() when supporting HAL 1.3
*/
static int sensor_device_get_fd_locked(SensorDevice* dev) {
/* Create connection to service on first call */
if (dev->fd < 0) {
int ret = -errno;
E("%s: Could not open connection to service: %s", __FUNCTION__,
strerror(-ret));
return ret;
}
return dev->fd;
}
/* Pick up one pending sensor event. On success, this returns the sensor
* id, and sets |*event| accordingly. On failure, i.e. if there are no
* pending events, return -EINVAL.
*
* Note: The device's lock must be acquired.
*/
static int sensor_device_pick_pending_event_locked(SensorDevice* d,
sensors_event_t* event)
{
uint32_t mask = SUPPORTED_SENSORS & d->pendingSensors;
if (mask) {
uint32_t i = 31 - __builtin_clz(mask);
pthread_mutex_lock(&d->lock);
d->pendingSensors &= ~(1U << i);
*event = d->sensors[i];
event->sensor = i;
event->version = sizeof(*event);
pthread_mutex_unlock(&d->lock);
D("%s: %d [%f, %f, %f]", __FUNCTION__,
i,
event->data[0],
event->data[1],
event->data[2]);
return i;
}
E("No sensor to return!!! pendingSensors=0x%08x", d->pendingSensors);
// we may end-up in a busy loop, slow things down, just in case.
usleep(1000);
return -EINVAL;
}
static int sensor_device_close(struct hw_device_t* dev0)
{
SensorDevice* dev = (void*)dev0;
// Assume that there are no other threads blocked on poll()
if (dev->fd >= 0) {
close(dev->fd);
dev->fd = -1;
}
pthread_mutex_destroy(&dev->lock);
free(dev);
return 0;
}
/* Return an array of sensor data. This function blocks until there is sensor
* related events to report. On success, it will write the events into the
* |data| array, which contains |count| items. The function returns the number
* of events written into the array, which shall never be greater than |count|.
* On error, return -errno code.
*
* Note that according to the sensor HAL [1], it shall never return 0!
*
* [1] http://source.android.com/devices/sensors/hal-interface.html
*/
static int sensor_device_poll(struct sensors_poll_device_t *dev0,
sensors_event_t* data, int count)
{
return -EIO;
}
static int sensor_device_activate(struct sensors_poll_device_t *dev0,
int handle,
int enabled)
{
SensorDevice* dev = (void*)dev0;
D("%s: handle=%s (%d) enabled=%d", __FUNCTION__,
_sensorIdToName(handle), handle, enabled);
/* Sanity check */
if (!ID_CHECK(handle)) {
E("%s: bad handle ID", __FUNCTION__);
return -EINVAL;
}
/* Exit early if sensor is already enabled/disabled. */
uint32_t mask = (1U << handle);
uint32_t sensors = enabled ? mask : 0;
pthread_mutex_lock(&dev->lock);
uint32_t active = dev->active_sensors;
uint32_t new_sensors = (active & ~mask) | (sensors & mask);
uint32_t changed = active ^ new_sensors;
if (changed)
dev->active_sensors = new_sensors;
pthread_mutex_unlock(&dev->lock);
return 0;
}
static int sensor_device_default_flush(
struct sensors_poll_device_1* dev0,
int handle) {
SensorDevice* dev = (void*)dev0;
D("%s: handle=%s (%d)", __FUNCTION__,
_sensorIdToName(handle), handle);
/* Sanity check */
if (!ID_CHECK(handle)) {
E("%s: bad handle ID", __FUNCTION__);
return -EINVAL;
}
pthread_mutex_lock(&dev->lock);
dev->sensors[handle].version = META_DATA_VERSION;
dev->sensors[handle].type = SENSOR_TYPE_META_DATA;
dev->sensors[handle].sensor = 0;
dev->sensors[handle].timestamp = 0;
dev->sensors[handle].meta_data.what = META_DATA_FLUSH_COMPLETE;
dev->pendingSensors |= (1U << handle);
pthread_mutex_unlock(&dev->lock);
return 0;
}
static int sensor_device_set_delay(struct sensors_poll_device_t *dev0,
int handle __unused,
int64_t ns)
{
return 0;
}
static int sensor_device_default_batch(
struct sensors_poll_device_1* dev,
int sensor_handle,
int flags,
int64_t sampling_period_ns,
int64_t max_report_latency_ns) {
return sensor_device_set_delay(dev, sensor_handle, sampling_period_ns);
}
/** MODULE REGISTRATION SUPPORT
**
** This is required so that hardware/libhardware/hardware.c
** will dlopen() this library appropriately.
**/
/*
* the following is the list of all supported sensors.
* this table is used to build sSensorList declared below
* according to which hardware sensors are reported as
* available from the emulator (see get_sensors_list below)
*
* note: numerical values for maxRange/resolution/power for
* all sensors but light, pressure and humidity were
* taken from the reference AK8976A implementation
*/
static const struct sensor_t sSensorListInit[] = {
{ .name = "Accelerometer",
.vendor = "The Android Open Source Project",
.version = 1,
.handle = ID_ACCELERATION,
.type = SENSOR_TYPE_ACCELEROMETER,
.maxRange = 2.8f,
.resolution = 1.0f/4032.0f,
.power = 3.0f,
.minDelay = 10000,
.maxDelay = 60 * 1000 * 1000,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
.stringType = 0,
.requiredPermission = 0,
.flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {}
},
};
static struct sensor_t sSensorList[1];
static int sensors__get_sensors_list(struct sensors_module_t* module __unused,
struct sensor_t const** list)
{
*list = sSensorList;
return 0;
}
static int
open_sensors(const struct hw_module_t* module,
const char* name,
struct hw_device_t* *device)
{
int status = -EINVAL;
D("%s: name=%s", __FUNCTION__, name);
if (!strcmp(name, SENSORS_HARDWARE_POLL)) {
SensorDevice *dev = malloc(sizeof(*dev));
memset(dev, 0, sizeof(*dev));
dev->device.common.tag = HARDWARE_DEVICE_TAG;
dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_3;
dev->device.common.module = (struct hw_module_t*) module;
dev->device.common.close = sensor_device_close;
dev->device.poll = sensor_device_poll;
dev->device.activate = sensor_device_activate;
dev->device.setDelay = sensor_device_set_delay;
// Version 1.3-specific functions
dev->device.batch = sensor_device_default_batch;
dev->device.flush = sensor_device_default_flush;
dev->fd = -1;
pthread_mutex_init(&dev->lock, NULL);
*device = &dev->device.common;
status = 0;
}
return status;
}
static struct hw_module_methods_t sensors_module_methods = {
.open = open_sensors
};
struct sensors_module_t HAL_MODULE_INFO_SYM = {
.common = {
.tag = HARDWARE_MODULE_TAG,
.version_major = 1,
.version_minor = 0,
.id = SENSORS_HARDWARE_MODULE_ID,
.name = "Dummy SENSORS Module",
.author = "The Android Open Source Project",
.methods = &sensors_module_methods,
},
.get_sensors_list = sensors__get_sensors_list
};

1
sepolicy/.gitupstream Normal file
View File

@@ -0,0 +1 @@
https://android.googlesource.com/device/google/akita-sepolicy

4
sepolicy/OWNERS Normal file
View File

@@ -0,0 +1,4 @@
include device/google/gs-common:/sepolicy/OWNERS
adamshih@google.com

View File

@@ -0,0 +1 @@
/vendor/bin/hw/vendor\.google\.aam-service u:object_r:hal_aam_exec:s0

6
sepolicy/aam/hal_aam.te Normal file
View File

@@ -0,0 +1,6 @@
type hal_aam, domain;
type hal_aam_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_aam)
add_service(hal_aam, hal_aam_service)
binder_call(hal_aam, servicemanager);

1
sepolicy/aam/service.te Normal file
View File

@@ -0,0 +1 @@
type hal_aam_service, service_manager_type, hal_service_type;

View File

@@ -0,0 +1 @@
vendor.google.aam.IAam/default u:object_r:hal_aam_service:s0

View File

@@ -0,0 +1,5 @@
# sepolicy exclusively for akita.
BOARD_SEPOLICY_DIRS += device/google/akita/sepolicy/aam
BOARD_SEPOLICY_DIRS += device/google/akita/sepolicy/vendor
BOARD_SEPOLICY_DIRS += device/google/akita/sepolicy/tracking_denials
BOARD_SEPOLICY_DIRS += device/google/akita/sepolicy/radio

1
sepolicy/radio/radio.te Normal file
View File

@@ -0,0 +1 @@
allow radio scheduling_policy_service:service_manager find;

View File

@@ -0,0 +1,2 @@
This folder stores known errors detected by PTS. Be sure to remove relevant
files to reproduce error log on latest ROMs.

View File

@@ -0,0 +1 @@
system_suspend sysfs dir b/305600876

2
sepolicy/vendor/README.txt vendored Normal file
View File

@@ -0,0 +1,2 @@
This folder holds sepolicy exclusively for one device. For example, genfs_contexts
paths that are affected by device tree.

2
sepolicy/vendor/file.te vendored Normal file
View File

@@ -0,0 +1,2 @@
type sysfs_modem_state, sysfs_type, fs_type;
type sysfs_gps, sysfs_type, fs_type;

20
sepolicy/vendor/file_contexts vendored Normal file
View File

@@ -0,0 +1,20 @@
# Bluetooth
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
# GPS
/dev/gnss_ipc u:object_r:vendor_gnss_device:s0
/dev/gnss_boot u:object_r:vendor_gnss_device:s0
/dev/gnss_dump u:object_r:vendor_gnss_device:s0
/vendor/bin/hw/gnssd u:object_r:gnssd_exec:s0
/vendor/bin/hw/sctd u:object_r:sctd_exec:s0
/vendor/bin/hw/swcnd u:object_r:swcnd_exec:s0
/vendor/bin/hw/spad u:object_r:spad_exec:s0
/vendor/bin/hw/android.hardware.gnss-service u:object_r:hal_gnss_default_exec:s0
/vendor/bin/hw/android.hardware.gnss-service.pixel u:object_r:hal_gnss_pixel_exec:s0
# gnss/gps data/log files
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0

60
sepolicy/vendor/genfs_contexts vendored Normal file
View File

@@ -0,0 +1,60 @@
# Haptics
genfscon sysfs /devices/platform/10c80000.hsi2c/i2c-0/0-0043 u:object_r:sysfs_vibrator:s0
# WLC
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061 u:object_r:sysfs_wlc:s0
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061/power_supply u:object_r:sysfs_batteryinfo:s0
# System Suspend
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061/power_supply/wireless/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-0/0-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-1/1-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-2/2-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-3/3-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-4/4-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-5/5-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-6/6-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-8/8-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-10/10-0069/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-0/0-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-1/1-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-2/2-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-3/3-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-4/4-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-5/5-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-6/6-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-8/8-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-10/10-0036/wakeup/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-0/0-0025/power_supply/tcpm-source-psy-0-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-1/1-0025/power_supply/tcpm-source-psy-1-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-2/2-0025/power_supply/tcpm-source-psy-2-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-3/3-0025/power_supply/tcpm-source-psy-3-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-4/4-0025/power_supply/tcpm-source-psy-4-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-5/5-0025/power_supply/tcpm-source-psy-5-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-6/6-0025/power_supply/tcpm-source-psy-6-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0025/power_supply/tcpm-source-psy-7-0025/wakeup u:object_r:sysfs_wakeup:s0
# already in zuma-sepolicy/vendor/genfs_contexts
# genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-8/8-0025/power_supply/tcpm-source-psy-8-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0025/power_supply/tcpm-source-psy-9-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0036/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0069/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0036/power_supply/maxfg/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0069/power_supply/dc/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0069/power_supply/main-charger/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0
# gps coredump node
genfscon sysfs /devices/platform/gnssif/coredump u:object_r:sysfs_gps:s0
# modem state
genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0

27
sepolicy/vendor/gnssd.te vendored Normal file
View File

@@ -0,0 +1,27 @@
type gnssd, domain;
type gnssd_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(gnssd);
# Allow gnssd to access rild
binder_call(gnssd, rild);
binder_call(gnssd, hwservicemanager)
allow gnssd hal_exynos_rild_hwservice:hwservice_manager find;
allow gnssd radio_device:chr_file rw_file_perms;
# Allow gnssd to acess gnss device
allow gnssd vendor_gnss_device:chr_file rw_file_perms;
allow gnssd vendor_gps_file:dir create_dir_perms;
allow gnssd vendor_gps_file:file create_file_perms;
allow gnssd vendor_gps_file:fifo_file create_file_perms;
# Allow gnssd to obtain wakelock
wakelock_use(gnssd)
# Allow a base set of permissions required for network access.
net_domain(gnssd);
# Allow gnssd to get boot complete
get_prop(gnssd, bootanim_system_prop)
allow gnssd sysfs_soc:file r_file_perms;
allow gnssd sysfs_gps:file rw_file_perms;

2
sepolicy/vendor/grilservice_app.te vendored Normal file
View File

@@ -0,0 +1,2 @@
allow grilservice_app hal_radio_ext_service:service_manager find;
binder_call(grilservice_app, hal_radio_ext)

9
sepolicy/vendor/hal_gnss_default.te vendored Normal file
View File

@@ -0,0 +1,9 @@
allow hal_gnss_default fwk_sensor_service:service_manager find;
allow hal_gnss_default gnssd:unix_stream_socket connectto;
allow hal_gnss_default vendor_gps_file:dir create_dir_perms;
allow hal_gnss_default vendor_gps_file:file create_file_perms;
allow hal_gnss_default vendor_gps_file:fifo_file create_file_perms;
allow hal_gnss_default sysfs_gps:file rw_file_perms;
#Read GPS property
get_prop(hal_gnss_default, vendor_gps_prop)

13
sepolicy/vendor/hal_gnss_pixel.te vendored Normal file
View File

@@ -0,0 +1,13 @@
type hal_gnss_pixel, domain;
hal_server_domain(hal_gnss_pixel, hal_gnss)
type hal_gnss_pixel_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_gnss_pixel)
#IPC between pixel and vendor HAL
binder_call(hal_gnss_pixel, hal_gnss_default)
binder_call(hal_gnss_default, hal_gnss_pixel)
#Read modem state /sys/bus/platform/devices/cpif/modem_state
allow hal_gnss_pixel sysfs_modem_state:file r_file_perms;
allow hal_gnss_pixel sysfs_gps:file rw_file_perms;

View File

@@ -0,0 +1 @@
r_dir_file(hal_power_stats_default, vendor_gps_file)

1
sepolicy/vendor/rild.te vendored Normal file
View File

@@ -0,0 +1 @@
binder_call(rild, gnssd)

3
sepolicy/vendor/sctd.te vendored Normal file
View File

@@ -0,0 +1,3 @@
type sctd, domain;
type sctd_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(sctd);

1
sepolicy/vendor/service_contexts vendored Normal file
View File

@@ -0,0 +1 @@
android.hardware.gnss.IGnss/vendor u:object_r:hal_gnss_service:s0

2
sepolicy/vendor/servicemanager.te vendored Normal file
View File

@@ -0,0 +1,2 @@
binder_call(servicemanager, hal_gnss_pixel)
binder_call(servicemanager, hal_gnss_default)

3
sepolicy/vendor/spad.te vendored Normal file
View File

@@ -0,0 +1,3 @@
type spad, domain;
type spad_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(spad);

3
sepolicy/vendor/swcnd.te vendored Normal file
View File

@@ -0,0 +1,3 @@
type swcnd, domain;
type swcnd_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(swcnd);

5
sepolicy/vendor/vendor_init.te vendored Normal file
View File

@@ -0,0 +1,5 @@
# Camera vendor property
set_prop(vendor_init, vendor_camera_debug_prop)
# gps vendor property
set_prop(vendor_init, vendor_gps_prop)