How to get and mod System.img Android M ZV9

Tctien342

Senior Member
Aug 15, 2014
67
136
0
_Download this Zip file and extract it : https://drive.google.com/file/d/0Byybyd_nA78MRjJTdWVtaFVyaFU/view?usp=sharing
_Install Ext2Fsd and osfmount
_Now use WindowsLGFirmwareExtract to extract system.img from ZV9 TOT File ! (You have to Merge all system.img file after extract it to get the real one )
_Run Ext2Fsd and use osfmount to mount System.img in window (Uncheck Read-Only drive)
_Now you can mod this system.img and flash it through Send_command like ZV6!
 

natator99

Senior Member
Jan 14, 2013
55
18
0
Philadelphia, PA
Would this even work? Wouldn't modifying the system.img change the checksums. which would be caught by our locked bootloader and cause boot issues? Hence same reason we can't use send_command root injection?
 

leond

Senior Member
Jul 15, 2008
418
145
63
Boston
can this be used to inject root ?

---------- Post added at 02:25 PM ---------- Previous post was at 01:43 PM ----------

we can delete and add app to system.img but have to set right permission !
i have modded init.qcom.post_boot.sh file in etc to set that in boot !
file modded : https://drive.google.com/file/d/0Byybyd_nA78MVWRvblNTYjUzV3c/view?usp=sharing
the script on the bottom has a section:
#Try to add Root
chown -R 0:0 /system/app/SuperSU
chmod 0644 /system/app/SuperSU
chmod -R 0755 /system/app/SuperSU
.......
Did it actually work ?
(Please tell me it did :) )

---------- Post added at 02:36 PM ---------- Previous post was at 02:25 PM ----------

it will work for all system.img but we dont have ZVA TOT :(
Isn't there a way to dd/extract system.img from ZVA phone?
 

Tctien342

Senior Member
Aug 15, 2014
67
136
0
Root dont work !

I have wrong somewhere so can't active root !
I think we can extract system ZVA by dd but can copy it to PC ? (LG Secure ?)
But we can up back to ZV6 and copy it with root ?
 

leond

Senior Member
Jul 15, 2008
418
145
63
Boston
I have wrong somewhere so can't active root !
I think we can extract system ZVA by dd but can copy it to PC ? (LG Secure ?)
But we can up back to ZV6 and copy it with root ?
But root files are there? This is great news, it means we just have to figure out what files should go where for proper Marshmallow root. Maybe looking at custom rooted ROM?

do you think install script from supersu for Marshmallow can be called from init.qcom.post_boot.sh ?
http://www.gammerson.com/2015/10/download-super-su-v251zip-for-marshmallow.html
 
Last edited:

Awesomeslayerg

Senior Member
Jul 5, 2014
770
331
0
Los Angeles

leond

Senior Member
Jul 15, 2008
418
145
63
Boston
Wait can't we also disable DM verity or whatever that's called that's blocking root as well via permissions?
I thought dm-verity protects partition, so if the root files are there and it's not complaining on boot, dm-verity is not an issue.
But the more i am reading the more it looks like you can't root marshmallow without unlocked bootloader :(
 

Awesomeslayerg

Senior Member
Jul 5, 2014
770
331
0
Los Angeles
I checked there are no files with that I manually added them let see if my thing boots if not ah well

---------- Post added at 06:24 PM ---------- Previous post was at 06:11 PM ----------

I thought dm-verity protects partition, so if the root files are there and it's not complaining on boot, dm-verity is not an issue.
But the more i am reading the more it looks like you can't root marshmallow without unlocked bootloader :(
Looks like i was able to load the Super SU biniaries for some weird reason.. I added files to where they where suppose to go it made them
 

leond

Senior Member
Jul 15, 2008
418
145
63
Boston
I checked there are no files with that I manually added them let see if my thing boots if not ah well

---------- Post added at 06:24 PM ---------- Previous post was at 06:11 PM ----------



Looks like i was able to load the Super SU biniaries for some weird reason.. I added files to where they where suppose to go it made them
so it boots? can you start an adb shell? do you see su binary? does it have right permissions? can you run it from the shell?
 

Awesomeslayerg

Senior Member
Jul 5, 2014
770
331
0
Los Angeles
so it boots? can you start an adb shell? do you see su binary? does it have right permissions? can you run it from the shell?
I couldn't set permissions but the files are in there.. I just nuked my laf partition so there's no way for me to continue testing on this device but thank God I have an OS installed.. I guess I'm stuck on this forever now :p