diff options
Diffstat (limited to 'platform/linux/platform_nanoapp.cc')
-rw-r--r-- | platform/linux/platform_nanoapp.cc | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/platform/linux/platform_nanoapp.cc b/platform/linux/platform_nanoapp.cc index d3e02b93..d5fadf46 100644 --- a/platform/linux/platform_nanoapp.cc +++ b/platform/linux/platform_nanoapp.cc @@ -22,7 +22,6 @@ #include "chre/platform/assert.h" #include "chre/platform/log.h" #include "chre/platform/shared/nanoapp_dso_util.h" -#include "chre/util/system/napp_permissions.h" #include "chre_api/chre/version.h" namespace chre { @@ -61,24 +60,11 @@ const char *PlatformNanoapp::getAppName() const { return (mAppInfo != nullptr) ? mAppInfo->name : "Unknown"; } -bool PlatformNanoapp::supportsAppPermissions() const { - return (mAppInfo != nullptr) ? (mAppInfo->structMinorVersion >= - CHRE_NSL_NANOAPP_INFO_STRUCT_MINOR_VERSION) - : false; -} - -uint32_t PlatformNanoapp::getAppPermissions() const { - return (supportsAppPermissions()) - ? mAppInfo->appPermissions - : static_cast<uint32_t>(chre::NanoappPermissions::CHRE_PERMS_NONE); -} - bool PlatformNanoapp::isSystemNanoapp() const { return (mAppInfo != nullptr && mAppInfo->isSystemNanoapp); } -void PlatformNanoapp::logStateToBuffer( - DebugDumpWrapper & /* debugDump */) const {} +void PlatformNanoapp::logStateToBuffer(DebugDumpWrapper &debugDump) const {} void PlatformNanoappBase::loadFromFile(const std::string &filename) { CHRE_ASSERT(!isLoaded()); @@ -132,15 +118,11 @@ bool PlatformNanoappBase::openNanoappFromFile() { if (!success) { mAppInfo = nullptr; } else { - LOGI("Nanoapp loaded: %s (0x%016" PRIx64 ") version 0x%" PRIx32 - " uimg %d system %d from file %s", + LOGI("Successfully loaded nanoapp %s (0x%016" PRIx64 + ") version 0x%" PRIx32 " uimg %d system %d from file %s", mAppInfo->name, mAppInfo->appId, mAppInfo->appVersion, mAppInfo->isTcmNanoapp, mAppInfo->isSystemNanoapp, mFilename.c_str()); - if (mAppInfo->structMinorVersion >= - CHRE_NSL_NANOAPP_INFO_STRUCT_MINOR_VERSION) { - LOGI("Nanoapp permissions: 0x%" PRIx32, mAppInfo->appPermissions); - } } } } |