refactor new types

new apk
problem in android: segfault