Revert "CameraManager: Add path to update vendorTag info upon HA..."

Revert submission 18129735-b181579423

Reason for revert: Causing HWAddressSanitizer bug
Reverted Changes:
I8d8c00159:CameraManager: Add path to update vendorTag info u...
I01212f4c6:CameraService: Add path to update vendorTag info u...
Bug: 231526212
Change-Id: I0d2da06c531081ba7243b565d8318a6afff45a2b
This commit is contained in:
Ravneet Dhanjal
2022-05-06 18:57:22 +00:00
parent ffaa2a236b
commit 716687046f
2 changed files with 1 additions and 16 deletions

View File

@@ -2200,14 +2200,6 @@ public final class CameraManager {
return;
}
// Setup vendor tag on status change in case it was not set correctly
// during connect due to issues in HAL
try {
CameraMetadataNative.setupGlobalVendorTagDescriptor();
} catch (ServiceSpecificException e) {
handleRecoverableSetupErrors(e);
}
Integer oldStatus;
if (status == ICameraServiceListener.STATUS_NOT_PRESENT) {
oldStatus = mDeviceStatus.remove(id);

View File

@@ -947,15 +947,8 @@ static jint CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jclass th
return hardware::ICameraService::ERROR_DISCONNECTED;
}
binder::Status res = cameraService->setUpVendorTags();
if (!res.isOk()) {
ALOGE("%s: Failed to setup vendor tags for camera providers: %s", __FUNCTION__,
res.toString8().string());
return res.serviceSpecificErrorCode();
}
sp<VendorTagDescriptor> desc = new VendorTagDescriptor();
res = cameraService->getCameraVendorTagDescriptor(/*out*/ desc.get());
binder::Status res = cameraService->getCameraVendorTagDescriptor(/*out*/desc.get());
if (res.serviceSpecificErrorCode() == hardware::ICameraService::ERROR_DISCONNECTED) {
// No camera module available, not an error on devices with no cameras