Git Product home page Git Product logo

Comments (5)

somebody365 avatar somebody365 commented on July 17, 2024 1

I know the reason.Because if you want to use AndBug to debug app, your phone must be the debug version(ro.debuggable = 1), or the app‘s android:debuggable="true"

from andbug.

somebody365 avatar somebody365 commented on July 17, 2024

It works well when I use emulator, but I have the same problem when using real phone device. Could you help me? Thank you!

from andbug.

tunsuy avatar tunsuy commented on July 17, 2024

@somebody365 ,it doesn't work when i do it like you said。Could you help me? Thank you!

from andbug.

xingchch avatar xingchch commented on July 17, 2024

Try to root your device first.

from andbug.

dk201996 avatar dk201996 commented on July 17, 2024

same problem with a rooted Android 6.0
!! [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/local/bin/andbug", line 34, in main
andbug.command.run_command(args)
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/usr/local/lib/python2.7/dist-packages/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 97, in connect
p.start()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 278, in start
self.readHandshake()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 79, in read
pkt = conn.recv(req)
error: [Errno 104] Connection reset by peer

root@kali:~# andbug shell -p 15543
!! [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/local/bin/andbug", line 34, in main
andbug.command.run_command(args)
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/usr/local/lib/python2.7/dist-packages/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 97, in connect
p.start()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 278, in start
self.readHandshake()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 79, in read
pkt = conn.recv(req)
error: [Errno 104] Connection reset by peer

from andbug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.