Commit graph

447 commits

Author SHA1 Message Date
Michael Bestas
c86a6b0c32 camera: Remove executable bit from source files
Change-Id: I64f8a26a8dcbc5a73c32a274f389cf8e62f4d003
2018-02-13 09:05:37 +01:00
Michael Bestas
a969bdbef9 camera: Cleanup Obsolete LOCAL_PRELINK_MODULE.
Change-Id: I2b48ea97aef4dcce31f1354c021d409f68d8dc65
2018-02-13 09:05:37 +01:00
Michael Bestas
57947754da camera: Remove tests
Change-Id: I28c7acf0c8a33ff82d40d6019ed3e32de8f9593e
2018-02-13 09:05:37 +01:00
Michael Bestas
782b2a0c20 camera: Remove unused files
Change-Id: I0c717d165162469ba4b78ea07da6dd88b5cfc18a
2018-02-13 09:05:37 +01:00
Chongkai Zhu
a018167757 land: Disable inline xattr feature for F2FS formatted /data
* This is causing kernel panics since the latest F2FS updates
   (https://github.com/LineageOS/android_kernel_xiaomi_msm8937/commit/cd14a2cf20c)

Change-Id: I356fe89bd8927acf4ed5cbb037185f81f2e91d3e
2018-02-10 18:24:18 +01:00
Ranjith Kagathi Ananda
2792329531 QCamera2: Resolve CLANG compilation errors
Resolve CLANG compilation errors

CRs-Fixed: 981949
Change-Id: Ibeaac796b5e5f0defae76a8ab9bd88d3d1e4c164
2018-01-31 05:35:55 +00:00
Ranjith Kagathi Ananda
c5e87c4791 QCamera2: Remove LOCAL_CLANG := disable flags
Remove LOCAL_CLANG disable flags so that the default
compiler is used.

CRs-Fixed: 981949

Change-Id: Ia5a935bc8d0371c09c25daac32cf0c35ede79a39
2018-01-31 05:35:41 +00:00
Prateek Chaubey
04639bf96d land: overlay: Set hardware buttons correctly
* Fixes Recent Button Customization

Change-Id: Idc362eab8083d60e9e15bb9f62d069ff65b6fbc4
2018-01-31 05:34:38 +00:00
NeoDarkness
1d8013d9d6 land: overlay: Improve haptic feedback performance
Change-Id: Ib8793c6bd8689606a7123de7c126912c064b83c8
2018-01-31 05:33:19 +00:00
Gabriele M
b065c3f78c land: Enable APN settings for CDMA devices
Enable the APN settings for every CDMA device.

Change-Id: I1359077b33e672120c464d3e95d75bca93f0aa86
2018-01-31 05:32:28 +00:00
Prateek Chaubey
26a4030720 land: Unset BTM_DEF_LOCAL_NAME
* Automatically set bluetooth name based on ro.product.model

Change-Id: Ie5659765b27d923c2d27405d694656d1361c4853
2018-01-29 15:44:29 +00:00
Prateek Chaubey
91aa4f87bb land: remove dead services
Change-Id: Ib3dd89c42fb86ac7ef1f74827273c02083ade540
2018-01-28 14:39:57 +00:00
nervehammer
1c0752b2fa land: Add keylayout for Redmi 3X (Imagis touchscreen)
Change-Id: I3ab0017f0d12a6b4adcdc9205149aa24b2136603
2018-01-28 14:39:26 +00:00
karthick111
2e17a7ca3b Revert "land: Set key 353 as CAMERA"
This reverts commit 89fc71e82c.

Change-Id: Ibfaa2ad0d97d3501c3d1b2de438d51c0b6d88819
2018-01-14 11:13:37 +00:00
Prateek Chaubey
2afb3e01a0 land: Update INITIAL_COPYRIGHT_YEAR
Change-Id: I2727a5357eb19abf8e7ef987015d6f67c37a2313
2018-01-13 18:19:54 +00:00
Paul Keith
c74fb38aac land: extract-files: Bring back old behavior for SRC
* Previously, you could just specify a SRC directly
  after './extract-files', and it would work, but
  now, the arg '-p/--path' is required for the same
  behavior to be applied for the extraction
* Add a catch-all case that just sets SRC if the arg
  doesn't match any of the args that we care about
* Make the ordering of the cases alphabetical

Change-Id: Ia2ad42d444904ead6b3bd6d910af363eb7f015cc
2018-01-13 18:17:57 +00:00
Prateek Chaubey
e372b8c80e land: Add kernel dependency
Change-Id: I9257e8180d04bf1e45cad1c5eca1849a3813248a
2018-01-13 14:46:14 +00:00
Darshan Manjrekar
efa789bf52 Revert "land: Shim old camera client to ims-camera"
This reverts commit d07a59e651.
2018-01-11 18:39:10 +05:30
Darshan Manjrekar
1b6f0496a2 land: Update/Cleanup overlays
* Cleanup HWKeys overlays.
* Disable duplicate overlays.
* Remove Multiuser overlays (enabled by default).
2017-12-27 14:41:55 +05:30
Darshan Manjrekar
70f1a47192 land: Address denials 2017-12-27 14:41:55 +05:30
TheStrix
7bff5b2a37 land: Add KeyDisabler
* Use common procfs node for it (/proc/touchpanel/capacitive_keys_enable)

Change-Id: I18fa56ca7f1409df37c15482cd8894345da09c03
2017-12-27 14:41:31 +05:30
Darshan Manjrekar
60dee10c11 land: Rename keylayout 2017-12-25 15:49:08 +05:30
Prateek Chaubey
2c189b3815 land: update Camera props
* Kick Broken Ones
* Disable HAL3
* Fixes Recording With 3rd Party Apps
2017-12-23 23:43:46 +05:30
chaubeyprateek
d2f377536f land: fix the headset keylayout 2017-12-23 00:23:39 +05:30
Prateek Chaubey
b328d58460 Revert "land: Update build fingerprint"
* Safety Net fails even on stock with this
This reverts commit 62ddd50651.
2017-12-23 00:21:46 +05:30
Zhao Wei Liew
6ce696413a land: Use DEVICE_PATH for tree reference
Since we define it, let's use it.

Change-Id: I975118f844d5d7e47869d0142faae8fc59790481
2017-12-18 14:31:56 +05:30
Prateek Chaubey
e00a275fdc land: move WiFi firmware into device tree 2017-12-18 13:17:00 +05:30
Vitaliy Tomin
e191b5b243 land: Use hal1 for Snap camera
* Snap support for camera2 api is not full and hal1 mode
provides more features and more stable experience

Change-Id: I5c71337b5cfaa928c1b9515b37cc8e43a60301b2
2017-12-12 12:12:25 +05:30
dianlujitao
c24fdca06e land: Snap: Disable HDR 1x frame
* This fixes HDR mode.

Change-Id: Ieb8e819dc3fb20ec89c615d6f9ab43c1585c44f8
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-12-12 12:12:00 +05:30
Prateek Chaubey
844c2dee54 land: camera: use Xiaomi headers 2017-12-12 11:17:05 +05:30
Mridul Singh
12cbba2ee3 QCamera2:HAL: Fix for Sensor HDR.
Incase when sensor-hdr is enabled, need to disable the normal
HDR enabled flag.

Change-Id: Ibd7418d8abaabc03625a65fc228d0bac5528fd5e
2017-12-12 11:17:05 +05:30
Guruprasad Gaonkar
a93a2741fc QCamera2: Changes to release video duped FD's.
Issue:
Android camera framework expects camera HAL modules
to release video duped FD's. Framework can trigger this event
after stopRecording() call.
Fix:
Change to avoid state machine check to release video FD's.

CRs-Fixed: 1077211
Change-Id: I6dcc31b335679e4885f56ae1e4e02ee33d193b08
2017-12-12 11:17:05 +05:30
Guruprasad Gaonkar
c93f5696c8 QCamera2: Add buffer identity for video native handle.
Issue: Release_recording() can be called with any Imemory pointer
sent earlier. HAL cannot use this pointer to recognize video frame
to match before release this buffer to kernel.

Fix: Buffer identity is introduced to every video buffer and released
buffer can be found by comparing identity.

CRs-Fixed: 1026840
Change-Id: I287d1276fbf2241a2fc6d470e887a91e1daeca4d
2017-12-12 11:16:34 +05:30
Guruprasad Gaonkar
665ea6feed QCamera2: HAL: Changes to fix batch mode recording issue.
Batch mode video processing was broken on latest builds. Batch mode
enabled and verified with media extension now.

CRs-Fixed: 1013704
Change-Id: Ifb34a9c201f39591ab5d6a8aa70125ca7cad3f4f
2017-12-12 11:04:31 +05:30
Rajaram Gudivada
6fb4d87d52 QCamera2: Max Fps updated as per typeof(MetaData_t::refreshrate)
Issue:
Type of refreshrate is different in different android versions
and if same camera code is used across the versions then
dereferencing the hardcoded int pointer to float resulting a zero.

Fix:
Update Max fps as per the type of(MetaData_t->refreshrate)

Change-Id: Ifced28cdc56252151be4f41e3e652be41af510a0
CRs-Fixed: 1018231
2017-12-12 11:04:13 +05:30
Guruprasad Gaonkar
bacb43c44d QCamera2:HAL1: Close duplicated FD's for media extension.
In video metadata mode, framework allocates native handle
resource and needs to be freed in release recording.
This change is to free framework resources in case of media
extension use cases.

Change-Id: I1bac10740130d506d71ec1275dd7d75f66c263c8
2017-12-12 11:02:38 +05:30
Guruprasad Gaonkar
3dd1d4cba8 QCamera2:HAL1: Update native handle for every timestamp callback
Incase framework updates camera native_handle pointer, we need
to use cached native_handle to update for every timestamp
callback. This change is excecuted only if media extension flag
is enabled for the target.

Issue:
Use case introduced in video to overwrites camera native handle
pointer.

Fix:
Change is to cache camera native handle and restore when video
release camera buffer.

Change-Id: I0bdc01b3f2b51d7bba66320cc8ef1ab019136d4e
2017-12-12 10:58:27 +05:30
Vitaliy Tomin
015dd92754 land: drop camera blobs replaced with oss hal 2017-12-11 20:30:45 +05:30
Vitaliy Tomin
1099d62999 land: camera: Fixes to OSS camera hal to build in LineageOS tree
Change-Id: I9ce7744a23c059cef5221a506173f88099a30bb7
2017-12-11 20:14:37 +05:30
Vitaliy Tomin
880b26ccee land: import oss camera LA.UM.5.1-03810-8x37.0
additional cherry-picks:
 * b706b064b QCamera2: Fix compilation errors for unused variables.
 * 1e2ea589e HAL: Fixed compilation error for AOSP upgrade
2017-12-11 20:14:21 +05:30
chaubeyprateek
f7596dae0b Revert "land: Releasetool extension to remove fp blobs"
This reverts commit 8ee9910.
2017-12-09 23:06:23 +05:30
Prateek Chaubey
10791ee17c land: split proprietary blobs list 2017-12-09 14:23:17 +05:30
Darshan Manjrekar
37c9f53270 land: rootdir: Add cpuset for leftover bins 2017-12-09 14:08:36 +05:30
Michael Bestas
9d7267d0be land: Remove obsolete sepolicy rules
* They are not required after commits:
  land: Update ril-daemon service
  Grant netmgrd proper unix perms

Change-Id: I721a9935764f5003cf597095bbe3493dc8a6b0d1
2017-12-09 14:02:28 +05:30
Bruno Martins
f4645e088c land: Grant rmt_storage proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for pid=2664 comm="rmt_storage" capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

Change-Id: Ib02b4aedab479f5ad8aca3a2100b5c489397002a
2017-12-09 14:02:28 +05:30
Jeff Vander Stoep
9d9aa46c82 land: Grant netmgrd proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for capability=1 scontext=u:r:netmgrd:s0 tcontext=u:r:netmgrd:s0 tclass=capability

Adding
wifi group to access
/data/misc/net/rt_tables
-rw-r--r--  1 system wifi   130 2016-05-11 09:58 rt_tables

wakelock group to access:
/sys/power/wake_lock
-rw-rw----  1 radio  wakelock 4096 1970-01-19 15:03 wake_lock

radio/inet groups to access
/dev/socket/netmgr/netmgr_connect_socket
srw-rw---- 1 radio inet    0 1970-01-19 15:03 netmgr_connect_socket

Change-Id: I7ed6a98dd85bf7efa8cab0b8a0851217f030ba8b
2017-12-09 14:02:28 +05:30
Bruno Martins
1fb2e3443e land: Update ril-daemon service
* Match ril-daemon in rild.rc

Change-Id: I344adb56507775fd5bf20d54046c614f93b57de3
2017-12-09 14:02:28 +05:30
Wyatt Riley
aa3b4c7eec Xtra Fixes - https, version check & version 3
Tells Qualcomm GPS hardware to:
1) Use https
2) Use the more secture version 3 file
3) Check that the
XTRA file version downloaded matches the version
expected - i.e. the more secure (signed) version 3

Test: On device, via adb push/pull, watched
Xtra download logs and confirmed GPS acted as if Xtra
assisted

Bug: 31470303
Change-Id: Ib2a1b9ec9be32f842a158c05fa2ba04cb0262b76
2017-12-09 14:01:23 +05:30
Michael Bestas
43ee1a7e4e land: Remove libI420colorconvert
* It was only used in the long dead video editor

Change-Id: I5a3605585ede0b8f556f53cec7cf8d55d3ae4132
2017-12-09 13:59:21 +05:30
Darshan Manjrekar
62ddd50651 land: Update build fingerprint
* Package: miui_HM3SGlobal_V8.5.4.0.MALMIED_b2ff7423f6_6.0.
2017-12-09 13:59:11 +05:30