DO NOT SUBMIT: experimental: set hals to passthrough mode

audio              32+64
audio.effect       32+64
fingerprint        hwbinder
bluetooth          32+64
boot               hwbinder
camera             32
configstore        hwbinder
contexthub         32+64
drm                32+64
dumpstate          hwbinder
gatekeeper         hwbinder
gnss               hwbinder: passthrough stuck at splash
graphics allocator 32+64
graphics.mapper    32+64
graphics composer  32+64
keymaster          hwbinder
light              hwbinder
omx                hwbinder: passthrough setup wizard crashing
memtrack           32+64
nfc                hwbinder
power              32+64
radio              32+64
radio.deprecated   hwbinder
sensors            hwbinder: passthrough stuck at splash
renderscript       32+64
soundtrigger       32+64
thermal            32+64
usb -----          32+64
vibrator           hwbinder
vr                 32+64
wifi ------        32+64
atcmdfwd           hwbinder
qcril.am ------    32+64

Change-Id: If0b09923c61ba045545a7ce95624ea6bf65a28db
diff --git a/common/base.mk b/common/base.mk
index 1c7bcc9..b1a0547 100644
--- a/common/base.mk
+++ b/common/base.mk
@@ -338,7 +338,7 @@
 LIBCAMERA += android.hardware.camera.provider@2.4-impl
 
 # Enable binderized camera HAL
-LIBCAMERA += android.hardware.camera.provider@2.4-service
+#LIBCAMERA += android.hardware.camera.provider@2.4-service
 
 #LIBCOPYBIT
 LIBCOPYBIT := copybit.msm8660
diff --git a/manifest.xml b/manifest.xml
index faaa179..ff9209b 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -1,7 +1,7 @@
 <manifest version="1.0" type="device">
     <hal format="hidl">
         <name>android.hardware.audio</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>2.0</version>
         <interface>
             <name>IDevicesFactory</name>
@@ -10,7 +10,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.audio.effect</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>2.0</version>
         <interface>
             <name>IEffectsFactory</name>
@@ -28,7 +28,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.bluetooth</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IBluetoothHci</name>
@@ -46,7 +46,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.camera.provider</name>
-        <transport>hwbinder</transport>
+        <transport arch="32">passthrough</transport>
         <version>2.4</version>
         <interface>
             <name>ICameraProvider</name>
@@ -64,7 +64,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.contexthub</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IContexthub</name>
@@ -73,7 +73,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.drm</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>ICryptoFactory</name>
@@ -115,7 +115,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.graphics.allocator</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>2.0</version>
         <interface>
             <name>IAllocator</name>
@@ -133,7 +133,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.graphics.composer</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>2.1</version>
         <interface>
             <name>IComposer</name>
@@ -169,7 +169,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.memtrack</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IMemtrack</name>
@@ -187,7 +187,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.power</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IPower</name>
@@ -196,7 +196,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.radio</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IRadio</name>
@@ -236,7 +236,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.soundtrigger</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>2.0</version>
         <interface>
             <name>ISoundTriggerHw</name>
@@ -245,7 +245,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.thermal</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IThermal</name>
@@ -254,7 +254,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.usb</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IUsb</name>
@@ -272,7 +272,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.vr</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IVr</name>
@@ -281,7 +281,7 @@
     </hal>
     <hal format="hidl">
         <name>android.hardware.wifi</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
         <version>1.0</version>
         <interface>
             <name>IWifi</name>
@@ -299,7 +299,8 @@
     </hal>
     <hal format="hidl">
         <name>vendor.qti.qcril.am</name>
-        <transport>hwbinder</transport>
+        <transport arch="32+64">passthrough</transport>
+        <impl level="generic"></impl>
         <version>1.0</version>
         <interface>
             <name>IQcRilAudio</name>
diff --git a/marlin/BoardConfig.mk b/marlin/BoardConfig.mk
index 31533fb..1a7782f 100644
--- a/marlin/BoardConfig.mk
+++ b/marlin/BoardConfig.mk
@@ -102,7 +102,7 @@
 TARGET_USES_QCOM_BSP := true
 endif
 
-BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=marlin user_debug=31 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff loop.max_part=7
+BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=marlin user_debug=31 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff loop.max_part=7 androidboot.selinux=permissive
 
 BOARD_ROOT_EXTRA_FOLDERS := bt_firmware firmware firmware/radio persist
 BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp