Port rom xperia m5 - Redmi Note 2 Q&A, Help & Troubleshooting

Please port this rom dev
http://www.xperiablog.net/forum/resources/xperia-m5-dual_e5663_30-1-b-1-33_india_generic.558/

I tried but i cant unpack Xperia kernel :/ It could be possible becouse of same CPU

Jawor245 said:
I tried but i cant unpack Xperia kernel :/ It could be possible becouse of same CPU
Click to expand...
Click to collapse
that is not the whole problem to unpack kernel
search in google carliv image kitchen download use in command regular android for unpack repack when asked because our devices boot.img uses gz type compression anyway good luck

Extract boot.sin with flashtool , choose tool-unpack sin, and now you have boot.elf, and then you only extract it, results is 0 and 1 file, Extract 1 result is 1~ extract again 1~~, taada... Boot.elf now unpack but i try to port this rom is failed.

Anyone tried?....

Related

[SOLVED]Stock ICS .587 zip file!

REQUEST
Hey Guys ! Its DJ! Can anyone provide me with a Zip file of the latest stock rom .587 !
Both Neo and Neo V! I tried to extract .sin and yaffs files but it didn't worked! Please guys really need it for a new ROM!
Thanks!
Tell me what problem you faced while extracting?
I will try to help.
svprm said:
Tell me what problem you faced while extracting?
I will try to help.
Click to expand...
Click to collapse
Whenever i type unyaffs system.sin and any parameter (2036..etc)
get error !
invalid parameter!
You can't able to extract the sin file directly with unyaffs.
I can able to extract the .431
By this method:
http://forum.xda-developers.com/showthread.php?t=1872859
Note:You must have flashtool v9.0.0
svprm said:
You can't able to extract the sin file directly with unyaffs.
I can able to extract the .431
By this method:
http://forum.xda-developers.com/showthread.php?t=1872859
Note:You must have flashtool v9.0.0
Click to expand...
Click to collapse
I have 7.0! No wonder didn't had that option!
Thanks! updating now!:good:

boot.img creation from the stock ftf

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.
Have to tried kernel kitchen?
neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old
neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

[Q] About official update service ,how to extract to set kernal only. (*.ftf)

About official update service file to make *.ftf , chose big two file to make it(ex: 300 mb) by flashtool.
How can I extract the file to make kernal file only(ex:4 mb).
I want to make root.
Please tell me, thx.
tw-bird said:
About official update service file to make *.ftf , chose big two file to make it(ex: 300 mb) by flashtool.
How can I extract the file to make kernal file only(ex:4 mb).
I want to make root.
Please tell me, thx.
Click to expand...
Click to collapse
post something which can be understood and yeah we appreciate for posting in the right forum atleast. please edit your post and explain in an appropriate way then anyone can understand and reply to you
That is not possible..
Sent from my WT19i using xda app-developers app
tw-bird said:
About official update service file to make *.ftf , chose big two file to make it(ex: 300 mb) by flashtool.
How can I extract the file to make kernal file only(ex:4 mb).
I want to make root.
Please tell me, thx.
Click to expand...
Click to collapse
From what i understand, u want to extract only the kernel file from the official firmware .ftf file that u have right???
here is what u gotta do.
1. first download 7zip application(google it).
2. then right-click on your .ftf file from wich u want to extract the kernel and select 7zip.
3. then select extract files and select their destination folder.
4. after extraction u should be able to see various .sin files among them u ll have ur kernel.sin.

[Q] Need help on editing boot.img

I want to port lewa os. but i don't know what to edit on my boot.img
what to copy from my stock rom?
i know how to compress and decompress boot.img
thanks in advance.
Upp
please those who have successfully ported lewa on their device.
what did you do on your boot.img.
zeekforit said:
please those who have successfully ported lewa on their device.
what did you do on your boot.img.
Click to expand...
Click to collapse
if u take ur time an didt a search u will find info about that
thanks
thanks for your reply. just wanna know what is ramdisk files? is it the folder or the other file which is like a compressed file inside the boot.img

[TOOL] Amlogic Unpacker - Windows Tool to Unpack/Repack Oreo Images

