Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb connect失败 #49

Open
KaiXuan666 opened this issue Nov 22, 2019 · 1 comment
Open

adb connect失败 #49

KaiXuan666 opened this issue Nov 22, 2019 · 1 comment

Comments

@KaiXuan666
Copy link

我不想要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
Copy link

ghost commented Dec 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@KaiXuan666 and others