Commit Graph

2200 Commits

Author SHA1 Message Date
Bruno Martins 8a4b0735be Revert "flo: sepolicy: Address hal_graphics_composer_default denials"
This reverts commit bac27239a4.

Reason for revert: 480fed5c24

Change-Id: I48ba8a6b189b00916a42a7488f0a81a1829036ff
2020-12-21 16:50:46 +01:00
Arne Coucheron 4218a1eb9e flo: media: Use media_codecs_google_video_le
It's better suited for low-end devices.

Change-Id: Ida6818173f17a25e4ae72750b5fd016c3858d2ea
2020-12-21 16:46:33 +01:00
Elektroschmock 7502ebc58a flo: Drop USE_DEVICE_SPECIFIC_CAMERA
Change-Id: I254a85b85380f53b105f01b33ff49a35d56214aa
2020-12-21 16:45:07 +01:00
Elektroschmock 2b5d8caee4 Revert "flo: Use mke2fs to create ext4 images"
* Not needed as of: https://review.lineageos.org/c/LineageOS/android_build/+/242400

This reverts commit 562129c58e.

Change-Id: I0127ed8fd9a97d2289dfd3c8dbb6571d64bb6eb3
2020-12-21 16:44:42 +01:00
Daniel Jarai 38d606e5d8 flo: conn_init: Remove unused file
Change-Id: I3271b250c084881997d7672845fa6d1494621e8b
(cherry picked from commit 6981cd1d0bef8272727dbf008dff0d6663331c7a)
2020-12-21 16:44:05 +01:00
surblazer 8a4ab089bc flo: Binderize Lights HAL
Change-Id: I35f9a4711cb96f03314f621b8675b1da0ba99f5c
2020-12-21 16:43:45 +01:00
Daniel Jarai d8c6d1aad3 flo: Move QCamera sockets from /data to /dev/socket/qcamera
Change-Id: I0241f6e0a3f56f0bbe34bb44997596d074efcec9
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:41:33 +01:00
Daniel Jarai 698082de71 flo: sensors: Move sensor sockets from /data to /dev/socket/sensors
Change-Id: I0e238d10cbaf7f9560f1993f03a8c9cc6c7e1195
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:39:12 +01:00
Daniel Jarai b496e07b28 flo: sensors: Run the sensor daemon as 'system' user/group instead of 'root'
This allows us to get rid of the dac_override SELinux rules, by applying
proper permissions to the files managed by the daemon. While at it, also
Treble-ized the location of said files.

Change-Id: I344b4c80412af0b22dc35da234ef3c9f88983761
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:38:00 +01:00
followmsi 787d022196 flo/deb: Allow adb root 2020-12-15 14:19:05 +01:00
Quallenauge 04ca9c855e flo: wifi: Disable WPA2 -> WPA3 upgrade.
Our device doesn't simply support sae.

Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
2020-12-15 11:57:52 +01:00
followmsi bc9e2b536c Revert "flo/deb: disable wlan PMF"
This reverts commit 32da607fe2.
2020-12-15 11:56:48 +01:00
followmsi bb8d21d0e9 flo: overlays: Drop GPS config
Moved to CarrierConfig
2020-12-14 15:44:11 +01:00
followmsi 517291bfbf flo: overlays: Add Pinner Service 2020-12-14 10:38:52 +01:00
followmsi 012c9abc15 flo: overlays: Add missing strings 2020-12-14 10:36:07 +01:00
Artem Borisov 5f5b5b4993 flo/deb: Enable some UX optimizations
* These were removed in 0570b23 and 3d4186f as I blamed them
  for UI performance degradation.
* Further testing shows that they actually reduce jank in some cases.

Change-Id: I6f3ae240366cc49e1a25d2f76ddd847ced0fb8f4
2020-12-13 16:18:19 +01:00
Bruno Martins 3555d2833a flo/deb: Kill legacy keystore
Legacy credential hash support was obsolete and got removed completely.
From now on all the devices need to rely on gatekeeper, which
in case of legacy devices should be the software implementation.

This fixes setting a lockscreen PIN/password/pattern.

Ref: a758727c96

Change-Id: I020d1807db13b73f9990ac3704eadba49b65ee5c
2020-12-13 16:14:28 +01:00
Francescodario Cuzzocrea 01a2d103fc flo: sepolicy: allow vold to write read_ahead_kb
I Binder:254_3: type=1400 audit(0.0:104): avc: denied { write } for name="read_ahead_kb" dev="sysfs" ino=17470 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_mmc_host:s0 tclass=file permissive=1
W auditd  : type=1302 audit(0.0:104): item=0 name="/sys/class/bdi/0:62/read_ahead_kb" inode=17470 dev=00:0d mode=0100644 ouid=0 ogid=0 rdev=00:00 obj=u:object_r:sysfs_mmc_host:s0

