Is my .img file corrupted?


Question

I downloaded the firmware (.img) of my Android device (Boyue T62D) just to have a backup of it. I'm in the Indian countryside with an extremely limited internet connection, so this is a huge file for me. The reasons I'm unsure are:




  1. I can't extract the file (just to look at the contents) in any way on my computer (OS X 10.10.1). Is this to be expected with an Android image? I tried to unpack it using a variety of methods (like converting it to iso first). (none too fancy though).


  2. I was out of the house when the file was downloading, and when I came back it looked like the file was done, but the Internet connection was broken. But the file seems to have the same size as it is supposed to have. So what got me wondering was the fact that I can't unpack it. If you guys could just tell me that this is standard, and that .img files are very hard/impossible to extract on OS X, that would be great.



Answer

Usually when downloading files (very likely for software) you have a checksum provided by the supplier. The checksum is nothing else but the hash value of the file you're going to download. Quite often this is MD5, but due to the collision potential in MD5 it starts to drift towards SHA (SHA1 mostly, somtimes SHA2).



After your download has finished, you compute the hash on the file yourself and compare the value with the one presented by the download page (or other source). If the two values match, this means that your download equals the file supplied on the website.



I started my VM for accessing such sites and had a look if there is a MD5 hash present. Right next to the download link, it was and that's the value I have copied to my comment. Therefore, if you follow the procedure I have written down above and look for such a hash value (check for MD5 or MD5SUM, SHA1 or SHA1SUM) you don't need any third-party assistance.


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