Installing APK from email attachment

两盒软妹~` 提交于 2019-12-23 06:57:32

问题



Whenever i send a .apk file via email as an attachment and then open the .apk-file in my phone from my email-account, i get a parsing error.
However if i put the .apk on my website and provide a URL to it, it works like a charm.

A bug? Just me? Am i doing it wrong?
Thanks


回答1:


That on new Android versions works very well, because, if the attachment is and apk then appear an install button. (on GMail native app)

But for older Android versions you will need and app like Email install this one : http://www.appbrain.com/app/email-installer/com.best.app.attachment




回答2:


I experienced the same issue with Android ICS (4.0.4). I would suggest, do not try to open the attachment (.apk) if the gmail account is configured in the device. Instead, Open your gmail account in the browser,open the email and now try to download the attachment. It worked for me :) Hope it helps.




回答3:


I can install apps received from in my gmail account. My exchange and pop mail accounts will not allow it.

FYI - If you have Astro File Browser make sure the 'Enable Browser Download' option is disabled. It is a handy feature to allow download of any file type, but it interferes with gmail attachments.




回答4:


The easiest way to transfer and install is by emailing it. When sending, set your text settings to Unicode text, if for some reason it gives you a parsing error when trying to install on your phone. Astro or another of file browser app is useful for finding the file after you download it from email, just tried it and it worked fine. The only errors came when I used any other text setting in email besides Unicode. Unicode text and everything installed perfectly.




回答5:


I started getting the error Can't find app to open file on Google's Inbox app when installing an .apk through it, but then I tried it in Gmail, and it worked like a charm.




回答6:


I recently ran into this problem when sending an apk from Mail on OSX but the same apk installed when sent from gmail.

To investigate this issue, I saved the output from 'Show original' in gmail for the emails sent from gmail and Mail. I ran:

diff fromGmail.txt fromMail.txt

And noticed the following difference in the attachment Content-Types:

from gmail:

Content-Type: application/vnd.android.package-archive; 

from Mail:

Content-Type: application/octet-stream;

I suspect this difference is the major culprit.

You can refer to my question, here. My guess is that any mail client that sends apk attachments with the correct content-type would pass installation.



来源:https://stackoverflow.com/questions/4735977/installing-apk-from-email-attachment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!