[Mtk][N0]客制化签名文件

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/[email protected]'
  development/tools/make_key platform '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'
  development/tools/make_key shared   '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'
  development/tools/make_key media    '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'

各参数说明如下:

Attrs Description Example
C Country Name US
ST State or Province Name California
L Locality Name Mountain View
O Organization Google
OU Organizational Unit Name Android
CN Common Name Android
emailAddress Contact email address [email protected]
2、替换旧 key

然后将生成的签名文件


[Mtk][N0]客制化签名文件_第1张图片

拷贝到 alps\device\mediatek\common\security\project\ 替换原文件。

3、开宏开关

到 ProjectConfig.mk 里面开启 MTK_SIGNATURE_CUSTOMIZATION = yes。
若宏开关为关闭状态,则使用的时 alps\build\target\product\security\ 下的签名文件。

你可能感兴趣的:([Mtk][N0]客制化签名文件)