[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.
Merge pull request #2127 from wuhengzhi/internal_api

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