linux - adb hangs when running scripts in debian chroot on android -


i'm trying run scripts under testing binaries compiled arm-android. achieve have debian in chroot, bash script computer, android shell , chrooted debian itself. problem after running twice, adb hangs , looks way fix reboot device. hanging mean running adb shell, adb push or has no effect, adb not responding.

also, if keep adb shell open when hangs, though cannot connect new shell tablet, old connection still works. observed services on android being killed when adb stops responding. idea may cause , how can debug it?

script running on computer:

adb shell "mount -o remount,rw /" printf "pushing android.sh device... " adb push android.sh / adb shell "chmod 777 android.sh" printf "pushing debian.sh device... " adb push debian.sh /data/local/debian/ adb shell "chmod 777 /data/local/debian/debian.sh" adb shell ./android.sh printf "fetching results device... " adb pull /data/result.log cat result.log 

android.sh :

mount -o bind /proc /data/local/debian/proc mount -o bind /sys /data/local/debian/sys mount -o bind /dev /data/local/debian/dev mount -o bind /dev/pts /data/local/debian/dev/pts mount -o remount,exec,dev,suid /data mount -o bind /system /data/local/debian/system export path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$path export home=/root export shell=/bin/bash chroot /data/local/debian ./debian.sh 

and debian.sh:

cd /path-with-binaries touch result.log ctest my-tests > result.log exit 


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -