Le 10/05/2013 09:39, Mossroy a écrit :
I contacted the author of this post (Carmen Jiménez Cabezas), who kindly
answered.
Carmen tested this procedure many times on a real device, with no worries.
According to Carmen : "you can't actually brick your phone just by
playing with the profile directory. If worst came to worst you can just
erase the directory and the .ini and restart the phone. It should
recreate the directory."
I tested it myself successfully with a slightly different procedure,
also given by Carmen. It consists in adding a certificate to the
existing certificate list of the phone :
adb pull /data/b2g/mozilla/bhfe64qf.default/cert9.db .
adb pull /data/b2g/mozilla/bhfe64qf.default/key4.db .
adb pull /data/b2g/mozilla/bhfe64qf.default/pkcs11.txt .
And then you have to reset the database password (on the computer, not
on the device) :
certutil -d sql:. -W
And only then you can add new certs:
certutil -d sql:. -A -n "my_cert" -t "C,C,TC" -i my_cert
And once that's done you can adb push the files back to the device:
adb push cert9.db /data/b2g/mozilla/bhfe64qf.default
adb push key4.db /data/b2g/mozilla/bhfe64qf.default
adb push pkcs11.txt /data/b2g/mozilla/bhfe64qf.default
Many thanks to Carmen for that : it worked great for me.
Regards,
Mossroy