Compile failing due to Android Lint warnings |
||
Issue description
Not sure if any bots are broken, but after syncing & building this morning I get:
Wrote XML report to file:///usr/local/google/home/agrieve/ssd/git/clankium1/src/out-gn/Debug/gen/chrome/android/chrome_java__lint/result.xml
Lint found 1 error, 2 warnings
/tmp/tmpiSThF2/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOrigin.java:154 Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details.: PackageManagerGetSignatures [warning]
packageManager.getPackageInfo(appName, PackageManager.GET_SIGNATURES)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmpiSThF2/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/browserservices/OriginVerifier.java:220 Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details.: PackageManagerGetSignatures [warning]
packageInfo = pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmpiSThF2/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/keyboard/GvrKeyboardLoaderClient.java:33 Do not place Android context classes in static fields (static reference to `KeyboardContextWrapper` which has field `mKeyboardContext` pointing to `Context`); this is a memory leak (and also breaks Instant Run): StaticFieldLeak [warning]
// GVR doesn't support setting the context twice in the application's lifetime and crashes if we
^
Lint found 3 new issues.
- For full explanation, please refer to out-gn/Debug/gen/chrome/android/chrome_java__lint/result.xml
- For more information about lint and how to fix lint issues, please refer to https://chromium.googlesource.com/chromium/src/+/master/build/android/docs/lint.md
,
Dec 8 2017
,
Dec 14 2017
Seeing something similar after syncing recently myself:
Wrote XML report to file:///usr/local/google/code/clankium/src/out/Release/gen/chrome/android/chrome_java__lint/result.xml
Lint found 3 errors, 1 warning
/tmp/tmp47EUta/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/PasswordEntryEditor.java:255 The id `R.id.password_entry_editor_copy` has already been looked up in this method; possible cut & paste error?: CutPasteId [warning]
final ImageView copy_image = usernameView.findViewById(R.id.password_entry_editor_copy);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp47EUta/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/PasswordEntryEditor.java:283 The id `R.id.password_entry_editor_copy` has already been looked up in this method; possible cut & paste error?: CutPasteId [warning]
final ImageView copy_image = siteView.findViewById(R.id.password_entry_editor_copy);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp47EUta/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/PasswordEntryEditor.java:362 The id `R.id.password_entry_editor_copy_password` has already been looked up in this method; possible cut & paste error?: CutPasteId [warning]
mView.findViewById(R.id.password_entry_editor_copy_password);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp47EUta/SRC_ROOT1/chrome/android/java/src/org/chromium/chrome/browser/browserservices/OriginVerifier.java:221 Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details.: PackageManagerGetSignatures [warning]
packageInfo = pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lint found 4 new issues.
- For full explanation, please refer to out/Release/gen/chrome/android/chrome_java__lint/result.xml
- For more information about lint and how to fix lint issues, please refer to https://chromium.googlesource.com/chromium/src/+/master/build/android/docs/lint.md
,
Dec 14 2017
Turns out this is caused by Android Studio messing with third_party/android_tools/sdk. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 8 2017