/** * shorten all fully qualified class name that belong to the same package as the manifest's * package attribute value. * @param finalMergedDocument the AndroidManifest.xml document. */ private static void extractFcqns(@NonNull XmlDocument finalMergedDocument) { extractFcqns(finalMergedDocument.getPackageName(), finalMergedDocument.getRootNode()); }
String packageName = manifestInfo.getMainManifestPackageName().isPresent() ? manifestInfo.getMainManifestPackageName().get() : xmlDocument.getPackageName();
Optional.fromNullable(libraryDocument.getPackageName()), libraryDocument));
lowerPriorityDocument.getRawMinSdkVersion(), lowerPriorityDocument.getSourceFile().print(false), lowerPriorityDocument.getPackageName()); if (usesSdk.isPresent()) { mergingReport.addMessage( USES_PERMISSION, permission("WRITE_EXTERNAL_STORAGE"), lowerPriorityDocument.getPackageName() + " has a targetSdkVersion < 4"); hasWriteToExternalStoragePermission = true; USES_PERMISSION, permission("READ_PHONE_STATE"), lowerPriorityDocument.getPackageName() + " has a targetSdkVersion < 4"); USES_PERMISSION, permission("READ_EXTERNAL_STORAGE"), lowerPriorityDocument.getPackageName() + " requested WRITE_EXTERNAL_STORAGE"); addIfAbsent(mergingReport.getActionRecorder(), USES_PERMISSION, permission("READ_CALL_LOG"), lowerPriorityDocument.getPackageName() + " has targetSdkVersion < 16 and requested READ_CONTACTS"); addIfAbsent(mergingReport.getActionRecorder(), USES_PERMISSION, permission("WRITE_CALL_LOG"), lowerPriorityDocument.getPackageName() + " has targetSdkVersion < 16 and requested WRITE_CONTACTS");
String originalPackageName = xmlDocument.getPackageName(); MergingReport.Builder builder = manifestInfo.getType() == XmlDocument.Type.MAIN ? mergingReportBuilder