I want to write a program that puts the extension in the background.
What I got to: chrome when installing the extension only touches two files: AppData\Local\Google\Chrome\User Data\Default\Preferences and AppData\Local\Google\Chrome\User Data\Default\Secure Preferences .
I will give the paths in the JSON file as follows: key 1. key2 and so on.
It does the following: adds information to AppData\Local\Google\Chrome\User Data\Default\Secure Preferences along the extensions.settings. Path, also into AppData\Local\Google\Chrome\User Data\Default\Preferences along the extensions path. toolbar (adds to the array ID), also in extensions.install_signature.ids (similarly). But! At the same time, along the path protection.macs. <Global keys, for example extensions.settings.> There is a line with the data hash presented above, the hash is HMAC SHA256 from (device_id + path (this is the same path to the key, for example extensions. settings.) + value (stringifyed-json from an object that lies along the path that is hashed) without empty objects inside. Also from protection.macs is considered a hash and is written to protection.super_mac. The question is where chrome takes the key for HMAC ' And - already day I rummage in sorsah of chrome I can not understand.
And another question - how to get the ID of the extension?