Created common code for android and linux test_app