yashsingh1/xdaforums huggingface dataset:
[Android General] polfrank:
I think I used wrong kernel.img. I repacked, will flash soon and come back to report.

EDIT: Are you sure that I have to use the META-INF folder from the CM rom? It gives me status 7 error.... (I also used the META-INF from a rom for my device, unfortunatelly it uses aroma, but it seems to install properly..)

EDIT2: I think that now I repacked the correct components of boot.img. It seems to get past the Cubot white splash screen, but after this, I get a black screen, but I can see that the screen is on, I can see the backlight. [I will try again with the CM META-INF-->still fails]

ps. Seems like I have to learn how to get a logcat if I wanna make use of your help... I'll be back in some hours.

----------------------------------------------------------------------

To sum up:

I have packed the new boot.img and replaced the needed files in the rom.

1) With the CM's META-INF folder I can't install, status 7 error.

2) With the stock rom's META-INF it seems to install propperly.

After reboot from recovery it goes to a black screen and stays there. I tried to logcat (adb logcat -v long > port.txt) but it just says:

If i write adb devices it says :

When I am on recovery I get:

---------------------------------------------------------------------------------------------------------------

CONCLUSION: I managed to install the new boot.img and rom but it stops on a black screen, right after it passes from the white logo screen. And now, I need your ideas...

ps. I repeated the porting process from the beginning to make sure that I didn't make any mistakes... again, the same result.

--------------------------------------------------------------------------------------------------------------

NEW UPDATE: IT BOOTED!! but how....? Here it is........

I just replaced the boot.img from the wiko stairway flashable zip with the boot.img I created with repacking my phone's kernel and CM's ramdisk.

SO, I just changed the boot.img !!!! Testing.......

-------------------------------------------------------------------------------------------------------------

Testing results: buggy mobile network and sound not working. I guess this is why all those files are needed to be copied. I think I ll start copying..... But I wonder...what did I do wrong earlier while copying,,,?
[Android General] Nihal @A-JAX:
You will get status 7 error because it is a security feature which doesn't allow to flash one device's ROM to other. You have to edit using any text editor and remove first line in the update-script found in meta-inf/com/Google/android/

Also don't use other rom's meta-inf as they have different symbolic links which may not boot the device.

Your phone's modules will be different from wiko's. That's why you got buggy audio and network. Replace all the mentioned files.
[Android General] polfrank:
Okay, after some hours of trial and error I copied all the porting files provided in the op, except 2:

-libjpeg.so - When I port this from stock, Cm boots, but cannot show images, every single image, including the bootanimation is black.

-libmedia.so - When I port this from stock, Cm stays in the bootanimation forever. (No bootloop, just bootanimation forever)

-------------------------------------------------------------------------------------------------------------------------------------

The "extra" bugs that I have are:

1. No sound from the speaker (but yes in the headphone).

2. Weak signal. I don't know if this is normal. It has 1 bar and sometimes it has 0 and says no service. Also, the name of the tile in the QuickSettings is 20201 (weird...). I also get a message when the rom boots and it says: "Restricted Access changed. Data service is blocked." This appears sometimes at random too.

3. USB storage doesn't work through Android.... ( I don't know if this is normal too). When I plug it on PC it just charges. (Note: I now see that other devices have this problem too. I found a partial workaround in the MMX Canvas HD cm10.2 section)

PS. Would logcat help in any of these problems?

--------------------------------------------------------------------------------------------------------------------------------

I moved on, and took some adb logcats.

1. I took the audio.txt as follows: started logcat, pressed play on the apollo widget, pressed pause, stopped logcat

2. I took the signal.txt as follows: started logcat (while on Airplane mode), disable Airplane mode (from quickSettings tiles), enable mobile data, disable mobile data, enable Airplane mode, stop logcat
[Android General] Nihal @A-JAX:
I'll look at logs meanwhile I never had problem with signal, speaker audio and images. To get USB storage working add these lines to build.prop and reboot

persist.sys.usb.config=mass_storage,adb

persist.sys.usb.config=mtp,adb

For signal issue , did u replace your modem.IMG in CM ROM ?

For image issue try those 2 files from wiko ROM.

Edit:

Try to freshly port CM once again as given in guide with some changes in meta-inf and build.prop as I gave. If you still have problems then report here.

I couldn't debug audio log but in signal log > network is disconnected as data is enabled and even it's saying messaging settings are false. There may be issue with modem.img
[Android General] polfrank:
Thanks for the USB storage tip. At least the internal SD can be seen now by the computer.

