What Caused the issues on Intel Android* Jelly Bean System Image Source Unzip and Decompression When Using WinRAR or Winzip on Windows?

You are a developer using a Windows system ( Windows 8, 7 or even older) to develop your Android* app. You want to use Intel Android* system image source to compile your own version of Android* for either emulator or VirtualBox.  You downloaded the  System image source (Intel_x86_sysimg_4.2_Source_Files.zip) from Android* 4.2 (Jelly Bean) x86 Emulator System Image. When you try to unzip or decompress the zip file using Winrar or Winzip, you will get some  errors (files overwrite reminders like below). Both Yes to overwrite or No to put files somewhere else will cause issues for your latter compiliation of the source. Some of them you may not be aware of at the time of compiliation of the source.

The issuesa are  most likely caused by the fact that windows  unzip utilities (WinRar, Winzip, you name them) do not distinguish between Lower case and Upper case for file names and treats them as the same file. If you have such a file system mounted and there are two files with the same name other than case ( for example there are two different files: io-mapping.txt and IO-mapping.txt in 4.2 system image), you could see this happening. This could happen as you are extracting everything to a 'flat' directoryand two files end up with the same ${basename}.

 If you can try to extract in Linux/MAC and it should works fine. Google said it clearly that "To build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported". ( http://source.android.com/source/initializing.html ). I don’t know how users could extract on windows and then compile Android from there. You certainly could do it in Windows someway, but most developers don't. 

Below are some examples. I downloaded the 4.2 source zip files and used a Windows system and used Winzip or WinRAR to extract.  It extracted the tar.gz files ok but when extracting the goldfish_kernel_x86-2.6.29-20130116.tar.gz. I saw the following errors.  It keeps trying to overwrite files it had already extracted and the files are not the same.  The issue is that windows does not distinguish between lowercase and upper case for file names and treats them as the same file. 

If you are using Winrar to extract the .tar.gz file, you can see the files with same name but in different case before you extract them.

In the screen shot above, you can see that there are two files in Jelly Bean 4.2 source with same name but with different case. io-mapping.txt with 3,288 bytes in size, and IO-mapping.txt which is 8042 bytes in size.

So as Google recommended,  to build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.

Pour de plus amples informations sur les optimisations de compilation, consultez notre Avertissement concernant les optimisations.