yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] dtbinh:
I'm porting from HTC Ville to Sensation XE, my device stucks at HTC logo.

Could anyone help me pls?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Logcat.
[Android Software/Hacking General [Developers Only]] dtbinh:
I'm sorry!

Could you give link to download logcat pls?

I've never used it before.
[Android Software/Hacking General [Developers Only]] xboxfanj:
http://xdaforums.com/showthread.php?t=1450553
[Android Software/Hacking General [Developers Only]] dtbinh:
Here is my logcat:

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

/sbin/sh: exec: line 1: logcat: not found

Pls help me on it!
[Android Software/Hacking General [Developers Only]] jmz:
You either have, sh and sh0 in bin or you have conflicting sh or sh0 with kernel. Whatever your device Rom had, sh or sh0 put that in your ported Rom and delete the other
[Android Software/Hacking General [Developers Only]] dtbinh:
I've checked BIN folder and all other ones, can't find sh or sh0 in my ROM.
[Android Software/Hacking General [Developers Only]] jmz:
Wait. Are you doing ics, jb, or gb
[Android Software/Hacking General [Developers Only]] dtbinh:
I'm doing ICS.

I'm porting HTC One S (RUU_Ville_ICS_2.21.401.10) to my Sensation XE.
[Android Software/Hacking General [Developers Only]] jmz:
Then pull logcat from bin from your Rom to the port
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
if the device is non-sense device, but we already have a full working sense port, would this above work?
[Android Software/Hacking General [Developers Only]] farzad.u235:
I have ported sense 2.1 to my gio but when I change the board name it gets bootloop lol.if anybody got my problem try to keep sense device borad name.

Also we should extract sense boot.img and replace the zimage and edit init.rc.these are not included in the guide .why?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Because this is for htc devices.
[Android Software/Hacking General [Developers Only]] zyberkiddy:
gb to ics?

does this work when porting ICS sense 4 to GB sense 3.5? I think the kernel and libs for ICS is diff from GB, so copy paste works? I want to port sense 4 from HTC Desire C(golf) to HTC Explorer (pico)..
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
That won't work, because the Android frameworks are different.

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

Current Device: HTC EVO 4G LTE | ROM: toasted-deck CM10 | Kernel: Stock
[Android Software/Hacking General [Developers Only]] Sherlocks:
Did you solve problem.

i have same problem.

can you help me?
[Android Software/Hacking General [Developers Only]] Pator57:
Could somoene pliz upload those 3 folder that miss in all the rom that i found:

SND3254

SH

RMT_STORAGE
[Android Software/Hacking General [Developers Only]] xboxfanj:
You need to add xbin/busybox
[Android Software/Hacking General [Developers Only]] Balino:
any way of porting sense 3.6 (desire s) rom to Desire? if yes what should I use as base rom?

Thanks...
[Android Software/Hacking General [Developers Only]] xboxfanj:
I guess CM9 unless you have an ICS sense build for your device.
[Android Software/Hacking General [Developers Only]] elartista3390:
fail mannn!!!!!!
[Android Software/Hacking General [Developers Only]] elartista3390:
im tried port desire rom to nexus one but dont boot
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
It's the kernels fault
[Android Software/Hacking General [Developers Only]] xboxfanj:
Did you modify the init.rc?
[Android Software/Hacking General [Developers Only]] elartista3390:
how to modify the init.rc???thanks for your help!

---------- Post added at 07:47 PM ---------- Previous post was at 06:48 PM ----------

this rom is here http://xdaforums.com/showthread.php?t=1322921 but it port boot but the boot reset all time:confused:
[Android Software/Hacking General [Developers Only]] xboxfanj:
Unpack both of the boot.imgs (from your device and where you are porting from) with dsixda kitchen and in the boot.img-ramdisk folder, there will be init.rc. open from both devices with a text editor (I like NotePad++ on Windows and gedit on linux). Then, find the line at the beginning that says export bootclasspath followed by a bunch of framework files and copy it from sense 3 (what you are porting) to the file of your device. Then repack and try again. Export bootclasspath tells your device which frameworks to load, so since those have changed between 2 and 3, you need to have it load some additional files.
[Android Software/Hacking General [Developers Only]] Curiousn00b:
I did this to port a HTC Sense 4.0 rom to a Sense 4.0 device. I'm having the following problem.

