yashsingh1/xdaforums huggingface dataset:
[Android Software Development] xboxfanj:
Nah N4 is 768x1280 and the find 5 is 1080x1920.

It's easiest if your device is closer. The Droid DNA, HTC Butterfly, Xperia Z, HTC one, HTC butterfly S, Optimus G Pro, and Galaxy S 4 are your best shots, as those are the right resolution.
[Android Software Development] :
so if i port from one of those, can i use a normal porting guide or only this one will work?
[Android Software Development] elkhshap:
how i can port xperia rom to tochwiz device

ineed to port xperia e dual rom to galaxy young dous s6312
[Android Software Development] Omar1c:
Do they have any similar specs and yes this guide should work for xperia

Sent From The Third Nexus
[Android Software Development] someone755:
Lol, find a Xperia phone with the same screen resolution, and try finding one with as similar as SoC as possible to your Young.

Then, follow this Guide :3
[Android Software Development] elkhshap:
what this is mean

follow this Guide :3
[Android Software Development] someone755:
What, I wasn't mean :c

Your question was

And I answered it by saying 'follow this Guide' . C:
[Android Software Development] elkhshap:
i know you say that but my question

what 3 is mean

are the guides have numbers 1 2 3 4 etc...

that is all and i fallow the guide by copy app media font and framework to base rom and copy the permission to it but not working

but i trying to install xperia e rom direct with out porting its run but with some bugs

screen lock and sdcard and cameria and brightness not working
[Android Software Development] xboxfanj:
Your best bet is always to take the proprietary binaries from the CM vendor git, then look at the device mk in the device sources (and common device sources) to see which files are built from source or are pulled straight from the device source. That works just about every time and is essentially a manual way of how CM builds.
[Android Software Development] MatthewWu:
So, is it the same way if i want to port CyanogenMod 10 into my phone (innos i6c)?
[Android Software Development] dany xe:
I always get a sector 7 error while flashing my proted rom, I was told it ws stg in the updater-script file in meta-inf, can anybody help pls?
[Android Software Development] qmobilea2:
Upload ur updater script here then I will edit it nd also give name of ur phone!
[Android Software Development] Arjav23:
Any help to get AvatarROM themes to work with ported Avatar ROM
[Android Software Development] dany xe:
htc sensation xe, im porting sense 5 from liberty rom for one s and myy base is cm 10
[Android Software Development] qmobilea2:
kindly check this nd if ui face again a status 7 error then report back here!
[Android Software Development] fandroid7:
I have a lava iris 504q smartphone with mediate mtk6589 soc

My phone's

Res.1280x720

Cpu.quad core cortex a7- 1.2 ghz

Gpu.sgx544mp

Can I port from

HTC one mini

1280x720

Snapdragon 400

Adreno graphics

Or galaxy s3

1280x720

Cortex a9

Mali graphics

Any phones do u guys know

Interested in sense 5, touchwiz ui , xperia
[Android Software Development] mervingeo:
should i merge?

dude so i should merge the folders right? as asked by windows explorer??
[Android Software Development] fandroid7:
Yes you should
[Android Software Development] rc420head:
Ok so port is going good. I ported sense 5 4.2.2 from one XL to one s. Only sang is in call sound doesn't play from headset speaker. Speakerphone works fine, headphones work fine but headset is no go. Any help would be greatly appreciated.

Sent from my HTC One S using Xparent Red Tapatalk 2
[Android Software Development] 441Excelsior:
can I use 7zip instead of winrar?

I want to port touchwiz to Huawei Mediapad (android 4.2.2, 1280x800, msm8260) what device should I port from?
[Android Software Development] someone755:
Basically the same thing, 7z and WinRAR. Extract and copy, it's that simple. (My recommendation is: don't extract and just work with the zips. That way, you won't have to sign the files again.)

Do we get a screen diagonal? I'm guessing it's probably not a 10-incher, so here's my best guess: The GNote 8.0. The same resolution and the screen size difference shouldn't bug too much. You can't miss. The chipset manufacturer thing might bug a bit, but that's what you should consider after getting it to boot (at least to unlock the screen).

