mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
IssueNo:#I46216
Description:change udid interface Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangdengjia <wangdengjia@huawei.com> Change-Id: Idd1fb0dda31857d946e89fbced60a0f848831fb0
This commit is contained in:
@@ -38,6 +38,7 @@ executable("bm") {
|
||||
deps = [
|
||||
"${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
|
||||
"//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
|
||||
"//base/startup/syspara_lite/frameworks/parameter:parameter",
|
||||
"//base/security/permission/services/permission_lite/pms_client:pms_client",
|
||||
"//build/lite/config/component/cJSON:cjson_shared",
|
||||
"//foundation/communication/ipc_lite:liteipc_adapter",
|
||||
@@ -48,6 +49,7 @@ executable("bm") {
|
||||
"include",
|
||||
"//base/security/permission/services/permission_lite/pms_client/include",
|
||||
"//base/security/permission/interfaces/innerkits/permission_lite",
|
||||
"//base/startup/syspara_lite/interfaces/kits",
|
||||
"${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite",
|
||||
"${aafwk_lite_path}/interfaces/kits/want_lite",
|
||||
"${aafwk_lite_path}/services/abilitymgr_lite/include",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "convert_utils.h"
|
||||
#include "iproxy_client.h"
|
||||
#include "liteipc_adapter.h"
|
||||
#include "pms_interface_inner.h"
|
||||
#include "parameter.h"
|
||||
#include "samgr_lite.h"
|
||||
#include "securec.h"
|
||||
|
||||
@@ -275,14 +275,15 @@ void CommandParser::RunAsGetUdidCommand(int32_t argc, char *argv[]) const
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned char udid[UDID_STRING_LEN + 1] = {0};
|
||||
char udid[UDID_STRING_LEN + 1] = {0};
|
||||
if (memset_s(udid, sizeof(udid), 0, sizeof(udid)) != EOK) {
|
||||
printf("GetUdid error memset\n");
|
||||
return;
|
||||
}
|
||||
int ret = RequestDevUdid(udid, sizeof(udid));
|
||||
char *devUdid = udid;
|
||||
int ret = GetDevUdid(devUdid, sizeof(udid));
|
||||
if (ret == EOK) {
|
||||
cout << udid << endl;
|
||||
cout << devUdid << endl;
|
||||
} else {
|
||||
cout << "Get Udid error ret = " << ret << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user