Commit graph

93 commits

Author SHA1 Message Date
Satya Durga Srinivasu Prabhala
a3c0af046d
clover: sec_config: Allow sensors group process to QMI Sensor services
Enable Sensors QMI services for sensors process groups.

CRs-Fixed: 431081

Change-Id: Ibbdb0e07d9497e1809e7ef817e8400d4a9e4f8c1
2018-12-03 13:14:09 +01:00
jkalsi
de1853c044
clover: allow rfs_shared and QDMA QMI service
Change-Id: I2d065eadf051e1bff0c252891a7818e871be6bee
2018-12-03 13:13:15 +01:00
Kineret Berger
87f522ea1d
clover: add tloc daemon to sec_config
in order to communicate with the modem we need permission for IPC router.
adding tloc daemon group (1026) to service 0x10

Change-Id: I3ab4a37bbed3fd496a73ffa7d12f908d8d8b8c36
CRs-Fixed: 1106225
2018-12-03 13:12:21 +01:00
Brandon
6ca2a307ef
clover: Data IMS: A new HAL for passing SIP Call info headers to Clients
Desc: Permission to access the QMI and HAL from RCS Daemon

Change-Id: I45d944376179d0f6f6704563ac3da631a3fa9c64
2018-12-03 13:10:37 +01:00
Rohit Rangwani
4b5bb89d4f
clover: Remove NFC data directory creation
Removed NFC data directory creation to fix
vendor_init access denial issue.

NFC data directoty is already being created
by system core init.rc.

Change-Id: I7ebb88dc7b2df988a8af477baa81fe9253030ffb
2018-12-03 13:07:42 +01:00
Sridhar Parasuram
0314f89167
clover: Address dac_override and dac_read_search issues in init.qcom.sh
init.qcom.sh accesses files owned by groups radio, system and hence
the groups have been added.

Change-Id: I535eeaf42f38532ec6de46eb57f3cc0e1d959a47
2018-12-03 13:07:00 +01:00
RAJATH R
c448ab21c9
clover: Create new directory for Bluetooth SoC dump
Create new directory for Bluetooth SoC dump/logs
collection for new Android P dump format

Change-Id: I1257518fa12420a6d8d5bb66f15782ab97582f36
2018-12-03 13:06:15 +01:00
Karthik Gopalan
7e98e89967
clover: Swap disk creation
Create swap disks

CRs-Fixed: 2264866

Change-Id: Id57a4e8d413c7dafb49d073980f10010003f616e
2018-12-03 13:05:14 +01:00
himta ram
ef1d158500
clover: Change /data/misc/fm to /data/vendor/fm
Change-Id: I369e0a858c8fddb4574dad5b54b2a3e0980ea3a6
2018-12-03 13:04:08 +01:00
Zhen Kong
92908f747b
clover: ueventd.qcom.rc: set permissions of /dev/qce device
To support end-to-end DRM content playback with SG List feature,
android.hardware.drm@1.0-service needs to have access permission
to /dev/qce to map & unmap ION buffer virtual address with HW Crypto
Engine. So, set /dev/qce device permission 0660 and let it be
accessible by user "system" and group "drmrpc".

Change-Id: If9c0ed70acc2bb063344692374f51441fe84eff6
2018-12-03 13:00:54 +01:00
Brandon solis
2419848a4b
clover: New HAL for passing RCS configuration to modem
Desc: Permission to access QMI Settings from the Connectivity Daemon

Change-Id: I0fbb2ad5852beceacf5a9529392c750130d498f0
2018-12-03 12:57:21 +01:00
Harikrishnan Hariharan
760dc35328
clover: Start loc_launcher as gps user
Start loc_launcher as gps user and set uid/gid of loc_launcher
to gps and enable SETUID and SETGID caps for loc_launcher, so
that we can start loc_launcher as gps user instead of root and
still have capabilities for SETUID and SETGID. Also remove not
required permissions groups for loc_launcher.

Change-Id: Ie9f1506874b3c3148f9170c8d5db9afd1e70025c
CRs-Fixed: 2192881
2018-12-03 12:54:26 +01:00
Brandon
2a18db24f5
clover: New HAL for passing SIP call info headers to clients
Desc: Permission to access the QMI and HAL from RCS Daemon

Change-Id: I45d944376179d0f6f6704563ac3da631a3fa9c64
2018-12-03 12:50:18 +01:00
Umesh Vats
dbc899f760
clover: Bluetooth: Increase number of SEPs to support SHO/Mcast
Icreased number of SEPs to support SHO/Mcast

