Add NBS support.

Add support new build system and AndroidStudio support.
Duplicated permission.