It may return positive return value in case of error.
Change-Id: Ic40cd8241d3fb1dd4deba3f67ac94343b16065c8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
bool App2ExtDynamicService::EnableExternalPkgForUsr(const char* appname,
uid_t uid) {
int ret = CallMethod<int>(-1, enable_pkg_sym_name.c_str(), appname, uid);
- if (ret < 0) {
+ if (ret) {
LOG(ERROR) << enable_pkg_sym_name << " failed with error code: "
<< ret;
}
bool App2ExtDynamicService::DisableExternalPkgForUsr(const char* appname,
uid_t uid) {
int ret = CallMethod<int>(-1, disable_pkg_sym_name.c_str(), appname, uid);
- if (ret < 0) {
+ if (ret) {
LOG(ERROR) << disable_pkg_sym_name << " failed with error code: "
<< ret;
}