diff --git a/services/src/server/file_manager_service_stub.cpp b/services/src/server/file_manager_service_stub.cpp index 0ebdd02f6125925ba070dfd61ef34dd00f460863..f40be3f2621a6e25ab6a8651a60453cccfb38403 100644 --- a/services/src/server/file_manager_service_stub.cpp +++ b/services/src/server/file_manager_service_stub.cpp @@ -107,10 +107,8 @@ bool CheckClientPermission(const std::string& permissionStr) } DEBUG_LOG("GetClientBundleName: uid is %{public}d ", uid); std::string bundleName = GetClientBundleName(uid); - if (IsSameTextStr(bundleName, "ohos.acts.distributeddatamgr.distributedfile") || - IsSameTextStr(bundleName, "ohos.acts.storage.filemanager") || - IsSameTextStr(bundleName, "com.ohos.filepicker") || - IsSameTextStr(bundleName, "com.example.filemanager")) { + if (IsSameTextStr(bundleName, "ohos.acts.storage.filemanager") || + IsSameTextStr(bundleName, "com.ohos.filepicker")) { DEBUG_LOG("CheckClientPermission: Pass the white list"); return true; }