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

Commit af463961 authored by Adam Lesinski's avatar Adam Lesinski Committed by Android (Google) Code Review
Browse files

Merge "AAPT: Fix --feature-of to allow non-public symbol visibility"

parents 0ebe2d1b fa1e9d7a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2204,8 +2204,10 @@ uint32_t ResourceTable::getResId(const String16& package,
                           package.string(), package.size(),
                           &specFlags);
    if (rid != 0) {
        if (onlyPublic) {
            if ((specFlags & ResTable_typeSpec::SPEC_PUBLIC) == 0) {
        if (onlyPublic && (specFlags & ResTable_typeSpec::SPEC_PUBLIC) == 0) {
            // If this is a feature split and the resource has the same
            // package name as us, then everything is public.
            if (mPackageType != AppFeature || mAssetsPackage != package) {
                return 0;
            }
        }