Jump to content


Photo

[GUIDE] How to port a ROM

* * * * * 1 votes

  • Please log in to reply
27 replies to this topic

#1
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
Hi users. Consider this post as my last post. I'm leaving liquid and liquid community...I'm buying a Galaxy Nexus as soon as it comes out. It seems a fantastic device. I also have to keep up my work on Asus Transformer.

So this post is my last present to the community, I really hope someone will keep up the Liquid development.
The question I have most seen in this forum is How can I port a ROM? Well, first of all keep in mind that there isn't a way to port a ROM. I can tell you what you should change, not what you need to change. The following list is the list of the file I changed to get the CM 6.1.1 fully working. Obviously you should take them from a working Acer Liquid's rom (like my CM 6.1.1 v3 or LiquidNext) and then add/replace them in the rom you want to port.

/system/app:
Bluetooth.apk → To fix the bluetooth problem
Phone.apk → To fix the proximity sensor issue
Added liquid settings & GApps
/system/bin:
Since you probably use the old sensor, you need to add all the *_yamaha files.
brcm_patchram_plus → To fix the bluetooth
dhcpcd
netd → To fix the wifi hotspot (you MUST change also /lib/libhardwarelegacy.so too, else you will get a bootloop)
rild → To get the network working
servicemanager → To get the sensors working
vold → To get the vold working
/system/etc:
the entire firmware folder to get wifi and sensors working
the init.d folder to tweak the rom
the permissions folder, added missing xmls
the entire wifi folder to get the wifi working
gps.conf → To improve the GPS
hosts → To fix ads
media_profiles.xml → To fix problems with camera and camcorder
vold.conf and vold.fstab → To fix vold, if you don't change them the rom won't boot.
/system/framework:
Added com.google.android.maps.jar to fix problems with the apps which uses GMaps.
You can find there the files to tweak with smali to get some stuff working. For example, if you want to get the prox. sensor working well, you need to edit the PowerService class in services.jar.
/system/lib:
the entire egl folder
the entire hw folder
the entire modules folder
all the libOmx* .so files → To get the camcorder working
all the libaudio* .so files → To get the audio working (if you don't change them, it won't boot)
libandroid.so
libauth.so
libcamera.so and libcameraservice.so → These depends on the ROM.
libcm, libcommondefs.so, libdiag.so, libdll.so, libdsm.so, libdss.so, libeffects.so, libg*.so
libhardare_legacy.so
libloc*.so
liblog.so
libmedia.so
libmmgsdilib.so, libmmipl, libmmjpeg.so, libnfc_ndef.so, libnv.so
libms3c_yamaha.so → To fix the sensors
liboemcamera.so → To fix the camera & camcorder
liboncrpc.so, libpbmlib.so, libqmi.so, libqueue.so
libril*.so
librtp_jni.so
libsensor*.so
libspeech.so
libsqlite_jni.so
libstagefright_*.so → These are usually not required
libt99.so
libvoicesearch.so
libwebcore.so
libwms.so
libwmsts.so
/system/sd:
The placeholder file. → To get sd working
/system/usr:
the entire 'keychars' and 'keylayout' folders
/system/vendor:
The entire folder.
/system:
Edit build.prop and add/change the following strings:
ro.product.board=salsa
ro.hw_version=4
rild.libpath=/system/lib/libril-acer-1.so


Obviously you also need to change the kernel and, if needed, you must also edit the BOOTCLASSPATH in the init.rc file in the ramdisk. Please refer to other tutorials for this.

Notes:
  • Pay attention to the updater-script. Sometimes all the problems are due to wrong permissions in it. Give a look to the updater-script of working roms to know more about it.
  • This is the most important thing: LOGCAT. If you don't use it, you will never port a ROM. You MUST read the logcat to know what's wrong in your ports.

I hope you will find this post usefull and that you will receive the necessary knowledge. But to learn all this thing what you need is to keep trying.

Good bye community Posted Image

  • 0

#2
zorginho

zorginho

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Devices:Nexus 4
thx for ur port guide... it should work with gb too?

  • 0

#3
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

thx for ur port guide... it should work with gb too?


It should

  • 0

#4
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
double post, sorry

Edited by gnufabio, 18 November 2011 - 10:35 PM.

  • 0

#5
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
wth, triplicated message

Edited by gnufabio, 18 November 2011 - 10:35 PM.

  • 0

#6
Ma7moud

Ma7moud

    Addict

  • Members
  • PipPipPipPipPip
  • 558 posts
  • Gender:Male
  • Location:Egypt
  • Devices:Acer Liquid A1
  • Twitter:@9_CanZ
its sad to see another one leave the Liquid, but i know its an old phone, soon we will have to stop waiting for software updates and requesting new features or just get a new phone Posted Image
and yeah the Galaxy Nexus is a great phone but as a user i would go for the HTC Sensation, but i will wait for next gen phones with ICS out of the box Posted Image

but good luck with the Asus Transformer and the Galaxy Nexus Posted Image

  • 0
