Error uploading Chrome .apk file to create a package

PG
Patrick Genereux
Patrick Morin Inc

Hi there,

I'm trying to upload a Google Chrome apk file in SOTI MobiControl to make a package and I got this error: "Failed to read Android application file (.apk) information. Upload a valid .apk and try again."

I tried 4 differents APK of Google Chrome from 2 differents sites (APKMirror and APKPure). They all stuck exactly at 70% of the upload and after I get the error message.

Thanks in advance.

2 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

For security and stability reasons. any apk file should be obtained from the official source rather than from alternative sites such as APKMirror or APKPure,  which likely archived the apk file from some installed instance and as a result is not a complete package as from the original source and has the risk that additional insecure malware codes included.  The app deployed with such incomplete apk will also fail to work properly if the targeted device firmware or architecture is different from that of the device used to generate the archive.

For Google Chrome, it is advisable to deploy the software officially from Personal/Managed Google-Play store using App Policy, rather than getting some unofficial apk's to be deployed as enterprise app .pcg.package.

PG
Patrick Genereux
2 years ago

Thanks for the reply. I always use Google Play first to get apps when it is possible, but in this case, we are unable to automatically update Chrome this way, even if the app is approved and update are at "high priority", never we have been able to get it updated. So I wanted to test something else with apk... If you have advices about our original problem, go on !  :)

FG
Facundo Grande
2 years ago

Hi Patrick!

Can you confirm that in the app policy you got the app as Mandatory? (This is not a requirement, but it may affect how MC sends the police to the device)
Also, it may help you to send a profile with a Managed Google Play configuration, where you can select the "always update" option in the first section.

If this does not help, please check on the releases notes from the next version of your MC console, it may be a bug that's already fixed.
Hope this helps you!

Kind regards,

PG
Patrick Genereux
2 years ago

Hi Facundo !

Here's the responses:

Can you confirm that in the app policy you got the app as Mandatory? >> Already done

Also, it may help you to send a profile with a Managed Google Play configuration, where you can select the "always update" option in the first section. >> Already done too :(

BTW I'll check with the next update like you said... 

Thanks !

RS
Rafael Schäfer
2 years ago

Is this the only app where you see this problem?
Maybe the app can't update because of firewall restrictions.

Example: We have seen a problem in the past where firmwareupdates got recognized by a device but can't be downloaded because they needed different connections/firewall openenings.

PG
Patrick Genereux
2 years ago

Hi,

It may be the firewall Do you know that ports needs to be open for Google Play apps update ?

RC
Raymond Chan Diamond Contributor
2 years ago

Hi Patrick,

I doubted whether Facundo or Rafael had ever tried to repeat what you did with Chrome apk files downloaded from APKMirror and APKPure sites on their own MobiControl server before they came up with some suggestions  in their posts.   If they had done so, it's hard for me to imagine that they would suggest factors unlikely to be related to your problem based on their own test results.

For me, I had personally done tests with some such apk files on my MobiControl servers more than 16 hours ago before I wrote my last post telling you to use deployment from Managed-Google-Play store instead.   In fact, I could get the same error after reaching 70% of the uploads as you had reported, and nothing would lead me to suspect anything related to app policy options or firewall exceptions.   

RS
Rafael Schäfer
2 years ago

Ok, maybe i accidently missed the 70% thing but this was related to the apk downloaded from an unknown source in his post where someone could have modified it... but i was talking about doing it really directly via Google managed playstore (what you also said before to use for that).

(Following is Not recommended) You could also try to extract the apk yourself: 

  1. Install a device like a consumer one
  2. Update chrome via playstore
  3. Download an app to extract the apk
  4. Check if this apk file will work

Additional note: It can be that you need different apk files for different Android versions and/or models.

FG
Facundo Grande
2 years ago

Hi Patrick,

I doubted whether Raymond really check what you reply to his original answer, if he had done so, it's hard for me to imagine that he would reply in the way he did.

(I recommend you try the following in a separated testing group with just one phone, since I cannot test this myself cause my testing phone is getting used in a demo) Have you considered sending a delete script, forcing to reinstall the app from the PlayStore? (You may have to send a check-in or reapply the policies) It's not ideal, but if the update problem is generating you bigger issues in your operations, it's worth trying it out as a backup plan.

Hope it helps you!
Kind regards,

PG
Patrick Genereux
2 years ago

Hi Facundo,

I'll give it a try and let you know.

Thanks

A
AMMOD@SOTI
2 years ago

Hi Patrick, 

Thanks for posting on soti pulse, thanks Raymond, Facundo, and Rafael for responding to the post.

Have you got a chance to test the suggestion given by Raymond and Facundo, did it resolve your query? 

Kindly let us know.

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |