on-internet
← Community

Serving android APK files for installation, application/vnd.android.package-archive parse error

Stack Overflow ·

I am looking to enable download and installation of an android application package (APK) from my own server through a browser download. This appears to be blocked in the latest versions of android with the cryptic "There was a problem parsing the package" message. In the past (I forget which version of android) this worked just fine. Need help making it work in Android 11. Here is the header content used to serve the file: header('Content-Description: File Transfer'); header('Content-Type: application/vnd.android.package-archive'); header("Content-Disposition: attachment; filename=\"".$filenam

Comments

Sign in or sign up to comment and upvote.

No comments yet.