Commit Graph

2200 Commits

Author SHA1 Message Date
Alessandro Astone 5b358f7da5 flo: sepolicy: Address health hal denials
Change-Id: Iff814fd2293787fc0ca2eb9d8f15fb5fb1bf8561
2020-12-06 21:26:49 +01:00
Roshan Pius 051f493452 flo: overlay: Move wifi related overlays to new location
Change-Id: I747d0242422b753f4e3007ce6c4bf7f124c52c5e
2020-12-06 21:26:02 +01:00
Jimmy Chen 1ce825e473 flo: overlay: Add p2p regex for tethering modes
Bug: 137602441
Test: CtsVerifier - Wi-Fi Direct
Change-Id: I215da71e96348b6bba19d4a3c6fd8c8048ff46d6
2020-12-06 21:25:10 +01:00
Roshan Pius f0dfc1d0ac flo: overlay: Change wifi tether regex
The wifi interface names for wifi can either be wlan0 or wlan1.
Change the "config_tether_wifi_regexs" appropriately.

Bug: 80375412
Test: Ensured we display "Hotspot on" in settings when softap is started
on either wlan0 or wlan1.

Change-Id: I0c456412f9b71ef2ee784f3bfa58b01b9287ca73
2020-12-06 21:21:14 +01:00
Jimmy Chen a2a6d605e9 flo: wifi: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-06 21:13:42 +01:00
followmsi ed13dcfb14 Revert "flo/deb: wifi: Enable TARGET_HAS_BROKEN_WLAN_SET_INTERFACE"
This reverts commit b15488b585.
2020-12-06 21:10:38 +01:00
Arne Coucheron 0872a1e45e flo: Set bluetooth HFP version to 1.6
msm8960 platform supports HFP 1.6

Change-Id: I970c8b895dc36435b0ffab7101011970073c8242
2020-12-06 17:55:59 +01:00
elektroschmock f30735f5e3 flo: bdAddrloader: Fix some build warnings
* Compile with LOCAL_CFLAGS += -Wall -Wextra -Werror
* Minor formating fixes

Change-Id: Id437f3daf67cab52b7ed6e2ede3db15f43f015d0
2020-12-06 17:55:06 +01:00
Elektroschmock 533ba5fdd7 flo: bdAddrloader use log/log.h instead of cutils/log.h
Change-Id: I1a075f3d11a8b1ce3327f85c9058dd0d2f96ef07
2020-12-06 17:55:00 +01:00
Elektroschmock 1c9974154f flo: addrloader: Fix missing string.h include
Change-Id: I79540d924052acbec6871cab5e8d06b4bd89e526
2020-12-06 17:54:54 +01:00
followmsi e5cc579d77 Revert "flo/deb: Shim lib for DRM"
This reverts commit 89278056ea.
2020-12-02 12:26:18 +01:00
LuK1337 5662e65078 flo: overlay: Disable BPF offload for tethering
* Such is life with 3.4 kernels.

Change-Id: I1c5e3fab63271b1e3fe6c814d96edbde782f27e8
2020-11-30 12:22:51 +01:00
Arne Coucheron d7459eef1b flo: overlay: Move tethering overlays
Config overlay values moved from frameworks_base core to
frameworks_base packages/Tethering

https://github.com/LineageOS/android_frameworks_base/blob/lineage-18.0/packages/Tethering/res/values/config.xml

Change-Id: Ia5a8056d6334cd78e79853c0ada4e8873a9669e0
2020-11-30 12:17:49 +01:00
Wang Han 66896cef99 flo: Remove config_tether_upstream_types overlay
* No need for it now as framework side handles this well on P

Change-Id: I708663f3de23cf1677a81bf31e8fc5fed4145e1b
2020-11-30 12:15:04 +01:00
followmsi b940a456ff flo/deb: sepolicy: update netmgrd.te 2020-11-30 11:53:02 +01:00
followmsi 46ff9bbd43 flo: manifest.xml: Add NFC 2020-11-28 11:25:16 +01:00
Arne Coucheron 9d2dc20395 flo: Disable serial console notification
Google added a check for this prop in R, and if it's running
it will show a notification about it that it's impacting performance.
Why it's not disabled by default I don't know, so just force disable
it here.

Change-Id: Ia06ef15388e7e701ed526664e7748f133ad01ee2
2020-11-28 10:29:47 +01:00
followmsi 69d3aa80ff flo/deb: Switch to lazy DRM services 2020-11-27 10:09:45 +01:00
Anton Hansson d1a4c36e27 flo: Use TARGET_SCREEN_DENSITY
This variable is used to auto-populate the ro.sf.lcd_density as
well as selecting density bucket for resources in recovery.

Bug: 118676832
Test: adb shell getprop ro.sf.lcd_density
Test: boot into recovery
Change-Id: Ib383d18b61e7a2058a69ae26136aa053fdba4df2
2020-11-27 10:08:40 +01:00
Nirmal Abraham abab368bfa flo: Disable SF Latch Buffer Signaled property
Change-Id: I682b30fbefdfbd4d8478a82148d5984138078957
2020-11-27 10:08:08 +01:00
followmsi 729db869e8 flo/deb: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true 2020-11-26 20:54:28 +01:00
followmsi 89278056ea flo/deb: Shim lib for DRM 2020-11-26 20:54:23 +01:00
Bruno Martins f1af699ef8 flo: Kill framework compatibility matrix with fire
This thing is not mandatory at all and only demands extra work by having
to keep it up-to-date whenever new interfaces are added to the device manifest
or simply uprev'ed.

Change-Id: I7c5485f201efde86ff1b277951e7faebf8b80437
2020-11-26 20:54:18 +01:00
followmsi 1a892230fd flo/deb: Add more ADDITIONAL_GRALLOC_10_USAGE_BITS 2020-11-26 20:54:11 +01:00
followmsi 4fdd8789ea flo/deb: Add android.hardware.configstore@1.1-service 2020-11-26 20:53:59 +01:00
followmsi 9d92737e75 flo/deb: Add gatekeeper@1.0-service.software 2020-11-26 20:53:24 +01:00
followmsi 45620c41fa flo: Add keymaster@3.0-service 2020-11-26 20:52:44 +01:00
followmsi d00413be94 flo: Update device manifest.xml 2020-11-26 20:52:39 +01:00
followmsi 305e464c30 flo/deb: Add health@2.0-service 2020-11-26 20:52:33 +01:00
followmsi 35a1e8206f flo: Update sepolicies 2020-11-26 20:51:48 +01:00
followmsi 8f1e22179c flo/deb: Set PRODUCT_SHIPPING_API_LEVEL := 18 2020-11-22 10:45:43 +01:00
followmsi 91b5ce56a9 flo: wait_for_prop hwservicemanager.ready 2020-11-06 11:48:02 +01:00
D. Andrei Măceș db2e6b8929 flo: init: I/O tweaks
Change-Id: I455547d746b53683eac26241541b65d904404bad
(cherry picked from commit 9bcda749ff2ff9bdef0bf36300574ec6e4ea857f)
2020-11-06 10:48:25 +01:00
Daniel Jarai d8d75db746 flo: Fix thermald permission issues
The owner of /sys/class/leds/lcd-backlight/brightness is system.
Since thermald runs as root, and this node has 644 perms, writing it
generates a dac_override denial. Changing the perms to 664 fixes the
issue.

Change-Id: Ic7a3bc583c2e52c5799ef536c4b9ea07a921e54b
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-06 10:48:06 +01:00
voron00 f3d2373aa3 flo: rootdir: Remove 'critical' field from charger
This is no longer needed as charger runs in system group now.