Change-Id: I3cfb4e8d4d6969e442406bd095a865d49947151d
2018-12-03 12:46:36 +01:00
Abhimanyu Garg
cca912b85e
clover: Changing iop directory permission
Changing permission for IOP from 0770 to 0700. This is to restrict the
access for iop database file.

Change-Id: Ic3325595521d4e433d0ce9bada564fc599cf858c
2018-12-03 12:43:49 +01:00
Preetam Singh Ranawat
d7231b5c8a
clover: remove default sampling rate and channel entries for bt a2dp
-Remove default setting of sampling rate to 48K and stereo channel
  for bt a2dp as support for multiple sampling rates and channels
  over a2dp is added and being set from hal.

Change-Id: I8a40182af0d97b31b136a1928cbbe6f728eb950f
2018-12-03 12:38:05 +01:00
Vatsal Bucha
9cca15f526
clover: Update mixer paths for sdm660 internal codec
Internal codec has a direct connection between
ADC1 and AMIC1. Add a switch to prevent default
powering up of AMIC1.

CRs-Fixed: 2058182
Change-Id: If00b3d239655d2ecc77654ab379bbc0bd57e5b0d
2018-12-03 12:36:38 +01:00
Ramjee Singh
66327a222f
clover: separate BT sample rate Rx and Tx backend config
Independent configuration of Rx and Tx backend sample rates
for BT usecases.

Change-Id: Ic2437531dad1e53e866100c4022e4667103f4c92
2018-12-03 12:34:26 +01:00
Md Mansoor Ahmed
786671b446
clover: config: Update keep_alive to support silence playback on
non-hdmi devices

Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: Icdf22c9d8d1264d463b23c8f54020e792840b73c
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-12-03 12:33:16 +01:00
Ramjee Singh
110a84110e
clover: audio: Add microphone characteristics and snd device mapping
Populate microphone characteristics for supported microphones on
platform. Map input sound devices to specific microphone ids.

Change-Id: I9aab6ef04bb941533261740723ffcf78645d3e1e
2018-12-03 12:32:19 +01:00
Samyak Jain
377f56bc4f
clover: Support 2 instances of "primary input"
No Audio heard in FM Speaker when FM record and FM speaker are on simultaneously

With default values for maxActiveCount and maxOpenCount,
FM app is unable to record and play FM audio on speaker simultaneously
since it uses application loop back(AudioRecord->AudioTrack)
to route FM audio to non-default devices(Speaker)

Add attributes maxActiveCount="2" and maxOpenCount="2" to mixPort "primary input"

CRs-fixed: 2249758
Change-Id: I82a1cb0d5596486d531d5324b91f932f52b07f9e
2018-12-03 12:31:02 +01:00
Mao Jinlong
ff8a4d7393
clover: Change /data/time to /data/vendor/time
Time folder is for time_daemon which is in vendor partition. Vendor
module can't access data in /data for treble limit. So change
/data/time to /data/vendor/time.

Change-Id: If3420ec92fa79f8d7c98a1e20c12f148b0fd7894
2018-12-03 12:29:26 +01:00
Max Weffers
e6002e72b7
clover: use call inherit instead of include 2018-12-03 12:26:45 +01:00
Max Weffers
a4a52dd998
clover: prop: Add missing ACDB Props 2018-11-30 20:33:30 +01:00
GuaiYiHu
b7df175ea3
clover: libinit: Set device specific changes via libinit
Change-Id: I9a2dea3291b76d185d9ecda524a4234b6ed25412
2018-11-29 19:43:42 +01:00
GuaiYiHu
3c6bab5243
clover: libinit: Set product model dynamically
Change-Id: I6ac3931cab7301551098d077a7bb60d3760d8d98
2018-11-29 19:43:42 +01:00
Max Weffers
33d078f66f
clover: rewrite system and vendor prop for clover into one makefile 2018-11-29 19:43:12 +01:00
Max Weffers
aac817a4d3
clover: overlay: use Brightness values from phh treble builds for mi pad
4
2018-11-26 20:44:39 +01:00
dianlujitao
ce4e46cfab
clover: Create data directory for thermal-engine
Change-Id: I4c9f6f67c38379329b393e39a7d5a6e88b0c8195
2018-11-26 11:48:29 +01:00
dianlujitao
44e7bfeaca
clover: Disable audio ULL mode
* This generates corrupted sound, and is disabled on stock as well.

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2018-11-26 11:48:29 +01:00
dianlujitao
7c657543be
clover: Use voice speaker ACDB id for speaker
* Speaker isn't properly calibrated with ACDB from O-based MIUI (while
   it was on N), pop is heard when disabling speaker.
 * MIUI has speaker protection enabled, hence this route isn't even
   used by Xiaomi. However, with speaker protection enabled on Lineage,
   the volume curve became very strange, maybe Xiaomi uses Dirac audio
   effect to address this issue on MIUI, but it's not supported on AOSP.
 * Fortunately voice speaker seems to be properly calibrated, so apply
   that route to fix the issue.
 * Voice speaker gain in ACDB seems to be lower than speaker, so
   slightly increase gain in mixer paths to make it sound like a "normal"
   speaker.

