aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-09 15:44:28 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-09 15:44:28 +0100
commit139170c1f3e47de63d584a842ea502dcd0cc86f9 (patch)
treeb4ba7b817034a6e27056dc2b8f366b3e6ae6d499
parente26140c9a612c6c65b47c2a8c85c429e7f8ed4ea (diff)
downloadhardware_replicant_libsamsung-ipc-139170c1f3e47de63d584a842ea502dcd0cc86f9.tar.gz
hardware_replicant_libsamsung-ipc-139170c1f3e47de63d584a842ea502dcd0cc86f9.tar.bz2
hardware_replicant_libsamsung-ipc-139170c1f3e47de63d584a842ea502dcd0cc86f9.zip
nv_data-imei: indicate that write-imei may or may not work
I had two Nexus S: after breaking one, I've tried moving the IMEI of the broken one on the working one: - Earlier I did some backups of the EFS. - I went into recovery mode - I removed the .nv_data.bak and .nv_data.bak.md5 files - I copied the .nv_data.bin to my computer and changed the IMEI with nv_data-imei - I copied back the .nv_data.bin and the generated .nv_data.bin.md5 and fixed the permissions. - I booted the device However not only the IMEI didn't change, but it was also set back to the old one in the file. I've also asked Paul Kocialkowski if he remembered if changing the IMEI worked in his original code or on which device he tried it, but he didn't remember. So more information is probably needed to either understand if that code is supposed to work and if so if there are conditions in which it works or doesn't work (specific EFS, devices, etc). Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--tools/nv_data-imei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nv_data-imei.c b/tools/nv_data-imei.c
index dfa3d86..8f4986a 100644
--- a/tools/nv_data-imei.c
+++ b/tools/nv_data-imei.c
@@ -244,7 +244,7 @@ static struct command commands[] = {
},
{
"write-imei",
- "Store the given IMEI to nv_data",
+ "Store the given IMEI to nv_data (may or may not work)",
OPTION_FILE|OPTION_IMEI|OPTION_OFFSET,
OPTION_FILE|OPTION_IMEI|OPTION_OFFSET,
write_imei,