Commit graph

423 commits

Author SHA1 Message Date
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
Prateek Chaubey
92c8318178 land: Address Bluetooth Denial 2017-12-09 13:58:06 +05:30
Darshan Manjrekar
f3583ea52a
land: Update blob list
* Add info about kanged blobs.
* Revert to land-mm bluetooth blobs.
2017-09-30 19:24:26 +02:00
Darshan Manjrekar
89fc71e82c
land: Set key 353 as CAMERA
* Override key 353.
* Thanks to https://www.xda-developers.com/enable-fingerprint-selfie-xiaomi-redmi-3s/.
2017-09-29 09:54:33 +02:00
Darshan Manjrekar
0278c1ad5b
land: audio: Increase volume
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:06 +02:00
dianlujitao
787250ae40
land: Remove fpc delays after authentication cancelled
Change-Id: I03f2facd71b7ef1940641df0308cdf2e4a5f9db2
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:06 +02:00
Zhao Wei Liew
9cc0c41678
land: Restart Snap camera preview after taking a picture
With the OSS camera HAL, the camera preview freezes every time
a picture is taken. Restart the preview to unfreeze it.

Change-Id: If0fd6a1fcb01eccc4cf7f1abc548dcb92e9546b1
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:06 +02:00
Michael Bestas
333bf8080e
land: init: Check if power off alarm is set
Check if power off alarm is set, then set alarm's properties

Adapted from Mao Jinlong <c_jmao@codeaurora.org> patch in init.qcom.early_boot.sh

Change-Id: Ib86584d1c09aba07c47435ac8bed39aac79a80f7
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:06 +02:00
Zhao Wei Liew
c868346a6a
land: init: Check reboot_reason when setting alarm_boot prop
This was missed out from init.qcom.early_boot.sh.

Change-Id: Iab5b0d7782a53b97315d2aa9d0c301ed7725e01d
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:05 +02:00
Bruno Martins
5c98c9e4f1
land: init: Use core init function to read from files
Change-Id: I3fd23490bcdfa4097dad73161ad226337e93cd18
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:05 +02:00
Steve Kondik
bda4d9c090
land: Remove hw_acc effect
* Not used.

Change-Id: I68882a0435b8459031ae31ecc46af6bb62eacf17
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:48:05 +02:00
Rashed Abdel-Tawab
8c91dce055
land: Move Lineage specific overlays to overlay-lineage
Change-Id: Ic38bb1acb4d37f90b62679e4420815f49b30fc7f
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-21 08:47:38 +02:00
Prateek Chaubey
ba6aa98fbb land: Bring back Snap 2017-09-13 05:43:15 +00:00
Darshan Manjrekar
a09a62ddb7
land: configs: Update check_features
* Fix syntax.

Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-12 21:43:16 +05:30
TheScarastic
d312c88162 land: Let ffmpeg take care of flac
Change-Id: I9c6cb8cd9fcdd57d2694f051f205c6024c7b6f57
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-09-05 02:48:30 +08:00
Darshan Manjrekar
5916b63dee land: Update headphone button layout
* As per latest MIUI Global Beta.
* Thanks to danielstuart14.

Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
Signed-off-by: charansai612 <charansai612@gmail.com>
2017-09-05 02:05:21 +08:00
Darshan Manjrekar
7b09a47ec3 land: Remove touch firmware
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-08-31 12:54:00 +08:00
Darshan Manjrekar
3608c79f7a land: Update blobs extraction script
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
2017-08-30 17:47:10 +08:00
Prateek Chaubey
7684ff0806 land: Update Snap overlays
Signed-off-by: Prateek Chaubey <chaubeyprateek@gmail.com>
2017-08-30 17:45:43 +08:00
Prateek Chaubey
eecbeaca75 Revert "land: Unofficial build id"
This reverts commit 55839c952e.
2017-08-30 00:46:39 +08:00
karthick111
371b2f3fea land: Cleanup configurations 2017-08-20 11:42:27 +02:00
karthick111
1fd23e307f land: Kill Snap 2017-08-20 09:41:25 +02:00
karthick111
846366a10d land: Build Qcom power HAL 2017-08-20 07:30:40 +02:00
Prateek Chaubey
510215bf86 Revert "land: Add IMS shim"
This reverts commit 3eadfb53b7.
2017-08-15 16:47:28 +02:00
karthick111
e6759b6918 Revert "land: Build fingerprint wrapper HAL"
This reverts commit 179aafa6fb.
2017-08-15 13:49:06 +02:00