camera: Restart preview after ZSL changes only if the preview is running

Don't touch the preview state if it was stopped to begin with

Change-Id: Ie81c01165778f98f92f11badc17c2023ea4610b7

Conflicts:
	camera/CameraWrapper.cpp
camera: Restart preview after ZSL changes only if the preview is running

Don't touch the preview state if it was stopped to begin with

Change-Id: Ie81c01165778f98f92f11badc17c2023ea4610b7

Conflicts:
	camera/CameraWrapper.cpp
update loki

We're going to need the unlok functionality

Change-Id: I8f6cfaaf365b47d6fd79ac44468771529066df0f

Conflicts:
	releasetools/loki_patch.c
recovery: Add a loki script as a recovery transformation step

This is required to support generated-from-boot recovery installations

Change-Id: I739c99d8beb01110920ed3539d92cf053623c757
Fix the loki product name

When the module and the target are different, installation is keyed to
the name, not the final stem

Change-Id: I86881ffb34b5ca217d8e6c1cb92c195ff36ce864
Automatically detect and set correct panel cmdline

This script will find the value given by the kernel with get_panel_maker_id

	LCD_RENESAS_LGD = 0,
	LCD_RENESAS_JDI = 1

The lcd_maker_id value is generated from the panel hardware, is always accurate and will always set the correct cmdline of your panel

This script can also simply be copy pasted for a kernel zip in loki.sh before the loki function. It has no other requirements besides the script itself since it directly searches and modifies the boot.img and doesn't require the boot.img to be unpacked.

Do not shorten the search function as we need to ensure only the cmdline is being changed and nothing in the actual kernel source.

Continue building the kernel with either the full lgd or jdi cmdline, the script will change the panel as needed.

Currently the script looks for the extracted boot.img in /tmp and /tmp/loki

Signed-off-by: dr87 <nb00870@gmail.com>
Add fast flag under primary

Fix AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate (48000 vs 44100) logcat spam.

Signed-off-by: dr87 <nb00870@gmail.com>