yashsingh1/xdaforums huggingface dataset:
[Android General] carl1961:
do you have a stock rom? or a OTA update to get it?

whats your tab full model name
[Android General] CVAngelo:
Dumbest question of the year!

OK. This was a really good post and a wonderful learning moment for me. But here is the practical thing: If both CWM and TWRP both allow me to backup AND RESTORE, then why the heck do I even need to worry about all this mumbo-jumbo to make a flashable zip when I can just hit the RESTORE button?

I can't even find a single custom ROM for my annoying Alcatel OT-7040D phone with the weird custpack partition, so forget "collecting" the META-INF folder. Nobody is developing anything for this anomaly of a phone. Except for MTK Droid Tools and SP Flash, I would would be all alone in this world. LOL
[Android General] carl1961:
Many custom roms have been started from backup roms of ota's . Most rom's updated by OTA's or patched updated. So you make a backup of the updated rom so it can be deodexed and made custom to make moding possible. You situation it would be useless unless you was wanting to deodex your rom so you could add Mod's. This thread was not about your phone, it is open for any phone.
[Android General] Dai323:
I have an MTK tablet running an octa core MTK8392 chipset. No working ROMS for this device, but I have achieved root, CWM recovery, init, deodexed, and lots of speed scripts and build prop tweaks added. Would love to zip everything here into a ROM, but I have no "working meta inf folder from a custom ROM". I do have the stock ROM the device was sent with that can be flashed with SP tools. Would I be able to use something from original stock ROM to create a working meta inf?

EDIT: I believe I can create one using this method if Im not mistaken:

http://xdaforums.com/showthread.php?t=2387941
[Android General] HappyRoms:
No archives found

I made the backup without compression, put it on my pc, renamed from .win to .Iso, tried to extract but winrar and 7zip say there's no archives. How can I fix this? I am new to it
[Android General] wolfballz:
Rename it .img not .iso
[Android General] HappyRoms:
​

I did .img not iso, that was a typo in my previous post, sorry about that.

.img, it can't extract the boot backup. System extracts, just not boot.
[Android General] carl1961:
if your trying to open boot.img you will have to use a kernel tool
[Android General] HappyRoms:
I see, thanks for the info :D
[Android General] carl1961:
maybe try this

http://xdaforums.com/android/development/tool-cika-carliv-image-kitchen-android-t3013658
[Android General] katodragon:
I tried this with my s4 running od2. I can't get it to boot. Stuck at splash screen. I tried the twrp guide. HELP!
[Android General] HappyRoms:
Thanks, I tried that but it says the img file is corrupt when trying to unpack, using standard or MTK. Maybe my boot.img just can't be worked with, its from an lg optimus f3

If that helps :confused:
[Android General] lalithpatil08:
Can anbody help me to get meta inf folder for my micromax a108 and micromax a120 as i m not getting it anywhere thanks in advance
[Android General] carl1961:
try to download and use meta-inf folder from these rom's

micromax a108

http://www.needrom.com/wp-content/uploads/2014/09/Micromax-A108.rar

For micromax a120 look at meta-inf in below rom

http://xdaforums.com/android/development/rom-micromax-canvas-2-colours-t2937482
[Android General] vilicitano:
Great tutorial. Víctor

Enviado desde mi Lenovo K30-W mediante Tapatalk
[Android General] lalithpatil08:
Bro for Mmx a 108 you have provided me a stock sp flashable rom . i didn't get any meta inf folder in the rom for Micromax a 108. Thanks
[Android General] 5weet5:
Thanks for easy to follow tut Can the system boot and meta folder be flashed via sp tool i have soft bricked mtk6582 4.2.2 alps la-912t device kernel 3.4.5
[Android General] KiWi3288:
Can you help me :) ?

After TWRP backup i made with my S3 NEO (i9301i) i got 2 system files,

first named system.ext4.win000, second system.ext4.win001

win000 got 1,5 GB the other - win001 ~ 300MB,

What i have to do with these ? just copy one unpacked *.tar to other one ?

Is this normaly that this flashable zip to CWM/TWRP would be about 1,8 GB weight ?!
[Android General] pcjunky:
Sorry to dig up an old post. I think I read every post in this thread but I'm unclear on what to do after you have everything extracted the multiple system and data archives. Do you create a new zip file or do you select everything then right click and add to archive like the original post says. The goal is to create a zip file that can be flashed that restores a twrp backup.

