yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] QA Bot:
Q&A for [Guide]How To Port & Modify Roms For Mediatek[Everything]

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer. Thanks for understanding and for helping to keep XDA neat and tidy! :smile:
[Android Q&A, Help & Troubleshooting] saawi:
thanks for great guide

i have ported the rom it have bug. screen is black but sound is coming :confused:
[Android Q&A, Help & Troubleshooting] vkmr8391:
I ported Lenovo P780 ROM for Xolo Q900 and after that when installing this rom it gives error "(Status 0) installation aborted". What is solution for that. Please help me.
[Android Q&A, Help & Troubleshooting] hardik124:
i want to port a kitkat rom to my device

actually xolo have released kk for A500 club mtk 6572 its specs are exactly same as my phone a500s somehow can i get kk for my phone pls help m
[Android Q&A, Help & Troubleshooting] Aman pharswan:
Help- Port a ROM for Micromax Bolt A61.

All developers are requested to Port a ROM for Micromax Bolt A61. & Also plz tell me how to port Recoveries & ROM via android & Computer both... plz..

thanks .
[Android Q&A, Help & Troubleshooting] viperkh03:
help with update script

hi bros please give a hand with my updater script. i donto know how to chanhe the #mounts.
[Android Q&A, Help & Troubleshooting] nickmok:
update-script

hello!

Can anybody help me with the Android kitchen to Register my device and to make a updater-script for my device, want to port a Rom!!

Thank you!

Greetz,

Nick
[Android Q&A, Help & Troubleshooting] kenkitt:
Maybe you should join me so that we build mediatek frame buffer console for debugging,it could really helpout.
[Android Q&A, Help & Troubleshooting] Jaja14:
I got an error

I use step 1. and while install the ported rom it shows an error "format() expects 5 args, got 4 " status 7

please help,
[Android Q&A, Help & Troubleshooting] Eclectica:
MTK 6582 ROM port: I've tried everything

Hi, I've been working on replacing the OS on my MTK6582 for many days over the last 3 weeks. I've followed several very helpful guides but I simply cannot get an alternative ROM to successfully boot. The original stock ROM is buggy and won't even connect my SIM to the network!

I've found this guide [Guide]How To Port & Modify Roms For Mediatek[Everything] by [MENTION=5561524]digyvijaykumar123[/MENTION] to be the most helpful but I don't think the OP is active any more and I don't have the authority required to reply on that thread. I've tried posting in the Noob Friendly thread with no response.

Honestly, at this stage I'll try anything! So please give me the benefit of your experience and knowledge!

The phone is an unbranded clone. It's called "Lenovo A808T" but this seems to be completely misleading, and not even connected to the usual clone of that name.

Here's the MTK Droid Tool info:

Hardware : MT6582 (MT6595 is Fake!)

Model : LENOVO

Build number : ALPS.KK1.MP1.V2.11

Build date UTC : 20140914-111625

Android v : 4.4.2

Baseband v: MOLY.WR8.W1315.MD.WG.MP.V35, 2014/07/17 10:42

Kernel v : 3.4.67 (ysm@tastech2-desktop) (gcc version 4.7 (GCC) ) #1 SMP Mon Oct 20 17:21:08 CST 2014

Uboot build v : -----

LCD Driver IC : 0-sh1282_dsi

I've tried porting 7 ROMs but the most successful (i.e. have installed in CWM) have been the following:

Inew V3 Huawei Emui 3 port KK,

Lenovo S860 VibeUI 2.0,

Honor 3C Hol-T00/U10 MIUI,

Lenovo S850 VibeUI 2.0.

All ROMS have been based on the 4.4.2 Android version, the MTK6582 chip and most on the same resolution. However they either boot loop or hang on the "welcome" logo.

Some questions I have are:

MTK Droid Tools detects the phone as a MTK 6582, is this detection 100% unmistakably correct?

