3

Well I'm working on a project which requires me to do a couple of automated things on a website. Its all working good. I've setup WebView and binded JS interface with Java on android to communicate with it.

It works great. But it is really ugly and painful. Also, I'm making WebView full screen and invisible in a service (I need to do that in background). The reason is that the project I'm doing uses websocket to make a request. So I cannot simply GET/POST with Java.

Moreover, the javascript used by the website is too complicated to deobfuscate and scractch out the API used by websocket to communicate (it just shows Binary OPCode 2 in Frames tab in chrome debugger)

So what I'm getting to is, is there any easy way to go headless on android which supports websockets?

mehulmpt
  • 15,861
  • 12
  • 48
  • 88
  • did you ever find a solution (or a workaround) for your problem? – soey Aug 11 '17 at 12:24
  • 1
    @soey I deobfuscated the js and created a minimal webview with websocket in service which I did not add to window screen and it worked fine. – mehulmpt Aug 11 '17 at 17:07
  • did you find any way to solve this problem ? I have the same problems , but i have no new ideals ? Can we build a headless browser use NDK ?? – tnk_peka Sep 06 '17 at 16:21

0 Answers0