Commit Graph

258 Commits

Author SHA1 Message Date
Chippa-a
537b0354d9 kitakami-common: libril: Use dispatchStrings for auto/manual network selection request
Based on "dispatchNetworkManual" introduced by
Adrian Ulrich (adrian-bl-yuga) and which was used
till Android O RIL stack.

[HenningJW]: Apply for automatic network selection too

Change-Id: I85433f2a4f94690c1dd2a742f0b1c39aba360cd6
2020-05-13 11:33:21 +08:00
Martin Bouchet
0fb57652bd kitakami-common: libril: Fix network operator search
* For search, the number of strings returned for
  RIL_REQUEST_QUERY_AVAILABLE_NETWORKS should be defined in the system
  prop ro.ril.telephony.mqanelements

Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e
2020-05-13 11:33:16 +08:00
rago
b39d2d0a7d kitakami-common: Set voice call volume steps to 7
Bug: 28426597
Change-Id: Icf78d9acec75c500982b1e4391af4d6f3933da37
2020-05-06 13:47:56 +08:00
Jean-Michel Trivi
199d69adb0 kitakami-common: Media volume: from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
2020-05-06 13:47:15 +08:00
followmsi
eb81867b18 kitakami-common: Add back wifi.direct.interface (p2p-dev-wlan0)
Change-Id: Ic794ee9e9e0c513dfa6d77c9e804a5519d399f3b
2020-05-06 13:44:05 +08:00
TARKZiM
f3a2b58b06 Revert "kitakami-common: disable wifi display for now"
This reverts commit 72d0d14c66.
2020-05-05 12:02:50 +08:00
Michael W
e586119db8 kitakami-common: Disable DiscoveryService
* Affects wifi speed

Change-Id: I12fcd4972d6b8ddb0cf9d5e0a54fb72af24947e2
2020-05-05 01:08:09 +08:00
TARKZiM
2daf227cf3 Revert "kitakami-common: Add SonyDoze service"
* No that useful for us.

This reverts commit 3d54ab4354.
2020-05-04 16:01:47 +08:00
TARKZiM
2f7bbb26e2 kitakami-common: Kang Perf/Thermal stack from angler & hima
* Perf/Thermal blobs from angler - OPM6.171019.030
* Thermal HAL from angler base + hima modified configs.
* Modified thermal sensor numbers for kitakami platform.
* From https://github.com/AICP/device_htc_hima
2020-05-04 14:29:13 +08:00
Suman Mukherjee
e3c9ac037f kitakami-common: QCamera2: Fix memory leak when fail to open camera device.
Issue:
When camera open fails, param heap buffer which was allocated
in a deferred thread will not be cleaned up properly because
of improper flag check in parameters deinit().
Fix:
Since param heap buffer is allocated asynchronously, move the
initialization flag check after deallocating param heap.
CRs-Fixed: 1070448
Change-Id: I026f307c5b7501d3607c64c6b36d41eddaf0349a
2020-04-29 15:09:51 +08:00
TARKZiM
88cbe4c815 Revert "kitakami-common: Enable memcg in Android with cmdline param"
This reverts commit e3eddf9451.
2020-04-29 13:10:26 +08:00
Bhargav Upperla
3aa59d23e4 kitakami-common: Increase ZRAM swap size
On high RAM targets, due to more anonymous memory availability,
we can improve headroom by increasing ZRAM swap size,
especially under memory pressure, and during background app compact.

Also ZRAM swap size is logical and is used when needed and
shouldn't cause other side effects.

Change-Id: I11949b8bdf16e9b4b8abb1bd633ffa1a1c0b1ad6
2020-04-29 13:07:44 +08:00
TARKZiM
58a87ee4f5 Revert "kitakami-common: rootdir: Disable ZRAM"
This reverts commit 5314d1ec67.
2020-04-29 10:47:40 +08:00
Akash Mondal
5a8482b71d kitakami-common: Add libashmemd_client to platform shared libraries
E : ashmem  : Failed to dlopen() libashmemd_client.so: dlopen failed: library "libashmemd_client.so" not found.

Change-Id: I5ea7f1686d4ad5b67ec5e37b91742f907d71075e
2020-04-27 10:00:41 +08:00
Bruno Martins
51db5a1692 kitakami-common: Enable memory optimizations
* Enable B-services aging propagation and delay service restart
   for devices with 2GB or less memory.

Change-Id: I81a09cc8425602bfc586875b7d36a4f56a226908
2020-04-27 09:52:06 +08:00
AngeloGioacchino Del Regno
e3eddf9451 kitakami-common: Enable memcg in Android with cmdline param
The Android OS wants us to specify androidboot.memcg=1 in the
kernel command line to enable it for some .... reason.

Let Android make use of it.
2020-04-23 14:50:10 +08:00
TARKZiM
e15b88d2be kitakami-common: Build OSS Camera HAL
* Experimental.
2020-04-23 13:46:07 +08:00
Han Wang
f34a5df98f kitakami-common: camera: Remove qcom-camera project pathmap usages
* This is abandoned and we don't have to rely on it at all.

