[Completed] Help in creating a Zenfone 2e rom. - XDA Assist

I am making a custom ROM based off of stock for the Zenfone 2e using firmware from the Zenfone ZE500CL and apps from a Zenfone 5 CM12 Build. I have gotten deodexing down, and modding APK's down. But for the life of me, I can't figure out how to create a flashable zip that works. I have tried other custom ROM's zips with correct partitions and such in the updater-script, (not trying to steal other's work, just a test.) and I can't get it to flash. If anyone could help me, I would truly appreciate that.

DaKillaz98 said:
I am making a custom ROM based off of stock for the Zenfone 2e using firmware from the Zenfone ZE500CL and apps from a Zenfone 5 CM12 Build. I have gotten deodexing down, and modding APK's down. But for the life of me, I can't figure out how to create a flashable zip that works. I have tried other custom ROM's zips with correct partitions and such in the updater-script, (not trying to steal other's work, just a test.) and I can't get it to flash. If anyone could help me, I would truly appreciate that.
Click to expand...
Click to collapse
Hello,
Thanks for using XDA Assist.
Try this tool:http://forum.xda-developers.com/showthread.php?t=2629989
___
v7
XDA Assist

v7 said:
Hello,
Thanks for using XDA Assist.
Try this tool:http://forum.xda-developers.com/showthread.php?t=2629989
___
v7
XDA Assist
Click to expand...
Click to collapse
I forgot to mention that I am using Ubuntu as an OS, so that Windows tool won't work. But, I have found a half-way hack method of building a rom. I did it by decompressing the dat file into an img file, mounting it in Ubuntu, making my edits, repacking it into a fresh ext4 img file, repacking it back into a dat structure, and finally placing the finished files into the stock rom zip which retains lity to flash even on the Zenfone 2e without swapping firmwares. But, Thank You for your help. Too bad I will have to find a way to help in 10 posts before posting my rom, which is nearing completion.
I used the tools I found here to unpack the DAT just in case anyone else wants to know.
Lollipop DAT Unpacking Tools

DaKillaz98 said:
I forgot to mention that I am using Ubuntu as an OS, so that Windows tool won't work. But, I have found a half-way hack method of building a rom. I did it by decompressing the dat file into an img file, mounting it in Ubuntu, making my edits, repacking it into a fresh ext4 img file, repacking it back into a dat structure, and finally placing the finished files into the stock rom zip which retains lity to flash even on the Zenfone 2e without swapping firmwares. But, Thank You for your help. Too bad I will have to find a way to help in 10 posts before posting my rom, which is nearing completion.
I used the tools I found here to unpack the DAT just in case anyone else wants to know.
Lollipop DAT Unpacking Tools
Click to expand...
Click to collapse
Try this [Tool][Windows/Linux] Android Flashable Zip Creator v3.0 Beta
___
v7
XDA Assist

Related

[KITCHEN] dsixda's Android Kitchen - Now supports Galaxy S Plus (Windows/Linux/Mac)

