How to send .apk file over mobile Gmail?


Question

Since .apk is a regular executable file, I was more than sure that I will be able to trick mobile Gmail in the same way as I was able to trick PC version of Gmail years ago to force it to send a PC executable (.exe) which it prevented as well. Turned out, I was wrong.


Usually changing file extension to .dat or some other or compressing it with password (encrypting file) was enough for PC version of Gmail.


However, for mobile version, everything that I have ready at a hand and tried failed as well:



  • sending as plain file (obviously),



  • changing .apk extension to .dat or some other,



  • compressing with ZIP with no password,



  • compressing with ZIP (ultra compression) and encrypting archive with a password,



  • compressing with 7ZIP (ultra compression) and encrypting archive with a password,



  • using an 7 years old idea of double compression:



    • compress .apk file into .zip file without password,

    • compress resulting .zip file again into another .zip file with password / encryption.




If mobile Gmail is able to detect that I am sending .apk executable file even in 7zip compressed file with password (or it can prevent me from sending such file for any other reasons) do I have any option left? Is there any way to send .apk file over mobile Gmail (attach them to message composed in mobile Gmail)?


Answer

Blocking .apk files and encrypted archives as email attachments is clearly mentioned in GMail policy:



To protect you against potential viruses and harmful software, Gmail doesn't allow you to attach certain types of files, including:

...



  • Password protected archives whose content is an archive




To protect your account, Gmail doesn't allow you to attach certain types of files...:

.ade, .adp, .apk, ...



So no one can help with that except Google. You can go with file sharing as suggested by others here, and Google as well:



If you're sure the file is safe, you can ask the sender to upload the file to Google Drive. Then send it as a Drive attachment.



Source: https://support.google.com/mail/answer/6590


But if email attachment is the only option you want to go with, use GPG/PGP encryption which is very commonly used in emails, even to encrypt whole emails including subject and body. Many e-mail clients provide OpenPGP-compliant email security. On Android you can use Termux or OpenKeychain for GPG file encryption. Both are open-source and free (I've no affiliation with either).


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes