update the code for framework Android and linux building