dsixda's Android Kitchen - Now for Samsung Galaxy S Plus (I9001)
Compatible with Windows (Cygwin) / Linux / Mac OS X
The following is a guide to assist you with creating your own Samsung Galaxy S Plus custom ROMs with the kitchen. This is NOT a guide to help you become Cyanogen or do fancy things with AOSP, but it may be your springboard to bigger things in the future.
Some of you already know about the Android Kitchen. It is a project I started on back in February 2010 to help newbies create their own custom ROMs and learn more about Android. As of version 0.182, you can now create your own Galaxy S Plus ROMs with the kitchen.
I'd like to thank the guys in this thread, especially crybert, oisis and mbba67 for helping me out, as well as for testing on their devices and providing feedback. I only have a Bell Galaxy S2 I9100 so their assistance was greatly appreciated!
[MAIN PAGE] [RELEASE NOTES] [FAQ - page 1] [FAQ - page 2]
​
PROCEDURE
This guide may be a bit basic right now but I will update it later if required.
First, you need a rooted Samsung Galaxy S Plus (I9001) with a ClockworkMod-based custom recovery.
Visit the Android Kitchen thread to download the kitchen. Then, follow the link to the FAQ which will show you how to install it on Windows or Linux or Mac. Ensure you read the FAQ carefully.
Put your base ROM(s) under the original_update folder. For the Samsung Galaxy S Plus, there is support for the following formats which can be placed in that folder (you can place multiple ROMs there):
Stock firmware:
system.img.ext4 and boot.img (and optionally: cache.img.ext4)
TAR file containing system.img.ext4 and boot.img (and optionally: cache.img.ext4)
ZIP file containing system.img.ext4 and boot.img (and optionally: cache.img.ext4)
Custom ROM:
ZIP file created by the kitchen from the stock firmware (NOTE: The kitchen may NOT support custom ROMs created through other methods, due to potential file structure incompatibility issues)
Nandroid backup from ClockworkMod recovery
system.img, cache.img and boot.img
system.ext4.tar, cache.ext4.tar and boot.img
Here are some basic steps to creating your first ROM after you have your base of files under original_update (more options are available in the kitchen):
Start the kitchen with: ./menu
Create a working folder (by choosing your base ROM)
If you used a system.img.ext4 but then didn't include the cache.img.ext4, then you have the option to add a cache.img.ext4 later using the Extract SGS2 CSC script in the Advanced menu's 'Plugins' section.
Root your ROM
Add Busybox
In the Advanced options menu: De-odex your ROM
Build ROM
The ROM is built into a ZIP file meant for flashing from the custom recovery menu. No Odin.
Some notes:
Here are some screenshots of how to use the kitchen for the I9001, thanks to crybert.
Just select the defaults whenever you are asked about something in the kitchen and are unsure whether to type 'y' or 'n'.
There are lots of questions answered in the FAQ in Posts 3 and 4 of the main Android Kitchen thread. So please go through that first if you have any issues.
For the benefit of other readers and to prevent confusion, please only discuss Samsung Galaxy S Plus in this thread!
Most of all, have patience, take your time and enjoy!!
Reserved...
Reserved, just in case
Great stuff .. Thanks for ur work
great work!
did anyone tried the porting option in this kitchen?
could be very usefull to port miui or cyanogenmod to our device
i know its signed as experimental but anyone know the chances that this option will lead to a success?
Blumdum said:
great work!
did anyone tried the porting option in this kitchen?
could be very usefull to port miui or cyanogenmod to our device
i know its signed as experimental but anyone know the chances that this option will lead to a success?
Click to expand...
Click to collapse
Would be kind of hard to do..., but I heard that the SGSPlus is similar to the Desire HD, so I would start with a ROM from there.
You think the Cyanogenmd for the DesireHD would work? And if I try the porting thing. Is there a big chance to full brick my phone. I know I have to look that the boot.img and the system is flashed on the right partition. So if something goes wrong I think I can enter Download-Mode anyway?
Desire HD uses the same cpu/gpu as i9001 so there should be a big similarity
im asking myself the same question wether there is a chance for a full brick
but the boot.img will be written on the right partition
I don't know much about porting apart from the generic steps in the kitchen scripts. But if you have a nandroid backup, how would you brick (unless you mean the wrong partition would mess it up.. In that case just double check the updater-script before building).
maybe a wrong boot.img could lead to a brick
crybert said:
You think the Cyanogenmd for the DesireHD would work? And if I try the porting thing. Is there a big chance to full brick my phone. I know I have to look that the boot.img and the system is flashed on the right partition. So if something goes wrong I think I can enter Download-Mode anyway?
Click to expand...
Click to collapse
I dont know about porting or boot.img, but what if you just replace SGS+ boot.img over the DesireHD Cyanogenmd Rom boot.img then just fix them in the kitchen. I dont know..........
crybert said:
You think the Cyanogenmd for the DesireHD would work? And if I try the porting thing. Is there a big chance to full brick my phone. I know I have to look that the boot.img and the system is flashed on the right partition. So if something goes wrong I think I can enter Download-Mode anyway?
Click to expand...
Click to collapse
if the porting of cynogenmod from DHD succeeds we will be able to port their ICS too then. with some modifications to boot.img, build.prop. etc.. , replacing drivers, maybe we can try camera drivers and libs from I9000 port , of course we'll need someone to compile the right kernel. imo it can be done if we put a team work into it
but we can first try to port the desireHD rom to our device using the kitchen and then see if the device boots
Blumdum said:
but we can first try to port the desireHD rom to our device using the kitchen and then see if the device boots
Click to expand...
Click to collapse
the rom from DHD won't boot on I9001 without the right kernel.
Can you tell me where can I find an information how to add to my fresh cooked rom CWM FeaMod Recovery?
rayiskon said:
the rom from DHD won't boot on I9001 without the right kernel.
Click to expand...
Click to collapse
did you try it?
EDIT:
when we need a CM kernel we could build one
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
mr_omega said:
Can you tell me where can I find an information how to add to my fresh cooked rom CWM FeaMod Recovery?
Click to expand...
Click to collapse
1. just add the recovery.img to the main directory of your rom. Where /system and META-INF is located
2. add the following line to your updater-script:
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
P:S.
We should move the discussion about CM to another thread. I think this is a bit offtopic
Hi guys, I have updated the kitchen to 0.182. See the main thread (linked on post #1) for full release notes.
dsixda said:
Hi guys, I have updated the kitchen to 0.182. See the main thread (linked on post #1) for full release notes.
Click to expand...
Click to collapse
Hi, how come i can extract boot.img but cant repack, there is no option for repack
try porting MIUI instead of CM7. MIUI is not only fast but customize able and i think dsixda does the work for you and then minor bugs can be fixed.

[Q] Is there any APK to exact the boot.img in the phone

I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
ytyyutianyun said:
I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
Click to expand...
Click to collapse
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
coolsandie said:
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
Click to expand...
Click to collapse
Thank you for your reply, but do you feel strange that the IMG is created by the recovery, so it is rational that there is a tool about IMG building. then why there is no apk. I mean some professional can extract just from the CWM recovery, I think.
need root
if you wanna get boot.img i think you must be rooted.
k0tsompakos said:
if you wanna get boot.img i think you must be rooted.
Click to expand...
Click to collapse
yes, I root, so I can use the recovery to back and restore,
I think any app that can access zip files in the internal and external memory can extract boot.img.
Like ASTRO File Manager and stuff...
recovery?
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
k0tsompakos said:
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
Click to expand...
Click to collapse
Nooooo
boot.img is the kernel (zImage + Ramdisk packed into an image file) that lies in the /boot partition
@ OP - If you want to extract boot.img itself, there are various methods and from CWM recovery like you said. I thought you were mentioning about how to unpack the contents of the boot.img say like zImage, Ramdisk and other files.
0ops
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
k0tsompakos said:
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
Click to expand...
Click to collapse
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
thank you coolsandie, the android is based on linux, isn't it, and if I can, I can install busybox.and using the terminal like Android Terminal Emulator, but I do not know the procedure. like you, it's more complex,
Robbie P said:
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
Click to expand...
Click to collapse
it's good tool, it can unpack the boot.img, but as to the kernel, I don't know how to unpack. but this tool add to my favorite, thanks Robbie.
OK, I find the app, names: yaffs, the author I don't know because I found in the search engine. so I also cannot find the course
then the app,

Boot manipulation

Greetings.
Need a Android 6 ELF file for :
makebootfs
mkbootimg
unmkbootimg
They must be Honor 8 compatible.
Can any1 help please.
StratOS_HTC said:
Greetings.
Need a Android 6 ELF file for :
makebootfs
mkbootimg
unmkbootimg
They must be Honor 8 compatible.
Can any1 help please.
Click to expand...
Click to collapse
What are you planning to use them for?
Sent from my honor 5X using XDA Labs
Disasemble and reasemble the images.
StratOS_HTC said:
Disasemble and reasemble the images.
Click to expand...
Click to collapse
Hey @StratOS_HTC nice to see you here (coming from the Galaxy Core 2 Forum )
Sent from my Honor 8 using XDA Labs
I don't think you need them. Unpacking and packing boot images is pretty straightforward since Huawei's boot images have the same format as stock Android AOSP boot images. You can use the utilities you mentioned to unpack without need of any ELF file.
disasm
hackslash said:
I don't think you need them. Unpacking and packing boot images is pretty straightforward since Huawei's boot images have the same format as stock Android AOSP boot images. You can use the utilities you mentioned to unpack without need of any ELF file.
Click to expand...
Click to collapse
Since i have soe experience on other phones and the best way is always with disasm and reasm of the files. Don't want to put the whole sdk or git files on my comp.
The best way I'm doing it is with phone throught adb bridge.
So I'm looking for the executable files for it (mkbootimg,unmkbootimg), have found only PIE version of Marshmallow for it.
Can any one please help.
Thx in advance.
StratOS_HTC said:
Since i have soe experience on other phones and the best way is always with disasm and reasm of the files. Don't want to put the whole sdk or git files on my comp.
The best way I'm doing it is with phone throught adb bridge.
So I'm looking for the executable files for it (mkbootimg,unmkbootimg), have found only PIE version of Marshmallow for it.
Can any one please help.
Thx in advance.
Click to expand...
Click to collapse
Look into the systemless root tools , those should do what you're looking for.
https://github.com/phhusson/super-bootimg

[Completed] Can .tar.md5 be edited and repack for flash in Odin?

Hello everyone,
The reason why I wish it to be edited and repack is because I want to change the boot logo(not boot animation) without rooting.
After few hours searching here and there, I found Samsung's boot logo located at BL_[texts].tar.md5
Open it with 7-Zip and open Param.bin, if you like to see it yourself here is a sample:
https://mega.nz/#!bV1XAQ6a!O53nC4V0HNMt3i7Qj6SCN4bxZGtkDqxPQYxSdnh_vm8
I know there's tool to edit and pack the system file but not sure how to do it with BL_[texts].tar.md5 thought
What is the tool available to replace the logo.jpg? Or is it possible to be edited using linux?
Please share what you know, and please don't discourage if you don't know.
doulc said:
Hello everyone,
The reason why I wish it to be edited and repack is because I want to change the boot logo(not boot animation) without rooting.
After few hours searching here and there, I found Samsung's boot logo located at BL_[texts].tar.md5
Open it with 7-Zip and open Param.bin, if you like to see it yourself here is a sample:
hxxps://mega.nz/#!bV1XAQ6a!O53nC4V0HNMt3i7Qj6SCN4bxZGtkDqxPQYxSdnh_vm8 <-- _vm8 no space
I know there's tool to edit and pack the system file but not sure how to do it with BL_[texts].tar.md5 thought
What is the tool available to replace the logo.jpg? Or is it possible to be edited using linux?
Please share what you know, and please don't discourage if you don't know.
Click to expand...
Click to collapse
Greetings and welcome to assist. I think it may be possible with linux, you can unpack and repack the tar file easy enough and then create a md5 file. I have never done it myself but do know of someone who did this on a verizon device with a locked bootloader
Good Luck
Sawdoctor
sawdoctor said:
Greetings and welcome to assist. I think it may be possible with linux, you can unpack and repack the tar file easy enough and then create a md5 file. I have never done it myself but do know of someone who did this on a verizon device with a locked bootloader
Good Luck
Sawdoctor
Click to expand...
Click to collapse
I'm not using any linux OS so I don't know much
1. How to compress tar files and set specific permission to file while compress using linux?
2. Is there any GUI or need to use everything using console?
3. In windows is there any tool available to compress tar file as well?
doulc said:
I'm not using any linux OS so I don't know much
1. How to compress tar files and set specific permission to file while compress using linux?
2. Is there any GUI or need to use everything using console?
3. In windows is there any tool available to compress tar file as well?
Click to expand...
Click to collapse
If you want to use linux there are plenty of prebuilt vm machines at osbox.com, I like linux mint myself as it has a desktop similar to windows. You can also boot linux mint from a usb drive without actually installing it (live mode)
I also found this tool for windows which may work as well
http://forum.xda-developers.com/showthread.php?t=2446269
And this kitchen runs in windows too
http://forum.xda-developers.com/che...-android-roms-editor-assayyedkitchen-t3410545
Hope that helps
Good Luck
Sawdoctor

how can i make flashable zip from IMG-files

i have read some topic here about my question. the only thing i can find is using cygwin with android kitchen. and also android kitchen has the limitation of supported devices.
and my device is not supported. is there any other easy way to make flashable zip from img-files of BOOT, RECOVERY, KERNEL, SYSTEM?
on my device i can use only adb-command, i cannt get my device into fastboot-mode. that is why i ask for flashable zip.
Creating a flashable .zip. This might help.
ari2asem said:
i have read some topic here about my question. the only thing i can find is using cygwin with android kitchen. and also android kitchen has the limitation of supported devices.
and my device is not supported. is there any other easy way to make flashable zip from img-files of BOOT, RECOVERY, KERNEL, SYSTEM?
on my device i can use only adb-command, i cannt get my device into fastboot-mode. that is why i ask for flashable zip.
Click to expand...
Click to collapse
I hope the following link may provide some help, it helped me create a few flashable .zip files for my mediate tablet, for uses when needing various versions of android or Linux for various jobs and projects.
The Link: https://www.xda-developers.com/create-your-own-packages-with-android-flashable-zip-creator/
Hope it helps.
Merseygeek.
merseygeek said:
I hope the following link may provide some help, it helped me create a few flashable .zip files for my mediate tablet, for uses when needing various versions of android or Linux for various jobs and projects.
The Link: https://www.xda-developers.com/create-your-own-packages-with-android-flashable-zip-creator/
Hope it helps.
Merseygeek.
Click to expand...
Click to collapse
ok, but with this application i cannt import img-files. the img-files i have, are:
boot, kernel, misc, recovery and system.

Categories

Resources