Hello,Dean,
The following is my advice :
1. Test TVIN
It is correct for you to use camera.apk to test TVIN on android platform.
2. Camer working flow
adv7180 driver--->csi driver of i.mx6--->android HAL of camer.
3. The procedure of porting TVIN
(1)Adjust BSP file of your design.
On our Sabre-AI board, ADV7180 has been supported, you could open "myandroid/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabreauto.c" and refer to code for adv7180, then add them into your BSP file.
(2)Adjust HAL code of camera
Hardware Abstract Layer of camera is at path "myandroid/hardware/imx/libcamera/", After reading corresponding code , you will know how to modify them for you design.
Please according to the above advice, and try to do porting !
Regards,
Weidong