[Android] Add the core internal shell and the test project.

This patch is to add the core internal shell and test code for internal
shell.
All of the codes are modified from the core shell and core test project.