MTK Droid Tools says the OS is 4.4.2, is this also 100% correct (or is this easily changeable in the build.prop or some other file)? If so, how can I determine the real Android version?

Will using a ROM with the same build number "ALPS.KK1.MP1.V2.11" make a boot more likely?[/B] Other ROMs using this same build number seem to be for the MTK6592.

In relation to [MENTION=5561524]digyvijaykumar123[/MENTION]'s guide that I've been following I have these questions:

I don't have a file called "modem.img" in my stock ROM System/etc/firmware folder. I do have a file "modem_1_wg_n.img" but copying or not doesn't seem to make any difference.

The stock ROM does not have a System/lib/modules folder, so should I delete the Port ROM modules folder?

The only step I have not followed in the guide is this:

"Lastly drag and drop a launcher like nova,apex or any to system/app/ of port zip in case port launcher did not worked."

Is this a necessary step?

I'll find another ROM and keep trying but at this stage it's like banging my head against the wall. I've invested literally days of time on this so I'd hate to give up now. Any advice will be gratefully followed.
[Android Q&A, Help & Troubleshooting] digyvijaykumar123:
Hi,

Firstly please post your build.prop here.That will help to clear some confusions.

And dont worry,all issues will be fixed.

Cheers..
[Android Q&A, Help & Troubleshooting] digyvijaykumar123:
Firstly your device model is not clear.But according to your build.prop and MTk droid tools we can assume that your device is Lenovo s850 or close to it.

Your device have-

Chipset- MT6582 (confirmed as detected MTK droid tool)

Ram- 1GB

Network- 2G/3G

Android Version- Kitkat (4.4.2) Confirmed as"" ro.build.version.sdk=19 ""

Answers to some of your questions:

->Modem.img is renamed to "modem_1_wg_n.img" in kitkat roms.Earlier it was named as only modem.img.So both are same just name is different.

->Same situation is with "modules" folder.Older roms had "modules folder but Kitkat rom modules are built in kernel i.e under boot.img.So you should skip that step.Leave that untouched.

->No it is not necessary unless you facing a force close error after booting your rom.

Now tell me steps in breif your are following for porting.I will help you.Also attach your recovery.fstab file here and updater script of stock rom and the rom which your ported.

One more question - You said that you were facing no network issue on your stock rom too.So you never received mobile network since you bought this device?

And for quicker contact you can contact me on facebook(digyvijaykumar123),wahtsapp(8409108997) too.

Good luck.
[Android Q&A, Help & Troubleshooting] Eclectica:
Attached:

recovery.fstab from stock ROM (MTK Droid Tool backup)

This is identical to recovery.fstab from latest 'cooked' ROM that I've tried to port (hanging on boot).

update-script from stock ROM

update-script from ROM I'm trying to port (this is from after it's been cooked - prior to kitchen there is no META-INF folder)

Kind of, it's not properly connected to the network since I bought the phone: it connects for a split second, enough to download txt messages, but not long enough to make a call. It repeatedly gives a pop up that says “Unfortunately the Process.com.android.phone Has Stopped” until I disable SIM 1 in the Android settings. I've googled and tried the usual solutions to fix this but nothing has worked. The SIM works on other phones. I'll get a micro SIM and try that in the second SIM reader slot.

I’m working on a thorough, step-by-step response to your guide which I’ll post when I can finish it.
[Android Q&A, Help & Troubleshooting] Eclectica:
I just flashed the ROM ported from the s850 ROM, modified with the MTK DT backup alterations. On phone reboot it showed the "welcome" logo then the screen went black. This is the first ROM I've flashed that has produced a black screen.

Just checked this and it's very different from the recovery.fstab extracted from the CWM backup. I'm not sure why, perhaps MTK DT encodes it differently? Perhaps because of the way I extracted it? Anyway, I suspect that this is the problem with this ROM port.

The recovery.fstab content from the CWM backup is the following:

# mount point	fstype	device	[device2]

/misc	emmc	/dev/misc

