yashsingh1/xdaforums huggingface dataset:
[Android Software Development] makross2:
hello everyone, i'm having problems porting the kernel from one boot.img to another boot.img, the reason is the original kernel has the wifi drivers for the device but when porting the kernel to another boot.img it won't boot, any sugestion? i'm eating bricks right know, thanks in advance.
[Android Software Development] Chris_M.:
Hi all,

I have been tasked with researching and modifying a ROM for an MTK phone (actually its a watch, but its basically a phone). I created a new thread in the assist sub-forum (https://xdaforums.com/general/xda-assist/android-rom-modification-help-t3536646) and was redirected here.

I have the complete source of the ROM and I'm compiling it myself, so I should be able to change pretty much everything, as long as I figure out how to. Basically I am trying to understand how it all works, one simple task at a time, so not to get drowned before I even learn how to swim. :)

Right now I'm trying to flip the camera image upside-down, the current CameraInfo.orientation is set to 90, so I want to make it 270. You can see where I was at in the other thread. Since then I think I found out where the camera devices are being added to the list - ../mediatek/hardware/camera/common/camutils/CamDevMetaInfo.cpp :

void
add(
int32_t const i4OpenId,
camera_info const& rCameraInfo,
int32_t const i4DevSetupOrientation,
int32_t const i4DevId,
int32_t const i4HalSensorDev
)
{
CamDevMetaInfo info;
info.m_cameraInfo = rCameraInfo;
info.m_i4DevSetupOrientation = i4DevSetupOrientation;
info.m_i4DevId = i4DevId;
info.m_i4HalSensorDev = i4HalSensorDev;
//
{
RWLock::AutoWLock _l(gRWLock);
gvCamDevMetaInfo.add(i4OpenId, info);
}
MY_LOGD("pid/tid=%d/%d size:%d, OpenId:%d", ::getpid(), ::gettid(), gvCamDevMetaInfo.size(), i4OpenId);

But I can't find where this is being used, where exactly is the CameraInfo being setup initially.

Please help!

Edit: Just to share - in the end I found that all the camera settings are in ../mediatek/custom/mt6572/hal/imgsensor/src/cfg_setting_imgsensor.cpp
[Android Software Development] zenowaren:
Hi, i ported CM12.1 for my device. It is MT6582 3.4.67 kernel.

Everything is working except Sim contacts not showing up and on sim card option it says CARD 1 "No Number Assigned"

"Settings > About Phone > Status > SIM Status > My Phone Number" is empty.

I have network, i can make and receive calls. It is not imei related.
[Android Software Development] Keyvannn:
Can i port cm11 for jellybean device?

My device= feiteng h9500 mtk6582

Cm11 from micromax a120 with same hardware
[Android Software Development] stentmartin:
How To Port & Modify Roms For Mediatek

Hi, your guide is the closest I have found to solve my problem. However I have used more tha 2 weeks with your

1-Min guide without success and need some help.

Problems:

1. I have an unbranded Chinese MT6589

2. I have no Stock ROM

3. I have no google play

4. I have no boot.img

5. APK tools does not work

6. MTK Droid Tools does not work

7. I am not a hacker or Moder, I am a normal user and I have ads and Trojan virus making my phone useless.

Progress so far:

1. ROM Manager (CWM) works

2. Cygwin and kitchen works

3. Notepad++ works

4. Titanium & TWRP Manager works

5. My phone is rooted

6. VNC Server & Terminal Emulator works

7. I have extracted room.img to SD Card

8. I have copies tar.system to SD Card

9. I have downloaded MIUI v4.8.27 Custom ROM zip to my PC

10. I can connect my PC and my Android phone over USB or WiFi

My problem is:

1. I don't know how to set up Notepad++ to edit and copy/delete my my ROM files - modify my Custom ROM with my Stock ROM..

2. I don't know how to use Cygwin to modify my ROM?

Please advise

Thanks

stentmartin
[Android Software Development] ducthangbk:
Helppp me Fix OTG

Please help me

I have rom for MTK chip 6580, but it have some problem with OTG connect

When I turn on my tablet, I used OTG cab nomal, and then I turn off tablet, and turn on ( I dont pull off this OTG cab ). It don't auto connect OTG. I have to pull off cab and put on/

So, can you tell me where can I edit OTG setting on my ROM.:crying::crying::crying:
[Android Software Development] greatpapa:
BEst guide from beast

Thanks for your Ultimate and beautiful detailed guide.....I also ported more than 15 custom roms with help of this guide.:good::good::good:
[Android Software Development] BB23482:
How can i overclocked my custom kernel?
[Android Software Development] christo bbw:
How to solve

WARNING NO FILE CONTEXS
[Android Software Development] Sal_X9:
Can I Port a rom of nougat 7.1 to a device running lollipop 5.0? I have both base and Port rooms with Same kernel version (3.10.54+)

Currently my device Doesn't have any custom kernel...
[Android Software Development] rauliordache:
Hi.

I have two OFFICIAL builds for my device:

- the first one, 3.10.65+ kernel, with Lollipop 5.1 and

- the second one, 3.18.35+ kernel, with Nougat 7.0

1. The first build, has the bootloader locked, and in FastBoot, the volume-UP button doesn't work (for confirming the fastboot oem unlock)

2. The second build can be unlocked (the bootloader) - and thus custom ROMs can be booted.

I want to port some ROMs with 3.10.65+ (because all ROMs with 3.18.35+ have some problems on my device).

I have changed the partition layout, and TWRP works great in flashing the new build (3.10.65+), but I got a bootloop.

Porting ROMs with the same kernel (3.18.35+) works "great", but have several bugs (related to vendor libs, GPS libs, and maybe even kernel). As the original ROM (it also has those problems)

Porting ROMs with the 3.10.65+, even after changing the fstab, kernel (from boot.img) + partition layouts, cannot be booted.

The question is: Is it possible to have the second build flashed (which has another preloader + lk.bin) from 3.18.35+ - whos bootloader can be unlocked - , and then, using the files from the first build to port a ROM with kernel 3.10.65+ ? Or I am trying the "impossible" ?

In fact, I am not mixing "kernels" regarding boot.img. I am "mixing" a preloader+lk.bin (from a build, which runs Nougat, on 3.18.35+ kernel and with different partition names) with boot.img+system (based on 3.10.65+)

Thank you!
[Android Software Development] alexsirb:
I've been quoted but i never wrote that :)) Thread is really scrambled.
[Android Software Development] Sands207:
never wrote what?
[Android Software Development] Munk.3:
I've always seen porting threads but is It possible to port a system.IMG from actual stock firmware from manufacture?

(You know, the sp flash tools img.s)

I've always tried but always failed.
[Android Software Development] sawankumar2012:
I wasn't tried this step till now but i tried to replace the boot image of port roms with ur roms boot image for mmx a110Q.... is that right ?
[Android Software Development] digyvijaykumar123:
PM me your issues,i reply every messages........do not post not booting errors....ask here only if you successfully booted the ROM and then

you are finding any problem.. or if you have any suggestions regarding thread,,,,,keep thread cleaned.
[Android Software Development] HridayHS:
It is necessary to use ported apps
[Android Software Development] digyvijaykumar123:
No.. It's your choice..
[Android Software Development] HridayHS:
So I Want Ask

If I Want To Port Galaxy Grand Duos Rom For Canvas 2 Plus A110Q So I want Grand duos stock rom and mmx c2+ stock rom...??
[Android Software Development] digyvijaykumar123:
You can only port same chip-set device's rom.Like MTK6589(M/T) to MTK6589(M/T).Some roms from 6582 and 6577 can also be ported to 6589 but you cannot port snapdragon to MTK....hopes it will clear all
[Android Software Development] HridayHS:
Kk

---------- Post added at 10:32 PM ---------- Previous post was at 10:22 PM ----------

Last Time...

How to make rom pre-rooted
[Android Software Development] digyvijaykumar123:
Put su binary under xbin and add superuser apk under app.... But you can easily perform these tasks from kitchen like rooting, busybox, init.d support etc.
[Android Software Development] HridayHS:
Any Guide For Making Themed Rom...???
[Android Software Development] xyberboy20:
Need Help

Hi Good Day Sir, is there any other way to fix the camera?..cuz i tried already your guide to fix the camera but still no luck..but there is one thing that i was confuse, id xtract the stock boot.img and port boot.img and compare the init.projec.rc between the stock and port, my stock there is no camera permission line but the port boot.img it does..what should i do?..i really need your help sir..thank in advance..sorry for my bad emglish..
[Android Software Development] KunalKene1797:
Can We Port...

Can we Port CM11 Kitkat to Jellybean Device (MT6572 4.2.2)?:confused:
[Android Software Development] avi3230:
Very nice thread with must know guides.

Any guide on making both sims 3g.

hoe to Port 6592 kitkat rom to 6589 kitkat?

Thanks in advance.
[Android Software Development] digyvijaykumar123:
There is not a specific guide for making themed rom.

Making themed rom is just decompiling framework,systemUI,settings apk etc and putting modded codes and drawable images.yOU CAN find such stuffs on xda...also you need your own photoshop or GIMP skill to edit images....

Best of luck

Then your stock rom camera permissions line are located under init.rc....

can you upload here stock & port both- init.rc and init.project.rc then i will fix it and explain you...
[Android Software Development] digyvijaykumar123:
First thing you will need a custom kernel with binder.c patch o boot Kitkat OS,,

but i am afraid CM11 or kitkat is very much difficult to port as there are no mtk devices other than 6589 have CM11... and there are lots of difference in 6572 and 6589...

But if your device have kernel source then you can try to compile CM11 but it will require lots of patching to make it functional...

You can take help from [MENTION=1856555]drshad[/MENTION]ow [MENTION=361777]chrmhoffmann[/MENTION] and CM11 6589 thread for compiling and patching related helps if you are wish

Good luck

Currently i do not have idea about porting 6589 from 6592 as i do not own mtk device any more...
[Android Software Development] KunalKene1797:
What about your own...

What about CM10.2 JB 4.3 The Rom...Can i Port This to My Phone Using Your Method? :confused:
[Android Software Development] xyberboy20:
Then your stock rom camera permissions line are located under init.rc....

can you upload here stock & port both- init.rc and init.project.rc then i will fix it and explain you...[/QUOTE]

Hope u can help me with this..
[Android Software Development] JoseRebelo:
My phone (iNew V3) is currently running 4.2.2, but there is an official 4.4.2 release. The problem is, the lk.bin in the new rom doesn't seem to have the display drivers for all the models.

Would it be possible to use the display drivers from my current rom into the new one? I'm not sure if this is the best place to ask, but I'm not finding anything else.
[Android Software Development] digyvijaykumar123:
I used IK.bin of jelly bean which was provided by manufacturer on CM 11 4.4.2/4.4.3/4.4.4 and nothing went wrong. IK.bin also known as uboot.bin.

You can also try it but keep backup and stock ROM with sp tools in case of any risk...
[Android Software Development] JoseRebelo:
It seems the device get's stuck in the iNew logo when we do that..
[Android Software Development] knightzero07:
Thanks :) I successfully ported 2 roms using this guide. Doesn't need to change a lot in the port rom since they are almost the same with my stock. I have a problem though. For the second port. It is a note 3 rom. I got it here [port rom]

Brightness isn't working. I cant change brightness even when using brightness apps from playstore. And whenever the screen goes off, if I turn it back on, its all black. Seems like brightness has gone down to 0. How can I fix this? TIA :good:
[Android Software Development] xyberboy20:
Help!! how to fix auto rotation and proximity sensor

Hi good day sir, need help here..do u have any idea how to fix auto rotation and proximity sensor?..thank you and advance..
[Android Software Development] Emileh:
Dear all,

I am trying to port an mt6572 rom to my mt6572 device, but CMW gives me Error 0 when trying to flash

I know it has to do with updater-script, but I can't figure out what's wrong, I followed the entire tutorial and it all seems to go right

Can anyone help me?

Thank you in advance, also for this amazing guide

Best,

//EDIT: NEVERMIND, THE FILE WAS NAMED WRONG
[Android Software Development] Emileh:
Sorry guys, I do have one question

My roms from android kitchen don't seem to boot. I suppose the problem lies in the registered device file. Can someone help me what it should look like? Right now I have this:

Thank you in advance.

Recovery.fstab:
[Android Software Development] DevendraMilmile121:
This error come in updater script change updater script from any another rom

---------- Post added at 03:49 PM ---------- Previous post was at 03:46 PM ----------

I don't remember files but I put some file from hw or lib folder
[Android Software Development] Emileh:
Yep I got it to flash in CWM just fine now :)

