Commit c3e00c27 authored by topjohnwu's avatar topjohnwu

Legacy adb shell does not have uname

parent 175d920c
...@@ -31,7 +31,7 @@ if [ ! -f /system/build.prop ]; then ...@@ -31,7 +31,7 @@ if [ ! -f /system/build.prop ]; then
cd "`dirname "$0"`/.." cd "`dirname "$0"`/.."
adb push native/out/x86/busybox scripts/emulator.sh /data/local/tmp adb push native/out/x86/busybox scripts/emulator.sh /data/local/tmp
emu_arch=`adb shell uname -m` emu_arch=`adb shell uname -m`
if [ $emu_arch = "x86_64" ]; then if [ "$emu_arch" = "x86_64" ]; then
adb push native/out/x86/magiskinit64 /data/local/tmp/magiskinit adb push native/out/x86/magiskinit64 /data/local/tmp/magiskinit
else else
adb push native/out/x86/magiskinit /data/local/tmp adb push native/out/x86/magiskinit /data/local/tmp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment