Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Unknown Newsgroups: comp.os.linux.hardware Subject: hacking a mobile's SMS files? Date: Thu, 21 Jan 2016 17:47:55 -0000 (UTC) Organization: A noiseless patient Spider Lines: 61 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 21 Jan 2016 17:47:55 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="92fb9f733e81782f52853d7725cc64d3"; logging-data="31261"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19snvI+S/bHxiLX0WBgyimsXQOSxdn360A=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:WxloJAG9Hp5iR3BE0U26jPNOalw= Xref: csiph.com comp.os.linux.hardware:3006 Here in S.Africa [3rd world going 4th] I bought a cheap ZTE mobile, hoping to be able to transfer text between my computer to someone who has only got a mobile. It was a complete failure, but works nicely for audio: playing TextToSpeech and a radio. Now I've become curious again to see how I could eg. read/write the SMSs directly from the computer. The non-SD-card memory where the SMS's are stored, is only 770 block [35KB]. So I saved this mem to file:A, added "abc" to the tail of an existing stored/readable SMS and saved that as file:B cmp -l A B <-- shows 12 bytes difference between files A & B 1103 307 43 1104 206 221 1111 307 43 1112 206 221 5647 307 43 5648 206 221 5655 307 43 5656 206 221 5679 307 43 5680 206 221 5687 307 43 5688 206 221 What going on here? OK, it's 6 double-bytes. Perhaps if I'd added 5 chars instead of 3, I'd have gotten 10 double-bytes different. No!! The 6 double-bytes are identical. Redundant, repetition. It seems that the 3 new chars are in 1 double-byte, which is possible. fdisk identifies the file system as QNX. And wasn't able to mount it. And used `dd` to read the contents. Let's look at the Hex: A= 00000450 35 48 00 00 | 00 00 C7 86 | 35 48 03 00 | 00 00 00 00 5H......5H...... 00000450 35 48 00 00 | 00 00 23 91 | 35 48 03 00 | 00 00 00 00 5H....#.5H...... =B BTW. the file names are written in plain ASCII. eg: .... 20 20 20 10 | 00 00 99 A0 PHOTOS Does someone here know the SMS protocol ? == TIA.