THE FOLLOWING GUIDE IS FOR OREO IMAGES.
TO UNPACK AMLOGIC 9.0 PIE IMAGES, WATCH THIS TUTORIAL VIDEO: https://youtu.be/exDD6YOC4HU
Hey Everyone! Many people requested me on forumXperience to make a repacking/unpacking guide for Amlogic Oreo/Pie Images. So yesterday, when I had time I started to create my own windows tool for you guys to unpack and repack Amlogic Oreo/Pie Images.
You can now easily extract files in a few clicks and edit them to flash on your devices!
Very simple to use and it works great and is also faster than stock Amlogic Customization Tool which unfortunately doesn't support Oreo images.
There may be a few bugs that I am unaware of, so please let me know if you run into any problem. Later, I may add recovery and kernel unpacking option in the tools.
Thanks to Ricky for his Customisation Tools, I used his binaries for this project
The tool is pretty much open for everyone to edit and modify, it has batch scripts so you can easily edit with Notepad and learn the process of Amlogic Unpacking/Repacking manually [emoji23]
Here you can download the tool:
[Amlogic Unpacker by Nayam.zip]
3.26 MB​
it works fine. thanks.....
i was going to buy the other tool but this did the work without any money
techygaga said:
it works fine. thanks.....
i was going to buy the other tool but this did the work without any money
Click to expand...
Click to collapse
Good to hear. This has been flying under the radar and people really didn't care about this tool. Glad to see atleast there's someone using this.
Yes it does unpack/repack oreo images but it doesn't (yet) unpack recovery and kernel which I thought were not really important for the time being. Unpacking vendor and system will do all the work if you want to mod ROMs. Kernel and Recovery modifications are really not required and can be avoided by using alternative ways.
Sent from my F3116 using Tapatalk
Cool. Thank you
thanks
link doesn't work
do you have support uppack/repack Android 9??
xmannv said:
do you have support uppack/repack Android 9??
Click to expand...
Click to collapse
Yes ofcourse
Sent from my F3116 using Tapatalk
N'ayam Amarsh'e said:
Yes ofcourse
Sent from my F3116 using Tapatalk
Click to expand...
Click to collapse
But Image Pack Failed (Android 9 Pie)
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
like your tool..
Tonian1878 said:
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
Click to expand...
Click to collapse
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
5im said:
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
Click to expand...
Click to collapse
get rickys customisation tool, in the folder of ricky customisation tool, create a folder called "tmp".
Now unpack your firmware with nayams tool (both level 1 and 2) and copy the level 1 and 2 folders from the "unpacked" folder and paste them into you newly created "tmp" folder.
start rickys customisation tool, edit and repack your rom from there.
hope that make sense
5im said:
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
Click to expand...
Click to collapse
I'm sorry for not explaining everything correctly.
Level 2 is unpacked after unpacking level 1.
You cannot unpack level 2 without unpacking level 1 first.
Similarly, the repack script I wrote first repacks level 2 and then repacks level 1. If you want these separated, I can provide that too.
So you need to run the scripts in order.
Run script number 1, then 2. Then make changes in level 2 folder and then run repacking script.
Sent from my F3116 using Tapatalk
Tonian1878 said:
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
Click to expand...
Click to collapse
Thanks for confirming, I'll fix the repacking script If it's causing problems.
Sent from my F3116 using Tapatalk
If Pie images aren't working, please wait for a fix. I'll try some pie images out and will update the commands
Sent from my F3116 using Tapatalk
N'ayam Amarsh'e said:
Thanks for confirming, I'll fix the repacking script If it's causing problems.
Sent from my F3116 using Tapatalk
Click to expand...
Click to collapse
Thanks.
it does repack the firmware but after flashing the a95x max, it just hangs on the boot logo and doesnt get to the boot animation.
as said before, if i take the unpacked level 1 contents from your tool and repack with rickys tool, A95X max flashes and boots perfectly.
level 2 to level 1 repack doesnt seem to be an issue, purely level 1 to img repack.
@Tonian1878: Thx for the explanation!
N'ayam Amarsh'e said:
If Pie images aren't working, please wait for a fix. I'll try some pie images out and will update the commands
Click to expand...
Click to collapse
That would be great! If you need a Pie image for testing: bee-link.com/forum.php/forum.php?mod=viewthread&tid=50649&extra=page%3D1
Download link is down.. pls re-up.
Tonian1878 said:
get rickys customisation tool, in the folder of ricky customisation tool, create a folder called "tmp".
Now unpack your firmware with nayams tool (both level 1 and 2) and copy the level 1 and 2 folders from the "unpacked" folder and paste them into you newly created "tmp" folder.
start rickys customisation tool, edit and repack your rom from there.
hope that make sense
Click to expand...
Click to collapse
I tried it that way. Unfortunately, there is always an error message "Failed to repack system, default will be used"..
The image will be packed correctly, but my changes will be overwritten again.
Do you use AMLogicTools_V6.0.0?

Categories

Resources