Thanks
[Android General] carl1961:
this post shows how to unpack

http://xdaforums.com/showpost.php?p=56630395&postcount=22
[Android General] Slipknot8Wwe:
Hopefully there is still people that look at this thread lol but anyways I am trying to make a flashable zip out of a twrp backup but for some reason everyone I do it and then flash it it says failed and I can't figure it out. I have followed about 20 different tutorials which all are pretty much the same and I just can't get it. Am I doing something wrong? Does this just not work anymore? Really would be interested in hearing what people think thanks in advanced.
[Android General] carl1961:
Tell your steps you did, also what phone your using. Upload your meta-inf …
[Android General] Slipknot8Wwe:
I'm trying to do one for my nexus 6 and I followed every step in this guide to the t.

Windows 8 computer

7zip

Also tried winrar

I don't know how to upload the meta here on the app

---------- Post added at 05:22 AM ---------- Previous post was at 05:01 AM ----------

http://www.mediafire.com/download/cwnzs8sgnb82w12/META-INF.zip
[Android General] Slipknot8Wwe:
Bump
[Android General] carl1961:
the meta-inf looked ok to me, it looks like it is for a CM rom

anyway you can grab a log file while in custom recovery it is usally a option under advanced settings that lets you copy a log of the install to a file so you can track the install and see where it fails
[Android General] Slipknot8Wwe:
I will do that here in a moment. I really apreciatw all your help.

---------- Post added at 01:29 AM ---------- Previous post was at 01:09 AM ----------

Here it is .

http://www.mediafire.com/download/zi7mikozlzl3yb4/recovery.log
[Android General] carl1961:
Your zip never unpacked so I say it is zipped up wrong

Here is your log info

I:operation_start: 'Flashing'

Installing '/sdcard/MELLOW-SHAMUrom-2015-13-10.zip'...

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

Error flashing zip '/sdcard/MELLOW-SHAMUrom-2015-13-10.zip'

recheck your zip
[Android General] Slipknot8Wwe:
I've tried so many different things I have no idea what I could be doing wrong.
[Android General] carl1961:
can you upload the zip "MELLOW-SHAMUrom-2015-13-10.zip" and I'll look at it
[Android General] Slipknot8Wwe:
Yes I can. Do you have hangouts or anything we can communicate on? If not this is fine

Here it is .

http://www.mediafire.com/download/bmhftzr3vke9trb/MELLOW-SHAMUrom-2015-13-10.zip
[Android General] carl1961:
Yes my hangout email is cmshelton2010@gmail.com
[Android General] Slipknot8Wwe:
Got it.
[Android General] 5weet5:
Hi [MENTION=6969007]Slipknot8Wwe[/MENTION] is it possible to make sp tools flashable zip from twrp backup?
[Android General] Slipknot8Wwe:
I'm actually learning as we speak lol
[Android General] 5weet5:
Awesome I will be eager to check your progress it the only reason I haven't discarded my clone it looks exactly like lark phanlet 6.0 but I got it off amszon from lightahead I got recovery on it backed it up and it bricked upon reboot. I managed to port a workin miui rom but it kept rebooting so I went to flash backup now I'm stuck In preloader mode, but alas all is not lost you shall be the savior of my device...lol good lock and great work your doing here thank you
[Android General] HypoTurtle:
This updater-script looks completely wrong for this, what you need is the basic:

write_raw_image boot.img, mount /system, package_extract_dir("system", "/system") and set_metadata(*) stuff.
[Android General] Slipknot8Wwe:
Why not just flash a backup? Or a new ROM?

---------- Post added at 04:35 PM ---------- Previous post was at 04:35 PM ----------

Unfortunetly I am fairly new at this and am trying to learn it. I can't figure out how to get a good working meta-inf file
[Android General] HypoTurtle:
From #1 the meta-inf needs to be from a custom rom -- or to be exact you need a updater-binary that you know works for your device and a updater-script that does the rom installing; I'm sure someone can send you a proper updater-script to use...
[Android General] Slipknot8Wwe:
I've actually tried a couple only to know avail
[Android General] HypoTurtle:
Can you attach a few to a post; just rename updater-script to updater-script.txt and attach; what you should be looking for is simply something like:

