[Issue#] N/A
[Problem] The web app installed by csc display download app at setting menu.
[Cause] preload attribute doesn't set if installed by csc.
[Solution] set preload attribute if installed csc.
[SCMRequest] N/A
Change-Id: I3a3490511ecd86b2a604e75ef231d053ef85a6e5
enum class InstallTime
{
NORMAL,
- PRELOAD
+ CSC,
+ PRELOAD,
};
InstallMode(Command cmd = Command::INSTALL,
int code = 0;
char* updateTags[3] = {NULL, };
- if (!m_context.mode.removable) {
- updateTags[0] = "preload=false";
- updateTags[1] = "removable=false";
+ if (InstallMode::InstallTime::CSC == m_context.mode.installTime) {
+ updateTags[0] = "preload=true";
+ if (m_context.mode.removable) {
+ updateTags[1] = "removable=true";
+ } else {
+ updateTags[1] = "removable=false";
+ }
updateTags[2] = NULL;
-
}
if (m_context.mode.rootPath == InstallMode::RootPath::RO) {
if (m_argc != 3) {
return showHelpAndQuit();
}
+ m_installMode.installTime = InstallMode::InstallTime::CSC;
std::string configuration = m_argv[2];
m_CSCconfigurationMap = parseCSCConfiguration(configuration);