diff options
| author | Diego Porto <diego.cfporto@gmail.com> | 2014-06-07 08:02:02 -0300 |
|---|---|---|
| committer | Diego Porto <diego.cfporto@gmail.com> | 2014-06-07 08:02:02 -0300 |
| commit | 6e0208ff0bd43d460eed7d08a1aba60014cfda11 (patch) | |
| tree | 4aebc93a9882ed9040989aac90b2fa7a34c2efb3 | |
| parent | 2fa8cab82a36990bfd128430494a3862b2c84589 (diff) | |
camera: symlink libjhead to match the edited camera blob
| -rw-r--r-- | common.mk | 1 | ||||
| -rw-r--r-- | configs/camera_symlink | 12 | ||||
| -rw-r--r-- | rootdir/init.u8500.rc | 7 |
3 files changed, 20 insertions, 0 deletions
@@ -61,6 +61,7 @@ PRODUCT_COPY_FILES += \ # STE PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/cspsa.conf:system/etc/cspsa.conf \ + $(COMMON_PATH)/configs/camera_symlink:system/bin/camera_symlink \ $(COMMON_PATH)/configs/usbid_init.sh:system/bin/usbid_init.sh # RIL diff --git a/configs/camera_symlink b/configs/camera_symlink new file mode 100644 index 0000000..73c071b --- /dev/null +++ b/configs/camera_symlink @@ -0,0 +1,12 @@ +#!/system/bin/sh + +LIBHEAD="/system/lib/libhead.so" + +if [ ! -f $LIBHEAD ] +then + echo "camerahack: libhead.so not found, symlinking..." + mount -o remount,rw /system + ln -s /system/lib/libjhead.so $LIBHEAD + mount -o remount,ro /system +fi + diff --git a/rootdir/init.u8500.rc b/rootdir/init.u8500.rc index 53bc235..46528d7 100644 --- a/rootdir/init.u8500.rc +++ b/rootdir/init.u8500.rc @@ -386,6 +386,13 @@ service at_distributor /system/bin/at_distributor user root group radio log +# libhead symlink script +service camera_symlink /system/bin/camera_symlink + class main + user root + oneshot + + service usbid_init /system/bin/usbid_init.sh class main oneshot |
