25
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

apkからAndroidManifest.xmlを読む

Posted at

Unity+Android+JenkinsでVersion番号を変えようと四苦八苦した話
http://qiita.com/T_2/items/2b33738af320e2fe2ca8

に関連して、bundleVersion、vesionCodeが本当に変更されているか調査する必要があったのですが、アプリ起動後に表示させるのは面倒だったのでapkから設定を確認する方法を調べました。

##必要なもの
AXMLPrinter2.jar
https://code.google.com/p/android4me/downloads/detail?name=AXMLPrinter2.jar&

##手順

  1. apk(test.apkとする)をtest.zipにリネーム & 解凍
  2. 上記フォルダ内のAndroidManifest.xmlを任意のフォルダに置く
  3. ターミナルから以下のコマンドを実行
      java -jar AXMLPrinter2.jar AndroidManifest.xml

(pathは任意)

これで確認が可能です。

25
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?