Merge remote-tracking branch 'quic/display.lnx.3.0-dev' into LA.HB.1.3.9
Change-Id: Ic494c2f6350da6fb5d03fbfe1f9fcfebd8b270f0
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp
index 147b9cb..bebb6b4 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -457,23 +457,16 @@
data.allocType = 0;
if(usage & GRALLOC_USAGE_PROTECTED) {
- if (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP) {
- if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) {
- ionHeapId = ION_HEAP(SD_HEAP_ID);
- /*
- * There is currently no flag in ION for Secure Display
- * VM. Please add it to the define once available.
- */
- ionFlags |= ION_SD_FLAGS;
- } else {
- ionHeapId = ION_HEAP(CP_HEAP_ID);
- ionFlags |= ION_CP_FLAGS;
- }
+ if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) {
+ ionHeapId = ION_HEAP(SD_HEAP_ID);
+ /*
+ * There is currently no flag in ION for Secure Display
+ * VM. Please add it to the define once available.
+ */
+ ionFlags |= ION_SD_FLAGS;
} else {
- // for targets/OEMs which do not need HW level protection
- // do not set ion secure flag & MM heap. Fallback to system heap.
- ionHeapId |= ION_HEAP(ION_SYSTEM_HEAP_ID);
- data.allocType |= private_handle_t::PRIV_FLAGS_PROTECTED_BUFFER;
+ ionHeapId = ION_HEAP(CP_HEAP_ID);
+ ionFlags |= ION_CP_FLAGS;
}
} else if(usage & GRALLOC_USAGE_PRIVATE_MM_HEAP) {
//MM Heap is exclusively a secure heap.
diff --git a/libqservice/IQService.cpp b/libqservice/IQService.cpp
index e4aee7a..f63e411 100644
--- a/libqservice/IQService.cpp
+++ b/libqservice/IQService.cpp
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2010 The Android Open Source Project
- * Copyright (C) 2012-2014, The Linux Foundation. All rights reserved.
+ * Copyright (C) 2012-2016, The Linux Foundation. All rights reserved.
*
* Not a Contribution, Apache license notifications and license are
* retained for attribution purposes only.
@@ -97,6 +97,7 @@
const bool permission = (callerUid == AID_MEDIA ||
callerUid == AID_GRAPHICS ||
callerUid == AID_ROOT ||
+ callerUid == AID_CAMERASERVER ||
callerUid == AID_SYSTEM);
if (code == CONNECT_HWC_CLIENT) {