Codementor Events

Droker: Android, Docker and Web Sockets

Published Jun 14, 2017
Droker: Android, Docker and Web Sockets

Start wAndroid on docker

In a container world docker bring the android emulator into to the server world.
In this tutorial, I'll walk you through setting up your own android emulator and access it through your web browser for development, automation testing or pentesting purpose .
To get started, you'll need either a Linux box running a recent version of Ubuntu or any linux os with Docker installed .riting here...

CMD mask on

To simplify the deployment for non Docker experts we created a docker file available on GitLab
As my friend Ramsay bolton known as Abbas Like to make his crimes automated the only thing you need is just to Build And Run

Build

git clone http://gitlab.zxc.ovh/root/webodroid.git  
cd webdroid  
docker build . -t webdroid:0.1 --no-cache 

Run

With the help of asciinema a lightweight, purely text-based approach to terminal recording

asciicast

The stack

  • Docker
  • Ubuntu
  • Novnc VNC client using HTML5 (Web Sockets, Canvas) with encryption (wss://) support.
  • Android sdk

Summary

Avoid hiccups deploy everywhere : Docker come to the rescue .
You can change the docker file to modify the android version stop the ssh access change installation path or change working directories .

Demo

Discover and read more posts from Simon Tadros
get started
post commentsBe the first to share your opinion
Diego Ponce de León
7 years ago

Why is this needed?

RUN mkdir /var/run/sshd &&     echo "root:$ROOTPASSWORD" | chpasswd &&     sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config &&     sed 's@session\s*required\s*pam_loginuid.so@session option
al pam_loginuid.so@g' -i /etc/pam.d/sshd && echo "export VISIBLE=now" >> /etc/profile 
Simon Tadros
7 years ago

as far as i remember i did this so u can ssh directly into the docker instance

Diego Ponce de León
7 years ago

Demo link is broken. How can I install apps in the emulator? How can I see/watch the simulator once installed?

Simon Tadros
7 years ago

just run and use the port 6080

Show more replies