[hshan] Android code refactoring