/data	ext4	/dev/block/mmcblk0p7

/system	ext4	/dev/block/mmcblk0p5

/cache	ext4	/dev/block/mmcblk0p6

/boot	emmc	/dev/bootimg

/recovery	emmc	/dev/recovery

/emmc	vfat	/dev/block/mmcblk0p8

/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1

/sd-ext	auto	/dev/block/mmcblk1p2

#################################################

###############################################################

###############################################################

###############################################################

I'm going to try port the same s850 ROM again using the CWM backup for stock ROM.
[Android Q&A, Help & Troubleshooting] Eclectica:
So my SIM card did not work with the original stock ROM, giving “Unfortunately the Process.com.android.phone Has Stopped” errors. That was in slot 1.

I have now tried a second 'micro' SIM in slot 2. It doesn't give any pop up errors but it can't connect to the network either.

Interestingly, now that the 2nd 'micro' SIM card is inserted into the phone, when I insert the 1st SIM as well the phone doesn't give pop up errors update - the phone does still pop up with the same errors. Neither will connect.

New Zealand has the following phone frequencies for the companies my SIMs are for:

SIM 1: 2G 900Mhz and 1800Mhz

SIM 2: 3G 850mhz & 2100mhz

According to the phone seller's description (which could be completely false) the phone should support the following:

2G: GSM 850/900/1800/1900MHz

3G: WCDMA 850/2100MHz

Therefore I'm hoping the connection problems are down to the ROM and not the phone capability!
[Android Q&A, Help & Troubleshooting] alexsirb:
MT6592

I want to port Huawei Honor 3X PRO's firmware to my Philips Xenium i908. Both MT6592. The only difference in specs is the display inch. 5.5 vs 5.0, aaand different partition scheme. If it fails, and i can reformat and put my rom back, then no problem. (I can fix NVRAM too with backup! I do this after format), but will reformat bring it back? I haven't tried with different scatter file.

Edit: Nevermind. I'm done fighting with scatter file.
[Android Q&A, Help & Troubleshooting] alexsirb:
Thanks man!

After two months of trying to get Huawei's Emotion UI on my phone. You're a life saver! And to think I did it in one hour. Just fixed audio. SIMs are working, wifi too. Now to find out why it does not wake the display when i press power buton. I have to reboot through adb, or keep the power button pressed.

Ported Huawei Honor 3x Pro G750-T20 KK EMUI2.3 ROM to Philips Xenium i908. Both MT6592.

Maaan! Thanks!
[Android Q&A, Help & Troubleshooting] quantum400lite:
GoClever Quantum 400 Lite Won't turn Please Help ME!!!!!!!!!

softwares i've been usedView attachment 3113425I click on SP Tools on Download to put Recovery CWM 5.5...on my Quantum 400 Lite and on the screen appear Succes/OK and CWM Work but i installed some roms for MT6572(my cpu) and my phone my phone restarting 4-5 seconds moooore times.................But when i click Format (format whole flash) on the SP Tools my phone has shutted down and won't turn 3 days ago :crying: :crying: :crying: :crying: :crying: :crying: Pleaseeee help meeee i used 20 softwares but NO RESULT PLEASE GIVE ME CORECT FILES AND SOLVE ME PLEASEEEEEEEEEEEEEEE :confused: :confused: :confused: :crying: :confused: :crying: :confused: :crying:

SORRY FOR MY BAD ENGLISH :crying: :crying: :crying: :crying: :crying: :crying:
[Android Q&A, Help & Troubleshooting] alexsirb:
What if i port only app, priv-app, framework, media (with custom bootanimation.zip) and some other folders if needed? I won't need the modded boot.img (or just edit prop, for proper framework loading) and brightness problem would be fixed. I will try next week because i won't be home these days. I will check xda forum from my philips i908, but stock rom.

---------- Post added at 11:26 AM ---------- Previous post was at 11:20 AM ----------