Change-Id: I1e668463701787f21875e77a64f1fe7a9142ec4d
2020-11-06 10:46:31 +01:00
Subbaraman Narayanamurthy f76fbc328b flo: rootdir: Add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
2020-11-06 10:46:31 +01:00
Subbaraman Narayanamurthy cbd756cb05 flo: rootdir: Change user/group permission for charger
Make charger binary run as system instead of root. Since it
needs to handle input key events, add input as a supplemental
group in addition to system and graphics.

Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1
2020-11-06 10:46:30 +01:00
Sandeep Patil 49c24c24c3 flo: rootdir: Use /charger symlink to launch healthd
Makes this consistent with other targets and maken sure
any changes in healthd will be transparent to targets as long
as the symlink is maintained.

Update the seclabel accordingly too.

Test: Tested charge-only mode

Change-Id: Ic71e32f52c39bc45eae8d2552259695934592fc7
Signed-off-by: Sandeep Patil <sspatil@google.com>
2020-11-06 10:46:09 +01:00
Daniel Jarai dc098e20b9 flo: rootdir: Disable suspend/resume debugging
Change-Id: I1fbc0d33de44a675de3b204905c07c6d89224012
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-06 10:45:43 +01:00
Devin Kim 136f71d618 flo: Fix the modem crash on encryption phone
There is an efs sync problem because of class type of rmt_storage service.
When encrypting phone, modem crash may occur due to not being able to sync
properly between AP and CP. So, rmt_storage class should be a core class.

Bug: 11325693
Change-Id: Ic51c3ab363b2de664c268b2ba0216b81e76189dc
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-06 10:45:20 +01:00
LuK1337 34e5af21a8 flo/deb: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
2020-11-05 21:25:21 +01:00
followmsi bb800f2c0f Revert "flo/deb: add wrapper to provide libcore.util.TimeZoneFinder to allow gapps SetupWizard to complete"
This reverts commit d803216bce.
2020-11-05 19:33:20 +01:00
followmsi b96f053cbe flo/deb: sepolicy: Fix build 2020-11-05 12:58:40 +01:00
Roshan Pius b6bce841d8 flo/deb: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-11-05 12:57:48 +01:00
followmsi f3aacd4bce init.flo.usb.rc: Fix build
host_init_verifier: Command 'write /sys/class/android_usb/android0/iSerial $ro.serialno' (device/asus/flo/rootdir/etc/init.flo.usb.rc:21) failed: using deprecated syntax for specifying property 'ro.serialno', use ${name} instead
host_init_verifier: Command 'write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer' (device/asus/flo/rootdir/etc/init.flo.usb.rc:22) failed: using deprecated syntax for specifying property 'ro.product.manufacturer', use ${name} instead
host_init_verifier: Command 'write /sys/class/android_usb/android0/iProduct $ro.product.model' (device/asus/flo/rootdir/etc/init.flo.usb.rc:23) failed: using deprecated syntax for specifying property 'ro.product.model', use ${name} instead
host_init_verifier: Command 'setprop sys.usb.state $sys.usb.config' (device/asus/flo/rootdir/etc/init.flo.usb.rc:156) failed: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
host_init_verifier: Failed to parse init script 'device/asus/flo/rootdir/etc/init.flo.usb.rc' with 4 errors
2020-11-05 12:27:53 +01:00
followmsi 0dac8d1064 flo/deb: camera: Drop LOCAL_COPY_HEADERS 2020-11-05 12:20:47 +01:00
Kyle Harrison b15488b585 flo/deb: wifi: Enable TARGET_HAS_BROKEN_WLAN_SET_INTERFACE
Prima driver in our kernel has broken implementation of setting interfaces
which breaks wlan functions.

Change-Id: I803ffa0ac7ece8101c58279e1d846d0218018519
2020-11-05 12:18:58 +01:00
followmsi 0986ba2a69 flo/deb: Set TARGET_HAS_MEMFD_BACKPORT 2020-11-05 12:09:48 +01:00
followmsi c5dd665c56 Revert "flo/deb: Disable MAC Randomization"
This reverts commit 4491c69d22.
2020-11-05 12:06:48 +01:00
followmsi f666a07d1d flo/deb: Set BUILD_BROKEN_USES_BUILD_COPY_HEADERS 2020-11-05 12:00:42 +01:00