Reputation: 1319
I'm developing an Android app which keeps track of installation status of other apps. I want to test a scenario when some app fails to install. For this I need an bad .apk file which would fail. What is the easiest way to get such a file? Maybe Google provides such test .apk's? Is there some way to easily change some apk to get it to fail?
Upvotes: 0
Views: 223
Reputation: 1145
Any '*apk' is compressed archive such as '*zip'. So, I think the easiest way to corrupt any '*apk' is to change its extension to '*zip', unpack, delete any file (or for ensure Manifest.xml), pack to '*zip' and change extension back to '*apk'.
Hope it helps
Upvotes: 2