mirror of
https://github.com/Lekensteyn/lglaf.git
synced 2024-11-14 19:35:41 -05:00
Compatibility with LG G4
According to @invisiblek, platform is gone from the LG G4 and bootdevice also exists with the G2. So use that instead.
This commit is contained in:
parent
94c0dc5ac2
commit
fe75d2108f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def get_partitions(comm):
|
|||
Maps partition labels (such as "recovery") to block devices (such as
|
||||
"mmcblk0p0"), sorted by the number in the block device.
|
||||
"""
|
||||
name_cmd = 'ls -l /dev/block/platform/*/by-name'
|
||||
name_cmd = 'ls -l /dev/block/bootdevice/by-name'
|
||||
output = comm.call(lglaf.make_exec_request(name_cmd))[1]
|
||||
output = output.strip().decode('ascii')
|
||||
names = []
|
||||
|
|
Loading…
Reference in a new issue