Did you flash preloader? If you format, put STOCK PRELOADER. Try pulling out battery, or hold power button until windows detects it and try again. Press Download in SPFlashTools BEFORE detecting phone. I hope this helps.

Also, there is a modified driver for your phone, in case you need to flash the preloader, to unbrick.

You may need to press Volume + while connecting, or restarting the device.

Here: http://xdaforums.com/showthread.php?t=1943442
[Android Q&A, Help & Troubleshooting] quantum400lite:
Thanks but in my phone is no activity! No screen light,no recovery,no boot freeze,nothing

I search the stock preloader and i use your solution and i will be back in a case with some activity.

Thank you and sorry for my bad english.I'm Romanian! :D
[Android Q&A, Help & Troubleshooting] tripurari001:
unable to port ant custom rom

sir i m using karbonn a99* star mrt6572 512 ram 1ghz processor 4 inch screen android 4.2.2

when i port any rom in my device it install but when i restart phone it stuck at animation i port xdaforums.com/android/development/rom-project-pure-xperiaui-final-t2955979

and clavri rom and tried few other but stuck at boot animation

stock rom xdafirmware.com/mediafire/?dir=Karbonn/A99%20Star

plz sir help me
[Android Q&A, Help & Troubleshooting] tripurari001:
phone stuck at animation

sir i tryed your method step by step in many rom but same problem each time phone not going further from

startup animation i m using karbonn a99* star mt6572 4in screen 512 ram 1ghz processor 4.2.2 rom

startup animation means animation after boot logo it goes further from boot logo but stuck at animation

may be coz my device has no gpu only processor not graphic unit can tell me any solution for this plz

tnx in advance
[Android Q&A, Help & Troubleshooting] alexsirb:
Check that you have correct permissions. And try copying all modules, lib, /etc/firmware. Make sure you have modded correctly boot.img

Post logcat so we can find your problem.
[Android Q&A, Help & Troubleshooting] mido1122:
After porting rom

after porting rom the second sim is not working and video calling is not working too

can you please tell me how to get the second sim working and if i want to add video calling option what to do
[Android Q&A, Help & Troubleshooting] alexsirb:
Do you have options to configure multiple sims? If not, the your ported rom is for single sim. If it has option to configure multiple sims and it doesn't work, try restoring nvram backup with mtk droid tools, if you have made a backup.
[Android Q&A, Help & Troubleshooting] mido1122:
it dose support 2 sims

yes i have this option

the other rom support 2 sim

but after porting only one sim working the other one tell me that there is no sim inserted

also i want to ask you about what if my current rom support video calling through 3G and i want to copy that option in other rom what to do

now i restored my first rom till i can fix that

thanks for the fast reply
[Android Q&A, Help & Troubleshooting] alexsirb:
If both roms support 2 sims, then it should work. You say that you can use sim 1? Check your IMEI at *#06#. See if both IMEI's are the same with those on the box than came with your phone. Also, know that 3G is not available only for one sim. My home network only supports 3G, so i cannot use 3G on the second sim... If i switch 3G on the second sim, i have no signal on the first. Also, test your second sim in another phone. Maybe you have a problem with the sim. Else... you might need to edit some framework files.
[Android Q&A, Help & Troubleshooting] mido1122:
its not like that

the problem is not with switching 3g or not

my problem is the phone cannot see the second sim at all
[Android Q&A, Help & Troubleshooting] alexsirb:
Have you tested the other sim in a different phone? Is it detected on SIM1 Slot? Is your primary sim card detected in Slot2?
[Android Q&A, Help & Troubleshooting] mido1122:
nvm

after restoring the old rom the sim working perfectly

can you teach me how to copy video calling settings from rom to other one

i mean that options in setting not just the dial

it would be great thing
[Android Q&A, Help & Troubleshooting] alexsirb:
Unfortunately, i can't help you with video calling. :(
[Android Q&A, Help & Troubleshooting] brabagul:
Home button not working

