Le 10/05/2013 09:39, Mossroy a écrit : > Le 09/05/2013 20:48, Andrew Sutherland a écrit : >> There is an earlier message on dev-b2g that may be of use: >> https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.b2g/B57slgVO3TU > > I had seen this post, but did anyone test it on a real device? > I'm a bit scared to "brick" my device if something is wrong. >
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 _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
