2903 Commits

Author SHA1 Message Date
Michael Bestas
2f0b5602a6 gs-common: sepolicy: Add some rules to be ignored
This will be used by the sepolicy dump scripts to exclude them from the
final output.

Change-Id: Ia6628a7a0fede6205586eaacf4b980a9f78ff27b
2025-12-10 04:03:00 +02:00
Michael Bestas
dffb54e5a3 gs-common: Orbital strike
Change-Id: I4eda94046518808d7913d1aab421c1d1882a02bd
2025-12-05 12:55:52 +02:00
Michael Bestas
387101ce7d Revert "Add .gitupstream"
This reverts commit a5b9a862ed.

Change-Id: Ibae7ae63e4ffe0aef4cd93c57c92e9e7e22117fc
2025-11-28 17:32:51 +02:00
Michael Bestas
c2459a6637 Revert "modem: Erase /data/vendor/slog"
This reverts commit 35f66e77be.

Reason for revert: Everyone's logs should be erased by now

Change-Id: I0958960a3516f667e0790fe534b0af47ba27a614
2025-11-28 16:44:08 +02:00
Michael Bestas
dc01f38334 gs-common: sepolicy: Remove rules that cause neverallows
Change-Id: Ib9336537e0d4c703e699852368eae2899647e6c5
2025-11-28 16:43:18 +02:00
Michael Bestas
b6ef1c38d7 gs-common: Remove usage of USE_AUDIO_HAL_AIDL flag
Change-Id: Idffe8b007f8d324f491a988faf8014ba863aa66b
2025-11-22 19:31:18 +02:00
Michael Bestas
1e2727a19e gs-common: Drop no longer used experiments
No longer present in BP3A.

Change-Id: I72c51a7e394ba2f17ec1c0f502d139525f22d3e4
2025-11-21 22:40:13 +02:00
Michael Bestas
18be34c88a gs-common: Update FCM for BP3A
Change-Id: Ibf29ac1632a708331a26f262eb23ece0f939d683
2025-11-21 22:40:13 +02:00
Michael Bestas
6c534de061 gs-common: Remove zuma HIDL audio configuration
Change-Id: I72c988fb23b7dece6cbc0b18b28a6b37fee4b896
2025-06-26 06:20:40 +03:00
Michael Bestas
6b78398240 gs-common: Remove RELEASE_PIXEL_AIDL_BATTERY_MITIGATION_HAL guard
This has been enabled since a while, remove the aconfig dependency.

Change-Id: I0282a6b4e7aa9f7b110974837917b19e5afde22b
2025-06-26 06:20:40 +03:00
Michael Bestas
797741c2bf gs-common: Drop pixelsystemservice sepolicy
We don't ship this app and it breaks the build since we are missing
its policies.

Change-Id: I136579fbd7c07de195b66b9f1e6b0fcb4bd3493a
2025-06-26 06:20:40 +03:00
Michael Bestas
02b9cc144c gs-common: Remove non-existent vendor includes
Change-Id: I1bc76430d30259984f4eb91907be61ef39646c27
2025-06-26 06:20:40 +03:00
Michael Bestas
0dbbbc376c gs-common: sepolicy: Import missing rules from BP2A
Change-Id: I70ebc8a2bce09d2590c24fc919b2804cef256568
2025-06-26 06:20:40 +03:00
Michael Bestas
edc3d90511 gs-common: Import wfc-pkt-router configuration from gs101
Change-Id: I929c92f633494ec22b7714d1efc58ccb68c2b861
2025-06-24 02:44:55 +03:00
Michael Bestas
22322941ea gs-common: Remove userdebug/eng configuration
Change-Id: Ie1e8b6bbebdfac97f8bc382e41c70cc8a32caf07
2025-06-23 19:29:31 +03:00
Michael Bestas
dc28234ecd gs-common: Update init scripts from BP2A
Change-Id: Ibb8d3715ec6cb9ebb5d89e116374d468dfcad826
2025-06-23 19:29:30 +03:00
Michael Bestas
eeb40af781 gs-common: Downgrade vendor.google.bluetooth_ext to match BP2A
Change-Id: I9b61349fe5aadd9b473a27c6866707fa8c07e942
2025-06-23 06:11:17 +03:00
Michael Bestas
e42f6f3d8e gs-common: Update FCM for 16
Change-Id: I8ee67a706412502088bec78b261080eb4cea9894
2025-06-23 06:11:14 +03:00
Michael Bestas
50929e081f Merge tag 'aml_tz6_351400020' into staging/lineage-23.0_merge-aml_tz6_351400020
aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
# eCi5AKCHAzJVFdsm++eJGXcPb6LbaKIGTQCcDiWODLyLOWCK64nt7tfCwTgUFCE=
# =3OQU
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar 18 02:18:39 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By Jaegeuk Kim (6) and others
# Via Android (Google) Code Review (55) and others
* tag 'aml_tz6_351400020': (74 commits)
  Fix comment
  Adjust the version set in manifest xml and matrix xml
  Add astd sepolicy to gs-common for P26 factory builds
  Allow tachyon service to make binder calls to gca
  display: add drm_atomic_state to debug-build bugreport
  init.pixel-perf.rc: Setup default rampup multiplier and util_est
  Allow write for restorecon
  Dump F2FS disk_map and UFS phy version
  Fix UFS err_stats
  Fix selinux permission denials
  move common init perf settings to gs_common
  Revert "Set up access control rule for aocxd"
  16KB: Move CopyEfsTest to device/google/gs-common
  Revert^2 "Add Bluetooth extension HAL - CCO"
  gs-common: wlc: add tx update permission for hal_googlebattery
  Revert "Add Bluetooth extension HAL - CCO"
  storage: fix userdata_exp.ai partition selinux error
  Revert "move common init perf settings to gs_common"
  insmod-sh: Allow writing to kmsg
  RamdumpService: Fix the SELinux errors from introducing Firebase Analytics.
  ...

 Conflicts:
	display/dump_pixel_display.mk

