Commit 7fe29449 authored by Hiroki Nakagawa's avatar Hiroki Nakagawa Committed by Commit Bot

Revert "Android: Use lint from cmdline-tools"

This reverts commit cce3bf4a.

Reason for revert:
Looks like lint failure fails the compile step on android-archive-rel:
https://ci.chromium.org/p/chromium/builders/ci/android-archive-rel/10732

Original change's description:
> Android: Use lint from cmdline-tools
> 
> This version of lint is up-to-date with Android Studio and the lint team
> intends to keep it that way.
> 
> We no longer need a separate tools-lint directory for an up-to-date
> version of lint.
> 
> Bug: 1069186
> Change-Id: I8846406c4787d36863718489c3c54c4b1438d79b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144367
> Auto-Submit: Peter Wen <wnwen@chromium.org>
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#758085}

TBR=wnwen@chromium.org,agrieve@chromium.org

Change-Id: I9d6c6abfc06089372ef2bf6314bfa3d6ab0cb25e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1069186
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143786Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758104}
parent b0994171
...@@ -280,6 +280,10 @@ vars = { ...@@ -280,6 +280,10 @@ vars = {
# and whatever else without interference from each other. # and whatever else without interference from each other.
'android_sdk_sources_version': '4gxhM8E62bvZpQs7Q3d0DinQaW0RLCIefhXrQBFkNy8C', 'android_sdk_sources_version': '4gxhM8E62bvZpQs7Q3d0DinQaW0RLCIefhXrQBFkNy8C',
# Three lines of non-changing comments so that # Three lines of non-changing comments so that
# the commit queue can handle CLs rolling android_sdk_tools-lint_version
# and whatever else without interference from each other.
'android_sdk_tools-lint_version': '89hXqZYzCum3delB5RV7J_QyWkaRodqdtQS0s3LMh3wC',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling feed # the commit queue can handle CLs rolling feed
# and whatever else without interference from each other. # and whatever else without interference from each other.
'spv_tools_revision': '538512e8e8980cc01ab6501cd1cbd402d54f8491', 'spv_tools_revision': '538512e8e8980cc01ab6501cd1cbd402d54f8491',
...@@ -747,6 +751,10 @@ deps = { ...@@ -747,6 +751,10 @@ deps = {
'package': 'chromium/third_party/android_sdk/public/sources/android-29', 'package': 'chromium/third_party/android_sdk/public/sources/android-29',
'version': Var('android_sdk_sources_version'), 'version': Var('android_sdk_sources_version'),
}, },
{
'package': 'chromium/third_party/android_sdk/public/tools-lint',
'version': Var('android_sdk_tools-lint_version'),
},
{ {
'package': 'chromium/third_party/android_sdk/public/cmdline-tools', 'package': 'chromium/third_party/android_sdk/public/cmdline-tools',
'version': 'CR25ixsRhwuRnhdgDpGFyl9S0C_0HO9SUgFrwX46zq8C', 'version': 'CR25ixsRhwuRnhdgDpGFyl9S0C_0HO9SUgFrwX46zq8C',
......
...@@ -22,12 +22,6 @@ Still reading? ...@@ -22,12 +22,6 @@ Still reading?
Note: PRODUCT_DIR will be substituted at run-time with actual Note: PRODUCT_DIR will be substituted at run-time with actual
directory path (e.g. out/Debug) directory path (e.g. out/Debug)
--> -->
<issue id="AcceptsUserCertificates">
<!-- See https://crbug.com/827265 and comment in the file for context. -->
<ignore regexp="chrome/android/java/res/xml/network_security_config.xml"/>
<ignore regexp="android_webview/tools/system_webview_shell/apk/res/xml/network_security_config.xml"/>
<ignore regexp="test"/>
</issue>
<!-- AllowBackup defaults to true, and causes a lint warning if not explicitly set. --> <!-- AllowBackup defaults to true, and causes a lint warning if not explicitly set. -->
<issue id="AllowBackup"> <issue id="AllowBackup">
<ignore path="AndroidManifest.xml"/> <ignore path="AndroidManifest.xml"/>
...@@ -38,7 +32,6 @@ Still reading? ...@@ -38,7 +32,6 @@ Still reading?
<issue id="Assert" severity="ignore"/> <issue id="Assert" severity="ignore"/>
<issue id="AuthLeak" severity="Error"> <issue id="AuthLeak" severity="Error">
<ignore regexp="chrome/android/javatests"/> <ignore regexp="chrome/android/javatests"/>
<ignore regexp="Test.java"/>
</issue> </issue>
<issue id="BadHostnameVerifier" severity="Error"/> <issue id="BadHostnameVerifier" severity="Error"/>
<issue id="ButtonOrder" severity="Error"> <issue id="ButtonOrder" severity="Error">
...@@ -173,12 +166,6 @@ Still reading? ...@@ -173,12 +166,6 @@ Still reading?
<ignore regexp="chrome/browser/ui/android/strings/ui_strings_grd"/> <ignore regexp="chrome/browser/ui/android/strings/ui_strings_grd"/>
<ignore regexp="components/browser_ui/strings/android/browser_ui_strings_grd"/> <ignore regexp="components/browser_ui/strings/android/browser_ui_strings_grd"/>
</issue> </issue>
<issue id="InsecureBaseConfiguration">
<!-- See https://crbug.com/827265 and comment in the file for context. -->
<ignore regexp="chrome/android/java/res/xml/network_security_config.xml"/>
<ignore regexp="android_webview/tools/system_webview_shell/apk/res/xml/network_security_config.xml"/>
<ignore regexp="test"/>
</issue>
<issue id="InconsistentArrays" severity="Error"> <issue id="InconsistentArrays" severity="Error">
<ignore regexp="android_webview/locale_paks.resources.zip/values/locale-paks.xml"/> <ignore regexp="android_webview/locale_paks.resources.zip/values/locale-paks.xml"/>
<ignore regexp="chrome/android/chrome_locale_paks.resources.zip/values/locale-paks.xml"/> <ignore regexp="chrome/android/chrome_locale_paks.resources.zip/values/locale-paks.xml"/>
...@@ -292,10 +279,6 @@ Still reading? ...@@ -292,10 +279,6 @@ Still reading?
<issue id="OldTargetApi"> <issue id="OldTargetApi">
<ignore path="AndroidManifest.xml"/> <ignore path="AndroidManifest.xml"/>
</issue> </issue>
<issue id="OnClick">
<!-- False positive, see: http://issuetracker.google.com/148523770 for similar issue. -->
<ignore path="tools/android/audio_focus_grabber/java/res/layout/audio_focus_grabber_activity.xml"/>
</issue>
<issue id="Overdraw" severity="ignore"/> <issue id="Overdraw" severity="ignore"/>
<issue id="PackageManagerGetSignatures"> <issue id="PackageManagerGetSignatures">
<ignore regexp="chrome/android/java/src/org/chromium/chrome/browser/browserservices/OriginVerifier.java"/> <ignore regexp="chrome/android/java/src/org/chromium/chrome/browser/browserservices/OriginVerifier.java"/>
......
...@@ -862,7 +862,7 @@ if (enable_java_templates) { ...@@ -862,7 +862,7 @@ if (enable_java_templates) {
if (defined(invoker.min_sdk_version)) { if (defined(invoker.min_sdk_version)) {
_min_sdk_version = invoker.min_sdk_version _min_sdk_version = invoker.min_sdk_version
} }
_lint_path = "$lint_android_sdk_root/cmdline-tools/latest/bin/lint" _lint_path = "$lint_android_sdk_root/tools-lint/bin/lint"
_cache_dir = "$root_build_dir/android_lint_cache" _cache_dir = "$root_build_dir/android_lint_cache"
_result_path = "$target_out_dir/$target_name/result.xml" _result_path = "$target_out_dir/$target_name/result.xml"
_config_path = "$target_out_dir/$target_name/config.xml" _config_path = "$target_out_dir/$target_name/config.xml"
...@@ -874,7 +874,6 @@ if (enable_java_templates) { ...@@ -874,7 +874,6 @@ if (enable_java_templates) {
script = "//build/android/gyp/lint.py" script = "//build/android/gyp/lint.py"
depfile = "$target_gen_dir/$target_name.d" depfile = "$target_gen_dir/$target_name.d"
inputs = [ inputs = [
_lint_path,
_platform_xml_path, _platform_xml_path,
_suppressions_file, _suppressions_file,
] ]
......
...@@ -7,6 +7,7 @@ Version: 29 ...@@ -7,6 +7,7 @@ Version: 29
Android SDK Platform-tools 29.0.5 Android SDK Platform-tools 29.0.5
Android SDK Platform API 29 Android SDK Platform API 29
Android SDK Sources 29 Android SDK Sources 29
Android Lint 26.4.0-alpha04
Google Cloud Messaging 3 Google Cloud Messaging 3
SDK Patch Applier v4 SDK Patch Applier v4
Security Critical: no Security Critical: no
...@@ -17,10 +18,24 @@ The Android SDK provide API libraries and developer tools necessary to ...@@ -17,10 +18,24 @@ The Android SDK provide API libraries and developer tools necessary to
build, test and debug for Android. build, test and debug for Android.
Local Modifications: Local Modifications:
- public/ - public/
- Added extras/chromium/. - Added extras/chromium/.
- public/tools-lint/
- Go to go/studio-master-grid
- Find the first green build under sdk_tools_linux
- Email tnorbye@google.com and cc android-devtools@ to determine if that build
can be used publicly.
- Click through to Artifacts.
- Click the copy icon at the right for sdk-repo-linux-tools-XXXXXXX.zip
- Use the copied command to download the zip.
- Unzip and rename tools to tools-lint and move to the right spot in our repo.
- Create CL and carbon copy tnorbye@google.com
No other modifications has been made to the public Android SDK.
Update Instructions: Update Instructions:
* public/tools/bin/sdkmanager --list # Look for "Installed packages:" * public/tools/bin/sdkmanager --list # Look for "Installed packages:"
* For cmdline-tools run: sdkmanager --channel=3 'cmdline-tools;latest' * For cmdline-tools run: sdkmanager --channel=3 'cmdline-tools;latest'
* Prepare the CIPD yaml files for packages that need update and add them * Prepare the CIPD yaml files for packages that need update and add them
......
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# To create CIPD package run the following command.
# cipd create --pkg-def cipd_tools-lint.yaml
package: chromium/third_party/android_sdk/public/tools-lint
description: tools-lint Android Lint
root: public/
data:
- dir: tools-lint
# Some tools inspect their argv0 and don't handle CIPD's symlink structure
# correctly. Install in copy mode so that they can find the other directories
# relative to themselves.
install_mode: copy
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment