HELP... converting system folder in system.img file - Android Q&A, Help & Troubleshooting

Help please I need to convert system folder of a custom rom in
System.img format

different filesystems
yash.pranjale86 said:
Help please I need to convert system folder of a custom rom in
System.img format
Click to expand...
Click to collapse
hello
spent some time with a file-system called yaffs perhaps it´s a solution for you. find it here on XDA

Related

How can I build system.img(Ext4) that like orignal system.img ?

Someone can rebuild system.img and use card update that do'nt update by zip file ?
So someone can teach us how to do
tommywu7 said:
Someone can rebuild system.img and use card update that do'nt update by zip file ?
So someone can teach us how to do
Click to expand...
Click to collapse
i haven't manually from the command line using the tools built a system.img file from scratch but i know in linux you're able to mount an already existing system.img and extract out the files.
Code:
mount -o loop -t ext4 /home/user/system.img /mnt/system
not sure the command or tools to create the system.img ... perhaps yaffs would work for this? the only way i've created system.img files is through using aosp and cm7. looking at aosp/cm7 is prob the best place to start in answering this question as they have scripts and tools to create the system.img file
hope that helps point in the right direction!

[Q] to Developers, How to Preroot.

Hi developers, i know sometimes i can be too insistent but, i really want to learn how to make those prerooted system.iso to help the comunity (Specially the spanish comunity, we have an spanish version of XDA for the people that does not understand english).
I've been searching a lot on google and this forum but i cant find anithing.
I would like to know at least where to look to find this info, what i need to know or some links to read. (Note: im not a developer, just a user wanting to learn xD)
Thanks in advance.
PD: I assume OTA rootkeeper doesnt work when flashing an .ftf
Sorry for repost, i found something, i know i have to make an .img from our system partition (i dont know how) then unpack the .img, then add superuser.apk and correct permissions and then repack the img.
oh, and i found this: http://www.mobi-forum.de/handys-sma...npack-repack-system-image-and-add-root-to-it/
as i understand is something like...
extract system.img from the device (dont know if we can do this from the system.sin, and dont know how)
extraxt system.img to a folder (dont know if this is an ext4 or yaffs2 partition but i can extract with ext2eplore but it seems that if you extract system.img on windows you lose all permissions so.. need linux?)
include superuser and correct permissions
include binaries and correct permissions
include or delete other apps and correct permissions
take that system folder to an .img
flash (yay! i know how to do it!)
so.. i know what must i do, but i dont know how to do it.
im not dev. im not a linux user but i learn fast
I would like to learn how to make prerooted images too. I've been looking for information about it but I haven't found anything
Any help will be appreciated
Just look in the Development section, and PM the people who are posting the pre-rooted images.
I have more info:
extract system.img ···> i think we can do that with sin2img (it extracts to yaffs partition, but i cant extract it with unyaffs)
extraxt system.img to a folder ···> We need linux to do this, im ussing Ubuntu for my first time and i downloaded:
These files for ext4 extracting and packing
These files to unyaff
But i have some errors line "command not found" with ext4 extractors, and "exceptions or corruptions" with unyaffs (it seems sin2img does not work properly)
include superuser and correct permissions
include binaries and correct permissions
include or delete other apps and correct permissions
take that system folder to an .img
I have similary problem.I cannot unpack system.img.So I cannot get root to my office firmware.If you have any progress,please tell me.Thanks.
well i found this, but when using unyaffs it gives me an error like "system.img not suported or corrupted"
http://wikiwiki.jp/knot/?SK17i-en
Yakandu said:
well i found this, but when using unyaffs it gives me an error like "system.img not suported or corrupted"
http://wikiwiki.jp/knot/?SK17i-en
Click to expand...
Click to collapse
system.img for XS is ext4, not yaffs.

[Q] [Solved] How to open hidden.img xxlsj !?

How can be extracted files from hidden.img !? I need hiden files from preload partion xxlsj.I don't have the rom in my phone and i want to use dsixda kitchen.
Tried sgs2ext4 and then open the output with Linux disk reader?
Sent from my GT-I9100
I have tried but not working.
Try unyaffs. Search for it in the forums.
Sent from my GT-I9100 using xda premium
I have tried with unyaffs but not working.I get some error.
iepurasu_poznas said:
How can be extracted files from hidden.img !? I need hiden files from preload partion xxlsj.I don't have the rom in my phone and i want to use dsixda kitchen.
Click to expand...
Click to collapse
Did you try opening the file as virtual disk? You can mount it via daemon tools or via power iso, an application named OSFMount can mount it like a flash drive, ie you can perform both read and write operation. By the way all of the above mentioned apps are for Windows.
Using GT - I9100
Just hit the damn help button if I helped you.
I managed to extract files with simg2img.jar. Credits to LegendK95 for help and tool.Thanks to all for answers!
iepurasu_poznas said:
I managed to extract files with simg2img.jar. Credits to LegendK95 for help and tool.Thanks to all for answers!
Click to expand...
Click to collapse
simg2img.jar where it can be found? {for WINdows}

how to repack NON-HLOS.bin ??????

hi all!!! can someone help me how to repack NON-HLOS.bin?!!!
i extract NON-HLOS.bin and i see image folder and many files in this folder, so i change some files and i need to pack all this files back to .BIN ( NON-HLOS.bin)
As far i know you can't just build it from a folder, you need to mount the old one and replace needed files.
animehq said:
As far i know you can't just build it from a folder, you need to mount the old one and replace needed files.
Click to expand...
Click to collapse
so how to replace? i mount this bin file in DiskInternals Linux Reader and i see fat16 82,64mb logical volume, i can save all files from this logical volume, but i cant write my files in this folder.
sh0ti said:
so how to replace? i mount this bin file in DiskInternals Linux Reader and i see fat16 82,64mb logical volume, i can save all files from this logical volume, but i cant write my files in this folder.
Click to expand...
Click to collapse
ok i found solution
sh0ti said:
ok i found solution
Click to expand...
Click to collapse
Could you please tell use the solution, that would be appreciated, Thank you!:good:

[Help] Remove gapps from rom.zip

Hello there! I recently installed a custom rom on my phone and there are google apps pre-installed. How can remove the gapps from the rom zip file and have only the os and separetly the gapps.
Tommytommy1234 said:
Hello there! I recently installed a custom rom on my phone and there are google apps pre-installed. How can remove the gapps from the rom zip file and have only the os and separetly the gapps.
Click to expand...
Click to collapse
If you have Windows use 7-zip and view the archive so when you right click onto an app within you'll see a "delete" option which should work. If your on linux install p7zip-full to your system to do the same
TheExploitedOne said:
If you have Windows use 7-zip and view the archive so when you right click onto an app within you'll see a "delete" option which should work. If your on linux install p7zip-full to your system to do the same
Click to expand...
Click to collapse
Thanks! Will try that and let you know what's happening.
Tommytommy1234 said:
Thanks! Will try that and let you know what's happening.
Click to expand...
Click to collapse
Sounds good boss! It should work as long as your system.img isn't sparse
If the *. zip has a system image you can also do the same with EXT2 explorer (Windows) for EXT4 images
TheExploitedOne said:
If the *. zip has a system image you can also do the same with EXT2 explorer (Windows) for EXT4 images
Click to expand...
Click to collapse
Yes, there is a boot.img but no such system folder to delete apps. I know that Android Kitchen can edit these type of files.
Tommytommy1234 said:
Yes, there is a boot.img but no such system folder to delete apps. I know that Android Kitchen can edit these type of files.
Click to expand...
Click to collapse
If you see a system.new.dat or system.new.dat.br you can convert it to a system.img
1) Mount somewhere on your PC the system.img contained in the zip file of your ROM
2) Remove these directories :
Code:
/priv-app/GoogleBackupTransport
/app/GoogleCalendarSyncAdapter
/priv-app/SamsungCalendarProvider
/app/Chrome
/app/ChromeCustomizations
/app/GoogleContactsSyncAdapter
/app/Drive
/priv-app/GoogleFeedback
/app/Gmail2
/priv-app/Velvet
/priv-app/HotwordEnrollmentOKGoogleCORTEXM4
/priv-app/HotwordEnrollmentXGoogleCORTEXM4
/app/Hangouts
/app/Maps
/priv-app/GmsCore #Google Play Services
/priv-app/GoogleServicesFramework
/priv-app/Phonesky #Play Store
/app/Photos
/app/YouTube
3) Unmount and repack the ROM
4) Clean flash + wipe Dalvik/ART cache
But what the point of doing this ? Can't you just flash a Google debloat script for your device ? What phone do you have ?

Categories

Resources