am dc2c1362: am 1bfa5508: Use the common implementation of the factory-image-generator

* commit 'dc2c13623aa0a7e2646d35f89ed2ae0f7f97e831':
  Use the common implementation of the factory-image-generator
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 76e14c9..d3b8b6f 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -20,6 +20,10 @@
 # Use the non-open-source parts, if they're present
 -include vendor/samsung/crespo/BoardConfig4gVendor.mk
 
+# Use the open-source board-info file if none was set by the vendor
+# config.
+TARGET_BOARD_INFO_FILE ?= device/samsung/crespo4g/board-info.txt
+
 # Use the parts that are common between all crespos
 include device/samsung/crespo/BoardConfigCommon.mk
 
diff --git a/board-info.txt b/board-info.txt
index 1d93aff..91a3d73 100644
--- a/board-info.txt
+++ b/board-info.txt
@@ -1,3 +1,6 @@
+# This is the open-source version of board-info.txt; it should contain
+# version of the radio and bootloader that are available to the
+# public.
 require board=herring
 require version-bootloader=D720SPRKC5|D720SPRKE1
 require version-baseband=D720SPRKC9|D720SPRKD8|D720SPRKE5|D720SPRKH1|D720SPRKL1|D720SPRKL2|D720SPRLC1
diff --git a/crespo4g_overlay/frameworks/base/core/res/res/values/config.xml b/crespo4g_overlay/frameworks/base/core/res/res/values/config.xml
index 24b48ba..4a6afc6 100755
--- a/crespo4g_overlay/frameworks/base/core/res/res/values/config.xml
+++ b/crespo4g_overlay/frameworks/base/core/res/res/values/config.xml
@@ -106,7 +106,7 @@
     </string-array>
 
     <!-- Set and Unsets WiMAX -->
-    <bool name="config_wimaxEnabled">true</bool>
+    <bool name="config_wimaxEnabled">false</bool>
     <!-- Location of the wimax framwork jar location -->
     <string name="config_wimaxServiceJarLocation">/vendor/lib/wimax_service.jar</string>
     <!-- Location of the wimax native library locaiton -->
diff --git a/device.mk b/device.mk
old mode 100755
new mode 100644
index 85ee3d4..2302d64
--- a/device.mk
+++ b/device.mk
@@ -52,7 +52,7 @@
 
 # Hardware-specific features
 PRODUCT_COPY_FILES += \
-    frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
+    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
     device/samsung/crespo4g/init.herring.rc:root/init.herring.rc
 
 # GPS config
diff --git a/full_crespo4g.mk b/full_crespo4g.mk
index 30c57d2..3713b79 100644
--- a/full_crespo4g.mk
+++ b/full_crespo4g.mk
@@ -19,10 +19,6 @@
 # product configuration (apps).
 #
 
-# Camera
-PRODUCT_PACKAGES := \
-    Camera
-
 # Live Wallpapers
 PRODUCT_PACKAGES += \
         LiveWallpapers \
diff --git a/init.herring.rc b/init.herring.rc
index d6a3a6c..2409d45 100755
--- a/init.herring.rc
+++ b/init.herring.rc
@@ -69,6 +69,11 @@
 # Permissions for System Server and daemons.
     chown system system /sys/class/backlight/s5p_bl/brightness
 
+# Configure and enable KSM
+    write /sys/kernel/mm/ksm/pages_to_scan 100
+    write /sys/kernel/mm/ksm/sleep_millisecs 500
+    write /sys/kernel/mm/ksm/run 1
+
 on post-fs-data
 # wi-fi
     mkdir /data/misc/wifi/sockets 0770 wifi wifi
@@ -99,7 +104,7 @@
     group root
     oneshot
 
-service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
+service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
     class main
     socket wpa_wlan0 dgram 0660 wifi wifi
     disabled