Images are OK now with the lib of CM.

For signal issue I copied modem.IMG from stock into the CM rom, and still having problems.

Btw, I just created a new thread for my device, I hope this is not a problem.

http://xdaforums.com/android/develo...cubot-gt99-t2834832/post54542482#post54542482
[Android General] Nihal @A-JAX:
Cheers !! I'll add your device in the ported list. As I said previously all necessary files should be replaced in CM to be bug free except major BT,camera,hwcomposer,FM,GPS,2nd Sim bugs.

Also USB storage is buggy now as SD card is unmounted in mass storage mode but not mounted on PC and when disconnected from PC it doesn't get mounted and you have to reboot to get it working on android. Also mtp mode sometimes doesn't work
[Android General] polfrank:
Nice!

The only file missing is /lib/libmedia.so and I 'm starting to think that this may be the cause of the sound bug. But when I copy it from the stock rom, I get boot problems...

Anyway, thanks for your help, and sorry that I messed up/spammed your thread. I think the most important part of the job is done..! Good job!

EDIT: I think I sort of fixed the mobile network issue. I used a modem.img from another version of stock rom and it seems to work. However I still get the error "Restricted Access changed. Data service is blocked." But I have full signal and 3G! It's something!
[Android General] Nihal @A-JAX:
Restricted access notification occurs if you enable or disable data and turn on/off airplane mode and phone and it is not a issue I think. It may be cyanogenMod's security message or something.

Also try libmedia.so from other

Stock rom which you said above.
[Android General] @Iimam27:
thanks for repley

I want to port my device MT6589T JB 4.2 to cm11 kitkat but I do not know how to activate the binder c in the boot.img.

I've tried without a binder c install process always aborted status 7

please help thank you
[Android General] Nihal @A-JAX:
Hello [MENTION=778354]lima[/MENTION]m27

You can't patch binder.c from boot.IMG. You must be having kernel source for your device and you must patch binder.c in kernel. If you don't have kernel source then its almost impossible to get KitKat. See if your device clones have kernel source for their device. Else look for almost similar specs device with same processor. My device has mt6589m but no source from vendor. I used similar mt6589m device's source to build kernel. Now CM 11 is booting but no display due to different GPU config. So it's really hard if you don't have source. Try with CM 10.2 first .

EDIT- Previously I have told why you get status 7 error. So read whole thread before posting here. Good luck
[Android General] 283578783:
Help me！

I try my best,but CM11 don't boot.I port CM 11 using stock 4.2.2 rom.

Also,I try to port CM 10.2,but because my phone only support GSM&TD-SCDMA（I'm in China）,I can't call or send messages,it even has no signal.

Sorry for my bad English.I'm looking forwords to your answer.
[Android General] Nihal @A-JAX:
Hi

Need more information. Since CM 11 requires patch in working kernel source , does your device has working kernel source and patched binder.c ? And in CM 10.2 did you replace modern.img ? It is causing network issues.
[Android General] 283578783:
Oh.It don't has working kernel source.And I replace all files under /system/etc/fireware,but it still does't work.

Thx for your answer.
[Android General] Nihal @A-JAX:
Sorry if you don't have kernel source then CM 11 is dream for you. For CM 10.2 , pm me the logs from logcat.
[Android General] polfrank:
Hello, I would like to ask something regarding mediatek porting.

