How To : Create System.IMG from System Folder - Repack System.IMG

1

jenkalibor

New Member
Dec 11, 2015
3
0
1
I installed ubuntu virtual machine into VMPlayer, followed cookbook, but all folders and files are locked, in the mounted drive (linux says - I am not owner). How can I delete the files?


Thanks for answer.


Libor
 
2

JVitor

Member
Dec 12, 2014
76
19
8
39
check file permission http://stackoverflow.com/questions/18960689/ubuntu-says-bash-program-permission-denied


and run as SU
I cannot get away with bash permission denied. I am using Linux mint. Any tips? I have tried all the commands mentioned in the link with su status.
 
  • Like
Reactions: mrsim
2

JVitor

Member
Dec 12, 2014
76
19
8
39
great work mate
Thanks. I've found out the aforementioned android-tools-fsutils have a bug in make_ext4fs which makes it unable to set Android permissions in the file.


So, instead, I used the compiled files at: http://mtkfirmware.com/content/linux-commands-instructions-tools-unpacking-and-repacking-system-images-mtk-devices-ext4-and (also attached).


I installed Ubuntu alongside Windows (can be run also from trial mode directly from bootable USB or disc) and ran the scripts. I will write a tutorial about this. The correct partition size depends on the device being targeted (i.e. 512M, 768M or 1024M). Then it packs correctly for flashing.
 
Last edited by a moderator:
  • Like
Reactions: mrsim