AndroidHooker / hooker

Hooker is an opensource project for dynamic analyses of Android applications. This project provides various tools and applications that can be use to automaticaly intercept and modify any API calls made by a targeted application.
GNU General Public License v3.0
409 stars 109 forks source link

parameter type "[B" out of memory #9

Open guanchao opened 8 years ago

guanchao commented 8 years ago

In "Hooker.java, getStringRepresentationOfAttribute(Object arg)" . If the parameter type of arg is "[B", the length arg array may too big ,which may cause out of memory. When I print the logcat, the element of "[B" is not printed completed, so I think it is out of memory. I think we should check the type of arg when it is "[B" type, which may contains too many elements.

Tibap commented 8 years ago

Hi Guanchao, thanks for your feedback. "[B" is an array of bytes' type. Do you know how big is your array so it cannot print it out? And do you have any details in order for us to reproduce this issue?