Commit Graph

1880 Commits

Author SHA1 Message Date
Sean McCreary 7ca2b3179f flo: Update extract-files and setup-makefiles
Update copyright notice and define INITIAL_COPYRIGHT_YEAR

Change-Id: Ibde3c44b36c2f082d9a9e6f1bbca51de6938622b
2018-01-31 14:24:25 +00:00
Artem Borisov d38749d12e flo: Bring back config_dozeComponent
It was accidentally removed in 02cd5850

Change-Id: I42de05c5a3ebad9df1be4a874e5c3036368dc240
2018-01-18 22:11:13 +03:00
Wei Wang c4376f08be flo: Accelerate boot by paralleling device enable
Some QCOM devices require sysfs to trigger boot/init which are blocking
the init process.
[    7.453205] init: Command 'write /sys/kernel/boot_adsp/boot 1' action=post-fs-data (/init.angler.rc:166) returned 0 took 271.936ms.
This CL is to put those slow to start devices in a
separate service and wait for the service to be done later on.

Bug: 32712851
Test: On device
Change-Id: Idd4e965f122cbc8421b443a41573d363112dfa50
2018-01-13 11:58:00 +00:00
Bruno Martins d973f1d245 flo: Update for moved hardware key overlays
* These have now been moved to the SDK

Change-Id: I551ddc8c58ccd7184fddb1c615b15cce8127daad
2018-01-02 22:22:42 +03:00
Bruno Martins 515b33f687 flo: overlay-lineage: Apply LineageOS rebrand
Change-Id: I1e34ecb738c8b68440fb5cc61083b985fbe3fad9
2018-01-02 22:22:42 +03:00
Rashed Abdel-Tawab 02cd58506b flo: Move Lineage specific overlays to overlay-lineage
Change-Id: Ic38bb1acb4d37f90b62679e4420815f49b30fc7f
2018-01-02 22:22:40 +03:00
Artem Borisov 7f8bbc7797 Revert "[REVERT ME] flo: disable some missing overlays"
This reverts commit 4d10372763.

Change-Id: Idfa7f15dbbb46b3c0e27cef843f53b2f0d0b1b2f
2018-01-02 22:22:08 +03:00
Artem Borisov 3013bfabcd flo: Enable ZRAM
I have backported enough kernel stuff to align our implementation
with android-3.10.
Use ~500MB disk, 4 compression streams, lz4 compression.

Change-Id: I82ee5c43aefb732ee603bdf1ae190e5e9936e660
2018-01-02 22:22:08 +03:00
Artem Borisov cc68fd3937 flo: Enable boot and system server dex-preopt
As stated in https://android.googlesource.com/platform/build/+/418258c
this is required in O-MR1 since sepolicy now prevents system server from
loading anything from /data making our system extremely slow and janky.

Change-Id: I215ec7ebe95981ef0b953fe938e12b83675795ab
2018-01-02 22:22:08 +03:00
Adrian DC d601ddff0a flo: overlay: Disable SystemUI anti-falsing on lockscreen
* The anti-falsing implementation from HumanInteractionClassifier
    regularly prevents easy swipe to unlock or to pattern / pin
    on the keyguard lockscreen, requiring multiple attempts
    until accepted due to a hardcoded evaluation (5.0f)
    while normal usage shows better results without it

 * Another solved situation is remote device access like
    Vysor or TeamViewer were the device is almost impossible
    to swipe properly from a computer client

Change-Id: I0c2590f56e2cf6d6cd4ff3af2341a985670168e3
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-01-02 22:22:08 +03:00
Artem Borisov aa30982c1f flo: move mixer_paths to vendor
This wasn't moved in ced6e93 because it requires additional changes in the audio HAL.

Change-Id: I068e1254b0339c263ad01bb43a51814486fb1a91
2018-01-02 22:22:07 +03:00
Jaekyun Seok afc37de9b2 flo: Enforce RRO on framework-res
Overlays only for framework-res will be converted into RROs.

Other overlays can't be converted due to some known issues on app RRO.

Bug: 36231603
Change-Id: Idca30fdbbcc990fd124de16a06a112a346612a61
(cherry picked from commit db1b6058200fc5255f519cf6609fca7619d6743e)
2018-01-02 22:22:05 +03:00
Jeff Vander Stoep 84a9fe6906 flo: sepolicy: system_server: whitelist MSM ipc router ioctls
avc: denied { ioctl } for pid=3112 path="socket:[29649]" dev="sockfs" ino=29649 ioctlcmd=c302 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=socket
avc: denied { ioctl } for pid=3112 path="socket:[29647]" dev="sockfs" ino=29647 ioctlcmd=c304 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=socket

Change-Id: I5018a24464b1160a496e6782284dc8a844b8a114
2017-12-31 00:21:12 +03:00
Artem Borisov 9591753a96 flo: sepolicy: allow system_server to access sensors
Change-Id: I925e12c3663a72876dee0304201b44ce705bef28
2017-12-31 00:21:12 +03:00
Artem Borisov 0a5d80fe62 flo: Use proper sha1sums for RenderScript
Poor me...