(Is this the thing? http://www.gsmarena.com/huawei_mediapad-4264.php )
[Android Software Development] funbulton:
So the phone that I want to port from MUST have the same screen density and processor? I want to port a touchwiz ROM from galaxy s2 i9100 to my T-Mobile sgh-t989. Is this possible?
[Android Software Development] 441Excelsior:
yes it is that one but can I port it from Note 8 when mediapad does not have HW buttons and note 8 has them? and second problem is that system partition on mediapad is only 375MB, is there any way to decrease size of data partition and increase system? I need system partition at least 800MB for touchwiz roms
[Android Software Development] :
It is possible to port only sense framework?

I'd like to have the sense camera on cyanogemod.
[Android Software Development] someone755:
Lol, no. The framework is integrated into the ROM and you'd need a lot of knowledge to rewrite CM to integrate Sense FW into it.

Also, [MENTION=4629533]441Excelsior[/MENTION] you should check for that on your device forum, if it has one. If not, you're on your own.

Try throwing out some TW system cr*p, like sounds, boot animations, pictures and so forth.
[Android Software Development] funbulton:
for step 12, I don't have:

libtinyalsa.so

libpn544_fw.so

libSEC_OMX_Core.so

libOMX.SEC.***.Decoder.so

and I have a samsung device so do I need to copy all files with ril?
[Android Software Development] someone755:
ril is there for radio. don't copy it and none of your radio-y things will work (data, NFC, Bluetooth, WiFi, GPS etc.)

It's not device or oem dependent, every phone and tablet has ril libs.
[Android Software Development] Ghaster:
Could someone help me out? I am trying to port Sense 5 from the HTC One XL to the Nexus 4. I got a logcat but i am not 100% sure where the error is.

http://pastebin.com/bxtDVzLc
[Android Software Development] someone755:
E/Vold ( 155): Partition must either be 'auto' or 1 based index instead of 'emmc'

E/Vold ( 155): Syntax error on config line 28

W/InterfaceController( 157): Warning (Cannot load library: load_library(linker.cpp:771): library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library

Then you have a bunch of errors about CPU frequencies.

I bolded the ones I though important out. You have a syntax error somewhere and your partitions have errors.

Everything from here on is just my guesses, so they may or may not be correct!!

Check your mount points in the kernel ramdisk and the commands for them (like sometimes it's 753 instead of 755 as it should be, for example).

Also, you might be missing a lib file. Also also, every sensor on your system is failing :I

I'd say fix your ramdisk mounts commands and points first and see if it goes better. The file to edit is

init.rc

.

For example:

mkdir /cache 0770 system cache

This is where your kernel tells your phone how cache is mounted. If your numbers aren't the way the ROM expects them to be, it isn't going to boot.

Now what I recommend is looking in your HTC device's init.rc and try copying those numbers over.

And from my experience, you may need to add a few lines that I'm not sure about. In my case, this needed to be added (porting MIUI from the Galaxy Nexus to the Xperia S, I only did the kernel):

symlink /data/dalvik-cache /cache/dalvik-cache

EDIT: Found this, it may help: http://xiaomi.eu/community/threads/...definitive-faq-for-newest-miui-porting.21437/

Just random bits of knowledge, some of it may be useful...
[Android Software Development] Ghaster:
ok thanks for the help! i will try your suggestions :)

EDIT: Well the error is gone but still not booting.
[Android Software Development] someone755:
Lol I wouldn't rather. It's just my best guess.

Take note that I never really finished a port of anything (not even AOSP-based things).

Happy adventuring, then, traveler! And may be Nexus be with you!
[Android Software Development] xboxfanj:
You need your own sensors.qcom, mpdecision, and thermald in bin.
[Android Software Development] Ghaster:
Thanks someone755 and xboxfanj for the help, really appreciate your help :) However it's still stuck at the google logo. :(

Could the "E/kickstart-efsks( 821): File '/dev/ttyUSB0' was not found" and "E/kickstart-efsks( 821): ERROR: ks return code was 256, something failed" maybe has something to do with the problem? Or should i just ignore that?
[Android Software Development] xboxfanj:
You need the efsks and ks bins from your device.
[Android Software Development] Ghaster:
It keeps complaining about that ttyUSB0 :( Anything else i can do or should i try a diffrent HTC device?

EDIT: Think i fixed most of the sensors but still the /dev/ttyUSB0 error. Logcat: http://pastebin.com/616HZ8gH
[Android Software Development] someone755:
I still find it very weird that almost all your sensors are sending an error message...
[Android Software Development] Ghaster:
Tryed to port from the HTC Droid Dna this time. The error about ttyUSB0 is gone but it seems like that something is wrong with the ION

Maybe this is easier to fix? http://pastebin.com/NH2v3tjj
[Android Software Development] xboxfanj:
Replace the sensors files, mpdecision, qseecomd libqseecomapi, libacdbloader, libacdbdata if there. There should be some keymaster files in lib/hw and either etc/firmware or in vendor. Also, your camera is failing, so use your camera hw libs, chromatix libs, liboemcamera, libmmcamera, and bin/mm-qcamera files.
[Android Software Development] Ghaster:
Think i am pretty close to get to the bootanimation, however i am stuck at the sensors and camera (and wifi). Do all of those have to work before it starts up?

New logcat http://pastebin.com/b8GZLdZB
[Android Software Development] someone755:
They don't have to work, they just can't error out on you. :P

The point I'm making is, fool the system into believing that there's no errors and it'll boot (provided that the only errors are with the sensors).
[Android Software Development] Ghaster:
Well i disabled the sensors for now, since i just want it to boot. But i still have 1 error message left

"E/WifiUtil( 195): Change Intf0MacAddress=40B0FAC0D2BA"

Can't get that message removed, it has something to do with the macadress but why error out on a macadress :confused:

Looking around the system for a Wifi lib i can disable but it seems it doesn't exist :(
[Android Software Development] xboxfanj:
May need bin/macloader if that's there. Delete the init.d/placeholder and mm-qcamera-daemon for now. I think your sensors are fine actually.
[Android Software Development] Ghaster:
Still stuck with that error, macloader didn't exist. Tryed to delete the other files. But it's still stuck with that mac-adress :mad:
[Android Software Development] xboxfanj:
Didn't realize you have a Nexus 4. You need conn_init as well as the files in etc/wifi, etc/WCNSS files, and vendor/firmware.
[Android Software Development] kalel420:
sense 5 port issues

I got my port to boot my issues are sound not working, bluetooth not working and carrier services not working. any help would be great!

logcat

https://docs.google.com/file/d/0B74_UzSkPMCwX0ZPeUJzWUdDM1k/edit?usp=sharing

Thanks in advance.
[Android Software Development] jwtrockz1998:
Hi Guys

I am trying to port over touchwiz to HTC One from the Galaxy s4 stock rooted rom but I cant get it to install in any recovery to my phone and I have followed all of these steps. Is there something that I have to do or I have done wrong?

Thanks
[Android Software Development] :
Yes you didn't provide logcat ;) again its not 100% sure this will work you'll need to do more. Provide logcat so people can help

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

What rom are you trying to port. And carrier settings need all lib related files like ril files to get it work and some bin files as well
[Android Software Development] Slimegod:
Trying to port and its stuck on the boot animation. Can't provide a logcat cause its hung on waiting for device. I've did a logcat before so idk why its doing it. Anyway what seems to be the problem with it stuck on boot animation screen.
[Android Software Development] Gaurav007:
please help

I want to port sense 5 to my canvas HD so which device should I port from.

Htc one x or some other
[Android Software Development] Ghaster:
Still stuck with that "E/WifiUtil( 192): Change Intf0MacAddress=40B0FAC0D2BA" :(

Logcat: http://pastebin.com/hQW2thyQ
[Android Software Development] kalel420:
porting the zen5rom from the htc one s to htc one vx .I did change the ril files to the base ver. the file i can't find is apns-config.xml file in system/etc in either rom.
[Android Software Development] :
What are you using as base? Cm should have those files
[Android Software Development] jwtrockz1998:
Sorry real new to android development but its something that I would really like 2 do um how and where do I take the logcat?

Thanks
[Android Software Development] Faaiz Puthawala:
can any one give me suggestion for my a110 canvaas 2

which rom sholud i take.....i want htc sence

tried with htc one x but bootloop stuck at bootlogo n go to recovery

thanks in advance:good:
[Android Software Development] bbclo531:
Try porting sense from htc desire x:rolleyes:
[Android Software Development] kalel420:
The base is a stock htc sense 4+ rooted deodex on AT&T and the base is a custom htc one s rom sense 5 4.1.2 on vodafone uk. there is a cm10 rom for my device but its a alpha and lots of things dont work on it so thats why i did not use it as base.
[Android Software Development] MarioJerkovic:
Can someone help..

When i flash rom trough CWM i goet error status 7 some symlinks failed and i go to show log and there is failed to symlink /system/xbin/xargs to busybox: no such file or directory ???
[Android Software Development] someone755:
Did you port your /system/xbin folder?

If not, go do that. If yes, check again whether the file is there. If not, go add it.

If yes and the file IS there, I have no idea.
[Android Software Development] MarioJerkovic:
Yes i have ported the folder but there is no that file in the folder only in updater script

"/system/xbin/[COLOR="Red"]xargs[/COLOR]",
"/system/xbin/[COLOR="red"]xz[/COLOR]", "/system/xbin/[COLOR="red"]xzcat[/COLOR]", "/system/xbin/[COLOR="red"]yes[/COLOR]",
"/system/xbin/[COLOR="red"]zcat[/COLOR]");

The red ones are giveing error status 7 no such file or directory
[Android Software Development] jwtrockz1998:
hey guys I am getting Status 7 in CWM and I know how to fix but the error is there to stop from install another phones rom. I am porting over touchwiz to htc one and if I do bypass this error will I still beable to recover by going into recovery?
[Android Software Development] someone755:
[MENTION=5305005]jwtrockz1998[/MENTION]: Yes. As long as you don't flash a bad recovery/radio/bootloader image with the ROM, you'll be able to get into recovery.

If the other thing happens, i.e., you flash a bad radio/bootloader image, there is no help for you.
[Android Software Development] matrixzone:
Excellent
[Android Software Development] MarioJerkovic:
Hi all i managed to boot Rom but i have a problem.. I got Unknown baseband (no imei) and no service my Sim card is not recognized .. i tryed a lot of things but nothing helped... can someone please help me :)

Thanks
[Android Software Development] :
what rom did you use and did you transfered all libs for ril?
[Android Software Development] MarioJerkovic:
I have ported Xperia X10i 4.1.2 rom on Xperia Arc/S ...i have transfered all the lib that are writen in the thread ... But still no baseband and no service
[Android Software Development] MarioJerkovic:
Yes i did but the lib path's are all the same
[Android Software Development] MarioJerkovic:
Yes the base rom is CM 10 ;)
[Android Software Development] MarioJerkovic:
Yes Arc /S is supporetd by CM.. Ok will try ;)
[Android Software Development] MarioJerkovic:
Nop sony hase stopped supporting Xperia 2011 and lef us with 4.0.4
[Android Software Development] :
sorry to say but there can be more files related to ril that just those OP mentioned

also all bin files as well for lib :confused:
[Android Software Development] kylecore:
[MENTION=2623456]GalaxyUser[/MENTION]

Hello!

First off thank you very much for this guide, it is much more in depth then most of the ones I've come across however I am still having a small issue getting my port to boot and pulling a logcat from it.

Maybe you can take a look at the ROM i'm trying to port and help point me in the right direction.

From what I know the port ROM is based on samsungs TouchWIZ ROM and I am using a stock TouchWIZ ROM for my phone to do the port not to sure where else to go with it.

Thanks for reading, info below

Information about PORT rom

Link : ColorOS google translate page

ROM OS Version: 4.2.x Jelly Bean

ROM Kernel: Linux 3.4.x

Based On: ColorOS

Information About BASE rom

Link : 4.2.2 TouchWiz ROM

Region: RWC (Canada (Rogers))

PDA: I337MVLUAMG1

Android: 4.2.2
[Android Software Development] tOrNadO™:
Hi.. i am done following all the steps regarding replacing all the files in system.. Now i am stuck in a position where there is no boot.img for port ROM and i only have META-INF file in the port ROM.. I have boot.img and META-INF in my base ROM.. Should i just copy those 2 from Base to Port and create a zip..?? I don't have a boot.img in port ROM to decompile it and change init.rc files.. :confused:
[Android Software Development] someone755:
You need the boot image, unless you're porting an AOSP ROM.

