sysMapFile TWRP Error - Custom ROM - G2 Q&A, Help & Troubleshooting

Hi guys!
Ok. so I'm (really) not a developer, I'm just trying to make a flashable ZIP (+ custom recovery and root) from the latest D80230f_00.kdz (told you, not a dev', but, yeah, everyone should starts with something right?). and I got some difficulties at the end of the process: when trying to flash the zip file, I got a big red error (ok, just red) in TWRP: "E: failed to sysMapFIle /sdcard/rom_name.zip".
Have you ever met this error?
Furthermore, I got a question about the update-binary file (maybe it's link to the error?): I've downloaded @somboons KK_template_new.zip, but their was already an update-binary file in it. I've unziped the archive, write everything I need in the updater-script, and re-zip all (see attachments), I don't do anything except ziped all: should I do something else such as sign the archive or thing like this? 'cause I don't find anything accurate about update-binary file: I don't know if we have to take it from other archive, or if it's create during signing the archive.
Oh, yeah, the recovery.img is TWRP 2.8.7.1.
Anyway, all kind of help will be very appreciate.
Thanks in advance guys !

@casual_kikoo
I would ask a mod to move your post to the Q&A where it belongs
I'm not sure if they move them or delete threads when they're not in the right sub forums.

Lawlrus said:
@casual_kikoo
I would ask a mod to move your post to the Q&A where it belongs
I'm not sure if they move them or delete threads when they're not in the right sub forums.
Click to expand...
Click to collapse
Oh ok so I post in wrong place... I was..sure :crying: ...
Thanks!

casual_kikoo said:
Hi guys!
Ok. so I'm (really) not a developer, I'm just trying to make a flashable ZIP (+ custom recovery and root) from the latest D80230f_00.kdz (told you, not a dev', but, yeah, everyone should starts with something right?). and I got some difficulties at the end of the process: when trying to flash the zip file, I got a big red error (ok, just red) in TWRP: "E: failed to sysMapFIle /sdcard/rom_name.zip".
Have you ever met this error?
Furthermore, I got a question about the update-binary file (maybe it's link to the error?): I've downloaded @somboons KK_template_new.zip, but their was already an update-binary file in it. I've unziped the archive, write everything I need in the updater-script, and re-zip all (see attachments), I don't do anything except ziped all: should I do something else such as sign the archive or thing like this? 'cause I don't find anything accurate about update-binary file: I don't know if we have to take it from other archive, or if it's create during signing the archive.
Oh, yeah, the recovery.img is TWRP 2.8.7.1.
Anyway, all kind of help will be very appreciate.
Thanks in advance guys !
Click to expand...
Click to collapse
Whenever u flash a zip for it needs to be signed, I would check or Ayysir's Android Kitchen, that's where I started my development from, I started just like u, only modifying touchwiz roms and repackaging them in flushable zoos format with android kitchen, if u need help let me know
P.S., Windows is NOT the platform to start development on lol, if I were u I'd start dual booting whatever machine ur using with a Linux OS of ur choice, for someone new like urself, I'd go with Ubuntu
Sent from my Nexus 6 using Tapatalk

soupysoup said:
Whenever u flash a zip for it needs to be signed, I would check or Ayysir's Android Kitchen, that's where I started my development from, I started just like u, only modifying touchwiz roms and repackaging them in flushable zoos format with android kitchen, if u need help let me know
P.S., Windows is NOT the platform to start development on lol, if I were u I'd start dual booting whatever machine ur using with a Linux OS of ur choice, for someone new like urself, I'd go with Ubuntu
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
First of all, thanks you so much for your fast answer. Yeah, I know Windows isn't the easiest platform to start development. Well, I've already have Ubuntu installed on VMWare, I just took screenshots on Windows .
Ok, so if I understood well, update-binary file is created during the signing step? That's why it doesn't work right now, 'cause I don't signed my ZIP.... Yeah ok I start to understand !
I'm gonna download Android Kitchen (this one right?) and start cooking !
Again, thanks you so much dude you make me more and more enthusiast about creating ROMs on Android.

Related

Rom in .img format??

Hey guys
The volume rocker on my HD2 is broken, and I have cLK flashed on my device. My problem is that I can only boot into cLK and fastboot mode as recovery is useless to me because I cant navigate through the options using the volume rocker.
I am looking for a rom (android/winmo) that is a .img file so that I can flash through fastboot, or if any of you know any other possible way I can flash a rom through fastboot so I can get my phone working again. Right now I dont mind which rom I flash, as long as I get my phone in working order again.
All help is GREATLY appreciated....!!!
If anyone also knows how I can compile a rom into a .img file so I can flash through fastboot, that is also welcomed help!
Any ROM you download that is for cLK has a. img file in it. you will have to extract the file from the. zip hou download to find it. Read my post here it will give youthe details on how to flash your ROM.
T-Macgnolia said:
Any ROM you download that is for cLK has a. img file in it. you will have to extract the file from the. zip hou download to find it. Read my post here it will give youthe details on how to flash your ROM.
Click to expand...
Click to collapse
Hey bud, thanks for the reply, but my question still remains... what about the other 2 folders in the rom folder (META-INF and SYSTEM) what happens with those? lol....
atsavlis said:
Hey bud, thanks for the reply, but my question still remains... what about the other 2 folders in the rom folder (META-INF and SYSTEM) what happens with those? lol....
Click to expand...
Click to collapse
Sorry for the late response but those two files do get used, the img file oules the information from them as it is flashing. To put it simply when you initiate the flash the img does the rest of the work. The img file is sort of like a cab file for Windows Mobile only it is not all self contained and has more functions than just to install the software. Note I said sort of not exactly like, that is just a comparison to help you understand. When you flash a Android ROM via CWM it essentialy just activates the img file to flash the ROM.
Daf roms come as a system.img
or
if you have access to another hd2, flash the target rom to it and then use mkyaffs2img command in the terminal to dump the system folder to a system.img file.
Benefit of this would be you can tweak the rom(reduce size for example, by removing unwanted apps) before you dump to system.img
samsamuel said:
Daf roms come as a system.img
or
if you have access to another hd2, flash the target rom to it and then use mkyaffs2img command in the terminal to dump the system folder to a system.img file.
Benefit of this would be you can tweak the rom(reduce size for example, by removing unwanted apps) before you dump to system.img
Click to expand...
Click to collapse
Thanks for getting back to me buddy! Unfortunately I dont have a second HD2, and I dont know anyone willing to help me out in Greece, lol... Would you be willing to dump your system folder for me and upload it so I can use yours?? I would GREATLY appreciate the help... sitting with my HD2 "semi" bricked... lol
Also, if I use the .img file from the DAF roms, can I flash it using fastboot??? You have any suggestions on how I can flash it considering I cant use the volume rocker on my mobile?
Well id like to say yes but it's Easter weekend and my sons 1st birthday tomorrow, so the likelihood of getting near a PC are slim for a few days.
You could always learn how to use the android emulator,, build the image on a virtual hd2
As for flashing,,, no idea, no clue what fastboot does, magldr for me, but in your OP you implied you could use it to write img files to partitions.
You ever got a solution for this? I'm in the exact same situation right now.

[Q] Nexus 7 ar install help

To avoid filling the forum with question i'm just going to create this thread and ask all my questions here.
I finally rooted my nexus 7 on my mac and now am hoping to install a USB ROM, i couldnt post a link but it seems to be most popular for in car installs.
I downloaded the file and compressed it to a .zip file then tossed it onto the android. Next i booted into clockwork recovery the selected install zip from sd card>Choose zip from sd card> 0/>cm-10.zip>yes - install cm-10.zip
After this the tablet says
Finding update package...
opening update package...
installing update...
installation aborted...
Can anyone help me and/or tell me what i'm doing wrong? all help is appreciated. Thankyou
Mperkins92 said:
To avoid filling the forum with question i'm just going to create this thread and ask all my questions here.
Click to expand...
Click to collapse
A more acceptable procedure is to find - via SEARCHING - closely related threads first, and post your questions in those threads. That demonstrates to people that you've actually tried to help yourself by searching. If you actually have something unique to say, in that circumstance you start a new thread.
"Help me install a ROM" is not a new idea here on XDA, whether you have a problem with it or not.
Mperkins92 said:
I downloaded the file and compressed it to a .zip file
Click to expand...
Click to collapse
It's already a .zip file to begin with when you download it. Is your Mac uncompressing it automatically when you download it?
If so, use something other means (not Safari?) to download it. FTP. Wget. Firefox for Mac.
Then, if the ROM developer publishes rom file MD5 signatures, validate that you can compute the same checksum on the file downloaded to your computer.
If you then subsequently copy it to something else (such as the tablet), check the file length and/or the MD5 signature of the copied file as well.
Was there not some additional message on the screen besides "installation aborted"? Details are important.
The most probable guess at the moment (from your narrative) is that you borked the download and/or did something else that made the custom recovery unhappy.
BTW, when you install a new ROM for the first time, you generally:
(a) make a full Nandroid backup first (using the custom recovery)
(b) perform a "factory reset" in the custom recovery,
(c) flash of the ROM file.
Attempting the last step without the first two is just begging for trouble.
good luck

[Q] Custom Rom invalid .zip

hi guys!
First of all : I'm new to the custom rom scene development. I do know how to flash and so..
So i've installed cygwin and the android kitchen. I took the stock rom provided to me by the manufacturer, i was able to set up the working folder. Then I did : "Build ROM from working folder", without making any changes to apk's or something like that.
When i got the update.zip file i tried flashing it with a recovery and using the update.zip in /sdcard method. The first method just stopped after verifying, the second method said it was an invalid package.
I believe there is something wrong with the signing of the rom. Could you guys help me out?
Thx!
Check type of script used in update.zip
tcornelis said:
hi guys!
First of all : I'm new to the custom rom scene development. I do know how to flash and so..
So i've installed cygwin and the android kitchen. I took the stock rom provided to me by the manufacturer, i was able to set up the working folder. Then I did : "Build ROM from working folder", without making any changes to apk's or something like that.
When i got the update.zip file i tried flashing it with a recovery and using the update.zip in /sdcard method. The first method just stopped after verifying, the second method said it was an invalid package.
I believe there is something wrong with the signing of the rom. Could you guys help me out?
Thx!
Click to expand...
Click to collapse
Did u signed the update.zip while exporting rom using cygwin menu. ?
If you didnt sign it will notify that is invalid
But there might be some other kind of issue like
1. Cygwin provides updater_script and update_script in update.zip package it contain all information reguarding flashing
check that your device require which type of script .
let me know your responce.
Press thanks button. if this helped

Need help in Porting Rom

Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
i had similar issue, didn't flash the system & boot.img. Creating Zip on different platform fixed it.
Wizardlysense said:
i had similar issue, didn't flash the system & boot.img. Creating Zip on different platform fixed it.
Click to expand...
Click to collapse
On which platform did you create the Zip??
I am using Windows 10.
AndroiDTechi said:
On which platform did you create the Zip??
I am using Windows 10.
Click to expand...
Click to collapse
windows 10 pro
Wizardlysense said:
windows 10 pro
Click to expand...
Click to collapse
I am also using Windows 10 Pro. Can you tell me how did you create the zip? I just put all the files like Meta-inf , system , boot.img and others if something more is present into a folder and convert it into a Zip using 7zip. Do i need to do something else??
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
just get the 'update-binary' file from any previous flashable custom roms from meta-inf folder and copy it to yours
tawidhiphoper said:
just get the 'update-binary' file from any previous flashable custom roms from meta-inf folder and copy it to yours
Click to expand...
Click to collapse
I am using CM 12.1 as base for porting and i am using update-binary form CM 12.1 only but still its not flashing
CM 12.1 flashes and works perfectly.
AndroiDTechi said:
I am using CM 12.1 as base for porting and i am using update-binary form CM 12.1 only but still its not flashing
CM 12.1 flashes and works perfectly.
Click to expand...
Click to collapse
can u upload the updater-script?
AndroiDTechi said:
I am also using Windows 10 Pro. Can you tell me how did you create the zip? I just put all the files like Meta-inf , system , boot.img and others if something more is present into a folder and convert it into a Zip using 7zip. Do i need to do something else??
Click to expand...
Click to collapse
i used WinRAR to zip files, no more problems since reinstalled windows
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
u have to create zip by selecting meta inf,system data and many more files
Wizardlysense said:
i used WinRAR to zip files, no more problems since reinstalled windows
Click to expand...
Click to collapse
I prefer android kitchen to zip the rom.. just place the ported files in the "working" folder and zip via android kitchen..it generates the updater script n update binary by default
tawidhiphoper said:
I prefer android kitchen to zip the rom.. just place the ported files in the "working" folder and zip via android kitchen..it generates the updater script n update binary by default
Click to expand...
Click to collapse
I guess it didnt generate it successfully
Use assaydes kitchen bro have u got update script

Unroot & Re-pack firmware?

I had 50pc japan version of s5(sc-04f), installed rom 'G900F.STOCK.FOR.SCL23.FULL.MINHQUAN'. The downside of this rom is that its pre-rooted. I managed to unroot it by goin in supersu & click 'full-unroot'. But i had multiple devices to flash, so is there a way for me to re-pack this firmware again after i unroot it? So that i could flash it to my other devices without root.
wee2000 said:
I had 50pc japan version of s5(sc-04f), installed rom 'G900F.STOCK.FOR.SCL23.FULL.MINHQUAN'. The downside of this rom is that its pre-rooted. I managed to unroot it by goin in supersu & click 'full-unroot'. But i had multiple devices to flash, so is there a way for me to re-pack this firmware again after i unroot it? So that i could flash it to my other devices without root.
Click to expand...
Click to collapse
Your best bet is to post this question within the following Q&A thread that's specific to your device.
https://forum.xda-developers.com/showthread.php?t=2700073
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
ok done, thx 4 the info
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
wee2000 said:
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
Click to expand...
Click to collapse
Should we search for this firmware or you can provide a link to its thread?
the link is here : https://choimobile.vn/threads/6-0-1-scl23-stock-rom-g900f-full-port-v3-by-huaminhquan93.37412/
wee2000 said:
the link is here : https://choimobile.vn/threads/6-0-1-scl23-stock-rom-g900f-full-port-v3-by-huaminhquan93.37412/
Click to expand...
Click to collapse
Generally, if it's 6.0.1 and rooted systemlessly, you need to replace boot.img with a stock one and remove SuperSU app from system.img.
This ROM intended to be flashed from TWRP, so it's an ext4 image.
You can mount it to a linux system on your PC and remove anything you want.
I havent done anything like this before. Could u give me some links or guides? My PC is running Windows 10.
wee2000 said:
I havent done anything like this before. Could u give me some links or guides? My PC is running Windows 10.
Click to expand...
Click to collapse
Ok, here' a simpler way:
1. Make changes on one phone.
2. Make a TWRP backup of boot and system partitions.
3. Restore this backup on other phones. They must have TWRP installed, a 6.0.1 bootloader and modem.
You'll have to rename backup's folder path and to wipe cache/data/system before restore.
can i use winrar to extract & compile the rom, without linux? So that i will have a much faster flashing process for all other units..
wee2000 said:
can i use winrar to extract & compile the rom, without linux? So that i will have a much faster flashing process for all other units..
Click to expand...
Click to collapse
Ok, I've managed to download that ROM at last.
The things look even simpler.
To prepare an "unrooted" ROM:
1. Download the zip form this post and unpack updater-script somewhere.
2. Make a copy of V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip, open it with Windows Explorer and replace V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip\META-INF\com\google\android\updater-script with the file you've unpacked from the attachment.
3. Try to flash ans see if it's what you need.
thx so much, already passed all units to the buyer. ill try that on next batch restock, may iknow if there's a way to get the service menu shortcode *#0*# to work again? This rom doesn't has the service menu.
bbsc said:
Ok, I've managed to download that ROM at last.
The things look even simpler.
To prepare an "unrooted" ROM:
1. Download the zip form this post and unpack updater-script somewhere.
2. Make a copy of V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip, open it with Windows Explorer and replace V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip\META-INF\com\google\android\updater-script with the file you've unpacked from the attachment.
3. Try to flash ans see if it's what you need.
Click to expand...
Click to collapse
I've replaced the updater-script in the zip file, but supersu is still there

Categories

Resources