Android: Inject fake camera preview for testing purpose

后端 未结 1 1480
灰色年华
灰色年华 2021-01-11 11:49

I am writing some black-box, acceptance tests that run on a physical android device. The application under test (AUT) relies on the camera\'s preview. Specifically, it uses

相关标签:
1条回答
  • 2021-01-11 12:40

    Please see Android mock Camera and How to mock a picture in Android Emulator Camera? Both methods don't need rooted device, but require a change of the application. I believe you can make the necessary modification even if you don't have access to the source code, by decompiling the dex.

    0 讨论(0)
提交回复
热议问题