Hani Ayoub
Hani Ayoub

Reputation: 67

How to change Android cameras properties?

I'm searching for a place in Android (Kitkat 4.4) source code where I can find the camera properties and change them, specifically where ro.camera.0.devname is defined.

I searched for *.prop files under the Android source code that I have (it's private, so I can't really share it) but I didn't find any place where the devname is defined (in general is should be defined as /dev/video0 or /dev/video1)

Is there anyone that knows where such definitions should be?

Upvotes: 1

Views: 1644

Answers (1)

Eddy Talvala
Eddy Talvala

Reputation: 18097

ro.camera.0.devname is not a property used by AOSP camera code; it's likely specific to some OEM's camera HAL implementation, or to an OEM's custom Android version.

However, to help your search, those properties are often set by the makefiles that define products. For example, for the N5, there's a large number of PRODUCT_PROPERTY_OVERRIDES in the core device definition makefile:

https://android.googlesource.com/device/lge/hammerhead/+/master/device.mk

So perhaps try searching over all the .mk files as well, or just do a full 'repo grep' for that property name?

Upvotes: 1

Related Questions