Wifi does NOT work. It hangs on Turning on making the rom run like sht till it stops turning on.

Anyone have and ideas?
[Android Software/Hacking General [Developers Only]] fshami:
Had the same issue, compare build.props
[Android Software/Hacking General [Developers Only]] qureshi909:
here is my logcat can any body help me that whats the error.i m porting one s stock rom to desire x:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(

http://depositfiles.com/files/r6mbjpvlc
[Android Software/Hacking General [Developers Only]] Djmk4:
hello guys..can i port a rom from sensation to rezound with that way?for example the viper rom 1.41 from sensation can i port to rezound?
[Android Software/Hacking General [Developers Only]] DEFINITIONOFREAL:
I have been working on a port and it boots all the way, but only the screens backlight come on. Any help would be greatly appreciated. I can post log cat when I get home if needed.
[Android Software/Hacking General [Developers Only]] Curiousn00b:
Ok. If this helps at all, JMZTaylor told me to replace Calibration in the rom, and it worked.

I find this porting method though not always working. Sometimes rom won't even get to boot animation. Or it boots, but it's badly slow due to parts of the rom. People who port Sense roms, I ask them for a Sense Guide that they use, and they get complicated, then disappear for a couple days.

Calibration is in System/etc/
[Android Software/Hacking General [Developers Only]] Falseclock:
I did not understand 1st post. It confusing with using word TARGET for both firmware and device.

Let's clarify which one is

source

and which one is

target

SOURCE: firmware with sense which we are want to port and use on target device.

TARGET: device where new sense going to be installed and used

do I understand right following steps?

1. replace on TARGET listed SYSTEM/ETC files/folders taken from SOURCE

2. replace on TARGET listed SYSTEM/BIN files/folders taken from SOURCE

3. replace on TARGET listed SYSTEM/LIB files/folders taken from SOURCE

4. Take boot.img from SOURCE and load to TARGET (I hope load through CWM update script)

5. replace on TARGET listed SYSTEM/LIB files taken from SOURCE

6. update BUILD.PROP file

First question about boot.img. As you know, this file contains kernel and ram. What should I do with init.rc script?

For example SOURCE init.rc contains some jar files in BOOTSTRAP string which are not exist in TARGET system/firmware folder. What should I do?

Second question. Which BUILD.PROP file should be used? Take SOURCE and replace some values from TARGET or keep TARGET's but change required strings taken from SOURCE?

Third question: in which cases I have to replace fusion.jar file?

I tried different scenarios during last 3 days with porting Sense from different firmwares with minor releases of the same model but this method does not work for me, phone do not want to boot even to start-up animation.

May be I do not understand something in guide?
[Android Software/Hacking General [Developers Only]] xboxfanj:
You definitely need the boot.img for your device.
[Android Software/Hacking General [Developers Only]] Falseclock:
if so, then what does this mean? Where to put?
[Android Software/Hacking General [Developers Only]] xboxfanj:
That means add the boot.img from your device to the rom you are porting. Perhaps you are doing this backwards. Throughout this method, you will be adding files from your device into the rom you want to port.
[Android Software/Hacking General [Developers Only]] impactor:
Is the method described in the first post still valid for Sense 4.1 roms?
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

You can try...
[Android Software/Hacking General [Developers Only]] IndianKarmas:
HTC mytouch 4g

Hi

I am trying to port a sense rom (preferably JB) for myTouch 4g. could anyone please let me know which device would be most compatible for porting to HTC myTouch. It is my first time trying to port so any guidance as to which device(s) would require least manipulation (as in no resizing or if rsizing which guide to use). I tried searching on google but could not get a clear answer so would be thankful for any expert guidance.

Thanks
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

Either desire HD or HTC One V or HTC Nexus One

Sent from my Desire HD
[Android Software/Hacking General [Developers Only]] IndianKarmas:
Thank you for the info DarkKnight....is there any resizing of any sorts involved?? Would the steps in this guide (1st post by OP) be the only ones I need to follow? or do I have make some other changes?

Thanks again :)
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

