This is get from the apktools official website. Because it need aapt, so it seems quite hard to use apktools in android app. But if you can get the source code and compiled in aosp environment, could possible make it can run in android side.