1、make key
按 alps\build\target\product\security\README 文件内容指示
The following commands were used to generate the test key pairs:development/tools/make_key testkey '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'development/tools/make_key platform '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'development/tools/make_key shared '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'development/tools/make_key media '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
各参数说明如下:
| Attrs | Description | Example |
|---|---|---|
| C | Country Name | US |
| ST | State or Province Name | California |
| L | Locality Name | Mountain View |
| O | Organization | |
| OU | Organizational Unit Name | Android |
| CN | Common Name | Android |
| emailAddress | Contact email address | android@android.com |
2、替换旧 key
然后将生成的签名文件![[N0]客制化签名文件 - 图1](/uploads/projects/xshawn@aosp/cd0aeaffe0d8827ce59558e4133e683e.png)
拷贝到 alps\device\mediatek\common\security\project\ 替换原文件。
3、开宏开关
到 ProjectConfig.mk 里面开启 MTK_SIGNATURE_CUSTOMIZATION = yes。
若宏开关为关闭状态,则使用的时 alps\build\target\product\security\ 下的签名文件。
