Proper Way to replace test keys

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Proper Way to replace test keys

ソリューションへジャンプ
4,410件の閲覧回数
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,211件の閲覧回数
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,211件の閲覧回数
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,211件の閲覧回数
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,211件の閲覧回数
lily_zhang
NXP Employee
NXP Employee

Are you using the same password when you generate keys?

0 件の賞賛
2,211件の閲覧回数
michaelrobbelot
Contributor IV

I'm using different passwords for each key

Michael Robbeloth

0 件の賞賛
2,211件の閲覧回数
YixingKong
Senior Contributor IV

Michael

If your questin had been answered please click Correct Answer.

Thanks,

Yixing

0 件の賞賛
2,212件の閲覧回数
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 件の賞賛