Change-Id: Idfb24564df91369d74711a0672debb0adfbc7aa2
2020-12-13 16:12:56 +01:00
Kevin F. Haggerty 55f44aebfc flo: sepolicy: Allow system_app to read /proc/pagetypeinfo
avc: denied { read } for name="pagetypeinfo" dev="proc" ino=4026543033
scontext=u:r:system_app:s0 tcontext=u:object_r:proc_pagetypeinfo:s0
tclass=file permissive=0

Change-Id: I16465eb9acca9ff64a755d47f86f4ff424ebe4de
2020-12-13 16:12:18 +01:00
Kyle Harrison 01ff085307 flo: sepolicy: Fix exported_camera_prop denials
Change-Id: Ib3abf88a4c71fcd1510a9b1a3cd496b85379c8b2
2020-12-13 16:12:07 +01:00
Kyle Harrison c327cda0fd flo: sepolicy: Fix userspace_reboot prop denials
- userspace_reboot_exported_prop
- userspace_reboot_config_prop

Change-Id: Ibec834df41345d1268b1eea4ae88b2fd5d37dd55
2020-12-13 16:11:55 +01:00
sb6596 4305e7daa7 flo: sepolicy: Address hal_graphics_composer_default denials
Change-Id: I97e64405726d247cb9f618484983d87532c9a5f7
2020-12-13 16:11:33 +01:00
Arne Coucheron 074d83dd27 flo: overlay: Set config_use16BitTaskSnapshotPixelFormat to true
Change-Id: I203c6f54953744e1af67e5b37a72b5b095eabb65
2020-12-13 16:05:42 +01:00
Arne Coucheron 89425632ad flo: overlay: Set config_avoidGfxAccel to true
Change-Id: I2ba7cadeb83d7da5ee0ce24e68fd9da14f81ff1c
2020-12-13 16:05:22 +01:00
Alessandro 32da607fe2 flo/deb: disable wlan PMF
* After I4c120e1f094a7b039837779f58d15cfc7f68d697 merged in
   android-10.0.0_r31, the device fails to connect to PMF enabled
   (not necessarily enforced) wifi access points.
 * Stop advertising that we are PMF compatible to solve the issue.

Change-Id: I4e9b81f5fb0460a81fa032cf19cbd02e0b305c25
2020-12-13 12:41:04 +01:00
followmsi f842bcbb00 flo/deb: Do not update the recovery image 2020-12-12 18:34:27 +01:00
followmsi 0b1f7ee915 Revert "flo/deb: Set BUILD_BROKEN_USES_BUILD_COPY_HEADERS"
This reverts commit f666a07d1d.
2020-12-11 08:45:14 +01:00
Dante Russo d44d696b7d flo: gps: Removing header copying to out folder
Replace copying header files to out folder
for use by other modules to instead build
headers into separate libraries that end
with _headers that can be used by other
modules.

Change-Id: I073967cd34e5c79110895908a4eef1b7d17bf9ea
CRs-fixed: 2068129
2020-12-11 08:41:50 +01:00
Arne Coucheron a24b3793f7 flo: gps: Fix missing-field-initializers warnings
Change-Id: I465de75779df5eed7044b1e94ea5395e5a708e90
2020-12-11 08:41:36 +01:00
Arne Coucheron 6837d21c9e flo: gps: Build common legacy GNSS HAL
Change-Id: I56095b9c3bba065779c90b6aeb61ebfed6af7e77
2020-12-11 08:41:19 +01:00
D. Andrei Măceș 958facf8d1 flo: init: Bring back /data/misc/location/gpsone_d
The entire /data/misc/location is gone with Pie, and our GPS HALs
(specifically, libloc_eng) need to write in there.

Change-Id: Ic5462b21b1098604f29de0baeabdfac9abaa58fa
Signed-off-by: D. Andrei Măceș <andrei@unlegacy-android.org>
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-11 08:39:59 +01:00
Arne Coucheron 92cbe5664a flo: gps: Set capabilities mask to 0x31
Change-Id: Iadcdaeb3359ec29b8eff9fa0a65e47f7ec0b2331
2020-12-11 08:38:27 +01:00
Alessandro Astone 96313d5c60 flo: gps: Make use of gps_debug.conf to set xtra servers
* Just bind mount gps.conf to gps_debug.conf
   We can't directly build gps_debug.conf because it's a common target
   and we're not allowed to override targets anymore.