Can you help me with my question above tho?

Thank you!
[Android Software Development] xyberboy20:
auto rotation was fix but the proximity sensor during calls still persist..
[Android Software Development] digyvijaykumar123:
Flash uboot.bin/ik.bin from stock rom to solve this deep sleep and brightness error.

You can use SP TOOLS method by loading scatter of stock and unticking all except uboot.bin/ik.bin...

or flash by CWM using below script-

package_extract_file("uboot.bin", "/dev/uboot");

Good luck
[Android Software Development] digyvijaykumar123:
Replace whole HW and MODULES and VENDOR folder from stock rom...

Do you still require kitchen file or your issue solved?
[Android Software Development] Emileh:
I am now having this problem posted here:

http://xdaforums.com/android/help/chinese-phone-flash-cwm-error-writing-t2860964

But I would understand it if you can't help me with that :)
[Android Software Development] knightzero07:
I'll try it by tomorrow. btw, what's in uboot.bin/lk.bin? Will it change when I flash only the system folder of the port rom?
[Android Software Development] robin-sips:
Ported my rom with great succes, only 1 problem left, usb connection with pc works, but doenst opens my sdcard.

So adb etc is working perfectly, only SD card wont open when i touch mount usb storage.

any Idea's?

Thanks
[Android Software Development] knightzero07:
[MENTION=5561524]digyvijaykumar123[/MENTION] Flashing uboot.bin didn't fix my problem. It's because I didn't change uboot.bin