If I have kernel source for my device(let's say an mt6589) and build a kernel that supports kitkat: Can I port kitkat (not specifically cm11, but the stock kitkat rom) from another device(mt6589 too) that officially got a kitkat update by its brand?
[Android General] Nihal @A-JAX:
Hi

I'm not an expert in building kernels but as far as I know it should work for same SOC.
[Android General] 283578783:
MMX A116 does't have source,but they have CM11.Why？
[Android General] Nihal @A-JAX:
Hi

MMX didn't release kernel source for MMX A116 but their clone device got kernel source so they used that source to build a working kernel for their device and hence ported CM 11. Even same SOC working kernel source can be used to build kernel for your device but it's not that easy as drivers and their config differ from device to device and you have to add/patch them all to get a working kernel.
[Android General] 283578783:
Thanks.I see.:D

And my phone has no signal in CM10.2,can you solve it?Log has already sent to you.

Sorry for my bad English.:D
[Android General] Nihal @A-JAX:
Deleted
[Android General] Nihal @A-JAX:
I'll check , meanwhile try using modem.img from CM 10.2/11 roms and p19 baseband. It may work
[Android General] 283578783:
It can't work on TD...
[Android General] 283578783:
Excuse me,can you tell me what I should do if I got working sources?How to add binder.c patch?
[Android General] Ravi Kumawat:
help in porting..

which rom shoupd i get to port?

My device is Spice mi 535

mt6589

qhd 5.3"

1gb ram

8 and 5 mp cameras

and 16gb memory
[Android General] Nihal @A-JAX:
[MENTION=5468759]283578783[/MENTION] just replace binder.c in your kernel source with the patched one from wiko or any other working cm kernel source from Cm 11 links given in #2 post. Then build the kernel with selinux support

[MENTION=5905746]Ravi Kumawat[/MENTION] You can port any of CM 10.2 / 11 roms. CM 10.2 just works with your stock kernel. While CM 11 requires a working kernel source for your device to patch binder.c
[Android General] Trustlover™:
bro help needed........ubuntu aint loading :( is it necessary to compile from source?
[Android General] 283578783:
Thanks.But after I replace binder.c,I cannot compile:mad:
[Android General] Nihal @A-JAX:
[MENTION=5468759]283578783[/MENTION] It should compile . What error you are getting ?

[MENTION=259215]Trust[/MENTION]lover™ Ubuntu or any linux distro is necessary for source compiling (For CM11)
[Android General] 283578783:
I only need to replace binder.c,right?Should I do something else?I am not at home and I don't remember more things about the error.

Sorry for my bad English.
[Android General] Nihal @A-JAX:
Just to boot KitKat you need to patch binder. Remaining things need not be touched as far as I know. I'm not that much good with kernels. If you want more help with kernel build you can contact people at cyanogenmod for mediatek thread. They help a lot. Regards
[Android General] JBCDev:
About CyanogenMod 12

Hello [MENTION=5492766]4shreyas[/MENTION] !

I've Got A MT6589, 1GB RAM, 720x1280, Kernel Source Available, How Can I Boot Lollipop ( My Phone, Officially Arrives To KK, Also, I Built CM 11 From Source ) .

Thanks In Advice
[Android General] Nihal @A-JAX:
There is already a CM 12 built for MT6589 (MMX A116). You can check that. Use that source to compile or port the ROM. But it's using JB kernel I guess. Nobody has able to build a working lollipop ROM from kk kernel till now.
[Android General] JBCDev:
I Also Got JB Kernel So...

What I Need To Patch ( Binder.C Or Something Like That )
[Android General] Nihal @A-JAX:
binder.c patch is mandatory . If you want to port then procedure is same for lollipop as in my guide . If you want to build from source , check the merged lollipop source from that device section and use it to build the ROM

http://xdaforums.com/micromax-a116/orig-development/5-0-1-cyanogenmod-12-0-micromax-a116-t2973612
[Android General] JBCDev:
So, ( I Already Patched Binder.C And Works Great ) How Can I Boot Lollipop If Your Guide Only Arrives To CM11 ?
[Android General] Nihal @A-JAX:
I have not tried porting to lollipop using my guide but its almost same and should work fine I guess . Just use patched kernel with CM12 ramdisk and it should boot.
[Android General] JBCDev:
Yeah Ok

But I Repeat...

What Patches I Need To Apply To The Kernel ?
[Android General] Nihal @A-JAX:
Other patches won't be necessary as same for kk. I didn't try with lollipop so I can't tell exactly. Try only with binder.c patch first.
[Android General] royblue11:
HELP!!

which rom shoupd i get to port?

My device is Spice mi 525

mt6589 1.5ghz

Fhd 5"

1gb ram

8 and 2 mp cameras

and 8gb memory

It has jb 4.2.1

I have port roms before bt dont know much about working with kernel vr. And stuff plzz help thanks
[Android General] Nihal @A-JAX:
Well if you have or know about kernel source available for your device or its clone then you can work on that kernel source and can port CM 11 by patching binder.c in kernel source. If you don't have kernel source then it is very very difficult to port CM 11. Then you are only left with CM 10.2 which you can easily port with your stock kernel by following my guide. Just download any of the already ported CM 10.2 from the list in post 2 and follow my guide. Happy porting!
[Android General] royblue11:
Hey, thanks for reply bt I really like to try cm11 I search for kernel source on net bt no luck :( <if you know any sources plz let me do know > also can I just use stock kernel and patch it .. Like I have seen other custom built their kernel... thanks again.
[Android General] Nihal @A-JAX:
If you have knowledge of building kernels , you can work on other device kernel sources to make it work on your device but it's very very difficult to make boot properly. And you just can't decompile stock kernel and patch binder.c. So CM 10.2 is only option for now.
[Android General] sherjee278:
I am trying to port CM11 from lenovo to Flyiq446. Which rom should i take as base rom? AOSP 4.4.2 did not worked.

Should i take AOSP 4.4.4?

P.s The rom is already ported but cam and fm radio is not wrorking. I want to port from different source.
[Android General] Nihal @A-JAX:
Hi

Can you ellaborate ? Like what OS, kernel now you are using ? device ?
[Android General] sherjee278:
My device is Fly IQ446/XOLO Q800 (MT6589) having Kitkat 4.4.2 and we have a working Kitkat custom kernel 3.4.67 . CM 11 rom is also ported for our device and now it is quite stable.

Now I want to port PACMAN rom which is available for MMX A116 (MT6589). I tried with CM as base rom but i think i m missing something in boot.img repacking. Took CM11 boot.img and just replaced the kernel file in PACMAN rom"s boot.img but it is not booting.

Is there anything more which i need to change in boot.img to make it boot?
[Android General] Nihal @A-JAX:
PAC man rom for MMX A116 is based on JB kernel 3.4.5 so it won't work on KK kernel. So if you have custom JB kernel you can try to port it. It will work. Only CM11 is available for KK kernel for now.
[Android General] kannanrs:
Hi,

Can i use wiko 4.4.4 as base to port a cm12???
[Android General] Nihal @A-JAX:
You can use but it still has not worked to anyone. Good luck
[Android General] kannanrs:
Yes, it has not.

Greetings
[Android General] HendrixBenzema:
I tried everything as you said but when I try to flash it, it says "installation aborted".What should I do??:confused :(
[Android General] Nihal @A-JAX:
It's status 7 error. I have already said how to fix it in this thread. So read the whole thread and then ask questions.
[Android General] kutlay1653:
i had a queston can i port cm10.2 mt6572 is it possible
[Android General] Nihal @A-JAX:
Yes you can. Same guide works. Find a CM 10.2 rom already built for MT6572 device. I think till KK or CM11 is there for MT6572. If you can't find any ROM then you have to cross port from MT6589 to MT6572. Addition to this guide replace all the files and its contents with name mt6589 to mt6572. Eg: gralloc.mt6589 to gralloc.mt6572
[Android General] kutlay1653:
Thanks for reply
[Android General] aaawqw:
Hi

I'm trying to port CM10.2 for my device but it seems I met some problems. My phone stuck on the CM bootanimation. I ported CM10.2 from MMX A116. Should I try another device? Maybe wiko stairway? And I failed to logcat on adb. No devices was detected.

PS: My phone is Coolpad 7270_W00 , with stock JB4.2.2 rom. Ram 512(In fact 486) And MT6589. Maybe RAM is a bit low but i think CM still worth trying. The Coolpad company really sucks for they provide almost nothing for my phone

Thank you for advice! (Email me : aaawqw@live.cn)
[Android General] kutlay1653:
Try logcat?
[Android General] aaawqw:
I failed to logcat for adb detected no device. Some people say maybe there's something wrong about init.rc. I really don't know what to do next.

Thank you for advice!
[Android General] Genius@Davidson:
Bro pls upload a build for xolo q1000s plus
[Android General] David S. Hwang:
Boot unsuccessful

Hey, sorry to bother you with such an old thread. I followed all the steps to build it but it just doesn't work. The cm logo didn't even showed up. It just boot (10s) - go black (2s) - boot again. My stock rom is cm 10.1 and I used the cm 11 build for wiko. But I grabbed a kernel from a nearly same phone's 4.4.2 build (as long as kernel_head). What do you think the problem might be? Do I have to modify the kernel a little?

Thx anyway.
[Android General] Nihal @A-JAX:
The links provided here have ROMs based on jelly bean kernel. Search for KK kernel based ROM for stairway. Try to use that. If you have kk kernel available for your device then directly port. No need for binder.c patch.
[Android General] David S. Hwang:
The point is that I can't find a kk kernel for my device, but I do want it to run on 4.4 because I need it to run some apps which only supports 4.4+ as my secondary phone. Since I know a bit about Linux and C, so any guide for replanting the kernel?
[Android General] Nihal @A-JAX:
Yes as you said you used a nearly same device's kk kernel, it won't work. Even if it's similar device the sensors and other modules will be different so you have to build sources for your device if you don't have, by patching the sources of similar soc device. Generally you have to port all the driver sources to your device and build a kernel.

Without kernel source CM11 is really a nightmare! But if you are patient enough then you can try by building your own source as per Cyanogenmod for mediatek devices thread in XDA. There you'll find conversation about all these "source port" things.
[Android General] David S. Hwang:
Thanks! I'll try later. And one more thing: my modem image has a different name with the one in Wiko's ROM, which name should I use?
[Android General] Nihal @A-JAX:
Use with higher version number. If you can't decide which is higher then try both and based on signal availability, quality and strength you decide which to use. Modems in mt6589 was rarely updated. In my phone I had seen only 2 revisions over 4 years so it doesn't matter that much about modem.
[Android General] keygen1g:
how to make my kernel binder.c patched pls???????
[Android General] hasina00:
bonjour a vous et merci pour le forum.moi j'ai un samsung clone j7 mt6589.pas de custom recovery trouver.pas de custom kernel ni de custom rom.est ce que vous pouver me donner si vous on avez.merci d'anvance pour vos reponse et bonjourner.
[Android General] mannie411:
Unable to port Techno F8 MT6589

Hi, thanks for the guide. Trying to port this CM 11 Wiki Stairway to my Tecno F8 running JB 4.2.1 with kernel 3.4.5. I have used Android Kitchen to port but it gets stuck at boot logo. I have repack the boot.img using my stock kernel and CM11 ramdisk, but still am stuck at the logo.

Please help me, what am I doing wrong. Thanks
[Android General] Nihal @A-JAX:
For CM11, you need to have sources for your kernel & you have to build your own custom recovery with some modifications. Just porting doesn't work which I have clearly mentioned in the guide.

"You can only port CM10.2 if you don't have kernel source for your phone."
[Android General] mannie411:
Thanks for the quick reply. My device doesn't have a kernel source. But i have cwm recovery. Can i use another device kernel source and how do i patch the binder.c, no guide on such that i have come across. As for CM10.2 i can't find any rom, please can you help me with a download link.

Also, i tried port MIUI V5 for my device which is based on jelly bean, when i turn it on i hear the boot sound, but it gets stuck at the boot_logo. any ideas or fix for this.
[Galaxy S III Q&A, Help & Troubleshooting] Mustakim_456:
Hello Devs,

I have problem charging my s3 international version.

My phone is rooted and running custom rom s5 sensation v4.0 kitkat 4.4.2 with boeffla kernel v6.0 and latest CWM touch recovery.

I have flashed many custom roms before and all was working good before. The phone was also charging properly before.

But after some time when 4.3 was released I have flashed s4 revolution.

After flashing that rom my problem started.

1st problem was the phone was not gettin connected to my cell tower. Later after searching soo many hours on google I found out that it changed the efs version from v1 to v2. So I found out a rescue zip file which include only modem of xxemg4. I flashed it and then all was working good.

After some time I faced a problem of reverse charging means the phone is kept on charge but instead of charging the battery decrease. So again I searched on google about my problem and found out an app called galaxy charging current which show the power that is getting the phone while its connected to the charger. when I installed it and saw the current it was only showing max 100 min 999 and avg 100. I saw some where that the default current the phone should get is 1000 in max.

I searched alot on google on how to solve this problem, tried many diffrent rom , tried changing my charger, tried to flash back the previous rom which I was using in which I was not having any problem but after doing all this the result was same.

when I connect to the charger it shows 700 In max n after some time it keeps going down like 500 then 300 then last 100.

So after searching on google I have found out a solution of flashing custom kernel. I flashed googymax kernel in which using sTweak we can configure the battery power and ignore safety measures and unstable power.

After doing that my phone gets max 1000 min 1000 and avg 999.

My problem is that when ever I flash new rom I hav to flash custom kernel to ignore the unstable power and safety measures to properly charge my phone.

is there any way I can get back as before I was charging my phone without flashing custom kernel...???

Any answer will be appreciated.

Note :- I was using the original charger which I got in the box while purchasing.
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
First replace your battery, charger and lead, then flash full stock firmware with Odin.