Hi,
trying to build replicant-6 image,
I read

- 
https://redmine.replicant.us/projects/replicant/wiki/AndroidSystemKeyMigration 
(I see that some keys are stored somewhere and need to be updated if one want 
to build replicant-6)

- 
https://redmine.replicant.us/projects/replicant/wiki/Replicant60BuildTips#Signing-keys
 (those keys seems to be stored into vendor/replicant-security)

- 
https://git.replicant.us/replicant/vendor_replicant-scripts/tree/images/gen_key_migration_script/README

- https://redmine.replicant.us/projects/replicant/wiki/GenericReplicant60Build

However, following last instructions, it seems `./vendor/replicant/build.sh 
i9300` signs apk with the generated key, but since this file has been modified 
9/9/2020, I understand the files generated bu this script are not usable and 
need to install replicant6-0004 and need to run 
https://git.replicant.us/replicant/vendor_replicant-scripts/tree/images/gen_key_migration_script/README
 instructions.
However, I probably missed some information in this file: it seemed to me 
`./gen_key_migration_script.py gen-script \

vendor/replicant/prebuilt/common/bin/key-migration.sh \
      vendor/replicant-data/distros/releases/certificates/ \
      vendor/replicant-security/

`

need to be updated for path like this:
`./gen_key_migration_script.py gen-script \

../../../../

vendor/replicant/prebuilt/common/bin/key-migration.sh \

../../../../

vendor/replicant-data/distros/releases/certificates/ \

../../../../

vendor/replicant-security/

`

In addition, it seemed some additionnal fixes were needed :

- chmod u+x ../../../../vendor/replicant/prebuilt/common/bin/key-migration.sh

- the sashbang `!/system/bin/sh` in 
../../../../vendor/replicant/prebuilt/common/bin/key-migration.sh does not work 
(/bin/sh should work)

But I then got following output (si I probably made missed something):
---
./gen_key_migration_script.py gen-script ./gen_key_migration_script.py 
gen-script \
>
Traceback (most recent call last):
File "./gen_key_migration_script.py", line 20, in <module>
import sh
ImportError: No module named 'sh'
debian@replicant:~/replicant/replicant-6.0/vendor/replicant-scripts/images/gen_key_migration_script$
 ../../../../vendor/replicant/prebuilt/common/bin/key-migration.sh \
> ../../../../vendor/replicant-data/distros/releases/certificates/ \
> ../../../../vendor/replicant-security/
Cannot migrate keys due to missing /data/system/packages.xml:
- If /data is not mounted, you might need to mount it
- If /data is already mounted, maybe the data partition is blank. In this case 
you can skip running this script.

---
Someone to help me please?

- Fil Lupin.
_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to