Comments (1)
You aren't putting a ! in your command. It would be -c '!MISC WRTE blah blah'
Your second problem is that you don't specify the offset OF the misc partition, you specify an offset WITHIN the misc partition. MISC WRTE and MISC READ already know the offset of misc.
So if you want to start writing at the beginning of misc:
!MISC WRTE,0,4 TEST
That will write TEST at the very start of the misc partition.
You can read it back with:
!MISC READ,0,4
And you will get TEST back. Here is output from my phone:
71° [swango:~/dev/lglaf] h932-dd-write(+1/-1)+* 8s ± ./lglaf.py --cr --debug --rawshell
LGLAF.py: DEBUG: product id in CR list: >G4<
LGLAF.py: DEBUG: Device is: 633a, G4. Enabling Challenge/Response!
LGLAF.py: DEBUG: Using endpoints 83 (IN), 02 (OUT)
LGLAF.py: DEBUG: Using Protocol version: 0x1000004
LGLAF.py: DEBUG: CR detection: 1
LGLAF.py: DEBUG: Hello done, proceeding with commands
LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)
Type a shell command to execute or "exit" to leave.
# !MISC WRTE,0,4 TEST
LGLAF.py: DEBUG: Header: b'MISC' b'WRTE' b'\0\0\0\0' b'\x04\0\0\0' b'\0\0\0\0' b'\0\0\0\0' b';i\0\0' b'\xb2\xb6\xac\xbc'
# !MISC READ,0,4
LGLAF.py: DEBUG: Header: b'MISC' b'READ' b'\0\0\0\0' b'\x04\0\0\0' b'\0\0\0\0' b'\x04\0\0\0' b'\xc2+\0\0' b'\xb2\xb6\xac\xbc'
TEST#
Now without all the debug output:
Type a shell command to execute or "exit" to leave.
# !MISC WRTE,0,4 1234
# !MISC READ,0,4
1234#
Unless you have a backup of your misc partition, you NEVER want to write more than one block unless you are trying to modify values on the misc partition itself (for example serial number, or MAC address).
For eMMC devices that is 512 and for UFS devices that is 4096.
-- Brian
from lglaf.
Related Issues (20)
- Problem with communication port
- MISCWTRE AND IOCT AND COPY my researtch need complate HOT 25
- restore partitions slowly HOT 3
- Dump and restore file HOT 2
- Laf 1000005 little heads up needed
- Change link of Windows LG Driver to official website HOT 2
- im a new user sorry if this is a neweb question HOT 20
- Output as one BIN HOT 1
- lglaf doesn't work anymore on LG K10 2017 (M250N) since the last Oreo update. HOT 10
- Lg Laf Protocol (INFOSPRO) Help Me HOT 2
- LGLAF permission denied - LG K10 (2017) HOT 1
- LG G2, model VS980 - partitions.py uses wrong path
- Request Help Rooting LG-LS770 (Sprint) HOT 1
- Device not found
- LG D605 (L9II) 'hello' timeout.
- Baud rate change? HOT 2
- Patch boot partition HOT 1
- PyUSB is not detected HOT 2
- "Nice to meet you" on LG G6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lglaf.