New issue
Advanced search Search tips

Issue 802390 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Nov 13
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

ResourceType: No known package errors

Project Member Reported by estevenson@chromium.org, Jan 16 2018

Issue description

Noticed this in my logcat several times and wanted to investigate a little further:

W ResourceType: No known package when getting value for resource number 0x7f080274

Repro'ed on Nexus 6P running N with ToT using ChromePublic and MonochromePublic.

ChromePublic
- org.chromium.chrome:drawable/shortcut_newtab
- org.chromium.chrome:string/menu_new_tab
- org.chromium.chrome:drawable/shortcut_incognito
- org.chromium.chrome:string/accessibility_tabstrip_incognito_identifier
- org.chromium.chrome:string/menu_new_incognito_tab
- org.chromium.chrome:string/disabled_incognito_launcher_shortcut_message

MonochromePublic
- org.chromium.chrome:drawable/snackbar_background_tablet
- org.chromium.chrome:string/menu_open_in_product
- org.chromium.chrome:drawable/shortcut_newtab
- org.chromium.chrome:string/accessibility_tabstrip_incognito_identifier
- org.chromium.chrome:string/menu_open_in_chrome
- org.chromium.chrome:string/disabled_incognito_launcher_shortcut_message

Built MonochromePublic in my other checkout (different revision) and the list is slightly different (which makes me think there isn't something wrong with the way we use resources):
- org.chromium.chrome:drawable/shortcut_newtab
- org.chromium.chrome:string/menu_new_tab
- org.chromium.chrome:drawable/shortcut_incognito
- org.chromium.chrome:string/accessibility_tabstrip_incognito_identifier
- org.chromium.chrome:string/menu_new_incognito_tab
- org.chromium.chrome:string/disabled_incognito_launcher_shortcut_message

I took a look though the resource entries via. "aapt dump resources" and everything looks fine to me..
 
Cc: mheikal@chromium.org agrieve@chromium.org
Code where this happens is here: https://android.googlesource.com/platform/frameworks/base/+/nougat-release/libs/androidfw/ResourceTypes.cpp#4004, nothing there jumps out at me..

+agrieve, +mheikal any thoughts? Might close this as a WontFix otherwise since nothing actually seems to be broken..
In the OP the list of resources names correspond to IDs for which a "W ResourceType: No known package when getting value for resource number x" log occurs. 6 each time.
All except org.chromium.chrome:drawable/snackbar_background_tablet are resources that are referenced in xml, and most seem related to shortcuts or menus.

Did these logs come from a chrome process? Did they happen during launch?

Super weird for an apk to not have 0x7f mapped to a package.
Status: Assigned (was: Available)
Status: Archived (was: Assigned)

Sign in to add a comment