All the devices I mentioned have the same resolution as the my touch 4g

No resizing

Sent from my Desire HD
[Android Software/Hacking General [Developers Only]] IndianKarmas:
Thank you....will give it a go soon :)

Anything u recommend as far as caution or missing step(s) in first post? :)
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

I wish you the best of luck

Sent from my Desire HD
[Android Software/Hacking General [Developers Only]] herthi:
does this work with sense 4.1?

E.: seems not to work, stucks in bootanimation
[Android Software/Hacking General [Developers Only]] krishna.kowshik:
JELLYBEAN from ONE X to DESIRE X

Hello,

Is it possible to port Jellybean from HTC ONE X to HTC Desire X ?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

The resolution would be off and it would have a lot of bugs due to the fact that tegra is interwoven into the libraries.
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

Maybe he meant One XL(snap dragon version)

Sent from my Desire HD
[Android Software/Hacking General [Developers Only]] xboxfanj:
True, that's possible.
[Android Software/Hacking General [Developers Only]] krishna.kowshik:
I just want to port Jellybean to HTC DESIRE X as there is no Jellybean based rom for HTC DESIRE X..Please help me..i'm good at programming. Just give me something to start.
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Port from here

http://xdaforums.com/showthread.php?t=1910738

Use a cm10 boot IMG with sense ramdisk. Then copy over your proprietary files.
[Android Software/Hacking General [Developers Only]] krishna.kowshik:
can u please explain..
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Sure. Unpack the boot.IMG for your device's cm10 and the one s ROM above. Open up both init.rc files, then copy the line with export bootclasspath and the framework links from one s to your cm. Then repack and put your new boot image in the one s ROM. Then, copy over all device specific files for your ROM such as Qualcomm files and egl and ril. Then modify updater script and build prop to fit your device.
[Android Software/Hacking General [Developers Only]] krishna.kowshik:
There is no CM10 for my device ..My device is HTC DESIRE X
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Re: [DEV][SENSE] Porting sense to other sense devices

It might be extremely hard

Sent from my Desire HD
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

They may be able to run a one su ROM since that device is mostly the same
[Android Software/Hacking General [Developers Only]] grengo:
Everything works fine except WiFi and hotspot any idea how to fix them
[Android Software/Hacking General [Developers Only]] krishna.kowshik:
port

can this be used to port sense 5 to ics(htc desire x)
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

No. Always port from the same os
[Android Software/Hacking General [Developers Only]] jimmy16:
Can i port a htc one s s4 to htc one s s3 rom with thia method?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Yes.
[Android Software/Hacking General [Developers Only]] jimmy16:
I want to port this rom http://xdaforums.com/showthread.php?t=1850917 or other one based on jb, with their permision, i want to know if someone knows if is something more to do in order to work all tweaks or custom kernels.
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

You're fine with using the method. Most of the tweaks are in system not kernel.
[Android Software/Hacking General [Developers Only]] Anatoxy:
I've tried to use this method fro one of JB rom's OneS(s4) --> OneS(s3) (for training purpose), but unfortunately it doesn't work for me. Stacks on the first HTC logo on a white background.

Any solution?

Thanks in advance.
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Logcat
[Android Software/Hacking General [Developers Only]] mattlowry:
Re: [DEV][SENSE] Porting sense to other sense devices

Is it better to use a cm rom as base or a sense rom already built for my phone?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Depends on how working it is and if it is the right android version.
[Android Software/Hacking General [Developers Only]] Anatoxy:
Man, help me please, how can i take this bloody LOGCAT when my test ported rom isn't starting? It stuck on the first boot screen (with red htc's notification bellow). Looks like even android is not starting.

ADB doesn't list the device. Is there any other way to get it? From recovery?

P.S. While going through your step-by-step guide I couldn't find this files in my base rom:

/system/bin

AKMD

SND3254

SH

/system/libs

libsurfaceflinger_client.so

libreference-ril.so

libvomemedia.so

libreference-ril.so

