hitchhiker
hitchhiker

Reputation: 1319

What is the easiest way to get installation error of .apk Android app?

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

Answers (1)

Domin
Domin

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

Related Questions