)]}' { "commit": "6352b221538462b00b87071a4811e68bcc673cc7", "tree": "e6b55ff6ae5299f23dd5de3469b9e3fd972dd8e3", "parents": [ "9c0440c80071baa2d8fe289f91a1f80263c8e182" ], "author": { "name": "Tao Bao", "email": "tbao@google.com", "time": "Thu May 16 14:42:42 2019 -0700" }, "committer": { "name": "jhenrique09", "email": "jhenrique09.mcz@hotmail.com", "time": "Fri Oct 11 01:04:53 2019 +0000" }, "message": "Add misc_writer.\n\nbootloader_message.h currently divides /misc into four segments. The\nspace between 2K and 16K is reserved for vendor use (e.g. bootloader\npersists flags). This CL adds a vendor tool \"misc_writer\", to allow\nwriting data to the vendor space in /misc, before getting a dedicated\nHAL for accessing /misc partition (b/131775112).\n\nTargets need to explicitly include the module, then invoke the\nexecutable to write data. For example, the following command will write\n3-byte data (\"0xABCDEF\") to offset 4 in vendor space (i.e. 2048 + 4 in\n/misc).\n$ /vendor/bin/misc_writer --vendor-space-offset 4 --hex-string 0xABCDEF\n\nBug: 132906936\nTest: Run recovery_unit_test on crosshatch.\nTest: Call the command via init.hardware.rc on crosshatch. Check that\n the call finishes successfully. Then check the contents written to\n /misc (`dd bs\u003d1 skip\u003d2048 if\u003d/dev/block/sda2 count\u003d32 | xxd`).\nMerged-In: I79548fc63fc79b705a0320868690569c3106949f\n\n@jhenrique09: Port from android 10\n\nChange-Id: I6fc166e1296f29755933122569d721018d4b8f6f\n", "tree_diff": [ { "type": "modify", "old_id": "8a6fa08e76186f5c31c07f3e224a6d995e09c261", "old_mode": 33188, "old_path": "bootloader_message/Android.bp", "new_id": "2370f55535eb81aa805c9a4b61f2ad544efb948d", "new_mode": 33188, "new_path": "bootloader_message/Android.bp" }, { "type": "modify", "old_id": "7ebd86a584c9b15dd59a3d71c3135009885f570e", "old_mode": 33188, "old_path": "bootloader_message/bootloader_message.cpp", "new_id": "194ff13f9b95da02ddd1d6418c9b51a9cad8e0b7", "new_mode": 33188, "new_path": "bootloader_message/bootloader_message.cpp" }, { "type": "modify", "old_id": "975e94db43a0f9f2001bd64cadaaf466ef5900a2", "old_mode": 33188, "old_path": "bootloader_message/include/bootloader_message/bootloader_message.h", "new_id": "8d6ad82cf475180fbe6e8eff23c39f61cfd1e84f", "new_mode": 33188, "new_path": "bootloader_message/include/bootloader_message/bootloader_message.h" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "f5ad6e17eaed8672a7824442a52236f4e078dc44", "new_mode": 33188, "new_path": "misc_writer/Android.bp" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "fe66a8f3f39cb1690ad9c30ee623800aa0b64867", "new_mode": 33188, "new_path": "misc_writer/misc_writer.cpp" } ] }