How-To mount the Nexus system.img in Linux and suck stuff out of it
With an OTA on the horizon, I know a lot of people are gonna be looking for stock files for their Nexus. It always happens, so I figured instead of feeding you I would teach you how to fish
You'll need Linux. You can install it, run a live CD, or use Wubi and install as a Windows app -- any way will work.
You'll need the factory system.img for your device. You can find it inside the factory image tar file provided by Google.
You'll need the file attached to this post.
1. Create a folder in your home directory named restore
Code:
$ cd ~
$ mkdir restore
2. Place the binary that's inside the attached zip file in the restore folder
Code:
$ cp path/to/the/file/simg2img ~/restore/simg2img
3. Make sure the binary file is executable
Code:
$ chmod +x ~/restore/simg2img
4. Place the system.img file from the factory images in the restore folder
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License. AndroidCentral is an independent site
that is not affiliated with or endorsed by Google.