Forbidden download of APK file from Apache Server using Chrome - android

I have created a private apk file for an android application that I want to keep private for certain users only. I do not want to make it available on Play store.
I uploaded the apk file onto a remote Apache web server running on a Linux machine.
There is a web page with a link to the apk file so that when a user clicks on the link, the apk file can be downloaded.
The user then simply installs the application onto their Android devices.
When I tested it on localhost, the download works fine.
But when I try to download it from the hosted server (using chrome web browser) I get Failed - Forbidden.
I did some research I understood that Google chrome denies the download of apk file for security reasons. I even turned off the security settings in the browser, but to no avail.
See attached image
Any help would be most welcome!

Related

Open PDF in Android without it Automatically Being Downloaded To Device

I have a mobile responsive website where users enter login credentials to gain access to view
pdf files inside my portal.
When viewing the website on my android phone, if a pdf is opened from inside the portal, my android phone automatically downloads a copy of the pdf on the android phone and then opens it.
This same process on a laptop or desktop simply opens the pdf in the default browser. There is a download button, but it is not automatically downloaded on the device.
From a programming standpoint, is there a way a programmer could prevent the PDF document from being automatically downloaded on the android phone and just have the document viewable in the browser?
Depends on what you mean by downloaded. Whenever you view ANYTHING on the web, you have to download it. Downloading is the process of receiving data from a remote source. You have to download any webpage or url to view it.
It seems what you're asking is "Does it have to be saved to a file in the Downloads folder". In which case no, it doesn't. You could download it and keep it in RAM.

Download file apk from server and install it

I have feature check newest version the application, if current version is lesser than version in server it will show dialog to update the application like this .
in above update, if i click copy link and download, it will copy url and open the browser,after that download .apk from url server i already setting.
it's work , but i want make it more efficient. I want if i click the button , it will download .apk from server and show the progress download without open the browser. How can i do this ?
Thank's
Play Store
It's not a feature currently available to my knowledge. In apps I develop, I can check the version number and block the user from using the app via a dialog, but provide a link to the Play Store, so they can update to the latest version.
However, Android 11 provides Inline Updates, which provides a more streamlined experience.
Check out In-App Updates
Android 11 as of this date is currently in preview. To use the APIs you will have to use a platform channel to call natively from Flutter.
Side loading
Check out Install Application programmatically on Android
You will have to use http to download the APK to external storage, then call these APIs via a platform channel.
Yes you can make it to where when you click a button, a file (any format including APK) is downloaded to the Downloads/Files folder of the user's device.
However, it is something that is handled by the server that is storing the files.
For example, if you tap on this link, it will automatically download a PDF file on your Android phone or on your browser, even if PDFs generally open inside your browser.
There is a few suggestions given here on how to do it, including setting "Content-Disposition: attachment" or "Content-Type: application/octet-stream"

Download video from s3, works in Android and Desktop, but not in iOS

My website creates "presigned-url" to download files from Amazon S3.
In Desktop and Android this URL starts download perfectly using Chrome or other browser.
https://s3.sa-east-1.amazonaws.com/videos.cinemedsite.com.br/888888/888888_00000000000_20180808_235040.mp4?AWSAccessKeyId=AKIAJQCURENNFPNNGK6A&Expires=1609383840&Signature=4lYLxgkAIt3xMer%2FPcL%2FAepwbkY%3D
But with this same URL on iOS (iPad and iPhone tested), the video just plays in any browser and there's no way to download.
I've tried to download directly from aws console too, no success.
Metadata is already configured as :
content-disposition: attachment;filename=lixo.mp4
content-type: video/mp4 (already tried application/octet-stream also).
Any ideas ?
Thanks in advance!
Marcello
On iOS there is not a user accesable file systems with default download 'folder' as you have on a PC or MAC - i.e. you can't just click a link in the browser and have the file download to it.
With Apps like dropbox you van open a PDF file, for example, in your browser and then click the Share button and choose Dropbox to download to your device. 'Documents', another app available on the appstore, has a built in browser so is worth looking at also.
You can create your own application which will accept a URL, download it and then provide a list or directory of downloaded files. These files will only be visible by the app unless you add some functionality to save them to, for example, the gallery.
There is an AWS SDK available on Github which would be a good place to start if you are using your own app: https://github.com/awslabs/aws-sdk-ios-samples

File upload in IOS safari browser

In my web app, User need to upload doc or pdf file from Mobile or Tablet browser [Android & IOS].
It's fine in Android, But IOS now allowing to access file system except images for uploading using safari.
I am searching for alternative ways and need solution without jail breaking, but i can't find one.

Unable to download .apk in android 5.0 from website

Need help.
We have two servers that deploy the website. The website has a link that can download an .apk file to a mobile.
The problem is, when site is access in mobile using android 4.x, it downloads successfully on both server. However, when using android 5 (lollipop), it download successfully in one server but unsuccessful in another.
the mime type for both server is the same (application/vnd.android.packa..). Certificate for both server is ok also (although they have different issuer, which I don't think is an issue)
I also check the properties of the website, and its the same.
Is there are any setting in web server that I need to check or any security setting that makes one server download successfully the apk file while the other does not?
Appreciate any thought on this.

Categories

Resources