最終更新:2017-09-11 (月) 14:15:36 (2411d)
Androidアプリ/署名
Top / Androidアプリ / 署名
https://developer.android.com/studio/publish/app-signing.html
概要
APK 署名スキーム v2
- Android 7.0 では、APK 署名スキーム v2 というアプリのインストール時間を高速化したり、APK ファイルに無許可の変更が行われないようにしたりする新しいアプリ署名スキームが導入されています。
- 既定では、Android Studio 2.2 と Gradle 2.2 用の Android プラグインで APK 署名スキーム v2 と従来の署名スキーム(JAR署名を使用する)の両方を使用してアプリに署名します。
メモ
- the certificate does not need to be signed by a certificate authority.
- Android apps often use self-signed certificates. The app developer holds the certificate's private key.
ビルド
デバッグ
- デバッグ用の署名が生成されて使われる。
- デバッグ用の署名のアプリは配布できない。
- The Android SDK generates a certificate to sign apps in debug mode.
- In debug mode, you sign your app with a debug certificate generated by the Android SDK Tools. This certificate has a private key with a known password, so you can run and debug your app without typing the password every time you make a change to your project.
- Android Studio signs your app in debug mode automatically when you run or debug your project from the IDE.
- debug.keystore
リリース
- To sign apps in release mode, you need to generate your own certificate.