summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3701e7e)
[Issue#] N/A
[Problem] If hybrid app singined public app, installation success like having platform privilege.
[Cause] wrt-installer doesn't pass signature info when service app install.
[Solution] add to pass parameter about privilege level during install hybrid app.
0: NP, 1: Public, 2: Partner, 3: Platform
wrt-installer -iv [path] -p 1
[SCMRequest] N/A
Change-Id: Ib8d8148a0e7479b869e08c9d4a9425f577bc5fb4
+ m_contextData.certLevel = level;
//data
InstallerContext& m_contextData;
//data
InstallerContext& m_contextData;
- enum class Level : std::int8_t {
UNKNOWN = 0,
PUBLIC = 1,
PARTNER = 2,
UNKNOWN = 0,
PUBLIC = 1,
PARTNER = 2,
namespace {
const int MAX_BUF_SIZE = 128;
namespace {
const int MAX_BUF_SIZE = 128;
-const char* OSP_INSTALL_STR = "/usr/etc/package-manager/backend/tpk -iv ";
+const char* OSP_INSTALL_STR1 = "/usr/etc/package-manager/backend/tpk -iv ";
+const char* OSP_INSTALL_STR2 = " -p ";
_D("Step: installation for osp service");
std::ostringstream commStr;
_D("Step: installation for osp service");
std::ostringstream commStr;
- commStr << OSP_INSTALL_STR << BashUtils::escape_arg(
- m_context.locations->getPackageInstallationDir());
- //commStr << " 2>&1";
+ commStr << OSP_INSTALL_STR1<< BashUtils::escape_arg(
+ m_context.locations->getPackageInstallationDir())
+ << OSP_INSTALL_STR2 << m_context.certLevel;
_D("osp install command : %s", commStr.str().c_str());
char readBuf[MAX_BUF_SIZE];
_D("osp install command : %s", commStr.str().c_str());
char readBuf[MAX_BUF_SIZE];
std::string requestedPath; ///input path of widget
bool needEncryption; ///for configuring right task if encryption needed
std::string requestedPath; ///input path of widget
bool needEncryption; ///for configuring right task if encryption needed
};
#endif // INSTALLER_CONTEXT_H
};
#endif // INSTALLER_CONTEXT_H