If you're porting a themed/manufacturer one, you NEED it. Find one, a random one, in the device's developer forum for the corresponding Android version and Firmware.

No going around it, you need your ramdisk edited for it to boot. :I
[Android Software Development] Ashish_ex:
Help : Network Issue

Hii

i have been ported Huawei Ascend ics ROM for My Karbonn A15 but i have an issue of phone not capturing network signal,

so i got same os ROM for my device on other site but it catching signal for other service Provieder network but it gives an error for my service Provider network it dont give me permission To Call or connect net

When i check updater script of this Rom i found Following Thing

symlink("/sbin/ChinaUnicom10193.so", "/system/lib/libril-qc-1.so");

When i delet this line from updater script then this ROM gives me same network error as my ported Rom

So please help me to how to get rid of this Error
[Android Software Development] ChinmayKunkikar:
Hello! First of all Thanks to everyone in this thread for such awesome explainations which i will need in future.

I am porting Sense 4+ from Desire X to my Xperia sola.

And I have reached till BOOTCLASSPATH step.

I am sorry for being noobish, but i cant repack ramdisk and zImage back to boot.img or kernel.elf. I have been googling this from many hours, but no success. Please help!

Also [MENTION=4275152]someone755[/MENTION], is there any serious issue of resolution out there? You come from xperia family so asked!;)