Change-Id: I46c0c5140c4d1c27d23b01e936ec8400e87cdfe3
2017-12-31 00:21:12 +03:00
Artem Borisov 6b550031be flo: always build Recorder app
Even though Recorder is not included in mini config, it is not dramatically big and should fit in our /system.

Change-Id: I8b463bc36804e40d9cd6400635e808bfe1980bb0
2017-12-26 17:06:12 +03:00
Artem Borisov b6e848edc6 flo: use XML audio effects configuration
Change-Id: I077af53afec1b6c41744f6f7da7b00182dcc3e19
2017-12-26 17:06:12 +03:00
Artem Borisov 6bcef0c323 flo: use XML audio policy configuration
Change-Id: I2b76b9edf39d48f9b89db440ef35201e81d14c37
2017-12-26 17:06:08 +03:00
Pavlin Radoslavov 3e73f0bcf1 Use GID "wakelock" to control access to kernel wakelock
Bug: 25864142
Change-Id: Ie9b574a4efdae2508a00c1cb41b5c7e1a17a4e45
2017-12-26 17:05:05 +03:00
Artem Borisov 6f437ae913 flo: enable Treble OMX
Change-Id: If129906aced09b04488dd13c104e99738774ad12
2017-12-26 17:05:05 +03:00
Yifan Hong 1ded1eba4b Add <interface> / <instance> to dev compat mat
Test: m compatibility_matrix.xml -j
Test: m system_manifest.xml -j
Bug: 38395193
Change-Id: Iedccc976bfd835d75f29573ee181ff31d124cbb4
2017-12-26 17:05:05 +03:00
Yifan Hong e856c40ff2 Add device compatibility matrix
Test: m system_manifest.xml -j (checks compatibility against
    framework manifest)
Bug: 37954458

Change-Id: I45e4c5e8fc1824652be552842d3283e8f8cf7331
2017-12-26 17:05:05 +03:00
Lorenzo Colitti 314ab6916e Delete dhcpcd init entries, since dhcpcd is no more.
Bug: 27192644
Change-Id: I3a682a96bb14977678159c5bd6ee361b92763905
2017-12-26 17:05:05 +03:00
Artem Borisov 8a1bbd6397 flo: move thermal config to vendor
This wasn't moved in ced6e93 because it requires additional changes in the binary.

Change-Id: Idc829e610394e9c7e226d676f29cc7b0373d4550
2017-12-17 15:10:57 +03:00
Jiyong Park 8e37e471f4 Move QCOM camera libs to vendor
In order to make generic system image, these QCOM-specific libs are
moved to vendor.img

Bug: 36043196
Test: make. flash. and chck that these are under /vendor/lib.
Change-Id: I53d84f1191b7562323b8405bc4a1ba35794375c0
2017-12-17 15:10:57 +03:00
Artem Borisov 21daf4bb06 flo: move proprietary modules to vendor
Change-Id: Ie51036d03f391d4581e555980fed2e7afe885b41
2017-12-17 15:10:57 +03:00
Artem Borisov 34e6ad2e3e flo: move device-specific configs to vendor
Change-Id: I6812a60a27bfcd8f268e6b098152445933c6a5f7
2017-12-17 15:10:57 +03:00
Artem Borisov 708fd9a379 flo: move device-specific modules to vendor
Change-Id: I79e26fe58dd393b9da04f3c99b3eadd263c40afa
2017-12-17 15:10:57 +03:00
Artem Borisov 40afda67f6 flo: correct cache image size
Fixes build error on O-mr1

Change-Id: Ia71d27feaf8fbc8c5a1d3bf5909a23f6f3f71348
2017-12-07 15:34:16 +03:00
Artem Borisov ec0ccaa0ac flo: remove unavailable cmhw
Change-Id: Id17d3d7a58760f9adeeee546959a8b9a2c4eaa18
2017-12-07 15:29:10 +03:00
Artem Borisov 2757d52761 flo: Update Adreno RenderScript blobs
From OPR4.170623.006 bullhead vendor.img

Change-Id: I1802607f01f9e8ca31154e218efa4f16a233443f
2017-11-12 14:21:15 +03:00
Bruno Martins 9c4cdc45af flo: Update Widevine DRM to one-blob solution
* Taken from angler's OPR6.170623.017 factory image

Change-Id: Ic91260a70d233bc3a2486df5d3a6e01f6c3971db
2017-11-12 14:16:58 +03:00
Miao Wang 95a234e5a8 flo: Add RenderScript default implementation to device.mk
Bug: 37035983

  - OVERRIDE_RS_DRIVER is moved from libRS_internal to the default
  implmentation. In order for GPU driver to work on legacy devices, the
  default implementation needs to be part of PRODUCT_PACKAGES.

