Reducing Android Image download size.
#1
I was wondering if it would be possible to change the compression used for the android images away from zip files. This is to greatly reduce the overall file size on download. For example the
16GB image for Android version 5.1.1 released on July 11, 2016 is about 641 Megabytes in it's current zip format. If one changes the file type to 7-zip ( http://7-zip.org/ ) it's possible to further reduce the image to about 487 Megabytes. This is file that is about 30% smaller and should help with lowering bandwidth usage to acquire the image.


Just as a quick note I was using 7zip version 15.14 and I had the following Compression settings...

   

NOTE 1: The compression settings I used means that any system capable of running Microsoft Windows 7 should be able to use 7-zip to decompress the file. The main requirement is to have at least 256MB of ram.

NOTE 2: I used a 8-core system for the compression, however any desktop computer can decompress the file as long as they meet the minimum software requirements.
#2
(07-17-2016, 10:04 PM)KPhillisJr Wrote: I was wondering if it would be possible to change the compression used for the android images away from zip files. This is to greatly reduce the overall file size on download. For example the
16GB image for Android version 5.1.1 released on July 11, 2016 is about 641 Megabytes in it's current zip format. If one changes the file type to 7-zip ( http://7-zip.org/ ) it's possible to further reduce the image to about 487 Megabytes. This is file that is about 30% smaller and should help with lowering bandwidth usage to acquire the image.


Just as a quick note I was using 7zip version 15.14 and I had the following Compression settings...



NOTE 1: The compression settings I used means that any system capable of running Microsoft Windows 7 should be able to use 7-zip to decompress the file. The main requirement is to have at least 256MB of ram.

NOTE 2: I used a 8-core system for the compression, however any desktop computer can decompress the file as long as they meet the minimum software requirements.
I actually using 7-zip utility to zip but in normal zip format. I didn't use the 7-zip method due to normal user familiar with zip and can be unziped by all unzip utility.
#3
(07-21-2016, 01:58 PM)tllim Wrote:
(07-17-2016, 10:04 PM)KPhillisJr Wrote: I was wondering if it would be possible to change the compression used for the android images away from zip files. This is to greatly reduce the overall file size on download. For example the
16GB image for Android version 5.1.1 released on July 11, 2016 is about 641 Megabytes in it's current zip format. If one changes the file type to 7-zip ( http://7-zip.org/ ) it's possible to further reduce the image to about 487 Megabytes. This is file that is about 30% smaller and should help with lowering bandwidth usage to acquire the image.


Just as a quick note I was using 7zip version 15.14 and I had the following Compression settings...



NOTE 1: The compression settings I used means that any system capable of running Microsoft Windows 7 should be able to use 7-zip to decompress the file. The main requirement is to have at least 256MB of ram.

NOTE 2: I used a 8-core system for the compression, however any desktop computer can decompress the file as long as they meet the minimum software requirements.
I actually using 7-zip utility to zip but in normal zip format. I didn't use the 7-zip method due to normal user familiar with zip and can be unziped by all unzip utility.

Most users who look at setting up a board using the pine64 will most likely be familiar with 7-zip files. In general popular file archiver software titles (see: Wikipedia: Comparison of file archivers ) can handle 7z ( 7-Zip) files without any hassle.


Also on a side note, Zip file format (Wikipedia: Zip (file format)) includes major revisions that break older software titles that supported Zip.
  • Version 2.0 (1993) - compression support added. Deflate compression algorithm is added.
  • Version 2.1 (1996) - Deflate64 compression added
  • Version 4.5 (2001) - 64-bit zip files introduced.
  • Version 4.6 (2001) - Bzip2 compression added, but was not published online until version 5.2's appnote.
  • Version 6.3.0 ( 2006) - LZMA Compression, and PPMd+ compression algorithms added.
#4
(07-21-2016, 07:13 PM)KPhillisJr Wrote:
(07-21-2016, 01:58 PM)tllim Wrote:
(07-17-2016, 10:04 PM)KPhillisJr Wrote: I was wondering if it would be possible to change the compression used for the android images away from zip files. This is to greatly reduce the overall file size on download. For example the
16GB image for Android version 5.1.1 released on July 11, 2016 is about 641 Megabytes in it's current zip format. If one changes the file type to 7-zip ( http://7-zip.org/ ) it's possible to further reduce the image to about 487 Megabytes. This is file that is about 30% smaller and should help with lowering bandwidth usage to acquire the image.


Just as a quick note I was using 7zip version 15.14 and I had the following Compression settings...



NOTE 1: The compression settings I used means that any system capable of running Microsoft Windows 7 should be able to use 7-zip to decompress the file. The main requirement is to have at least 256MB of ram.

NOTE 2: I used a 8-core system for the compression, however any desktop computer can decompress the file as long as they meet the minimum software requirements.
I actually using 7-zip utility to zip but in normal zip format. I didn't use the 7-zip method due to normal user familiar with zip and can be unziped by all unzip utility.

Most users who look at setting up a board using the pine64 will most likely be familiar with 7-zip files. In general popular file archiver software titles (see: Wikipedia: Comparison of file archivers ) can handle 7z ( 7-Zip) files without any hassle.


Also on a side note, Zip file format (Wikipedia: Zip (file format)) includes major revisions that break older software titles that supported Zip.
  • Version 2.0 (1993) - compression support added. Deflate compression algorithm is added.
  • Version 2.1 (1996) - Deflate64 compression added
  • Version 4.5 (2001) - 64-bit zip files introduced.
  • Version 4.6 (2001) - Bzip2 compression added, but was not published online until version 5.2's appnote.
  • Version 6.3.0 ( 2006) - LZMA Compression, and PPMd+ compression algorithms added.

I will check among moderators on their opinions. If majority agree, then I will change to 7zip.
#5
[quote pid='16317' dateline='1469149999']
  • Version 6.3.0 ( 2006) - LZMA Compression, and PPMd+ compression algorithms added.
[/quote]

LZMA decoder is simple. But PPMd decoder is complex. LZMA2 is better than LZMA. LZMA2 compression does not replace (supersede) LZMA compression, but LZMA2 is merely an additional "wrapper" around LZMA. With LZMA2, data is split into blocks, but each block is still compressed by "normal" LZMA. Because individula blocks are compressed separately, processing the blocks can be parallelized, which allows for multi-threading. LZMA2 also allows "uncompressed" blocks, to better deal with "already compressed" inputs.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 426,128 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 32,760 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 18,575 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 7,605 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 7,747 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 6,178 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,645 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 285,494 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,835 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 115,588 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)