Change-Id: Ic674973933595db0ae797a7fa767539a321664ff
2018-11-26 11:48:29 +01:00
Wang Han
6399b3ff6b
clover: Configure number of physical SIM slots
* Needed by telephony-common

Change-Id: I18c058d295ed2eaf23e8ca5d1f3933b65806ed48
2018-11-26 11:48:01 +01:00
GuaiYiHu
dd9d51d40a
clover: Configurate for dt2w
Change-Id: I2396c1a37cb016b583e087585acb0bc070d1e5a0
2018-11-26 10:48:23 +01:00
GuaiYiHu
a492558bc9
clover: Switch to xiaomi oss kernel source
Change-Id: I29c34cd1c313093fa60137da76572e242cbc9023
2018-11-26 10:30:50 +01:00
Max Weffers
2a8d3472fc
clover: set new fingerprint from Miui 10 release 2018-11-26 10:27:14 +01:00
Max Weffers
2f9c181409
clover: set vendor security patch from Miui 10 release 2018-11-26 10:24:44 +01:00
Max Weffers
2722932a93
clover: start miui charger animations for offline charging 2018-11-12 13:13:55 +01:00
Max Weffers
2f14302932
clover: kernel: Use kernel source path of common kernel 2018-11-12 12:41:35 +01:00
Max Weffers
fc060a550a
clover: prop: Update qcom bluetooth prop for pie blobs 2018-11-12 11:39:16 +01:00
Max Weffers
c0d9ecae96
clover: wifi: Move qca_cld3_wlan module to system 2018-11-08 19:01:05 +01:00
Bruno Martins
b4f9af65e9
sdm660: Update power profile for P
Change-Id: I161aa25ba166d41b6736dc52bb7dd78e3a2ad0e7
2018-11-05 12:15:33 +01:00
Mikhail Naganov
2f5fb9dd04
sdm660: Uprev soundtrigger to 2.1
Bug: 68823037
Change-Id: If634345594ea6d574f49d58e29b48165c3b9458b
Test: "ok google" and music iq from locked screen
2018-10-19 16:43:31 +02:00
Max Weffers
0ae6a348cb
clover: disable davlik and hwui includes 2018-10-19 16:43:03 +02:00
Max Weffers
760736653d
clover: use device specific vendor for better compatbility 2018-10-19 12:28:25 +02:00
Lakshman Chaluvaraju
761d7ac356
clover: audio: Add dynamics processing support
(cherry-picked from c57b29cc104a7f4f1250cf67ce739795f6c2ecaf)

Change-Id: If22b1f2151cec52fa17cad7eecb981c3a591dc2e
2018-10-19 11:53:53 +02:00
Tim Murray
f35f4d8a08
clover: rootdir: add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2018-10-19 11:52:30 +02:00
Steven Moreland
73a8c26a67
clover: light: mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2018-10-19 11:52:05 +02:00
guaiyihu
d605cdfde8
clover: Clean up non-exsistent hal in manifest.xml
Change-Id: Ie45f56421df60311cf0fa5b881e3ef9f14a170fa
2018-10-19 11:47:08 +02:00
Max Weffers
46b21710c0
clover: add vendor prefix for dpm feature prop 2018-10-19 11:46:39 +02:00
Edwin Wong
d38f63a5ae
clover: Add manifest entry for clearkey HIDL service.
Convert clearkey plugin to HIDL to support drm HAL v1.1.
Add SELinux policy for android.hardware.drm@1.1-service.clearkey.

Test: CTS test
  ANDROID_BUILD_TOP= ./android-ccts-tradefed run cts-dev
    --module CtsMediaTestCases
    -t android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc

bug: 69635855
Change-Id: I61e9c272c2a2788fd07d5c12921d28c785661b77
2018-10-19 11:41:55 +02:00