Hi guys, i have an Ulefone Be Pro. I have ported ROMs from elephone p6000 and made it boot up successfully. now my problem is this two bugs i really cant fix:

1. Home Button not working

2. Camera only shows Camera can't connect

I have tried different solutions for Home Button like changing dpi to 320, replacing generic.kl, or the whole usr folder but still doesnt fix it

for the camera problem, i have tried replacing camera libcams one by one but still doesnt fix it, but when i tried to replace libcamera_client.so my phone goes bootloop. i even tried unpacking boot.img and replace camera permission from stock to port. but still the same

i hope someone out there would help me.

im still new here :D

Thank you
[Android Q&A, Help & Troubleshooting] Hadiimani:
how can i flash with SP

hi,

thanks for anything, just let me know how can i flash the zip file with spflash tool.

Best regards
[Android Q&A, Help & Troubleshooting] BlightGod:
Porting

::good:
[Android Q&A, Help & Troubleshooting] Mr.Ak:
Just make a flashable zip of ur stock rom;)
[Android Q&A, Help & Troubleshooting] shining.surya:
From mt6572 to mt6589

Dear Master..

Please i need a tutorial to Port ROM from MT6572 to MT6589

I woulld really happy if you give me any recomended links and tutor

Please reply..

from a stupid newbie

