Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65b37fb9 authored by dimorinny's avatar dimorinny
Browse files

Deduplicate package names in result URI permissions grants binary xml

Bug: 149370983
Test: locally by flashing device and checking basic functionality and atest UriGrantsManagerServiceTest
Change-Id: Ifea09130db89647cc1cc6398ef01edff5ca9c1a1
parent 9e83b479
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1330,8 +1330,8 @@ public class UriGrantsManagerService extends IUriGrantsManager.Stub {
                out.startTag(null, TAG_URI_GRANT);
                out.attributeInt(null, ATTR_SOURCE_USER_ID, perm.uri.sourceUserId);
                out.attributeInt(null, ATTR_TARGET_USER_ID, perm.targetUserId);
                out.attribute(null, ATTR_SOURCE_PKG, perm.sourcePkg);
                out.attribute(null, ATTR_TARGET_PKG, perm.targetPkg);
                out.attributeInterned(null, ATTR_SOURCE_PKG, perm.sourcePkg);
                out.attributeInterned(null, ATTR_TARGET_PKG, perm.targetPkg);
                out.attribute(null, ATTR_URI, String.valueOf(perm.uri.uri));
                writeBooleanAttribute(out, ATTR_PREFIX, perm.uri.prefix);
                out.attributeInt(null, ATTR_MODE_FLAGS, perm.persistedModeFlags);