Samsung has two android.hardware.power HAL. Take appropriate one.

Samsung includes both stock AOSP android.hardware.power service, and
their own vendor.samsung.hardware.miscpower.

Since the two HALs define the same full-qualified name, hwservicemanager
takes whichever comes last.

Using proper power HAL is needed for Samsung device to have proper sleep
of the touchscreen, and better power handling.

Change-Id: I325e399f4a9004d26fe2df68d8f30e3ec3c1e8aa
diff --git a/rw-system.sh b/rw-system.sh
index b303962..89d3357 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -145,3 +145,7 @@
 	setprop debug.hwui.renderer opengl
 fi
 
+#If we have both Samsung and AOSP power hal, take Samsung's
+if [ -f /vendor/bin/hw/vendor.samsung.hardware.miscpower@1.0-service ];then
+	mount -o bind /system/phh/empty /vendor/bin/hw/android.hardware.power@1.0-service
+fi