Home
last modified time | relevance | path

Searched full:hwid (Results 1 – 25 of 59) sorted by relevance

123

/external/autotest/site_utils/
Dhwid_lib.py8 # HWID info types to request.
14 # HWID url vars.
17 URL_FORMAT_STRING='%(base_url)s/%(version)s/%(info_type)s/%(hwid)s/?key=%(key)s'
19 # Key file name to use when we don't want hwid labels.
23 """Raised whenever anything fails in the hwid info request."""
26 def get_hwid_info(hwid, info_type, key_file): argument
27 """Given a hwid and info type, return a dict of the requested info.
29 @param hwid: hwid to use for the query.
35 @raises HwIdException: If hwid/info_type/key_file is invalid or there's an
36 error anywhere related to getting the raw hwid info
[all …]
Dhwid_lib_unittest.py58 """Test that an empty hwid raises a ValueError."""
64 self.validate_exception(ValueError, 'hwid', 'invalid_info_type', None)
69 self.validate_exception(IOError, 'hwid', hwid_lib.HWID_INFO_BOM,
76 self.validate_exception(hwid_lib.HwIdException, 'hwid',
86 self.validate_exception(hwid_lib.HwIdException, 'hwid',
94 """Test that get_hwid_info successfully returns a hwid dict.
104 self.assertEqual(hwid_lib.get_hwid_info('hwid', valid_info_type,
119 hwid = 'mock_hwid'
122 info_type, hwid,
130 hwid_lib.get_hwid_info(hwid, info_type, dummy_key_file)
[all …]
/external/vboot_reference/tests/
Dvboot_display_tests.c45 strcpy(gbb_data + gbb->hwid_offset, "Test HWID"); in ResetMocks()
100 char hwid[VB_REGION_HWID_LEN]; in DebugInfoTest() local
107 /* HWID should come from the gbb */ in DebugInfoTest()
109 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
110 TEST_EQ(strcmp(hwid, "Test HWID"), 0, "HWID"); in DebugInfoTest()
115 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
116 TEST_EQ(strcmp(hwid, "{INVALID}"), 0, "HWID bad gbb"); in DebugInfoTest()
121 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
122 TEST_EQ(strcmp(hwid, "{INVALID}"), 0, "HWID missing"); in DebugInfoTest()
127 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
[all …]
/external/vboot_reference/scripts/image_signing/
Dmake_dev_firmware.sh8 # image or system live firmware (EEPROM), and assign proper HWID, FLAGS as well.
98 # Converts HWID from $1 to proper format with "DEV" extension
100 local hwid="$1"
101 local hwid_no_dev="${hwid% DEV}"
103 # NOTE: Some DEV firmware image files may put GUID in HWID.
106 if [ "$hwid" != "$hwid_no_dev" ]; then
107 hwid="$hwid_no_dev"
109 local hwid_dev="$hwid DEV"
222 debug_msg "Extract current HWID"
224 old_hwid="$(gbb_utility --get --hwid "$IMAGE" 2>"$EXEC_LOG" |
[all …]
/external/vboot_reference/tests/futility/
Dtest_gbb_utility.sh24 # HWID length should include the terminating null - this is too long
25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then
29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob
104 # (HWID) 0x0080 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 00
123 # HWID not null-terminated is invalid
127 # HWID of length zero is okay
130 # And HWID of length 1 consisting only of '\0' is okay, too.
134 # zero-length HWID not null-terminated is invalid
162 # hwid: offset + size == end of file is okay; beyond is invalid
189 if ${FUTILITY} gbb_utility -s --hwid="A" ${TMP}.blob.bad; then false; fi
[all …]
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py32 logging.info('Verifying HWID digest in PCR1')
33 hwid = self.faft_client.system.run_shell_command_get_output(
34 'crossystem hwid')[0]
35 logging.debug('HWID reported by device is: %s', hwid)
36 if not self._check_pcr(1, hashlib.sha256(hwid)):
37 error.TestFail('PCR1 was not extended with SHA256 digest of HWID!')
Dcontrol9 PURPOSE = "Ensure TPM PCRs have been correctly extended with boot mode and HWID"
20 encodes the current boot mode and the HWID, respectively.
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
Dlist_ports.py43 for port, desc, hwid in comports():
44 if r.search(port) or r.search(desc) or r.search(hwid):
45 yield port, desc, hwid
88 for port, desc, hwid in iterator:
92 print(" hwid: %s" % (hwid,))
Dlist_ports_posix.py100 for port, desc, hwid in sorted(comports()):
101 print "%s: %s [%s]" % (port, desc, hwid)
/external/vboot_reference/firmware/include/
Dregion.h45 * @param hwid Place to put HWID, which will be null-terminated
46 * @param max_size Maximum size of HWID including terminated null
52 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid,
Dbmpblk_header.h102 uint32_t tag; /* Tag it as a special image, like HWID */
121 TAG_HWID_RTOL, /* "right-to-left", ie, right-justified HWID */
133 * ASCII HWID should be displayed. For RENDER_HWID, the image coordinates
134 * specify upper-left corner of the HWID string. For RENDER_HWID_RTOL, they
137 #define RENDER_HWID "$HWID"
138 #define RENDER_HWID_RTOL "$HWID.rtol"
Dgbb_header.h30 /* v1.2 - added field to hold sha256 digest of the HWID */
32 /* Maximum length of a HWID in bytes, counting terminating null. */
84 uint32_t hwid_offset; /* HWID */
/external/vboot_reference/firmware/lib/
Dregion-kernel.c65 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid, in VbRegionReadHWID() argument
73 *hwid = '\0'; in VbRegionReadHWID()
74 StrnAppend(hwid, "{INVALID}", max_size); in VbRegionReadHWID()
81 VBDEBUG(("VbHWID(): invalid hwid size\n")); in VbRegionReadHWID()
86 VBDEBUG(("VbDisplayDebugInfo(): invalid hwid offset/size\n")); in VbRegionReadHWID()
89 ret = VbRegionReadGbb(cparams, gbb->hwid_offset, gbb->hwid_size, hwid); in VbRegionReadHWID()
Dvboot_display.c221 char hwid[256]; in VbDisplayScreenFromGBB() local
267 VbRegionReadHWID(cparams, hwid, sizeof(hwid)); in VbDisplayScreenFromGBB()
268 text_to_show = hwid; in VbDisplayScreenFromGBB()
510 char hwid[256]; in VbDisplayDebugInfo() local
520 VbRegionReadHWID(cparams, hwid, sizeof(hwid)); in VbDisplayDebugInfo()
521 used += StrnAppend(buf + used, "HWID: ", DEBUG_INFO_SIZE - used); in VbDisplayDebugInfo()
522 used += StrnAppend(buf + used, hwid, DEBUG_INFO_SIZE - used); in VbDisplayDebugInfo()
/external/vboot_reference/futility/
Dcmd_gbb_utility.c30 " --hwid \tReport hardware id (default).\n" in print_help()
32 " --digest \tReport digest of hwid (>= v1.2)\n" in print_help()
41 " --hwid=HWID \tThe new hardware id to be changed.\n" in print_help()
53 " %s --set --hwid='New Model' -k key.bin" in print_help()
75 {"hwid", 0, NULL, OPT_HWID},
377 opt_has_arg("hwid", 0); in do_gbb_utility()
382 opt_has_arg("hwid", 1); in do_gbb_utility()
401 /* --hwid is optional: null might be okay */ in do_gbb_utility()
462 /* With no args, show the HWID */ in do_gbb_utility()
516 fprintf(stderr, "\nERROR: missing new HWID value\n"); in do_gbb_utility()
[all …]
/external/autotest/client/bin/
Dsite_sysinfo.py357 # Get the hwid (hardware ID), if applicable.
359 keyval["hwid"] = utils.system_output('crossystem hwid')
361 # The hwid may not be available (e.g, when running on a VM).
363 # we expect the hwid to not be avilable, and we can proceed in this
364 # case. Otherwise, the hwid is missing unexpectedly.
368 'HWID not available; not logging it as a test keyval.')
370 logging.exception('HWID expected but could not be identified; '
/external/autotest/client/site_tests/hardware_ProbeComponents/
Dcontrol7 PURPOSE = "Probe all hardware components for HWID generation"
12 DOC = "This test logs the output of gooftool probe command used for HWID."
/external/autotest/server/cros/servo/
Dfirmware_programmer.py134 """Program the firmware but preserve VPD and HWID."""
194 # HWID is inside the RO portion. Don't preserve HWID if we keep RO.
196 # Read original HWID. The output format is:
199 'gbb_utility -g --hwid %s' % self._gbb)
202 # Write HWID to new firmware
203 self._servo.system("gbb_utility -s --hwid='%s' %s" %
/external/autotest/server/cros/
Dfactory_install_test.py45 # string with a single argument (the name of the HWID cfg).
52 mkdir -p "$MOUNT_DIR/dev_image/share/chromeos-hwid"
53 echo %s > "$MOUNT_DIR/dev_image/share/chromeos-hwid/cfg"
86 Returns the HWID cfg, used to select a test list.
190 # Create a pseudo-HWID-updater that merely sets the HWID to "vm" or
/external/vboot_reference/tests/bitmaps/
Dcase_badbmp.yaml8 $HWID: FontFile.bin
14 - [100, 100, $HWID]
/external/vboot_reference/utility/
Dvbutil_what_keys74 local hwid matchh rootkey matchn recoverykey matchr
76 hwid=$(futility gbb_utility --hwid "$file" | sed -e 's/^.*: *//') || return
77 matchh=$(grep "$hwid" "$0" 2>/dev/null | sed -e 's/^# //')
89 echo "$space hwid: ${matchh:-$hwid}"
/external/vboot_reference/firmware/2lib/include/
D2struct.h110 /* HWID digest from GBB header */
167 /* v1.2 - added fields for sha256 digest of the HWID */
231 uint32_t hwid_offset; /* HWID */
241 uint8_t hwid_digest[VB2_GBB_HWID_DIGEST_SIZE]; /* SHA-256 of HWID */
/external/autotest/server/hosts/
Dcros_label.py450 """Return all the labels generated from the hwid."""
455 # Grab the key file needed to access the hwid service.
462 hwid = host.run_output('crossystem hwid').strip()
463 hwid_info_list = hwid_lib.get_hwid_info(hwid, hwid_lib.HWID_INFO_LABEL,
493 logging.error('hwid service: %s', e)
/external/autotest/client/site_tests/longevity_Tracker/
Dlongevity_Tracker.py93 """Get hwid of test device, e.g., 'WOLF C4A-B2B-A47'.
95 @returns string of hwid (Hardware ID) of device under test.
97 with os.popen('crossystem hwid 2>/dev/null', 'r') as hwid_proc:
98 hwid = hwid_proc.read()
99 if not hwid:
100 hwid = 'undefined'
101 return hwid
/external/vboot_reference/utility/include/
Dgbb_utility.h64 bool set_hwid(const char *hwid); // NOTE: hwid is NUL-terminated.

123