could they have any alternative name?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Those libs are in system/lib. You can get to adb in recovery, but it won't help you. Are the files you moved from the right android version?
[Android Software/Hacking General [Developers Only]] Anatoxy:
Yeap, I have found and moved/replaced all other files mentioned in your guide except the once I have listed above. I checked the system/lib billion times... they are not there.
[Android Software/Hacking General [Developers Only]] jimmy16:
I guess there is no good method for our villec2 to port roms from s4, because we have only 3,4 roms for our terminal :(
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

Those are not on jb. Just noticed that.
[Android Software/Hacking General [Developers Only]] BanB:
I think this is not the problem. Cause S4 One S could be port to S3 Sensation. And it works. The problem is, in my mind, there are not many devs with the S3 One S. (Ville C2)
[Android Software/Hacking General [Developers Only]] BanB:
AW: [DEV][SENSE] Porting sense to other sense devices

libandroidruntime.so

libmedia_jni.so

libandroidserver.so

Add these, maybe it help
[Android Software/Hacking General [Developers Only]] Alaq:
Can I port 4.0.3 roms onto 4.0.4?
[Android Software/Hacking General [Developers Only]] xboxfanj:
Re: [DEV][SENSE] Porting sense to other sense devices

I don't think so. The binaries changed considerably on most devices.
[Android Software/Hacking General [Developers Only]] BanB:
Why you want do this?
[Android Software/Hacking General [Developers Only]] :
Re: [DEV][SENSE] Porting sense to other sense devices

Why not?

Sent. That's it. Just sent.
[Android Software/Hacking General [Developers Only]] BanB:
He wants to port 4.0.3 ROM to 4.0.4 Device?
[Android Software/Hacking General [Developers Only]] :
Re: [DEV][SENSE] Porting sense to other sense devices

Because a certain device may have something a newer device Durant doesn't
[Android Software/Hacking General [Developers Only]] jwhood:
Got a quetions ive got a rom for htc one x(at&t) and i ve got everything working except my mms messages isnt working,i cant recieve or send messages(pictures) but sms works fine what files are pertaining to the mms delivery???
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
Help in Porting

Guyz for my Desire V will this work????

I'm porting SENSE REVOLUTION ROM

SENSE 4.1

from Desire X(link here :- http://xdaforums.com/showthread.php?t=2023412) to Desire V by taking

SENSE 4.0.3 COMPLETE ROM
[Android Software/Hacking General [Developers Only]] kmdangi:
Hello,

I have a custom ROM working very nice for my HTC DHD.

I want to use this ROM to another device of HTC. Can I port this ROM to another device i.e HTC Raider (Vivid) working on custom ROM ??

Please help.
[Android Software/Hacking General [Developers Only]] azoz123456:
I do it but after install ROM and reboot

1- HTC White Page then

2-screen comes black and I wait 15 Minutes but dose't boot :(

<< I don't change boot-animation zip file :)

try it 2 times but same problem :(
[Android Software/Hacking General [Developers Only]] azoz123456:
UP !!!
[Android Software/Hacking General [Developers Only]] xboxfanj:
Logcat. That is a very generic description, which you would need a log to figure out what's happening.
[Android Software/Hacking General [Developers Only]] CNexus:
1ST rule of posting: NEVER quote really long posts OR the OP.
[Android Software/Hacking General [Developers Only]] fengsam:
Oh,amazing work.I try to port ViperSense4.1 to my HD2.It booted and almost everything works except camera,But I try replace files in the post,

it bootloop.So could you tell me the files about camera?Grant Thanks.
[Android Software/Hacking General [Developers Only]] xboxfanj:
Obviously someone wasn't listening.
[Android Software/Hacking General [Developers Only]] CNexus:
What are you ACTUALLY doing with your life.

Look 1 post above yours.

Sent from my SPH-L710
[Android Software/Hacking General [Developers Only]] -DarkKnight-:
Please don't quote the OP because it annoys the hell out of me :(
[Android Software/Hacking General [Developers Only]] CNexus:
Wow, someone's bad at life.
[Android Software/Hacking General [Developers Only]] bbrad:
You dumbass no offense ( I know it was a joke :p)
[Android Software/Hacking General [Developers Only]] ImagioX1:
I tried and got the same thing. Black screen after bootsplash. I cant pull a logcat because adb doesn't recognize the device this early in the boot process.:(
[Android Software/Hacking General [Developers Only]] CNexus:
Then you need to go back to the boot.img and merge more items. I had the same issue and after going back and merging u got it to the splash screen where I could then pull a log
[Android Software/Hacking General [Developers Only]] gmzombie:
wow this is some cool stuff here. im currently working on taking data from a stock rooted rom for the htc valente isw13ht (which has sence 4 and wimax) and i did all the changes inside of newts rc3 for my evo 3d. im hoping after doing this that it would allow me to have wimax..if it boots ill be happy to start. i also copied wimax related data from the stock rooted rom so maybe just maybe it might work.

update: damn white htc screen only must go back and figure out what i did wrong
[Android Software/Hacking General [Developers Only]] mr4r4n:
just wanted to throw in .02 great work on this, incredible idea, for anyone that is curious to try to do this themselves, go to pdadb.net and compare android OS/device versions with other like devices ( it can narrow down from os version to screen res, much less headaches then asking + knowing more less what will work or not)
[Android Software/Hacking General [Developers Only]] TouchscreenLover1:
just a short question: if i replace the boot.img from my device with the one from my target device,then i have the wrong Kernel,or am i false? Because i have the One X and since i have no s-off then i have to flash the boot.img manually. If i would replace the boot.img from my HTC One X Rom with the boot.img from (for example) the one s then i have an one S kernel and this one would not work...

can smb help me if i'm rite?
[Android Software/Hacking General [Developers Only]] xboxfanj:
A boot.IMG from the one s will not work on your one x. For the most part, kernels are not compatible with other devices, minus variants of the same device.
[Android Software/Hacking General [Developers Only]] samuel2706:
Haven't been on here in a long time and things may have changed so over the next few days i'm creating a new version and see if i can get a few other devs to chip in with their tips.

Also a HUGE thank you to everyone who has helped each other since this thread was made, I have had at least 3 people a week contacting me asking me if i can help, due to work and such i haven't had time however I have two weeks off and plan to update it, so stay tuned!

Oh and once again, a huge thanks to all the Developers and Contributors who have helped Members on their way to creating their first port!

:good:
[Android Software/Hacking General [Developers Only]] samuel2706:
Going to write a new segment possibly Sunday? on what lib files are and what they do and how they important for porting, a small explanation of the important ones and which ones you should never touch, then i'll move on to the importance of the kernel and how most things porting error related are because the kernel is not compatible (thus needing a kernel expert with time on his hands)

Oh and how to use DMESG and LOGCAT effectively I knew a brilliant program at the time of writing and it helped me port a lot I can't remember it's name, it was a GUI logcat, anyone know it's name? it did other things as well, it was an all in one program, it was quite noobish but it's logcat feature was immensely useful.
[Android Software/Hacking General [Developers Only]] desidunda:
Hey Sam I used to use Qtadb for the logcat on windows system when I was porting for DHD if that helps:)
[Android Software/Hacking General [Developers Only]] samuel2706:
That is the one! I have just realised someone else has made a porting thread since I made this, I may just close this as it's more up to date than mine.
[Android Software/Hacking General [Developers Only]] nithish_cbe:
[MENTION=3423567]samuel2706[/MENTION]

I am porting sense 3 for my htc explorer now I follow your guide

But Rom not booting same logcat error
[Android Software/Hacking General [Developers Only]] CNexus:
First of all, NEVER post logs plainly like that. Either use "HIDE” tags, or provide a pastebin.com link.

Second, none of that shows errors that would keep it from booting. You need to get a longer log, or post the untrimmed one (follow guidelines above).
[Android Software/Hacking General [Developers Only]] samuel2706:
You need to provide more than that so far all i am getting is that everything seems fine, I would also suggest a pastebin link.
[Android Software/Hacking General [Developers Only]] nithish_cbe:
Sorry bro please help me

Here logcat

pastebin.com/jrqhGP3D