X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=blobdiff_plain;f=nativebridge%2Fbin%2Fenable_nativebridge;h=609ecdbb6df4697a9c883705e95d2e218e5100c4;hp=2e3a926a57f19e4bc58cb34bd0cd31efd6f4dacd;hb=c35ffc56465e575d812b712feb59acf0ae13cb79;hpb=e0c1988f2a7308a0c20f762f2a002befb1de5547 diff --git a/nativebridge/bin/enable_nativebridge b/nativebridge/bin/enable_nativebridge index 2e3a926..609ecdb 100644 --- a/nativebridge/bin/enable_nativebridge +++ b/nativebridge/bin/enable_nativebridge @@ -6,17 +6,19 @@ houdini_bin=0 dest_dir=/system/lib$1/arm$1 binfmt_misc_dir=/proc/sys/fs/binfmt_misc +urls[0]=http://t.cn/RBJ7mfG +urls[1]=http://t.cn/RBJ7eml +urls[2]=http://t.cn/RBJzLwu +urls[3]=http://goo.gl/96BPKe +urls[4]=http://goo.gl/v6c4Co +urls[5]=http://goo.gl/CtKjxx + if [ -z "$1" ]; then - if [ "`uname -m`" = "x86_64" ]; then - v=8_y - url=http://goo.gl/v6c4Co - else - v=8_x - url=http://goo.gl/96BPKe - fi + v=8_y + u=1 else v=8_z - url=http://goo.gl/CtKjxx + u=2 fi if [ -s /system/lib$1/libhoudini.so ]; then @@ -34,9 +36,10 @@ else while [ "$(getprop net.dns1)" = "" ]; do sleep 10 done - wget $url -cO houdini$v.sfs && continue + wget ${urls[$u%6]} -cO houdini$v.sfs && continue rm -f houdini$v.sfs sleep 30 + let u+=3 done fi @@ -73,6 +76,4 @@ else log -pi -thoudini "houdini$1 enabled" fi -[ "$(getprop ro.zygote)" = "zygote64_32" -a -z "$1" ] && exec $0 64 - exit 0