mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
description:元能力高风险接口覆盖率-01
Signed-off-by: 查维 <zhawei12@huawei-partners.com>
This commit is contained in:
@@ -35,6 +35,7 @@ constexpr size_t U32_AT_SIZE = 4;
|
||||
constexpr size_t OFFSET_ZERO = 24;
|
||||
constexpr size_t OFFSET_ONE = 16;
|
||||
constexpr size_t OFFSET_TWO = 8;
|
||||
constexpr uint32_t MAX_APP_MGR_INTERFACE_CODE = 999; // 999 is max interface code.
|
||||
const std::u16string APPMGR_INTERFACE_TOKEN = u"ohos.appexecfwk.AppMgr";
|
||||
}
|
||||
|
||||
@@ -47,8 +48,7 @@ uint32_t GetU32Data(const char* ptr)
|
||||
|
||||
bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
|
||||
{
|
||||
for (uint32_t code = 0;
|
||||
code <= static_cast<uint32_t>(AppMgrInterfaceCode::UPDATE_PROCESS_MEMORY_STATE); ++code) {
|
||||
for (uint32_t code = 0; code <= MAX_APP_MGR_INTERFACE_CODE; ++code) {
|
||||
MessageParcel parcel;
|
||||
parcel.WriteInterfaceToken(APPMGR_INTERFACE_TOKEN);
|
||||
parcel.WriteBuffer(data, size);
|
||||
|
||||
Reference in New Issue
Block a user