Test: mm
Test: CTS tests pass on Bullhead, and confirm GPU driver is working.
Change-Id: I72e6d5a36b267d77412801f9c02894a8af643d84
2017-11-12 13:07:11 +03:00
Michael Schwartz c6b45d63cd flo: Declare the location of device manifest
Bug: 36810913
Bug: 36983271
Test: build and boot device.
Change-Id: I4b29c9ff14a06bbf7d053dca92c7a2e4dca473df
2017-11-12 13:07:06 +03:00
Emilian Peev 454b55f13f Camera: Use 'hal_client_domain' for graphics allocator
Bug: 35850071
Test: CameraDeviceTest#testCameraDeviceStillTemplate,
CameraDeviceTest#testCameraDeviceRecordingTemplate,
CameraDeviceTest#testCameraDevicePreviewTemplate
Change-Id: I2cc0526ab0d9bc7b4263fb7b34134b06ddaa2e4c
2017-11-11 23:08:53 +03:00
Alex Klyubin 7f03e75fe1 Move Camera HAL policy to hal_camera
This moves cameraserver domain policy to do with Camera HAL running
inside that domain into hal_camera. cameraserver is now associated
with hal_camera.

Test: Taking photod and recording videos using Google Camera works
Bug: 34170079
Change-Id: I3031f1cdeebe0773f765adffa8c0bd617ab2cebd
2017-11-11 23:08:41 +03:00
Jeff Vander Stoep 3e14c2304b Label camera device and add permissions
(cherry picked from commit 15f5ee011a51e9e7574d1ecb1b82658281d294be)

Grant access to qualcomm camera daemon.

Bug: 28359909
Change-Id: I92520b4c9fe5d94a6c191f40963fec6b6ed1acb4
2017-11-11 23:08:36 +03:00
Artem Borisov 1ed1cbc8b3 flo: enable binderized gralloc service
There is no reason to keep using passthrough, as our binder works properly now.

Change-Id: I9b72e9e703cfccc1c9a21f39264412cda0a6e233
2017-11-11 18:38:23 +00:00
Artem Borisov e40feaf89f flo: use 64-bit binder API
AOSP and mainline are going towards removing old 32-bit binder API support.
64-bit binder is 100% compatible with 32-bit kernel and userspace,
so there is no reason for us to keep using the old solution anymore.
We've switched to new API in our kernel, same thing should be applied to our userspace.

Change-Id: I3c95bd7fbd023c5cb08e856b3a3889c03228e843
2017-11-09 15:25:30 +00:00
Artem Borisov 89d04b4bf9 flo: remove c2d composition
It was defined in AOSP as TARGET_USES_C2D_COMPOSITON, so it was never used here.
Our GPU doesn't have any 2D cores, so there is no reason to use it anyway.

Change-Id: I21671e58251fdf4796ce780924980bcc624c1df2
2017-11-09 15:25:18 +00:00
Artem Borisov 5ed97aba22 flo: set BOARD_KERNEL_IMAGE_NAME
Change-Id: Ia409a8f2e4e0a2cb72f621f7e307d5cc26bb951d
2017-10-27 10:51:57 +00:00
Artem Borisov 301622e563 flo: don't build stlport
We're using it as blob in vendor/lib now and this just copies same library to lib/.

Change-Id: Ie362fcc23a2623ce4d9814c4b1fe2cecb1155d64
2017-10-21 19:50:30 +00:00
LuK1337 d67b94745b flo: rootdir: Enable FunctionFS
Change-Id: I12ff6e794e6993940284e6dfb48b718c40fdd3b1
2017-10-13 18:32:45 +00:00
Luca Stefani 6612252842 flo: audio: Fix audio effect libs path
Change-Id: I8f50ea750405ae920ef5a74dda31ca5ac85e3af0
2017-10-13 18:23:22 +00:00
Artem Borisov 4053ea04b0 flo: build bcm nfc implementation
Change-Id: Iac7f369e637e21a8ea582ccdb6b3071b1d2915b4
2017-10-13 18:22:06 +00:00
Artem Borisov f2aec8ace4 sepolicy: bring back hci_attach policy
Change-Id: I2072c3a88247a1f40f596d1dfae93bf23078e4e6
2017-09-20 20:56:48 +00:00
Jeff Vander Stoep 165b4ae091 Enforce ioctl command whitelisting on all sockets
Remove the ioctl permission for most socket types. For others, such as
tcp/udp/rawip/unix_dgram/unix_stream set a default unprivileged whitelist
that individual domains may extend (except where neverallowed like
untrusted_app). Enforce via a neverallowxperm rule.

Change-Id: I7573fdb24f9c53ad169bce2aeab1baac8b2a11ea
2017-09-20 20:56:43 +00:00
Jeff Vander Stoep 96b92e3361 deprecate domain_deprecated
Move device specific policy to a local device_domain_deprecated attribute
to focus effort on core policy.

Bug: 28760354
Change-Id: Id08cc74a3a2c7b8ff242b3c6f26bd514e6855a48
2017-09-20 20:56:38 +00:00
Artem Borisov c91bb1bad8 flo: build DRM HAL
Change-Id: Ifadddcd0c3f571238c2f6d07cbdb2021896a87a7
2017-09-20 20:56:30 +00:00
Artem Borisov d8d84699a8 flo: build NFC HIDL service
Change-Id: I00d912c382bdd7ca4eb4c23a9ec72ea8babc4de9
2017-09-20 20:56:24 +00:00