NeoTerrm / NeoTerm

👍 modern terminal emulator for Android
GNU General Public License v3.0
655 stars 85 forks source link

adb connect失败 #49

Open KaiXuan666 opened 4 years ago

KaiXuan666 commented 4 years ago

我不想要NeoTerm这样多的功能,只需要在我的手机上执行adb命令 现在我有libadb.so和libfastboot.so 能够执行adb和adb version两个命令 但是无法执行adb connect 和adb install 报错如下: 2019-11-22 20:09:02.656 21493-26876/crixec.adbtoolkitsinstall I/Run command =>: alias adb='/data/app/crixec.adbtoolkitsinstall-tTRcdvl9cI5c2rk5OwocSg==/lib/arm/libadb.so' 2019-11-22 20:09:02.656 21493-26876/crixec.adbtoolkitsinstall I/Run command =>: alias fastboot='/data/app/crixec.adbtoolkitsinstall-tTRcdvl9cI5c2rk5OwocSg==/lib/arm/libfastboot.so' 2019-11-22 20:09:02.657 21493-26876/crixec.adbtoolkitsinstall I/Run command =>: export TMPDIR='/sdcard/adb' 2019-11-22 20:09:02.657 21493-26876/crixec.adbtoolkitsinstall I/Run command =>: adb connect 10.67.149.27:5555 2019-11-22 20:09:02.690 21493-27189/crixec.adbtoolkitsinstall I/Stderr: error: cannot open '/data/local/tmp/adb.10843.log': Permission denied 2019-11-22 20:09:02.691 21493-27188/crixec.adbtoolkitsinstall I/Stdout: daemon not running. starting it now on port 5038 2019-11-22 20:09:02.692 21493-27189/crixec.adbtoolkitsinstall I/Stderr: ADB server didn't ACK 2019-11-22 20:09:02.692 21493-27189/crixec.adbtoolkitsinstall I/Stderr: failed to start daemon 2019-11-22 20:09:02.692 21493-27189/crixec.adbtoolkitsinstall I/Stderr: error: cannot connect to daemon

我已经设置了TMPDIR的目录指向,但是后面仍然报出 cannot open '/data/local/tmp/adb.10843.log': Permission denied 应用是拥有外置存储读写权限的,并且adb目录已创建 求大佬解答

ghost commented 4 years ago

这个/data/local是需要root权限的