Any idea? I was thinking that it is in framework specially in some jars holding the Power Manager and Brightness.
[Android Software Development] digyvijaykumar123:
Use init.usb.rc from stock ramdisk.Maybe it solves the issue.

You are right.

I am not sure for this fix but try this- http://xdaforums.com/showpost.php?p=53023140

Good luck
[Android Software Development] knightzero07:
Checked the arrays.xml, values are already there. I also compared it to stock and its the same.
[Android Software Development] knightzero07:
I'll try patching framework jars with stock. I scanned through port's services.jar, noticed that it uses different method in autobrightness.
[Android Software Development] robin-sips:
K thanks digyvijaykumar123, you pointed me in the right direction, but the problem was the init.rc, not the init.usb.rc, dunno wich caused the errors, i just replaced it with another one from my stock rom.

Found a few more bugs after using my phone today at my work. Sensor of phone is not working right, when close to my ear, it goes black very slowly, and after releasing from my ear, screen stays black, doesn't turn back on.

Also have this ringtone delay, like my bluetooth already rings for incoming call, but ringtone comes 2 sec's after.

I love this porting, but i need moor info on these kind of error's ;) i'll keep you guys posted if i found the solution.

Also camera is beter after editing init.rc, there is allot of info inside this file. Controlling allot of things of the mediatek chip i think.

