APK installation limits outside of Google Store
This was a problem with ADB. ADB use to verify that the file was an APK and read the entire file into memory before installation. This could cause mallac to return NULL , closing your ADB session (see file_sync_client.c...