facebookarchive / stetho

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.
http://facebook.github.io/stetho/
MIT License
12.66k stars 1.13k forks source link

dumpapp script parameters limited to 65535 #672

Open kmalmur opened 4 years ago

kmalmur commented 4 years ago

When trying to use the dumpapp script with some really long arguments (exceeding 65535 characters), I get the following error:

struct.error: 'H' format requires 0 <= number <= 65535

Example usage: dumpapp setvalue value_key value_base64_exceeding_65535_characters

Seems like the python scripts uses an unsigned short for encoding the argument length: https://github.com/facebook/stetho/blob/5cc93ec78908cdded19c5352a90635a33cf2fa7f/scripts/dumpapp#L42

Is there any way I can modify the script to support longer arguments or is it a protocol limitation and requires the plugin update as well?