├── screenshot
├── 15490930968670.jpg
├── 15491020796229.jpg
└── 15491029366039.jpg
├── src
└── com
│ └── hi
│ └── dhl
│ ├── Monitor.java
│ └── AndroidUtils.java
├── resources
└── META-INF
│ └── plugin.xml
├── .gitignore
├── README.md
└── LICENSE
/screenshot/15490930968670.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hi-dhl/DeviceMonitorPlugin/HEAD/screenshot/15490930968670.jpg
--------------------------------------------------------------------------------
/screenshot/15491020796229.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hi-dhl/DeviceMonitorPlugin/HEAD/screenshot/15491020796229.jpg
--------------------------------------------------------------------------------
/screenshot/15491029366039.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hi-dhl/DeviceMonitorPlugin/HEAD/screenshot/15491029366039.jpg
--------------------------------------------------------------------------------
/src/com/hi/dhl/Monitor.java:
--------------------------------------------------------------------------------
1 | package com.hi.dhl;
2 |
3 | import com.intellij.openapi.actionSystem.AnAction;
4 | import com.intellij.openapi.actionSystem.AnActionEvent;
5 | import com.intellij.openapi.actionSystem.PlatformDataKeys;
6 | import com.intellij.openapi.project.Project;
7 |
8 | import java.io.File;
9 |
10 | /**
11 | *
12 | * author: dhl
13 | * date : 2019/1/14
14 | * desc : 插件启动入口
15 | *
16 | */
17 | public class Monitor extends AnAction {
18 |
19 | @Override
20 | public void actionPerformed(AnActionEvent anActionEvent) {
21 |
22 | try {
23 |
24 | Project project = anActionEvent.getData(PlatformDataKeys.PROJECT);
25 |
26 | String os = AndroidUtils.getPlatformName();
27 | String sdkPath = AndroidUtils.getApkLocalProperties(project);
28 | if (os.toLowerCase().startsWith("win")) {
29 | sdkPath += File.separator + "tools" + File.separator + "monitor.bat";
30 | } else {
31 | sdkPath += File.separator + "tools" + File.separator + "monitor";
32 | }
33 |
34 | Runtime.getRuntime().exec(sdkPath);
35 | } catch (Exception e) {
36 |
37 | }
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/com/hi/dhl/AndroidUtils.java:
--------------------------------------------------------------------------------
1 | package com.hi.dhl;
2 |
3 |
4 | import com.intellij.openapi.project.Project;
5 |
6 | import java.io.File;
7 | import java.io.FileInputStream;
8 | import java.io.InputStream;
9 | import java.util.Properties;
10 |
11 | /**
12 | *
13 | * author: dhl
14 | * date : 2019/1/14
15 | * desc : 获取Android配置信息的工具类
16 | *
17 | */
18 | public class AndroidUtils {
19 |
20 | /**
21 | * 动态获取本地Android SDK的路径
22 | *
23 | * @param project
24 | * @return
25 | */
26 | public static String getApkLocalProperties(Project project) {
27 |
28 | String sdkPath = "";
29 |
30 | try {
31 |
32 | String path = project.getBasePath() + File.separator + "local.properties";
33 |
34 | Properties properties = new Properties();
35 | InputStream inputStream = new FileInputStream(path);
36 | properties.load(inputStream);
37 |
38 | sdkPath = properties.getProperty("sdk.dir");
39 | } catch (Exception e) {
40 |
41 | }
42 | return sdkPath;
43 | }
44 |
45 | /**
46 | * 获取不同平台的 win、mac etc;
47 | *
48 | * @return
49 | */
50 | public static String getPlatformName() {
51 | String osName = System.getProperty("os.name");
52 | return osName;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/resources/META-INF/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 | com.your.company.unique.plugin.id
3 | DeviceMonitor
4 | 1.0
5 | YourCompany
6 |
7 |
9 | most HTML tags may be used
10 | ]]>
11 |
12 |
14 | most HTML tags may be used
15 | ]]>
16 |
17 |
18 |
19 |
20 |
21 |
23 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows:
2 | Thumbs.db
3 | ehthumbs.db
4 | Desktop.ini
5 |
6 | # Python:
7 | *.py[cod]
8 | *.so
9 | *.egg
10 | *.egg-info
11 | dist
12 | build
13 | migrations
14 |
15 | #Django
16 | *.egg-info
17 | *.pot
18 | *.py[co]
19 | .tox/
20 | __pycache__
21 | MANIFEST
22 | dist/
23 | docs/_build/
24 | docs/locale/
25 | node_modules/
26 | tests/coverage_html/
27 | tests/.coverage
28 | build/
29 | tests/report/
30 |
31 | #--------------------------------
32 | __pycache__/
33 | *.py[cod]
34 | *$py.class
35 |
36 | # C extensions
37 | *.so
38 |
39 | # Distribution / packaging
40 | .Python
41 | env/
42 | build/
43 | develop-eggs/
44 | dist/
45 | downloads/
46 | eggs/
47 | .eggs/
48 | lib/
49 | lib64/
50 | parts/
51 | sdist/
52 | var/
53 | *.egg-info/
54 | .installed.cfg
55 | *.egg
56 |
57 | # PyInstaller
58 | # Usually these files are written by a python script from a template
59 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
60 | *.manifest
61 | *.spec
62 |
63 | # Installer logs
64 | pip-log.txt
65 | pip-delete-this-directory.txt
66 |
67 | # Unit test / coverage reports
68 | htmlcov/
69 | .tox/
70 | .coverage
71 | .coverage.*
72 | .cache
73 | nosetests.xml
74 | coverage.xml
75 | *,cover
76 | .hypothesis/
77 |
78 | # Translations
79 | *.mo
80 | *.pot
81 |
82 | # Django stuff:
83 | *.log
84 | local_settings.py
85 |
86 | # Flask stuff:
87 | instance/
88 | .webassets-cache
89 |
90 | # Scrapy stuff:
91 | .scrapy
92 |
93 | # Sphinx documentation
94 | docs/_build/
95 |
96 | # PyBuilder
97 | target/
98 |
99 | # IPython Notebook
100 | .ipynb_checkpoints
101 |
102 | # pyenv
103 | .python-version
104 |
105 | # celery beat schedule file
106 | celerybeat-schedule
107 |
108 | # dotenv
109 | .env
110 |
111 | # virtualenv
112 | venv/
113 | ENV/
114 |
115 | # Spyder project settings
116 | .spyderproject
117 |
118 | # Rope project settings
119 | .ropeproject
120 |
121 | database/
122 | media/
123 | whoosh_index/
124 | .idea/
125 | *.sqlite3
126 | fabfile.py
127 |
128 |
129 |
130 | #--------------------------------
131 |
132 |
133 | #java
134 | *.class
135 |
136 | # Package Files #
137 | *.jar
138 | *.war
139 | *.ear
140 |
141 | # Mobile Tools for Java (J2ME)
142 | .mtj.tmp/
143 |
144 |
145 | # My configurations:
146 | db.ini
147 | deploy_key_rsa
148 |
149 | # Package Files #
150 | *.jar
151 | *.war
152 | *.ear
153 |
154 | #phpstorm
155 | *.idea
156 |
157 | #过滤数据库文件、sln解决方案文件、配置文件
158 | *.mdb
159 | *.ldb
160 | *.sln
161 | *.config
162 |
163 | #other
164 | data/error/
165 | .idea*/
166 | .idea/
167 | *.htm
168 |
169 | # 忽略名称中末尾为ignore的文件夹
170 | *ignore/
171 | *ignore*/
172 |
173 |
174 |
175 |
176 | # Logs
177 | logs
178 | *.log
179 | npm-debug.log*
180 | # Runtime data
181 | pids
182 | *.pid
183 | *.seed
184 | *.pid.lock
185 | # Directory for instrumented libs generated by jscoverage/JSCover
186 | lib-cov
187 | # Coverage directory used by tools like istanbul
188 | coverage
189 | # nyc test coverage
190 | .nyc_output
191 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
192 | .grunt
193 | # Bower dependency directory (https://bower.io/)
194 | bower_components
195 | # node-waf configuration
196 | .lock-wscript
197 | # Compiled binary addons (http://nodejs.org/api/addons.html)
198 | build/Release
199 | # Dependency directories
200 | node_modules/
201 | jspm_packages/
202 | # Typescript v1 declaration files
203 | typings/
204 | # Optional npm cache directory
205 | .npm
206 | # Optional eslint cache
207 | .eslintcache
208 | # Optional REPL history
209 | .node_repl_history
210 | # Output of 'npm pack'
211 | *.tgz
212 | # Yarn Integrity file
213 | .yarn-integrity
214 | # dotenv environment variables file
215 | .env
216 | .vscode
217 | # ignore sh
218 | sh/
219 | # ignore test sdk.config.json
220 | sdk.config.json
221 | # ignore local config
222 | server/config.local.js
223 |
224 |
225 | #-------android
226 | # Built application files
227 | #*.apk
228 | *.ap_
229 |
230 | # Files for the ART/Dalvik VM
231 | *.dex
232 |
233 | # Java class files
234 | *.class
235 |
236 | # Generated files
237 | bin/
238 | gen/
239 | out/
240 |
241 | # Gradle files
242 | .gradle/
243 | build/
244 |
245 | # Local configuration file (sdk path, etc)
246 | local.properties
247 |
248 | # Proguard folder generated by Eclipse
249 | proguard/
250 |
251 | # Log Files
252 | *.log
253 |
254 | # Android Studio Navigation editor temp files
255 | .navigation/
256 |
257 | # Android Studio captures folder
258 | captures/
259 |
260 | # Intellij
261 | *.iml
262 | .idea/
263 |
264 | # Keystore files
265 | *.jks
266 |
267 | # External native build folder generated in Android Studio 2.2 and later
268 | .externalNativeBuild
269 |
270 | # DS_Store files
271 | *.DS_Store
272 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## 解决在 Android Studio 3.2 找不到 Android Device Monitor 工具
2 |
3 | > 升级到 AndroidStudio 最新版本( >3.2 )朋友们都会遇到一个问题,找不到 DDMS [Android Device Monitor], 只能从 SDK 目录下找到 monitor 启动 DDMS [Android Device Monitor],所以写了一个插件快速启动 Android Device Monitor
4 |
5 | ### 源码及使用方式
6 |
7 | 开发工具:IntelliJ IDEA
8 |
9 | [Github地址:https://github.com/hi-dhl/DeviceMonitorPlugin](https://github.com/hi-dhl/DeviceMonitorPlugin)
10 |
11 | [插件下载地址:https://github.com/hi-dhl/DeviceMonitorPlugin/releases/download/1.0/DeviceMonitorPlugin.jar
12 | ](https://github.com/hi-dhl/DeviceMonitorPlugin/releases/download/1.0/DeviceMonitorPlugin.jar)
13 |
14 | 安装方式:
15 |
16 | * 打开 AndroidStudio
17 | * 选择 Preference -> Plugins-> install plugin from disk
18 | * 选择下载好的插件 [DeviceMonitorPlugin.jar] -> 重启 AndroidStudio
19 |
20 | 
21 |
22 | 如何启动:
23 |
24 | * 打开 AndroidStudio
25 | * 菜单栏 tools -> 单击 DeviceMonitor
26 |
27 | 
28 |
29 | PS: Google 虽然删除了 AdnroidStudio 启动入口,但是本地 SDK 中还是存在,插件通过动态获取本地 SDK 路径启动 AndroidDeviceMonitor, 由于电脑性能不同,启动速度会有不同
30 |
31 | ### Google 为什么弃用 Android Device Monitor
32 |
33 | [Android Developers](https://developer.android.com/)官网上的原文[链接](https://developer.android.com/studio/profile/monitor)
34 |
35 | 
36 |
37 | Android Device Monitor 是一个 Android 应用调试和分析工具提供了一个 UI 工具,但是大部分组件在 Android Studio 3.1 已经弃用了, 并且会在 Android Studio 3.2 中移除,将会用新的工具帮助开发人员调试和分析 Android 应用 [详情戳这里](https://developer.android.com/studio/profile/monitor)
38 |
39 | ### 插件核心代码
40 |
41 | ```
42 | public class Monitor extends AnAction {
43 |
44 | @Override
45 | public void actionPerformed(AnActionEvent anActionEvent) {
46 |
47 | try {
48 |
49 | Project project = anActionEvent.getData(PlatformDataKeys.PROJECT);
50 |
51 | String os = AndroidUtils.getPlatformName();
52 | String sdkPath = AndroidUtils.getApkLocalProperties(project);
53 | if (os.toLowerCase().startsWith("win")) {
54 | sdkPath += File.separator + "tools" + File.separator + "monitor.bat";
55 | } else {
56 | sdkPath += File.separator + "tools" + File.separator + "monitor";
57 | }
58 |
59 | Runtime.getRuntime().exec(sdkPath);
60 | } catch (Exception e) {
61 |
62 | }
63 |
64 | }
65 | }
66 | ```
67 |
68 |
69 | ```
70 | /**
71 | * 动态获取本地Android SDK的路径
72 | *
73 | * @param project
74 | * @return
75 | */
76 | public static String getApkLocalProperties(Project project) {
77 |
78 | String sdkPath = "";
79 |
80 | try {
81 |
82 | String path = project.getBasePath() + File.separator + "local.properties";
83 |
84 | Properties properties = new Properties();
85 | InputStream inputStream = new FileInputStream(path);
86 | properties.load(inputStream);
87 |
88 | sdkPath = properties.getProperty("sdk.dir");
89 | } catch (Exception e) {
90 |
91 | }
92 | return sdkPath;
93 | }
94 | ```
95 |
96 | [Github地址:https://github.com/hi-dhl/DeviceMonitorPlugin](https://github.com/hi-dhl/DeviceMonitorPlugin)
97 |
98 | ## 结语
99 |
100 | 致力于分享一系列 Android 系统源码、逆向分析、算法、翻译、Jetpack 源码相关的文章,欢迎一起来学习,在技术的道路上一起前进,另外我还在维护其他项目 [Android10-Source-Analysis](https://github.com/hi-dhl/Android10-Source-Analysis)、[Leetcode-Solutions-with-Java-And-Kotlin](https://github.com/hi-dhl/Leetcode-Solutions-with-Java-And-Kotlin) 、[Technical-Article-Translation](https://github.com/hi-dhl/Technical-Article-Translation) 、 [AndroidX-Jetpack-Practice](https://github.com/hi-dhl/AndroidX-Jetpack-Practice) 可以前去查看。
101 |
102 | ### AndroidX-Jetpack-Practice
103 |
104 | 正在建立一个最全、最新的 AndroidX Jetpack 相关组件的实战项目 以及 相关组件原理分析文章,目前已经包含了 App Startup、Paging3、Hilt 等等,正在逐渐增加其他 Jetpack 新成员,仓库持续更新,可以前去查看:[AndroidX-Jetpack-Practice](https://github.com/hi-dhl/AndroidX-Jetpack-Practice)。
105 |
106 | ### Android10-Source-Analysis
107 |
108 | 正在写一系列的 Android 10 源码分析的文章,了解系统源码,不仅有助于分析问题,在面试过程中,对我们也是非常有帮助的,如果你同我一样喜欢研究 Android 源码,可以关注我 GitHub 上的 [Android10-Source-Analysis](https://github.com/hi-dhl/Android10-Source-Analysis)。
109 |
110 | ### Leetcode-Solutions-with-Java-And-Kotlin
111 |
112 | 由于 LeetCode 的题库庞大,每个分类都能筛选出数百道题,由于每个人的精力有限,不可能刷完所有题目,因此我按照经典类型题目去分类、和题目的难易程度去排序。
113 |
114 | * 数据结构: 数组、栈、队列、字符串、链表、树……
115 | * 算法: 查找算法、搜索算法、位运算、排序、数学、……
116 |
117 | 每道题目都会用 Java 和 kotlin 去实现,并且每道题目都有解题思路,如果你同我一样喜欢算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[Leetcode-Solutions-with-Java-And-Kotlin](https://github.com/hi-dhl/Leetcode-Solutions-with-Java-And-Kotlin)。
118 |
119 | ### Technical-Article-Translation
120 |
121 | 目前正在整理和翻译一系列精选国外的技术文章,不仅仅是翻译,很多优秀的英文技术文章提供了很好思路和方法,每篇文章都会有**译者思考**部分,对原文的更加深入的解读,可以关注我 GitHub 上的 [Technical-Article-Translation](https://github.com/hi-dhl/Technical-Article-Translation)。
122 |
123 | ## License
124 |
125 | ```
126 | Copyright 2020 hi-dhl (Jack Deng)
127 |
128 | Licensed under the Apache License, Version 2.0 (the "License");
129 | you may not use this file except in compliance with the License.
130 | You may obtain a copy of the License at
131 |
132 | http://www.apache.org/licenses/LICENSE-2.0
133 |
134 | Unless required by applicable law or agreed to in writing, software
135 | distributed under the License is distributed on an "AS IS" BASIS,
136 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137 | See the License for the specific language governing permissions and
138 | limitations under the License.
139 | ```
140 |
141 |
142 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------