OSDN Git Service

nativebridge: disable 32k32u and 64k64u support temporarily
[android-x86/device-generic-common.git] / nativebridge / bin / enable_nativebridge
index 0f8cd13..2e5b201 100644 (file)
@@ -7,16 +7,11 @@ dest_dir=/system/lib$1/arm$1
 binfmt_misc_dir=/proc/sys/fs/binfmt_misc
 
 if [ -z "$1" ]; then
-       if [ "`uname -m`" = "x86_64" ]; then
-               v=7_y
-               url=http://goo.gl/SBU3is
-       else
-               v=7_x
-               url=http://goo.gl/0IJs40
-       fi
+       v=8_y
+       url=http://goo.gl/v6c4Co
 else
-       v=7_z
-       url=http://goo.gl/FDrxVN
+       v=8_z
+       url=http://goo.gl/CtKjxx
 fi
 
 if [ -s /system/lib$1/libhoudini.so ]; then
@@ -45,6 +40,7 @@ fi
 # this is to add the supported binary formats via binfmt_misc
 
 if [ ! -e $binfmt_misc_dir/register ]; then
+       modprobe binfmt_misc
        mount -t binfmt_misc none $binfmt_misc_dir
 fi
 
@@ -72,6 +68,4 @@ else
        log -pi -thoudini "houdini$1 enabled"
 fi
 
-[ "$(getprop ro.zygote)" = "zygote64_32" -a -z "$1" ] && exec $0 64
-
 exit 0