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:
Peter Wu 2015-12-29 18:26:07 +01:00
parent 94c0dc5ac2
commit fe75d2108f

View file

@ -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 = []