honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
791 stars 230 forks source link

Android versions supported by DroidBot #148

Closed Connor-fire closed 1 year ago

Connor-fire commented 1 year ago

What are the Android versions currently supported by DroidBot? Looking forward to your reply. Thank you so much.

yuanchun-li commented 1 year ago

The latest supported version should be Android 31. Later versions are not supported mainly because they are not supported by the minicap library. https://github.com/honeynet/droidbot/tree/master/droidbot/resources/minicap/jni/libs

Niweera commented 1 year ago

Hi @yuanchun-li,

Thank you for this wonderful tool. However, I want to use this tool with Android 32 and I am interested in contributing to upgrading the tool to support Android 32. Can you please let me know how to do it?

Best.

yuanchun-li commented 1 year ago

Sure. To support Android 32, the key is to upgrade the minicap library which is used to capture screenshot in droidbot. Unfortunately, it seems the minicap library is no longer maintained. So you may need to find another way to capture the screenshot. I used adb shell screencap command before, but it was slow. If obtaining the screenshots is not necessary for you, you may try to set self.adapters[self.minicap] to False in device.py to see whether it works.

Niweera commented 1 year ago

@yuanchun-li thank you for the input. Actually, I don't need the screen-capturing feature for my purpose. So I will try your suggestion. Thanks again for your help.

Regards.

Niweera commented 1 year ago

Hi @yuanchun-li,

I am updating your scripts to support Android 32. I will send you a PR once I am done (if that's okay with you).

Best.

yuanchun-li commented 1 year ago

Sure. Please go ahead.