:(
[Android Q&A, Help & Troubleshooting] NeerajMalhotra:
Hlo Guyz...introducing ULTIMATE ROM PATCH (work on mtk jb/kk)

Now NO need to port rom,and begging someone to port rom.i created a ultimate rom patch. Very easy to use just flash it after flashing the rom.

U can can prepare this for ur own device..

Steps are there...

1.Extract ultimate rom patch to any folder.

2.Open it u can see now

/meta-inf/

/system/

/boot.img

/logo.bin

3. Replace boot.img to stock boot.img(u can get it from cwm backup or stock rom)

4. Replace logo.bin to stock logo.bin (u can get it from stock rom btw this is optional)

5. Delete following files...

system/usr/keylayout/genric.kl

system/lib/drm/

system/lib/modules/

system/lib/soundfx/

system/lib/hw/

system/lib/libaudio.primary.default.so

system/lib/libcamalgo.so

system/lib/libcameracustom.so

system/etc/wifi/

system/etc/bluetooth/

system/etc/security/

system/etc/firmware/

system/etc/vold.fstab

system/etc/vold.fstab.nand

6. paste above file from stock rom.

7.compress it Again...

Now u can use it...

flash any rom... :P

NOTE:- correct the mount points of updater script of rom which u want to flash.

Credit Goes to me :D :D

LINK:- xxxhttps://drive.google.com/file/d/0B5z6qaGJKPX9c3hNdk53WGwzclU/view?usp=docslist_api
[XDA Assist] unclested:
cant get to recovery mode or download mode i am not tech savvay any links u have help a brother out
[XDA Assist] Perseus:
Happy to help if you could post details of your device.
[Verizon Galaxy Note 4 General] armeN0317:
I know the phone won't be out until the 23rd (despite heavy argument from a certain bunch that still think the 17th is the release date for verizon based on what "their reps told them"). Looks like the S5 and the Note 3 on the latest builds have no root and require flashing an older kernel to root the phone. Seems like that trend is going to carry over to the Note 4 with the exception of us not having an older kernel to flash and root. So any talks within the community about a bounty or new root method being developed? Let's get the chatter going early so we don't have to wait 3-6 months after release date like the Note 3. I'm going to miss my record button during phone calls =(
[Verizon Galaxy Note 4 General] billinaz:
I have 3 S5's and 2 Note 3's all on the latest build.

They are all rooted.
[Verizon Galaxy Note 4 General] SirVilhelm:
Thats good new. Can you still run free hotspot?
[Verizon Galaxy Note 4 General] jayochs:
god, i'm going to so need root. between ad away and being able to uses mobile hotspot and titanium backup, ugh. I can't imagine an ad filled phone. lol
[Verizon Galaxy Note 4 General] Forgetfull:
I will smash this phone into the ground if it doesn't get root.

Tmobile Note 4 has root currently. Unfortunately it trips the Knox counter in the process.
[Verizon Galaxy Note 4 General] SirVilhelm:
Adaway is a must, I used my wifes phone and has no idea how many ads there actually where
[Verizon Galaxy Note 4 General] rushless:
I am treating the delay as a positive, since if root is not available for US models, I will not get the N4. Need root to allow external storage writes and do NOT trust Google that they will leave the function enabled in Lollipop. Not the slightest.

If no root, will stay with the S4 32GB a while longer, but still a fine device that is rooted and I do have card writes enabled.
[Verizon Galaxy Note 4 General] billinaz:
Dont know, I added the $10 hotspot to my account.

Im on an enterprise account so the features and rates are a bit different.
[Verizon Galaxy Note 4 General] rushless:
No offense since just asking. Why is it good news for devices not the N4 being rooted since this thread would inherently be for the N4?

The S4, S5 and N3 all are easy to root, but other than a trend, does not mean much for the N4 (besides not a negative trend) ;)
[Verizon Galaxy Note 4 General] ronaldheld:
Forgot about needing adaway. Another reason to have root!
[Verizon Galaxy Note 4 General] SirVilhelm:
Because we assume that the S5 and N4 are going to be very similar on the software side. If the S5 has root there is a very good possibility that the N4 will also get root. Not guaranteed but good chance.
[Verizon Galaxy Note 4 General] Surge1223:
The S4, S5, and N3 are not easy to root.

Eventually maybe. It's important to keep in mind that the note 4 uses a 3.10 Linux kernel while all previous phones (s4, s5, n3) used 3.4 Linux kernel. Meaning if a new exploit for S5 is found it doesn't mean it would work for the Note 4 while it's likely to work on s4, and note 3.
[Verizon Galaxy Note 4 General] armeN0317:
looks like the tmobile note 4 already has root. I hope that same method works for verizon
[Verizon Galaxy Note 4 General] MichaelMcC:
How did they root the TM? I am curious if Towel Root will root the Note4 since it roots so many different phones including the Note3.
[Verizon Galaxy Note 4 General] MrWicked1:
Towel root won't root the note 4 it hasn't had a update since June it's no longer supported and has been patch with newer kernels. As for t-mobile it was root by Chainfire who is very popular for finding root methods for us.
[Verizon Galaxy Note 4 General] MichaelMcC:
He'll probably do it for the VZW as well. I can live with just root and since Hashcode quit Safestrap I'm sure root will be all it will get.

I don't mind TW.

Might be time to look at the Nexus again.
[Verizon Galaxy Note 4 General] wyatt57350:
Sure no one knows at this point, but would it be best to ignore any updates that come out (I know I am glad I did not take any with my note 2 as I was lucky to get my phone unlocked with the release version). Another question I have is once its rooted how hard is it to keep root after updates?

Wyatt W
[Verizon Galaxy Note 4 General] ebrinkis:
Chainfire unlocking VZW Note 4

He says in his post he won't -- the VZW locked Bootloader makes the phone brick when rooted. No one has ever gotten past the bootloader for the Note 3 yet! Hopefully a Developer version lurks...
[Verizon Galaxy Note 4 General] ronaldheld:
There is an OTA already. I wonder if it will make rooting harder. Does anyone know if chainfire has started to try to root our N4?
[Verizon Galaxy Note 4 General] wyatt57350:
Sure hope that is not the case, because I don't see me giving up my note 2 until this one is root-able. I am actually seriously considering cancelling my pre-order (which is full price to keep my UDP) and all my accessories that have yet to ship. Basically everything that I really care to do with my phone is somewhere tied into me being able to use xposed modules, wireless tether, etc...