Change-Id: Ia3c96665b50b0fe478e44186d1c65be723acbf5a
2020-12-11 08:38:21 +01:00
jlask da6c91b4c7 flo: gps: Correct week rollover timestamps
This adjustment will help with applications checking the time coming from gps.
Some applictions will consider times in the far past as an error.

Change-Id: I69d6971249c4898ac3895f725e46f268cdb2b00d
2020-12-11 08:31:26 +01:00
Arne Coucheron af6d7661b9 flo: gps: Cleanup, update config and add sap.conf
Change-Id: I5d3052bea15a2a3a686256275ae85bd61cca5d36
2020-12-11 08:31:26 +01:00
Arne Coucheron 3fe4c29362 flo: gps: Fix compiler warnings
Change-Id: I4e2033db162af0586ee04a5db26b2137f0f720a4
2020-12-11 08:31:26 +01:00
Arne Coucheron e39840e183 flo: gps: Use gps.conf with our changes
Change-Id: I7f307e04daa88cdeb6c45d3dfbb2ed0715d91610
2020-12-11 08:31:26 +01:00
Katz Yamada 852d0388b1 flo: gps: Fix for buffer overrun crash at copying nmea string
Add zero clearing of allocated nmea buffer to ensure
the nmea string is null terminated.

Change-Id: Ie36010a7d3eca16dabb3067ae891a94e4b63b10c
CRs-Fixed: 2041933
2020-12-11 08:31:26 +01:00
Arne Coucheron 9007e59ac2 flo: gps: Replace LOCAL_PROPRIETARY_MODULE with LOCAL_VENDOR_MODULE
Change-Id: I02adba72f01bd6451c45d4a31ecd66e1878c6aaa
2020-12-11 08:31:26 +01:00
Suren Baghdasaryan ba43624a0b flo: gps: Add libprocessgroup dependency
Because set_sched_policy is moved into libprocessgroup an additional
dependency is required for its users.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Change-Id: Ie28a9feb5d4342011ca5baac8a62287aca11af3d
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-12-11 08:31:26 +01:00
Arne Coucheron 30207e248b flo: gps: Import AOSP GPS HAL from Pie
Change-Id: Ia8a20e6a360924c74226ccc7f324ba1c6404f9d8
2020-12-11 08:31:12 +01:00
sudokamikaze c0313b8db0 flo: Update *.mapper service to create compatibility with 64-Bit binder
Change-Id: I6c305a06b7d643f4f1ee39473abb56eeb10737e5
Signed-off-by: sudokamikaze <sudokamikaze@protonmail.com>
2020-12-10 17:45:16 +01:00
followmsi 7198eccd18 flo/deb: Switch to graphics.composer@2.1-service
- graphics.composer@2.1-impl has been removed in Dec 2020 updates
2020-12-10 17:44:10 +01:00
Dhananjay Kumar 5fda2912a6 flo/deb: update policy configuration to fix vts failure
Update default audio_policy_configuration.xml to remove configurations
that are not compatible with aosp system image and are causing vts failures.
2020-12-08 11:23:20 +01:00
followmsi b5a1a48036 flo: overlay: Add wifi_p2p to networkAttributes 2020-12-07 11:35:46 +01:00
followmsi 69d4db145e flo: overlay: Move ALL wifi related overlays to new location 2020-12-07 10:06:08 +01:00
followmsi c25d89d4e7 Revert "flo/deb: Add WifiOverlay"
This reverts commit b6bce841d8.
2020-12-07 09:56:17 +01:00
Arne Coucheron 158f54fc64 flo: rootdir: Start camera server from early boot
Solves random issue with camera orientation and flash not
being detected during boot.

Change-Id: I90db0064a1ca3cbeac89c1ab80c6f87038b40a4f
2020-12-06 21:34:19 +01:00
Anonymous 4be1d8e26a flo: sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS
BOARD_SEPOLICY_DIRS is deprecated.

Change-Id: I50ba8396529fe37fd8724a3ad4f5830f4244b9a3
Signed-off-by: Felix <google@ix5.org>
2020-12-06 21:31:18 +01:00
Alessandro Astone a71fbc41db flo: sepolicy: Camera rules for new root label
Change-Id: Iae2171eaf2acb77acabba626b7bcf017725ab81a
2020-12-06 21:31:11 +01:00