format("ext4", "EMMC", "/dev/block/platform/***/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/***/by-name/system", "/system");
package_extract_dir("system", "/system");
set_metadata(***);
******
******
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));
[Android General] Slipknot8Wwe:
Yes I can do that for you. I really appreciate the help. As soon as I get home I'll do that.
[Android General] Slipknot8Wwe:
Here they are. You can also hangouts me if its easier joshhadlnewbeginning@gmail.com

http://www.mediafire.com/view/pk02s348n5bdfjo/updater-script.txt

http://www.mediafire.com/view/7vo7t4tb6nvvwr7/updater-script(2).txt

These are ones that I just extracted from other ROMs as I don't know how to make them yet. I am very willing to learn though. I have a windows computer and I just installed Linux on one of my other computers as well.
[Android General] Slipknot8Wwe:
So I need to grab one from a ROM not an ota? I'm trying to learn but its very complicated as it should be lol. I recently am trying to figure out how to use Linux.
[Android General] 5weet5:
There isn't one for my device that I can find anyway and I can't boot to recovery, unless there's a generic recovery I can somehow push through preloader
[Android General] Slipknot8Wwe:
What device do you have?
[Android General] 5weet5:
I have LightAhead LA-912T also comes uo as Alps-912T

http://specdevice.com/showspec.php?id=6681-638a-e8d8-5b2400000000
[Android General] f1ux:
Is there a more detailed guide on making an updater-script?

I got a stock rom and made a few edits, plus edited its updater-script which then let it install the rom using TWRP.

It installs and boots fine.

But then I made a TWRP backup, extracted the system, used the same updater-script and it gets stuck at bootlogo.

I just want to basically make a zip of the same rom but with updated google services and other google apps that were updated from the market.
[Android General] Arvind Balaji:
Can anyone tell how to add recovery IMG ... To the backup? .. I want to replace recoverhy.emmc bla bla with stock recovery .. Plz tell how
[Android General] ban.codrut:
I dont think twrp/cwm can access/write that part of the recovery partition. It will mean that it has to overflash itself. Theoretically that's impossible, now I don't know if twrp/cwm runs from ram as that way it could be possible. As far as I know some parts of the memory addresses can't be flashed/written by the recovery menu, technically speaking.

I might be wrong, I might be right :) that's my thought on it, we learn new things every day you know ..

