Proper Way to replace test keys

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Proper Way to replace test keys

跳至解决方案
5,078 次查看
michaelrobbelot
Contributor IV

Everyone,

What is the proper way to replace the test keys build/target/product/security? When I replace the test keys with our organization's generated release keys, the build will keep asking for the shared, test, etc., keys whenever signapk is called. I tried using a combination of the instructions in the Advanced User Guide and  How to replace the release keys in the AOSP .

Michael Robbeloth

标签 (2)
0 项奖励
回复
1 解答
2,879 次查看
lily_zhang
NXP Employee
NXP Employee

Hope I caught your meaning.

You just need to generate keys once. These passwords will be used when you run sign_target_files_apks.

Best Regards

Lily Zhang

Freescale MPU Support

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,878 次查看
lily_zhang
NXP Employee
NXP Employee

Hello, Michael:

I made one experiment by following the suggestions of guideline and it can work. For example:

1. Created  and switch to the folder vendor/fsl/security/sabresd_6dq/

2. Created keys and key in the passwords:

3. In android root folder, run the command and key in passwords:

~/android/build/tools/releasetools/sign_target_files_apks -d vendor/fsl/security/sabresd_6dq/ out/dist/sabresd_6dq-target_files.zip signed-target_files.zip

4. The command can run well.

0 项奖励
回复
2,878 次查看
michaelrobbelot
Contributor IV

Xiaoli,

I have followed this procedure for updates and ran into problems (see my other message on signed ota updates). For full builds that we will program into our boards with the MfgTool, we need to be able to use our keys and not the test keys. However, when those keys are replaced, each build script will keep asking me to enter the password corresponding to the media, shared, etc., keys. The desired behavior is to replace the test keys with our organization's keys (generated using the above procedure) and not have the build keep asking for those passwords.

Michael Robbeloth

0 项奖励
回复
2,878 次查看
lily_zhang
NXP Employee
NXP Employee

Are you using the same password when you generate keys?

0 项奖励
回复
2,878 次查看
michaelrobbelot
Contributor IV

I'm using different passwords for each key

Michael Robbeloth

0 项奖励
回复
2,878 次查看
YixingKong
Senior Contributor IV

Michael

If your questin had been answered please click Correct Answer.

Thanks,

Yixing

0 项奖励
回复
2,880 次查看
lily_zhang
NXP Employee
NXP Employee

Hope I caught your meaning.

You just need to generate keys once. These passwords will be used when you run sign_target_files_apks.

Best Regards

Lily Zhang

Freescale MPU Support

0 项奖励
回复