Phone : Acer Liquid A1 (Color: Red)
BIN : 4.002.14.EMEA.GEN1

Recovery: TWRP
ROM : CM 7.2 (Ainillia version) (128MHz ~ 960MHz - Smartass V2) (Thanks lupohirp, Thepasto, Ainillia and the team)

#7
zorginho

zorginho

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Devices:Nexus 4
i've tried to port the oxigeN1mod with the gnufabio's guide: http://www.multiupload.com/C7UGP92DZJ
i've not tried it because i need my phone for some important call and messages, if anyone want's to try it tell me if boots and what works.

Edited by zorginho, 19 November 2011 - 12:00 PM.

  • 0

#8
Andy__P

Andy__P

    Enthusiast

  • Members
  • PipPipPip
  • 263 posts
  • Gender:Male
  • Devices:Galaxy Nexus, Acer Liquid
Thanks for everything you've done for the Liquid.
See you soon in the Galaxy Nexus section :))

  • 0

#9
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

Thanks for everything you've done for the Liquid.
See you soon in the Galaxy Nexus section :))


Are you going to buy a Galaxy Nexus too? Damn, I can't wait Posted Image

  • 0

#10
Andy__P

Andy__P

    Enthusiast

  • Members
  • PipPipPip
  • 263 posts
  • Gender:Male
  • Devices:Galaxy Nexus, Acer Liquid

Are you going to buy a Galaxy Nexus too? Damn, I can't wait Posted Image


you bet! :)

but i think i'll still be playing around with ICS ports on my liquid.

Edited by Andy__P, 19 November 2011 - 03:43 PM.

  • 0

#11
RomzesRover_R

RomzesRover_R

    Regular

  • Members
  • PipPip
  • 121 posts
  • Gender:Male
  • Location:Russian Federation, Bashkortostan
  • Interests:Developer for cm9, cm10, cm10.1 and kernel
  • Devices:Acer Liquid A1
  • Twitter:@RomzesRover
good guide, moderators should pinned him on top !

  • 0

#12
AcerFerrari

AcerFerrari

    Enthusiast

  • Members
  • PipPipPip
  • 279 posts
  • Location:Hong Kong
  • Devices:Acer Liquid S100
It's really sad to see one more dev leaving Liquid Section~~~
Hope to see you at Galaxy Nexus section Gnufabio! (I've already bought it~~~hehe)

  • 0
I use Acer Liquid S100, not Acer Liquid E Ferrari Edition. I use AcerFerrari as my username because I am a loyal Ferrari fans.

Sorry for my misleading~

#13
siggey

siggey

    Diehard

  • Members
  • PipPipPipPip
  • 425 posts
  • Devices:ACER A1 LIQUID
goodbye dario, thank's for all your hard work.

  • 0
Posted Image

#14
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

goodbye dario, thank's for all your hard work.


Dario? Posted Image

  • 0

#15
AcerFerrari

AcerFerrari

    Enthusiast

  • Members
  • PipPipPip
  • 279 posts
  • Location:Hong Kong
  • Devices:Acer Liquid S100

Dario? Posted Image


Nah, maybe he/she recognized the wrong person
Fabio can you teach me how to change the animations of ROMs like MIUI?

  • 0
I use Acer Liquid S100, not Acer Liquid E Ferrari Edition. I use AcerFerrari as my username because I am a loyal Ferrari fans.

Sorry for my misleading~

#16
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

Nah, maybe he/she recognized the wrong person
Fabio can you teach me how to change the animations of ROMs like MIUI?


Which animations?

  • 0

#17
AcerFerrari

AcerFerrari

    Enthusiast

  • Members
  • PipPipPip
  • 279 posts
  • Location:Hong Kong
  • Devices:Acer Liquid S100

Which animations?


When opening Apps/windows

  • 0
I use Acer Liquid S100, not Acer Liquid E Ferrari Edition. I use AcerFerrari as my username because I am a loyal Ferrari fans.

Sorry for my misleading~

#18
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

When opening Apps/windows


I think it's n framework-res.apk

  • 0

#19
Gnask

Gnask

    Regular

  • Members
  • PipPip
  • 77 posts
  • Interests:Programming, OS, Android, phones, video games and anime!
  • Devices:Acer Liquid
  • Twitter:@gnask87
We're losing another great dev, thanks for all your efforts and have fun with your new phone. ;)

  • 0
Did you know that Megaman Legends 3 was CANCELLED?
If you want it back, become a SERVBOT!!!
It's just a few clicks! getmeoffthemoon.blogspo​t.com/2011/07/become-servbot.h​tml

Join us at www.facebook.com/GetMeOffTheMoon
We need YOUR help! Spread the word!

Posted Image

#20
siggey

siggey

    Diehard

  • Members
  • PipPipPipPip
  • 425 posts
  • Devices:ACER A1 LIQUID

Dario? Posted Image

Ehhmmm I don't know why I wrote Dario, goodbye Fabio..

  • 0
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users