MotoX XT1752EU TruPureXv2.1
[Android General] Arvind Balaji:
I found myself at an advantage .. Just now only saw the flash IMG feature ... Flashed stock recovery.. Thanks anyways bro.. For replying...
[Android General] ban.codrut:
So I was wrong :( yey for you ! Yes, you can flash .img all day long for recovery partition and boot partition (it asks you for which one). I don't know why I didn't thought of that before. My bad I forgot xD

MotoX XT1752EU TruPureXv2.1
[Android General] HUNTER_SG:
Thanks

thank you it good i get some file from my old os
[Android General] waheem:
Sir only system. And boot img enough to create a working zip I mean in stock rom recovery and cache etc etc but you are great for this
[Android General] ssljuka:
HI!

My phone is Nexus 4. On phone is stock KitKat 4.4.4 and I rooted the phone. I created TWRP backup from KitKat 4.4.4 stock rom (rooted). I followed your tutorial an created flashable zip file. I will try that zip file but first I need answer. What will happen with root access on my phone, and will be backup all installed third apps with this created zip file? :confused:
[Android General] JoeSip:
How am i supposed to find a META-INF file if nobody has made a custom ROM for my phone before....?

Is there a way to make such folder. I've read something about signApk, but i want to be sure before i start doing something...
[Android General] waheem:
Any meta-inf folder will be work you need to port updater script acoding to your device useful tool mtk droid and notpad++ keep search about it
[Android General] crazyboy24:
hello,

I have not created a backup of my stock rom, I have Galaxy Ace S5830i, can someone please provide me with a backup of cwm of this mobile or the cwm flashable zip?

Thanks
[Android General] waheem:
[MENTION=6479853]crazyboy24[/MENTION] download stock ROM and flash via odin
[Android General] CVAngelo:
Off topic my friend. Go search for the specific thread for your phone . A custom recovery will probably be available over there. And you can download your stock ROM directly from www.sammobile.com. Flash using ODIN.
[Android General] crazyboy24:
Odin is not detecting my phone in download mode, tried reinstalling the drivers, tried ressetting the phone stikl no success, so I am trying to flash it throught cwm, but I dont have the files.

---------- Post added at 05:00 AM ---------- Previous post was at 04:58 AM ----------

If I download my stock rom from sammobile, I can flash it directly through cwm?

I want to flash stock rom through cwm, but I dont have the necessary files.
[Android General] waheem:
No you can't flash it via cwm flash it via Odin download latest version of Samsung kies and install it will be fixed your driver problem
[Android General] CVAngelo:
Or you can follow the instructions at the start of the thread about how to create a flashable zip from the files you extract from the sammobile stock ROM download.
[Android General] crazyboy24:
I have done that already, still no success in detecting. I have tried all possible solutions, so that is why the last option for me is to flash it via cwm, can you tell me how to convert the stock rom downloaded from sammobile in to flashable zip via cwm? Or any other solution?

Thanks
[Android General] waheem:
[MENTION=6479853]crazyboy24[/MENTION] here http://xdaforums.com/showthread.php?t=2387941 and here http://xdaforums.com/showthread.php?t=1840645 much more for your phone I think you faced driver problem go to device manager and check if any yellow triangle of your device I'd just update it if its show USB device not recognized change data cable or port

---------- Post added at 01:16 PM ---------- Previous post was at 01:15 PM ----------

[/COLOR [MENTION=6479853]crazyboy24[/MENTION] here http://xdaforums.com/showthread.php?t=2387941 and here http://xdaforums.com/showthread.php?t=1840645 much more for your phone I think you faced driver problem go to device manager and check if any yellow triangle of your device I'd just update it if its show USB device not recognized change data cable or port
[Android General] CVAngelo:
I referred you to the first post in this thread...follow the instructions there even though you don't have a CWM backup. Extract the files from the sammobile download. Look for the files referenced in the instructions, you should find them in the stock ROM once-in-a-lifetime you extract the files. You also need to find a custom ROM for your phone to get the META-INF folder.
[Android General] Jan Philipp:
When I rename the files to tar 7-Zip says the file is corrupt. No difference between TWRP 2.8.7.3 and 3.0.0-4 backups. Maybe its the bumped Blastagator-Recovery??
[Android General] CVAngelo:
7-Zip??? Aren't you supposed to use WINRAR to extract the tar files???
[Android General] Jan Philipp:
I used Winrar too. I forgot to mention it. Sorry. It works with non of the "mainstream"-packers.
[Android General] CVAngelo:
Sell, perhaps the file is indeed corrupt. Try downloading again or from a different source.
[Android General] Jan Philipp:
I tried different backups made with different Recovery-Versions. I tried compressed and non-compressed backups. When it comes to the "final" extraction every tar-file is corrupt. I don't get it... :(:confused:
[Android General] CVAngelo:
I have a very difficult problem with a friend's phone. It is an Alcatel OT 7040D. The problem is not specific to this particular MTK phone and is about creating a flashable zip of the stock ROM...which is why I am posting the issue on this thread.

The phone is totally stock. It has a STOCK recovery. It got infected by a very virulent malware. The malware downloaded all kinds of junk onto the phone. I mean like massive quantities of junk apps are on there.

So at first I thought I would simply do a factory reset and just start fresh. But upon closer inspection, I noticed that all the malware applications have been installed as SYSTEM apps! So this virus either rooted the phone or the phone was already rooted when it was attacked. So factory reset won't help.

No problem! So now I'm thinking, I'll show this pesky malware how I play the game. Ok, so I go to install a root browser to delete all these nasty little apps from the system. Surprise! I can connect to the internet only via free Wi-Fi (if I try to connect via a password protected wifi it blocks the keyboard so I can't enter the password). When I finally connect, I can tell that it is downloading even more ish. But it won't let me visit any website because it blocks the darn keyboard. I also tried to pass the root browser via Bluetooth...it will pair with another device, but it won't allow a file transfer!

Now, I'm caught somewhat off guard. Ok, I'll just insert an SD card right up its fanny and manually install my malware-killing apps that way. Guess what? Pesky bastard blocks the SD card from mounting!!!

Ok. So, it's all out war you want, you little runt? I'm not going to show this little bastard any mercy. I am gonna flash you to kingdom come. Now, I'm pissed. I fire up SP Flash Tool and I'm all set to deliver a scorched earth attack. Hit the download button and...NOTHING! It's shut off access to the USB port. OMG!

I can't believe this malware is kicking my XDA-Seal butt! The ONLY option left is to drop the nuclear bomb on this thing's asymmetry, i.e., flash the stock ROM from the stock recovery. Question is, how do I create a signed, flashable zip of the stock ROM that can be flashed from stock recovery? The SD card mounts just fine in recovery mode.

Any heroes out there?

UPDATE: I solved the problem by accessing the Kingroot website via a Google search on unsecured (free) wifi network. I just had to click the download button to install KingoRoot app. This allowed me to quickly root the phone. In addition, KingRoot has a built-in system-app uninstaller that allowed be to quickly delete most of the malware apps. This removed all of the blocking that was going on. So tgen I could access the Play Store and download all the apps I needed to completely clean up the mess created by the malware. I was also able to flash the stock kernel and a custom recovery. So the horror story has now ended with this phone. It's back from the abyss!
[Android General] Rommul:
Just a thought. You could use an on-the-go cable in the micro usb port to install a usb keyboard.

That might work.

I did that on my xperia z ultra when the screen broke. I install a logitech usb receiver for my wireless mouse and was able to navigate the screen that way.

It should work with a keyboard too.

Just and idea.
[Android General] CVAngelo:
Thanks for the thought. The virus has made the USB port unusable. So that won't work.
[Android General] gsser:
What if we dont have any custom rom to get meta-inf ?
[Android General] 911-Future_Maker:
That's quite helpful post mate, but I must correct you that you have a little error in the syntax.

What worked for me on Win 10 Pro x64 using CYGWIN

[COLOR="Red"]cd c:/[/COLOR]

[COLOR="Red"]cd C:/cygwin64/home/YOURUSERNAMEHERE/untar[/COLOR]

[COLOR="Red"]tar -xvf system.ext4.win000.tar
tar -xvf system.ext4.win001.tar[/COLOR]

It's a fresh CYGWIN 64bit installation, you can view the terminal version from the screenshot.
[Android General] transactus:
I use meta-inf from zip that used to flash twrp, is it okay?
[Android General] transactus:
My zip only sized 13MB, is it right?
[Android General] khanhtag:
Backup data

how ab my data ??? how can i add my data to the zip???
[Android General] FroggyBlu:
[/B][/B]

can you make me a flashable stock rom if i send all the files it just doesnt seem to be working for me and i dont know whats wrong with it, i want it to be 100% stock so i have the offical partition for my phone i've trying for months it just doesnt want to work, i have the htc desire eye and a twrp back up for the stock rom
[Android General] darki0xox:
how can i restore a .backup file ( backed up by original android recovery ) to CWM ?
[Android General] redmon:
And the "system" folder? ... archive only meta and boot? ... Tnx

---------- Post added at 10:28 PM ---------- Previous post was at 10:27 PM ----------

Ok. I see now. Sorry.
[Android General] CVAngelo:
You can't do that! First flash the stock recovery, restore the backuo, then flash the CWM once again.
[Android General] MaRtYy01:
What if there isnt any custom rom for my device?How can I make meta inf folder and updater script?
[Android General] CVAngelo:
I could swear that was covered in the first post. Problem is that if you don't have custom recovery, you'll have to create a signed zip that works with the stock recovery...but I can't help with that.
[Android General] MaRtYy01:
I have custom recovery,but in the first post its said to use the meta inf from other rom.
[Android General] CVAngelo:
Yes, you have to find a flashable custom ROM for your device and then you replace the custom elements with the stock ones. Just follow the instructions exactly as they have given you.
[Android General] kevin mitnick:
how to convert this flashable zip into a file .img?

i want to try for system folder cconvert to system.img

do you can guide me?
[Android General] Ghost18_07:
Thanks , very usefull ^^
[Android General] cgi2099:
Awesome tutorial!! Thank you for the information. Does this process also include the kernel and modem if creating a flashable zip from a twrp backup?
[Android General] situ1962:
Hello.

I am having a moto x play Indian version with latest firmware,rooted and twrp installed.I have made a backup using twrp.The files in the backup folder are as follows

boot.emmc.win.md5

data.f2fs.win000

data.f2fs.win000.md5

data.f2fs.win001

data.f2fs.win001.md5

data.f2fs.win002

data.f2fs.win002.md5

data.f2fs.win003

data.f2fs.win003.md5

data.info

recivery.log

system.ext4.win000

system.ext4.win000.md5

system.ext4.win001

system.ext4.win001.md5

system.info

I want to include the data files also in the zip.

So,how should I make a twrp flashable zip from this?Can anybody help me with a detail procedure?
[Android General] cgi2099:
Removed