├── sample ├── .gitignore ├── graphics │ └── apk_parser_sample.png ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── source_viewer.xml │ │ │ │ └── list_item_app.xml │ │ ├── assets │ │ │ ├── prettify.css │ │ │ ├── sons-of-obsidian.css │ │ │ └── github.css │ │ ├── java │ │ │ └── com │ │ │ │ └── jaredrummler │ │ │ │ └── apkparser │ │ │ │ └── sample │ │ │ │ ├── interfaces │ │ │ │ └── ApkParserSample.java │ │ │ │ ├── util │ │ │ │ ├── Density.java │ │ │ │ ├── AppNames.java │ │ │ │ └── Helper.java │ │ │ │ ├── App.java │ │ │ │ ├── dialogs │ │ │ │ ├── XmlListDialog.java │ │ │ │ └── AppDialog.java │ │ │ │ ├── adapters │ │ │ │ └── AppListAdapter.java │ │ │ │ ├── fragments │ │ │ │ └── AppListFragment.java │ │ │ │ └── activities │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── jaredrummler │ │ │ └── apkparser │ │ │ └── sample │ │ │ └── ApplicationTest.java │ └── test │ │ └── java │ │ └── com │ │ └── jaredrummler │ │ └── apkparser │ │ └── sample │ │ └── ExampleUnitTest.java ├── proguard-rules.pro └── build.gradle ├── library ├── .gitignore ├── build.gradle ├── proguard-rules.pro ├── gradle.properties └── src │ └── main │ ├── java │ └── com │ │ └── jaredrummler │ │ └── apkparser │ │ ├── model │ │ ├── DexInfo.java │ │ ├── UseFeature.java │ │ ├── GlEsVersion.java │ │ ├── Icon.java │ │ ├── IntentFilter.java │ │ ├── AndroidComponent.java │ │ ├── Permission.java │ │ └── DexClass.java │ │ ├── parser │ │ ├── StringPoolEntry.java │ │ ├── XmlStreamer.java │ │ ├── CompositeXmlStreamer.java │ │ ├── XmlNamespaces.java │ │ ├── CertificateParser.java │ │ ├── XmlTranslator.java │ │ └── ApkMetaTranslator.java │ │ ├── struct │ │ ├── xml │ │ │ ├── XmlHeader.java │ │ │ ├── XmlResourceMapHeader.java │ │ │ ├── XmlNamespaceEndTag.java │ │ │ ├── XmlNamespaceStartTag.java │ │ │ ├── XmlNodeEndTag.java │ │ │ ├── XmlNodeHeader.java │ │ │ ├── XmlNodeStartTag.java │ │ │ ├── Attributes.java │ │ │ ├── XmlCData.java │ │ │ └── Attribute.java │ │ ├── StringPool.java │ │ ├── resource │ │ │ ├── ResourceTableHeader.java │ │ │ ├── ResourceTable.java │ │ │ ├── TypeSpec.java │ │ │ ├── TypeSpecHeader.java │ │ │ ├── ResourceMapEntry.java │ │ │ ├── ResourceEntry.java │ │ │ ├── TypeHeader.java │ │ │ ├── PackageHeader.java │ │ │ └── ResourcePackage.java │ │ ├── AndroidConstants.java │ │ ├── ChunkType.java │ │ ├── ResourceEntity.java │ │ ├── StringPoolHeader.java │ │ └── ChunkHeader.java │ │ ├── exception │ │ └── ParserException.java │ │ └── utils │ │ ├── Pair.java │ │ ├── XmlUtils.java │ │ ├── Locales.java │ │ ├── xml │ │ ├── UnicodeUnpairedSurrogateRemover.java │ │ ├── EntityArrays.java │ │ ├── CodePointTranslator.java │ │ ├── AggregateTranslator.java │ │ ├── XmlEscaper.java │ │ └── LookupTranslator.java │ │ ├── Buffers.java │ │ └── Utils.java │ └── AndroidManifest.xml ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── LICENSE.txt ├── gradle.properties ├── gradlew.bat └── README.md /sample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | *.iml -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | *.iml -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':library', ':sample' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/graphics/apk_parser_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/sample/graphics/apk_parser_sample.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/sample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/sample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaredrummler/APKParser/HEAD/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jul 17 16:11:57 CEST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 27 5 | buildToolsVersion '27.0.3' 6 | 7 | defaultConfig { 8 | minSdkVersion 9 9 | targetSdkVersion 27 10 | } 11 | } 12 | 13 | //apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ########### Specifies intentionally untracked files to ignore ########### 2 | 3 | ### Gradle 4 | .gradle/ 5 | build/ 6 | 7 | ### IntelliJ IDEA 8 | /.idea 9 | *.iml 10 | *.iws 11 | captures/ 12 | .navigation/ 13 | local.properties 14 | bin/ 15 | gen/ 16 | out/ 17 | *.apk 18 | *.ap_ 19 | 20 | ### Android 21 | *.jks 22 | *.dex 23 | 24 | ### Java 25 | *.class 26 | hs_err_pid* 27 | 28 | ### Windows 29 | Desktop.ini 30 | Thumbs.db 31 | ehthumbs.db 32 | 33 | ### OSX 34 | .DS_Store 35 | 36 | ### Linux 37 | *~ 38 | .fuse_hidden* 39 | .directory 40 | .Trash-* 41 | 42 | ### Logs 43 | *.log 44 | 45 | ### Crashlytics 46 | crashlytics.properties 47 | fabric.properties -------------------------------------------------------------------------------- /sample/src/main/assets/prettify.css: -------------------------------------------------------------------------------- 1 | .str{color:#EC7600}.kwd{color:#93C763}.com{color:#66747B}.typ{color:#678CB1}.lit{color:#FACD22}.pun{color:#F1F2F3}.pln{color:#F1F2F3}.tag{color:#8AC763}.atn{color:#E0E2E4}.atv{color:#EC7600}.dec{color:purple}pre.prettyprint{border:0 solid #888}ol.linenums{margin-top:0;margin-bottom:0}.prettyprint{background:#000}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{color:#555;list-style-type:decimal}li.L1,li.L3,li.L5,li.L7,li.L9{background:#111}@media print{.str{color:#060}.kwd{color:#006;font-weight:700}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:700}.lit{color:#044}.pun{color:#440}.pln{color:#000}.tag{color:#006;font-weight:700}.atn{color:#404}.atv{color:#060}} -------------------------------------------------------------------------------- /sample/src/main/assets/sons-of-obsidian.css: -------------------------------------------------------------------------------- 1 | .str{color:#ec7600}.kwd{color:#93c763}.com{color:#66747b}.typ{color:#678cb1}.lit{color:#facd22}.pun{color:#f1f2f3}.pln{color:#f1f2f3}.tag{color:#8ac763}.atn{color:#e0e2e4}.atv{color:#ec7600}.dec{color:purple}pre.prettyprint{border:0 solid #888}ol.linenums{margin-top:0;margin-bottom:0}.prettyprint{background:#000}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{color:#555;list-style-type:decimal}li.L1,li.L3,li.L5,li.L7,li.L9{background:#111}@media print{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun{color:#440}.pln{color:#000}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}} -------------------------------------------------------------------------------- /library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Program Files (x86)\Android\android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /sample/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Program Files (x86)\Android\android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /sample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | APK Parser Sample 20 | 21 | -------------------------------------------------------------------------------- /library/gradle.properties: -------------------------------------------------------------------------------- 1 | VERSION_NAME=1.0.2 2 | VERSION_CODE=3 3 | GROUP=com.jaredrummler 4 | 5 | POM_NAME=APK Parser 6 | POM_ARTIFACT_ID=apk-parser 7 | POM_PACKAGING=aar 8 | 9 | POM_DESCRIPTION=APK parser for Android 10 | POM_URL=https://github.com/jaredrummler/APKParser 11 | POM_SCM_URL=https://github.com/jaredrummler/APKParser.git 12 | POM_SCM_CONNECTION=scm:git@github.com:jaredrummler/apk-parser.git 13 | POM_SCM_DEV_CONNECTION=scm:git@github.com:jaredrummler/apk-parser.git 14 | POM_LICENCE_NAME=The BSD 3-Clause License 15 | POM_LICENCE_URL=https://raw.githubusercontent.com/jaredrummler/apk-parser/master/LICENSE.txt 16 | POM_LICENCE_DIST=repo 17 | POM_DEVELOPER_ID=jaredrummler 18 | POM_DEVELOPER_NAME=Jared Rummler 19 | 20 | SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots 21 | RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 27 5 | buildToolsVersion '27.0.3' 6 | 7 | defaultConfig { 8 | applicationId "com.jaredrummler.apkparser.sample" 9 | minSdkVersion 16 10 | targetSdkVersion 27 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | testImplementation 'junit:junit:4.12' 25 | implementation 'com.android.support:appcompat-v7:27.1.1' 26 | implementation 'com.android.support:animated-vector-drawable:27.1.1' 27 | implementation 'com.android.support:exifinterface:27.1.1' 28 | implementation 'com.squareup.picasso:picasso:2.71828' 29 | implementation project(':library') 30 | } 31 | -------------------------------------------------------------------------------- /sample/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | #0097A7 21 | #006064 22 | #E91E63 23 | 24 | -------------------------------------------------------------------------------- /sample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 16dp 21 | 16dp 22 | 16dp 23 | 24 | -------------------------------------------------------------------------------- /sample/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | > 19 | 25 | 26 | -------------------------------------------------------------------------------- /sample/src/main/java/com/jaredrummler/apkparser/sample/interfaces/ApkParserSample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.sample.interfaces; 19 | 20 | import android.content.pm.PackageInfo; 21 | 22 | public interface ApkParserSample { 23 | 24 | void openXmlFile(PackageInfo app, String xml); 25 | 26 | void listXmlFiles(PackageInfo app); 27 | 28 | void showMethodCount(PackageInfo app); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /library/src/main/java/com/jaredrummler/apkparser/model/DexInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.model; 19 | 20 | import com.jaredrummler.apkparser.struct.dex.DexHeader; 21 | 22 | public class DexInfo { 23 | 24 | public final DexClass[] classes; 25 | public final DexHeader header; 26 | 27 | public DexInfo(DexClass[] classes, DexHeader header) { 28 | this.classes = classes; 29 | this.header = header; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /sample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 22 | 64dp 23 | 24 | -------------------------------------------------------------------------------- /sample/src/androidTest/java/com/jaredrummler/apkparser/sample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.sample; 19 | 20 | import android.app.Application; 21 | import android.test.ApplicationTestCase; 22 | 23 | /** 24 | * Testing Fundamentals 25 | */ 26 | public class ApplicationTest extends ApplicationTestCase { 27 | 28 | public ApplicationTest() { 29 | super(Application.class); 30 | } 31 | } -------------------------------------------------------------------------------- /sample/src/main/java/com/jaredrummler/apkparser/sample/util/Density.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.sample.util; 19 | 20 | import android.content.Context; 21 | import android.content.res.Resources; 22 | import android.util.TypedValue; 23 | 24 | public class Density { 25 | 26 | public static int toPx(Context context, float dp) { 27 | Resources r = context.getResources(); 28 | float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, r.getDisplayMetrics()); 29 | return Math.round(px); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sample/src/main/java/com/jaredrummler/apkparser/sample/App.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.sample; 19 | 20 | import android.app.Application; 21 | 22 | import com.jaredrummler.apkparser.sample.picasso.AppIconRequestHandler; 23 | import com.squareup.picasso.Picasso; 24 | 25 | public class App extends Application { 26 | 27 | @Override public void onCreate() { 28 | super.onCreate(); 29 | Picasso.setSingletonInstance(new Picasso.Builder(this) 30 | .addRequestHandler(new AppIconRequestHandler(this)) 31 | .build()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /sample/src/main/res/layout/source_viewer.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | 28 | 29 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /sample/src/main/java/com/jaredrummler/apkparser/sample/util/AppNames.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015. Jared Rummler 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.jaredrummler.apkparser.sample.util; 19 | 20 | import android.content.pm.PackageInfo; 21 | import android.content.pm.PackageManager; 22 | 23 | import java.util.Hashtable; 24 | 25 | public class AppNames { 26 | 27 | static final Hashtable APP_NAME_CACHE = new Hashtable<>(); 28 | 29 | public static String getLabel(PackageManager pm, PackageInfo packageInfo) { 30 | if (APP_NAME_CACHE.containsKey(packageInfo.packageName)) { 31 | return APP_NAME_CACHE.get(packageInfo.packageName); 32 | } 33 | String label = packageInfo.applicationInfo.loadLabel(pm).toString(); 34 | APP_NAME_CACHE.put(packageInfo.packageName, label); 35 | return label; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /sample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 27 | 31 |