How safe is it to upgrade apps using Aptoid?


Question

I know that there are issues with using Aptoide to install apps on Android. There's a pretty good discussion about this in this other question. If only regarding legal issues, Aptoide is definitely a gray area as some apps are not legally distributed there, clearly bypassing fees setup on the Google Play Store or breaking licensing terms. Furthermore, there are concerns that malware can be injected in apps shipped on Aptoide, although they make efforts to scan apps for such problems.



I wonder, however, if upgrading apps has the same issues as installing fresh new apps. Say I have an old APK from an app I paid from on the Google Play Store, then lost access to my store credentials (lost the phone!) but I still have the APK of the application lying around. So I installed that old version of the app and want to upgrade, but without buying the app again.



I understand (but may be mistaken) that Android has some sort of TOFU security model for apps: if you have installed an app, there is a public key that signed the APK and Android will not allow updates to the app if that key changes. Therefore, if I update an app using Aptoide, that signature will be checked and I can actually be (cryptographically) sure that the app update actually comes from the original author and hasn't been tampered with by Aptoide or the repository manager.



Is that a fair assumption?


Answer

You're correct. When someone develops an app, said app passes through a phase of signing. The signature consists of a RSA certificate amongst its parts, so it's univocal (hence the fact that, if you unpack an app, alter it, sign it with another signature and install it, the Play Store won't show any updates for said app).



Just as the Play Store, even Aptoide, by default, shows an app as updatable only if the signature of the APK in their repository corresponds to the signature of your installed app. This behaviour can be modified by unchecking the appropriate checkbox in Aptoide's settings.



Lastly, since altering an app and repacking it with the original signature has limited probabilities of success (tried that myself, but to no avail), updating your apps via Aptoide is generally safe, providing that you leave the abovementioned checkbox selected.


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