Change-Id: I8899737783c5ccc105bbb68f0e0952faf97523a6
2020-04-23 10:14:00 +08:00
Piyush Balwani
bcbb89dcfd kitakami-common: camera: Fix build error for a new SP
* aviraxp:
   Note, the CAF fix seems incorrect in QCameraStateMachine as
   fall-through is intended and the signal won't be sent, so
   change the break to fallthrough. Also add a missing break.

Change-Id: Ia8cb92afc246bfb7ae7a9f2eac90fcdc518e426e
2020-04-23 10:13:52 +08:00
Wang Han
59dc830303 kitakami-common: camera: Adapt build flags for new HAL
Change-Id: Idcd12b236b349ee8f0808ea2f37d297e4d1ae12b
2020-04-23 10:13:45 +08:00
Rajaram Gudivada
1f21f54530 kitakami-common: QCamera2: HAL: FlashLight widget fix for HAL1
Issue:
Flashlight in system tray is not working with HAL1 on
devices with module version >= 2.4.
Its due to framework looks for ANDROID_FLASH_INFO_AVAILABLE
property which is not set in the HAL1 camera info.

Fix:
Populate the required camera static characteristics
regardless of HAL version.

CRs-Fixed: 993695
Change-Id: I5d3b95b3b3f4ab72ae3b67c87a8a2d257260a5de
2020-04-23 10:12:10 +08:00
Ranjith Kagathi Ananda
5ff03252ca kitakami-common: QCamera2: Add HAL-1 support for flashlight
Add .reserveFlashForCamera() and releaseFlashFromCamera() in
openCamera and closeCamera respectively

CRs-fixed: 939604

Change-Id: I49162b31df6b62f1e87269b018c238d1e1eedf5e
2020-04-23 10:12:06 +08:00
Abhinav Sohane
9e6737f4c2 kitakami-common: Qcamera2: flash: Returning -ENOSYS error if torch mode not supported.
Issue: VTSCameraProviderV2_4Target test case is failing in setTorch
       mode.
Fix: Corrected returned error -ENOSYS (OPERATION_NOT_SUPPROTED) if
     torch mode is not supported by cameraid

CRs-fixed:2091737

Change-Id: I9e9bb764016227fbd6cf036c753ca5aeff8eeb7e
2020-04-23 10:12:03 +08:00
Kyong Hwa Bae
cbb4293fd6 kitakami-common: QCamera2: Wait for PMIC to finish initialization
Wait for PMIC to finish initialization.

Change-Id: Ic62e721824dc6409f67863bf42dbbfe7bc0b8959
2020-04-23 10:11:59 +08:00
Mansoor Aftab
41be2f2fed kitakami-common: Camera3: Enable torchlight for PMIC driver
Flash interface driver has changed, making
corresponding changes in HAL
Bug: 21926212

Change-Id: I4c6203ace29c27eafb45a9e19a4be49e82de4121
2020-04-23 10:11:47 +08:00
Mansoor Aftab
9ec56a8710 kitakami-common: QCamera2: Suppress torch mode status change for camera without a flash
When the camera is opened, a callback is triggered to reserve the
camera's flash for camera usage only. Previously, the callback
would happen even if there is no flash associated with the camera.
Now, the callback is suppressed for any camera which does not have
a flash.

Bug: 20069129

Change-Id: I816737b3b7c4976db84bbbe0e71658ababa804f7
2020-04-23 10:11:05 +08:00
Shuzhen Wang
8178642e30 kitakami-common: Camera3: Add support for conflicting_devices and resource_cost
resource_cost of a particular camera is calculated
based on overall CPP bandwidth limit and maximum stream
configuration bandwidth requirement.

[aviraxp: Trim down to dummy support for camera API 2.4.]

Change-Id: Ic207ffe07f51a13acff4c6f9ce7f35d683f12e81
2020-04-23 10:10:57 +08:00
Mansoor Aftab
689431e4b0 kitakami-common: QCamera2: Add flash device name info
Add flash device name info into capability

Change-Id: Iabe9a557162d038a57647febf23457c7080cb3bc
2020-04-23 10:10:53 +08:00
Mansoor Aftab
f46041e3ff kitakami-common: QCamera2: Add HAL support for flashlight
Implemented new API at HAL, allowing framework
to turn on flash devices independently of the sensor.
The primary logic is implemented as a singleton named QCameraFlash,
which tracks the state of any flash devices and interfaces
with the driver to turn them on or off.

Change-Id: I4452e65401140e28aa86184800857a423c9c4b09
2020-04-23 10:09:46 +08:00
Shuzhen Wang
3af32c4671 kitakami-common: QCamera2: stack: Increase camera open retry count
If camera daemon crashes, it could take up to 10 seconds for it
to restarts. This time seems to increase in latest OS upgrade.

Increasing the retry count makes it less likely to fail get_camera_info.

Test: Hardcode hasPendingBuffers in HAL destructor to force restart
Bug: 67576800
Change-Id: Ifd697e7fed4944a255e1efea3b96c75345b253c1
2020-04-23 10:09:41 +08:00
Chien-Yu Chen
f6ad73efaf kitakami-common: QCamera2: HAL3: Increase device open retry times
Device open may fail when cameraserver and mm-qcamera-daemon are
killed at the same time.

Bug: 27869821
Change-Id: I03e006246c2df68b7ef176afd269fabb280b2534
2020-04-23 10:09:37 +08:00
Mansoor Aftab
46a355c8d7 kitakami-common: mm-camera-interface: Retry in case of timeouts
Incase of delayed daemon start there is a possibility of
timeout, HAL should re-attempt in those cases to allow
time for daemon to start.

Change-Id: I1920fb32652e944ca599efef7801045b60c42ca8
2020-04-23 10:09:32 +08:00
Mansoor Aftab
b8d36f25e4 kitakami-common: Camera3: Increase retry count when opening camera
This takes care of cases where mm-qcamera-daemon takes a long
time to launch. get_camera_info depends on mm-qcamera-daemon
being up and running to work. In the worse case,
get_camera_info will be held up by HAL for 200ms.

Bug: 10577806

Change-Id: I7068b0f60bf75c407b603f4e0a0bbb19b8f51f0c
2020-04-23 10:09:18 +08:00
Wang Han
b443cfb522 kitakami-common: camera: Kang from ether
* Based on LA.BF64.1.2.3-03810-8x94.0

Change-Id: I25a6b27716a4d985efaa506eb2399a353514a6c1
2020-04-23 10:07:56 +08:00
TARKZiM
5314d1ec67 kitakami-common: rootdir: Disable ZRAM
* Causes serious memory consumption and making the device laggy,
  so let's disable it until the problem is solved.
2020-04-22 09:37:17 +08:00
TARKZiM
31f09d5fac kitakami-common: rootdir: Create VNDK camera socket folder 2020-04-22 09:36:24 +08:00
TARKZiM
f672bbf9b4 kitakami-common: Build DRM/Widevine HALs 2020-04-16 21:17:19 +08:00
Rk779
c6fb54ebe9 kitakami-common: Update DRM Widevine blobs to Pie
- Blobs from: jasmine_sprout 9 PKQ1.180904.001 V10.0.1.0.PDIMIFJ release-keys (Mi A2)

Signed-off-by: AmolAmrit <amol.amrit03@outlook.com>
2020-04-16 21:14:20 +08:00
Bruno Martins
30d29fa725 kitakami-common: Allow media UID process to access CameraServiceProxy
* This fixes the following error on camera-in-mediaserver devices:

   E CameraService_proxy: Calling UID: 1013 doesn't match expected  camera service UID!

Change-Id: I185e34e8983b286436bfc0fe36cfdf260ef78170
2020-04-06 10:19:41 +08:00
Fagyi
dd54e4871c kitakami-common: Add lmkd props
* Kang lmkd props from newest google devices (aka Pixels).

 * This makes lmkd spread its wings and become a multitasking beast over kernel side LMK.
2020-04-06 10:19:33 +08:00
Jia Cheng She
34b5fe0262
Merge pull request #4 from joel16/patch-1
kitakami-common: Remove android_device_qcom_common dependency
2020-04-06 10:00:36 +08:00
Joel
92cccbf732
kitakami-common: Remove android_device_qcom_common dependency 2020-04-05 21:57:57 -04:00
TARKZiM
59fd0eeef3 Revert "kitakami-common: audio: add back FM entries"
This reverts commit 289ea1fbf7.
2020-03-17 20:08:28 +08:00
TARKZiM
8cf78d8926 Revert "kitakami-common: audio: Use audio session for FM playback"
This reverts commit c66dece6f2.
2020-03-17 20:08:28 +08:00
TARKZiM
b80e148089 Revert "kitakami-common: audio: Fix FM recording with new xml policy"
This reverts commit 8f1abc5626.
2020-03-17 20:08:27 +08:00
Tim Murray
20770475be kitakami-common: add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-03-17 14:17:43 +08:00
Artem Borisov
5490bf5beb kitakami-common: Enable ZRAM with LZ4 compression
Change-Id: Id4d231eed61dbfcfee160393812a417063035f7e
2020-03-17 14:06:06 +08:00
TARKZiM
5c6cf69f87 kitakami-common: libril: Hax VoiceRegistrationStateResponse check
* Our blobs doesn't respond the correct size as AOSP does.
* Thanks to @Professor-Berni for the tips.
2020-03-17 11:16:34 +08:00
TARKZiM
ebcad490f6 kitakami-common: Import libril from hardware/ril
* c7ab9c910b
2020-03-17 11:16:25 +08:00
TARKZiM
0783436231 kitakami-common: radio: Add IMS system packages 2020-02-20 10:50:48 +08:00