[Install Location: Part 2] WGT file unzip to package directory (/opt/usr/apps/[pkgid]) instead of temporary directory
[Issue#] P130919-00555
[Problem] web app install to internal storage even if install location is set
"SD card" from setting menu.
[Cause] There is an issue to process getting install location.
(Before parsing config.xml, installer cannot get install location info.)
[Solution] - Parsing config.xml should be done before unzip wgt.
- So parsing config.xml is separated before unzip.
[Remarks] Installer, therefore, should implement below install location spec.
* Auto: Get setting value about default storage at setting menu.
- If user set "Device memory" try internal storage.
If fails, try external storage.
- If user set "SD card" try SD card.
If fails, try internal storage.
* Internal-only: Try internal storage.
- If there is no space in internal memory, installation is failed.
* Prefer-external: Try external storage.
- If SD card is not available, try internal storage.
There are three parts for implementation.
* Part 1: This patch is for separating parse config.xml before unzipping wgt file.
* Part 2: WGT file unzip to directory package directory
(/opt/usr/apps/[pkgid]) instead of temporary directory.
* Part 3: Implement about install location (auto, internal only prefer-external)
[Verification]
SD card should be attached in the device for this feature.
- First> Normal and Hybrid web app can be installed without error.
- Second> WebApp should be installed into device memory or SD card depending
on install-location
1. Install-location: internal-only
=> should be installed into device memory
2. Install-location: prefer-external
1) SD card is enabled => into SD card.
2) SD card is disabled => into device memory.
3. Install-location:
* Auto and default storage is "Device Memory"
1) into device memory.
2) If device Memory is full = > into SD card.
* Auto and default storage is "SD card"
1) into SD card
2) If SD card isn't available => into device memory.
[SCMRequest] N/A
Change-Id: Iffbd7f35e3c9e9d03feeb987d4d7762f61c6c15d
18 files changed: