Overlay support for legacy camera libs

kanged from https://github.com/omnirom/android_frameworks_native/commit/6233f1e7dcdc087fd4e4aaf4d8626ad5303fb9c8