Loading tools/aapt2/dump/DumpManifest.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -1981,10 +1981,11 @@ class Action : public ManifestExtractor::Element { if (ElementCast<Activity>(parent_stack[1])) { // Detects the presence of a particular type of activity. Activity* activity = ElementCast<Activity>(parent_stack[1]); auto map = std::map<std::string, std::string>({ static const auto map = std::map<std::string, std::string>({ {"android.intent.action.MAIN", "main"}, { "android.intent.action.VIDEO_CAMERA" , "camera" }, { "android.intent.action.STILL_IMAGE_CAMERA_SECURE" , "camera-secure" }, {"android.media.action.VIDEO_CAMERA", "camera"}, {"android.media.action.STILL_IMAGE_CAMERA", "camera"}, {"android.media.action.STILL_IMAGE_CAMERA_SECURE", "camera-secure"}, }); auto entry = map.find(action); Loading Loading @@ -2735,10 +2736,9 @@ bool ManifestExtractor::Extract(android::IDiagnostics* diag) { auto it = apk_->GetFileCollection()->Iterator(); while (it->HasNext()) { auto file_path = it->Next()->GetSource().path; size_t pos = file_path.find("lib/"); if (pos != std::string::npos) { file_path = file_path.substr(pos + 4); pos = file_path.find('/'); if (file_path.starts_with("lib/")) { file_path = file_path.substr(4); size_t pos = file_path.find('/'); if (pos != std::string::npos) { file_path = file_path.substr(0, pos); } Loading tools/aapt2/integration-tests/DumpTest/components.apk +7.93 KiB (90.5 KiB) File changed.No diff preview for this file type. View original file View changed file tools/aapt2/integration-tests/DumpTest/components_full_proto.txt +2 −2 Original line number Diff line number Diff line Loading @@ -1677,7 +1677,7 @@ xml_files { attribute { namespace_uri: "http://schemas.android.com/apk/res/android" name: "name" value: "android.intent.action.VIDEO_CAMERA" value: "android.media.action.VIDEO_CAMERA" resource_id: 16842755 } } Loading @@ -1691,7 +1691,7 @@ xml_files { attribute { namespace_uri: "http://schemas.android.com/apk/res/android" name: "name" value: "android.intent.action.STILL_IMAGE_CAMERA_SECURE" value: "android.media.action.STILL_IMAGE_CAMERA_SECURE" resource_id: 16842755 } } Loading Loading
tools/aapt2/dump/DumpManifest.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -1981,10 +1981,11 @@ class Action : public ManifestExtractor::Element { if (ElementCast<Activity>(parent_stack[1])) { // Detects the presence of a particular type of activity. Activity* activity = ElementCast<Activity>(parent_stack[1]); auto map = std::map<std::string, std::string>({ static const auto map = std::map<std::string, std::string>({ {"android.intent.action.MAIN", "main"}, { "android.intent.action.VIDEO_CAMERA" , "camera" }, { "android.intent.action.STILL_IMAGE_CAMERA_SECURE" , "camera-secure" }, {"android.media.action.VIDEO_CAMERA", "camera"}, {"android.media.action.STILL_IMAGE_CAMERA", "camera"}, {"android.media.action.STILL_IMAGE_CAMERA_SECURE", "camera-secure"}, }); auto entry = map.find(action); Loading Loading @@ -2735,10 +2736,9 @@ bool ManifestExtractor::Extract(android::IDiagnostics* diag) { auto it = apk_->GetFileCollection()->Iterator(); while (it->HasNext()) { auto file_path = it->Next()->GetSource().path; size_t pos = file_path.find("lib/"); if (pos != std::string::npos) { file_path = file_path.substr(pos + 4); pos = file_path.find('/'); if (file_path.starts_with("lib/")) { file_path = file_path.substr(4); size_t pos = file_path.find('/'); if (pos != std::string::npos) { file_path = file_path.substr(0, pos); } Loading
tools/aapt2/integration-tests/DumpTest/components.apk +7.93 KiB (90.5 KiB) File changed.No diff preview for this file type. View original file View changed file
tools/aapt2/integration-tests/DumpTest/components_full_proto.txt +2 −2 Original line number Diff line number Diff line Loading @@ -1677,7 +1677,7 @@ xml_files { attribute { namespace_uri: "http://schemas.android.com/apk/res/android" name: "name" value: "android.intent.action.VIDEO_CAMERA" value: "android.media.action.VIDEO_CAMERA" resource_id: 16842755 } } Loading @@ -1691,7 +1691,7 @@ xml_files { attribute { namespace_uri: "http://schemas.android.com/apk/res/android" name: "name" value: "android.intent.action.STILL_IMAGE_CAMERA_SECURE" value: "android.media.action.STILL_IMAGE_CAMERA_SECURE" resource_id: 16842755 } } Loading