edit: already changed hw/modules/vendor files, nothing changed, damn, these are my last 2 error's i ned to fix to get a stable build :S
[Android Software Development] knightzero07:
I still cant get rid of the bug >_< Tried to look at logcat when changing brightness.

I always get this error

While checking on PowerManagerService, they seem to be working fine.

Must be somewhere in the lib files but I dont know which one. Be working on it again.

I'll be posting my logcat <HERE>. I hope somebody could try to find a fix on this. Though I got problem getting much info on logcat with this rom. keep getting this when idle.
[Android Software Development] robin-sips:
found the solution, problem was de lib folder, replacing with my stock lib files did'nt work, because i'm going from MIUI to AOSP, so needed lib files from an working Aosp rom, did this, after this i could start building again, but this time with every sensor working ;)
[Android Software Development] govind.madhu93:
Port

My friend ported hdc galaxy s5 rom to micromax canvas gold. Both have Mt6592 processor and FHD screen, 2gb ram etc.. He says when he is using stock libraries, he is getting reboots a few seconds after booting and if he uses hdc libraries he is getting messaging and system ui force close. Any solution to this ?
[Android Software Development] Geo Baby:
Bro

I ported aosp kk ROM to my device using your guide. Thanks to you. All working perfectly. Except camera autofocus. How will I fix that

I replaced

libcamdrv.so

libcameraservice.so

libcamalgo.so

libmhalImageCodec.so

libcamera_client.so

libcameracustom.so

libcameracustom.so

etc etc

i think almost all cam lib files

even i replaced kernel with stock kernel

still no autofocus

in camera the box for autofocus is appearing and when i touch the screen to autofocus it just enlarges as it is going to autofocus but nothing happening

my phone is gionee M2 kitkat 4.4.2

MT6582 ,1 GB ram,8mp camera

port device has same specs

please guide me

iam attaching my catlog apps file when i try to use camera autofocus.
[Android Software Development] knightzero07:
[MENTION=5561524]digyvijaykumar123[/MENTION]

How do you switch the internal storage and external sdcard in Chinese roms?

I checked the vold.fstab and they are in the same mount points as to my stock but whenever I run the rom, they are switched as to the mount points (sdcard0 <=> sdcard1) but the stock file manager and storage settings shows that they are in the right mount points. And as to 3rd party file managers, they are switched. I tried switching them in vold.fstab. It worked but I get bugs on mtp. It shows multiple sdcard mounted and no internal storage.

Also, particularly on BaiduOS, it's internal storage is "emulated." And when I change rom, the files in the internal storage are gone and they are all in a single img file.
[Android Software Development] HridayHS:
Can anybody solve my problem.

Plz see my screenshot

When type cd kitchen its load successfully.

But when I am type ./menu its show error.

Error: The folder name "/home/Hriday Sharma/kitchen" contains the space character.

This will cause problem with kitchen functionality and ths os.

For example: /home/kitchen

Plz help me how ro setup kitchen.
[Android Software Development] HridayHS:
I have found the solution.
[Android Software Development] maxritz:
HELP with KDZ. the LG stylus KDZ cannot be extracted

HI Guys,

I finally was able to download the

Code:

LG D690

KDZ file for the

Code:

LG stylus

. I wanted to extract this to system image files so that I can port this.

I tried the existing KDZ extractors out here and it seems that the file is using a different compression method. Even LG flash program that was utilized for my P765 didn't work. It will be great if someone can help.

File Name:

Code:

D69010c_00.kdz

.

One of the tools made a CAB out of it and it was the exact same size so I think that just got renamed as the dz extractor didn't work either.

Please help. I want to port the LG ROM to the Q1010i and other

Code:

MTK6582

devices. Thank you
[Android Software Development] lildhiel08:
help ,.Playstore no connection problem

plls some one help me ? i try my first time port and its success to boot up ,.but one thing i found a bug is the playstore ,..even im connected to wifi uts always say no connection ?? i check the host in system but still no luck ?? pllss some one help me ? tnx !
[Android Software Development] HridayHS:
Just Flash this - Link
[Android Software Development] laciegy:
I have a zte blade 3 and my phone kernel useing pmem and i ported a rom from samsung galaxy s and its not boot up its just booting up but the android never load up is it because the kernel or i did something wrong?
[Android Software Development] laciegy:
Sorry wrong thread
[Android Software Development] Papdya:
I have ported roms with the same version but failed to port higher.. U mentioned we need a custom kernel... Lets say i want to build a kernel.. What all do i hav to do to make sure that it will support kitkat? My device is micromax canvas a88.. Our community doesnt hav a custom kernel cause we dont have a lot of developers... I might make one some day... So which tutorial should i follow? Can u plz guide me?
[Android Software Development] androfun:
Need help to write updater script automatically

Hi [MENTION=5561524]digyvijaykumar123[/MENTION] ,

I can't write updater script pease help me.

I am using Carliv Touch Recovery v2.4 I hope that is not a problem.

My phone is ALCATEL ONE TOUCH POP C7(7041D)

Thanks.
[Android Software Development] HridayHS:
Wait I will do for you.
[Android Software Development] androfun:
ok thanks in advance [MENTION=5561524]digyvijaykumar123[/MENTION]
[Android Software Development] ace05gerald:
Help

Can i just flash stock rom of xolo 8x-1000 to my cherry mobile excalibur?they almost have same specs, same design the only difference is the ram which my cherry mobile is only 1gb and the xolo 8x-1000 is 2gb.
[Android Software Development] HridayHS:
No,you cannot flash stock rom or custom rom of other phone but you can port custom rom and than flash but you cannot port stock rom.

Hope you understand!
[Android Software Development] delirio71:
help

sorry for the trouble, I have a 4.4.2 rom for star G9000 with missing drivers for my camera ov8865 how can I add them to the rom?
[Android Software Development] lildhiel08:
FOrce close apps in playstore and built in apps

plss help me,.. when i download app in playstore it alway force close,..and someyimes my built in apss it force close after i port ?? plls help :( tnx
[Android Software Development] HridayHS:
Download the latest Play store and its services or you can replace play store and its services from the stock rom and You have find which app is force closing and replace its apks from stock rom..!!

Hope its works!!!
[Android Software Development] lildhiel08:
tnx for info man ,.. i try later ,.. and sometime when i download apps in playstore like mxplayer and root browser when i open the apps its force close ?? maybe in the lib folder form stock to port?
[Android Software Development] androfun:
waiting ....:D
[Android Software Development] HridayHS:
I will not doing this work plz dont waste your time my pc is not working hard disk crash so plz do it your own
[Android Software Development] ejtun:
API level is 17 to 4.2 I can't deodex more than twenty files,how to solve this?
[Android Software Development] lildhiel08:
somebody help me with my problem? i port emui 3.0 to mt6582 but my settings is force close?? pls help me.. tnx
[Android Software Development] nickmok:
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 Software Development] AmINoS007:
thank you for this awesome guide !!!

please I need help i've ported a miui rom , when i call somebody i do not hear any thing please help !!!! :crying: