dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.61k stars 344 forks source link

Encoding issue in dump.py #192

Closed g0tRoob closed 6 years ago

g0tRoob commented 8 years ago

I tried to get only the tags of the views with "dump -g" and got following error:

Exception in view=View[ class=android.widget.FrameLayout id= ] parent=None: TypeError:coercing to Unicode: need string or buffer, NoneType found Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/androidviewclient-11.5.8-py2.7.egg/com/dtmilano/android/viewclient.py", line 2731, in traverseShowClassIdAndText _str += eis TypeError: coercing to Unicode: need string or buffer, NoneType found

I tested multiple apps and it was always the same.

dump -a works and shows all the tags.

The android language is set to German, if that is of any help. I didn't find a solution until now. Maybe you have any idea?

dtmilano commented 8 years ago

Try 11.5.9 it should fix your problem.

g0tRoob commented 8 years ago

Thanks for the quick response.

I updated it and there's no error anymore.

I just wonder where the difference between dump -a and dump -g is. It appears to be the same ouput and the information about the tags is missing.