Thanks again..:)
[Android Software Development] someone755:
Lel it's like I'm the only person that has time here :P

How did you get yer kernel apart? If you used 7z or the classic way that splits your bootimg, that won't work.

The Sola is a 2012 device, meaning you should be able to get things working with letama's thread here. It covers unpacking and repacking the boot image the correct way, so you should have a working kernel afterwards. Note the excessive use of the word 'should'.

If you can't, however, you're on your own. In that case, try looking through your device's development section, you're bound to find something about it.
[Android Software Development] vinayakagarwal1996:
stuck at boot logo tried to take logcat

oonly this line comes

Unable to open log device '/dev/log/main': No such file or directory

what to do?
[Android Software Development] ArjunrambZ:
Fc in ported rom?

after porting a rom ,audio is dead and gallery force closes when any video is played can you help me in solving it?:crying:
[Android Software Development] someone755:
Try getting a logcat and see if you can read any of it. If not, post it here, somebody's bound to help! :)
[Android Software Development] ArjunrambZ:
here are the logcats ,please do check and reply

View attachment galaryfc.txt

View attachment noaudio.txt

:confused::confused::confused:
[Android Software Development] someone755:
Lol, I said "somebody's bound to help"

I can read those and see your audio is failing and that you're seeing some FCs, but I have no idea how to fix that.

Sorry, but I'm of more help when it comes to Xperia kernel handling :I
[Android Software Development] xboxfanj:
What are your audio libs and etc files from?
[Android Software Development] someone755:
Okay, so I'm back at this again.

Finally fixed my kernel, so now I know it's not the kernel's fault the ROM isn't working.

So my port is off the AT&T HTC One X (Qualcomm S4 CPU). Sense 5, Android 4.2. My base is CM10.1. Did everything this tutorial says to, even the entire zip (unzipped) is smaller than my /system partition, so that's a plus.

But when I flash the darn thing, there's nothing. The kernel logo shows up and sits there, I can't even take a darn logcat... Then it reboots and does that over and over again...

Anyone got any clue on this? Should I replace the libaudioflinger thing again? :I
[Android Software Development] GalaxyUser:
I used it: http://xdaforums.com/showthread.php?t=2206536

Yes it's simple :)
[Android Software Development] chevanlol360:
what are the odds of somene bricking their device by switching the file/folder in the kernel from the port kernel to the base kernel?? Just wanna know if i just do that and recompile whats the chances of it bricking my phone? Thanks.
[Android Software Development] xboxfanj:
By the way, there are some proprietary binaries missing from the guide (just depending on the device, as it's impossible to include all), so what I recommend is if your device has official cm, go to github.com/themuppets, pick the repo corresponding to your manufacturer and branch corresponding to your android version and download it and copy the files in your device's folder to the ROM you are porting. Lib to lib, bin to bin, etc. You may also need to look at the Mk files in the cm device source for your device to see what is built from source that you'll need such as libs and bins. For example, if it has Product_packages += \

libwifi \

You would need to copy libwifi from cm.
[Android Software Development] GalaxyUser:
I don't know sorry :/

Be careful to what your are flashing

Thanks you for that =)
[Android Software Development] CNexus:
It won't brick your phone. It just won't boot into the OS, but recovery and such will still work

BTW OP, thank you so much for this guide :thumbup::thumbup:
[Android Software Development] xboxfanj:
No problem. Most devices sold now are Qualcomm and Tegra, which have a ton of blobs. One other thing I didn't mention in the post before. Look in boardconfig to see if common device repos are inherited, such as for the USA GS3, which has qcom-common d2-common msm8960-common.
[Android Software Development] Rittik:
Really Nice guide thanks for sharing (u kinda read out my secret porting methods :P)

Will try out sense later :) thanks.
[Android Software Development] Arjav23:
my base rom has zimage as kernel

how to decompile that?

EDIT: i just used zimage from base and not a thing from boot.img from port and logcat is here-->Log
[Android Software Development] CNexus:
Your rom doesn't have a ramdisk?
[Android Software Development] Arjav23:
i dunno

actually the Aosp that i am using is a cwm one.

there is an odin one too but that has everything in .tar

so the cwm one only has ------ system,

META-INF

Zimage
[Android Software Development] xboxfanj:
Repack-zimage.sh

Google it. I've used it before and it works.