Change-Id: Iaa05ef7e62a7b8320f320ad4db482998863fe136
2025-06-23 05:14:52 +03:00
Michael Bestas
24c5f5467c gs-common: Introduce a common FCM
Change-Id: I343bfd4cce3132e87ae1465e4552d9a3316ec77d
2025-03-09 11:19:46 +02:00
Michael Bestas
c011de7d71 vibrator: Rename flags to avoid conflicts with prebuilts
felix still uses this but other pixels switched to prebuilt,
this confuses soong so just rename it for now.

Change-Id: I5f7f4f9b386533cf27e955f14faf3fddd2b43b5b
2025-03-09 11:19:10 +02:00
Michael Bestas
afe59287ff Merge tag 'android-15.0.0_r21' into staging/lineage-22.2_merge-android-15.0.0_r21
Android 15.0.0 Release 21 (BP1A.250305.020)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ8fKCAAKCRDorT+BmrEO
# eMs3AJ95J96e0Kv/3dVWOrkTI5HXZjn+7QCfT8gs70sr9lbjAIKOoMKAueJM8y0=
# =K75U
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Mar  5 05:50:32 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By timmyli (6) and others
# Via Android (Google) Code Review (65) and others
* tag 'android-15.0.0_r21': (87 commits)
  Revert "Add amm experiment."
  Reduce the trace instance irq_gia_google's buffer size
  Remove code that just re-enables IRQ and GIA events
  Add amm experiment.
  storage: add missing bug_map
  Add apf experiment.
  modem_svc: add modem_svc_sit to solve sepolicy conflicts arising from different device versions
  modem_svc: move shared_modem_platform related sepolicy to gs-common
  Add Intelligence rc
  Always include camera calibration tools in debug builds.
  Add kswapd experiment.
  Add Proc Vendor Sched Sepolicy Fix
  Add recovery support for perf experiments.
  Revert "Allow tachyon service to make binder calls to GCA"
  Allow tachyon service to make binder calls to GCA
  Add libg3a logging initrc files.
  Rename aocx.IAoc to aocx.IAoc/default to support stable AIDL
  dump_chip_info: dump more tables from chip-info driver
  Introduce interrupts module for debug and trace
  Revert^2 "gs-common: Move cpufreq perf settings to gs-common"
  ...

 Conflicts:
	aoc/aoc.mk
	camera/lyric.mk

Change-Id: Ifd45cd3aa7799789ded7db2b0f24207c39367067
2025-03-09 10:58:51 +02:00
Android Build Coastguard Worker
fb8021ba67 Snap for 13025264 from 3f842350d7 to mainline-tzdata6-release
Change-Id: Iea561daccd5edf37d16abe72bd7312abfbdeaad2
2025-02-06 14:21:03 -08:00
Treehugger Robot
3f842350d7 Merge "Fix comment" into main 2025-02-06 09:19:33 -08:00
Charlie Lin
be9f4c732e Merge "Add astd sepolicy to gs-common for P26 factory builds" into main 2025-02-05 20:28:46 -08:00
Jaegeuk Kim
9409c3382e Fix comment
Bug: 378120929
Flag: build.RELEASE_PIXEL_VENDOR_INTELLIGENCE_AID
Change-Id: I20b1fb2eb21d0db63c69d9eb30e89b0a824540f8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-02-05 20:13:18 -08:00
Martin Yan
8e57e75903 Merge "Adjust the version set in manifest xml and matrix xml" into main 2025-02-05 19:40:06 -08:00
Martin Yan
6e31d8db91 Adjust the version set in manifest xml and matrix xml
Bug: 361443653
Test: m and build pass
Flag: EXEMPT, this feature is related to CS which is controlled
      by com.android.bluetooth.flags.channel_sounding_in_stack
Change-Id: I2f2f46cfd15ce0104a6309c8032f7f4ef5ba267a
2025-02-05 09:00:52 +00:00
Treehugger Robot
340cf2f377 Merge "display: add drm_atomic_state to debug-build bugreport" into main 2025-02-04 08:05:49 -08:00
Treehugger Robot
7196fcdb48 Merge changes Ia03cddd6,I8e174e37,I159f5bcf into main
* changes:
  Allow write for restorecon
  Dump F2FS disk_map and UFS phy version
  Fix UFS err_stats
2025-02-03 08:58:52 -08:00
Charlie Lin
7f468a902f Add astd sepolicy to gs-common for P26 factory builds
Bug: 391090956
Bug: 393999182
Flag: EXEMPT bugFix
Test: Compile successful.
Change-Id: Idfcbf96a52326b613684b680676f5213136f2326
2025-02-03 11:13:52 +00:00
Dinesh Yadav
25b66183cf Allow tachyon service to make binder calls to gca
This permission is needed for tachyon service to call callbacks shared by clients of gxp/edgetpu device for tensor G5. As tachyon is present in pixel 6 where google_camera_app is not defined, I need to assign it here.

AVC Error seen when tachyon tries accessing GCA:
01-22 11:40:03.212  6987  6987 W com.google.edge: type=1400 audit(0.0:17): avc:  denied  { call } for  scontext=u:r:edgetpu_tachyon_server:s0 tcontext=u:r:google_camera_app:s0:c145,c256,c512,c768 tclass=binder permissive=0
01-23 07:12:26.424  4166  4166 W com.google.edge: type=1400 audit(0.0:254): avc:  denied  { call } for  scontext=u:r:edgetpu_tachyon_server:s0 tcontext=u:r:debug_camera_app:s0:c67,c257,c512,c768 tclass=binder permissive=0

Bug:391537620
Flag: EXEMPT updates device sepolicy only
Change-Id: I9dd78bd941b0de9057606409fd18632cc76f56b0
2025-02-02 20:02:52 -08:00
Taylor Nelms
7cbab2dea5 display: add drm_atomic_state to debug-build bugreport
AVC Error Log Justification:
[  157.933663] type=1400 audit(1738255720.900:459): avc:  denied  { read } for  comm="dump_pixel_disp" name="state" dev="debugfs" ino=105961 scontext=u:r:dump_pixel_display:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=0

Bug: 393355365
Test: `adb bugreport`, check for "DRM State" entry
Flag: EXEMPT bugfix
Change-Id: Ibbf3fe022863644ecc137ab28d3a2409e701e104
Signed-off-by: Taylor Nelms <tknelms@google.com>
2025-01-30 11:50:13 -05:00
Qais Yousef
5201b55858 init.pixel-perf.rc: Setup default rampup multiplier and util_est
Bug: 335874870
Flag: EXEMPT not supported for init.rc files
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I41f1235e8c6f1ec57af3962c2a6cbc9707444917
2025-01-28 17:45:04 +00:00
Piotr Klasa
5262751145 Merge "move common init perf settings to gs_common" into main 2025-01-28 03:12:07 -08:00
Jaegeuk Kim
b1072785ba Allow write for restorecon
[ 8345.125689] type=1400 audit(1737841652.160:245): avc:  denied  { write } for  comm="kworker/u16:2" path="/dev/block/sda34" dev="tmpfs" ino=1060 scontext=u:r:kernel:s0 tcontext=u:object_r:userdata_exp_block_device:s0 tclass=blk_file permissive=0

Bug: 361093433
Flag: EXEMPT bugfix
Change-Id: Ia03cddd6eebe9b8875bdbd1a8eb3a67f51269032
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-01-25 16:27:47 -08:00
Jaegeuk Kim
7bd70d06d7 Dump F2FS disk_map and UFS phy version
[   91.358748] type=1400 audit(1737771651.492:274): avc:  denied  { search } for  comm="dump_storage" name="f2fs" dev="proc" ino=4026532053 scontext=u:r:dump_storage:s0 tcontext=u:object_r:proc_f2fs:s0 tclass=dir permissive=0
[   49.564560] type=1400 audit(1737778106.496:153): avc:  denied  { read } for  comm="dump_storage" name="f2fs" dev="proc" ino=4026532053 scontext=u:r:dump_storage:s0 tcontext=u:object_r:proc_f2fs:s0 tclass=dir permissive=0
[   91.358930] type=1400 audit(1737771651.492:275): avc:  denied  { read } for  comm="dump_storage" name="phy_version" dev="sysfs" ino=109125 scontext=u:r:dump_storage:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
[   91.359249] type=1400 audit(1737771651.492:276): avc:  denied  { read } for  comm="dump_storage" name="phy_release_date" dev="sysfs" ino=109126 scontext=u:r:dump_storage:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 392193452
Flag: EXEMPT bugfix
Change-Id: I8e174e378064a94681f74a88ee13b4461527076a
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-01-24 20:28:24 -08:00
Jaegeuk Kim
6151bff500 Fix UFS err_stats
Bug: 392193452
Change-Id: I159f5bcfb8de1b33f46ba860b4436d1dfc6907f2
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-01-24 20:21:06 -08:00
Treehugger Robot
861f6bcf77 Merge "Revert "Set up access control rule for aocxd"" into main 2025-01-24 02:32:27 -08:00
Jaegeuk Kim
f329ce7a91 Fix selinux permission denials
[    9.280675] type=1400 audit(1737659534.344:11): avc:  denied  { mounton } for  comm="init" path="/data/vendor/intelligence" dev="dm-59" ino=490 scontext=u:r:init:s0 tcontext=u:object_r:intelligence_data_file:s0 tclass=dir permissive=0

Bug: 391452461
Flag: EXEMPT bugfix
Change-Id: I355c61bd2c5bb5af6d463cf84a3fc80093b16550
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-01-23 17:15:16 -08:00
Piotr Klasa
924237f464 move common init perf settings to gs_common
compared to ag/31352563 I did not transfer the settings for "write /sys/devices/system/cpu/cpuidle/current_governor teo", which caused the problem

Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default, verified all metrics that caused power regression in the previous commit on abtd

Bug: 335874870

Flag: EXEMPT not supported by this component yet
Change-Id: If340ce8e8d3f3493045077470f8aa5560f9b313e
2025-01-23 03:35:46 -08:00
Zheng Pan
728e059b69 Revert "Set up access control rule for aocxd"
Revert submission 31133794-aocx_sepolicy

Reason for revert: http://b/391697603 build break

Reverted changes: /q/submissionid:31133794-aocx_sepolicy

Change-Id: I602d3ba880931a045146f216075f7baca513f0f3
2025-01-22 14:59:23 -08:00
Treehugger Robot
55c62e18d3 Merge "16KB: Move CopyEfsTest to device/google/gs-common" into main 2025-01-22 11:34:44 -08:00
Vilas Bhat
a61947b1c5 16KB: Move CopyEfsTest to device/google/gs-common
Additional changes
1. Android.bp lint/formatting error was resolved.
2. The regex pattern on line 78 in CopyEfsTest.java:
"line.split("(?<![\\\\])\s+")" was updated to
"line.split("(?<![\\\\])\\s+")" to resolve a presubmit error as \s is a
special character in Java.
(see https://errorprone.info/bugpattern/MisleadingEscapedSpace)

Bug: 390502355
Test: atest CopyEfsTest for Pixel 8 & 9 targets
Flag: EXEMPT bugfix
Change-Id: Iebcda9859666ff595b50b8105b7e841591ba3c67
2025-01-22 18:00:37 +00:00
Martin Yan
8d6007f19c Merge "Revert^2 "Add Bluetooth extension HAL - CCO"" into main 2025-01-21 05:30:12 -08:00
Jerry Pai
894727003b Revert^2 "Add Bluetooth extension HAL - CCO"
This reverts commit 3e78c36e5f.

Reason for revert: build break
ERROR: files are incompatible: The following instances are in the device manifest but not specified in framework compatibility matrix: 
    vendor.google.bluetooth_ext.IBluetoothCco/default (@1)

Bug: 361443653
Change-Id: I59f325ad1d8af5fca54cc9bb8a6208c5c8c20939
2025-01-21 01:57:41 -08:00
Piotr Klasa
79b5c54ba8 Merge "Revert "move common init perf settings to gs_common"" into main 2025-01-21 01:27:07 -08:00
Enzo Liao
763de77705 Merge "RamdumpService: Fix the SELinux errors from introducing Firebase Analytics." into main 2025-01-21 00:34:02 -08:00
Martin Yan
d95ffea63b Merge "Revert "Add Bluetooth extension HAL - CCO"" into main 2025-01-20 22:36:41 -08:00
Treehugger Robot
6a42934470 Merge "gs-common: wlc: add tx update permission for hal_googlebattery" into main 2025-01-20 22:28:33 -08:00