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

Commit 1d7172e5 authored by Adam Lesinski's avatar Adam Lesinski
Browse files

AAPT2: Suppress warnings from libandroidfw when built for host

Certain error cases are expected (like not finding a package) when
using libandroidfw on the host side for AAPT2. Suppress those warnings
and let AAPT2 handle error cases.

Change-Id: I3de97128686c03c89c5b99559bf46d4f2f1dfe4d
parent d17f96ae
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3935,7 +3935,9 @@ bool ResTable::getResourceName(uint32_t resID, bool allowUtf8, resource_name* ou
        if (Res_GETPACKAGE(resID)+1 == 0) {
            ALOGW("No package identifier when getting name for resource number 0x%08x", resID);
        } else {
#ifndef STATIC_ANDROIDFW_FOR_TOOLS
            ALOGW("No known package when getting name for resource number 0x%08x", resID);
#endif
        }
        return false;
    }