Build instructions / config

For general discussion and questions specific to Android development for HTC HD2/Leo
Moderator: Forum Moderator

Build instructions / config

Postby n56L » Sun Mar 23, 2014 6:18 pm

Hi guys,

thank you for building and providing CM images for the HD2!
I'm happily using an Android 4.1 version myself, which mostly works fine. However, I'd like to upgrade to KitKat (4.4), and I'd like to do so with a build free of the google apps.
Do you have to take any special steps, apply any patches, to build such an image from source myself?

Thank you
n56L
Junior Member
 
Posts: 4
Joined: Sun Mar 23, 2014 6:10 pm
Country: Togo (tg)
Has thanked: 0 time
Been thanked: 0 time

Advertisement
 

Re: Build instructions / config

Postby tytung » Mon Mar 24, 2014 7:42 pm

n56L wrote:Hi guys,

thank you for building and providing CM images for the HD2!
I'm happily using an Android 4.1 version myself, which mostly works fine. However, I'd like to upgrade to KitKat (4.4), and I'd like to do so with a build free of the google apps.
Do you have to take any special steps, apply any patches, to build such an image from source myself?

Thank you


You could remove google apps and libs yourself. It's easier.
If you want to build a working Kitkat ROM for HD2 from the CM source code, you need to do everything you said because HD2 is not supported by the CM team.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Build instructions / config

Postby n56L » Mon Mar 24, 2014 9:59 pm

build a working Kitkat ROM for HD2 from the CM source code

yep, that is exactly what I intend to do

you need to do everything you said

What is everything? So what sources / source versions do you use, which patches do you apply on them, etc…
n56L
Junior Member
 
Posts: 4
Joined: Sun Mar 23, 2014 6:10 pm
Country: Togo (tg)
Has thanked: 0 time
Been thanked: 0 time

Re: Build instructions / config

Postby NYLimited » Tue Mar 25, 2014 12:26 am

you need to do everything you said

What is everything? So what sources / source versions do you use, which patches do you apply on them, etc…


The HD2 is an old device. You probably should start with locating and understanding old legacy code required to make CM work with the HD2 when you read thru the sources and have a good grasp of the legacy drivers and code you can start to experiment with different builds. I am pretty sure most of the info you need is available with a little research.

Sent from my Nexus 7

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: Build instructions / config

Postby Michael1996 » Fri Mar 28, 2014 3:56 pm

As far as I know, most individual developers tend to get the paches from the evervolv team to build working 4.x ROMs, but since 4.2 there has been tons of problems regarding kernel and driver binaries and stuff, such as camera glitches, tethering, HWA (camcorder and 720p decoding) and every other issue. Tytung himself has built the most stable kernel till now and has made enormous effort on getting all features to work, like LowSoundFixer, legacy WiFi code for native tethering fix, camera app replacement, HWA support and so on. My suggestion would be to ask tytung and ask what you can do to use his binaries or to contact the other developers like pixelfreak and chautruongthinh and see what they've done. Of course you could try and do as much as you want, if you're capable of doing it. As you might know the backported kernel is a chaos of workarounds and missing features, so kernel developers are welcomed. Initially everything was based on Cotulla's inverse engineering of WM 6.5 drivers and that had been a terribly lot of work, so it's reasonable to avoid reinventing the wheel again yourself.

Gesendet von meinem HTC One X mit Tapatalk
Michael1996
Newly Registered Member
 
Posts: 2
Joined: Sat Mar 08, 2014 10:37 am
Country: China (cn)
Has thanked: 0 time
Been thanked: 0 time

Re: Build instructions / config

Postby n56L » Sun Mar 30, 2014 8:47 pm

Tytung himself has built the most stable kernel till now and has made enormous effort on getting all features to work

And I thought perhaps this effort might be (slightly) documented and reproducible… As usual on Linux systems, you know? ;-)

You could remove google apps and libs yourself. It's easier.

Well, this might also be an option for me. Is there any more to it than removing the individual .apks? Do I need to delete lines in the updater-script ?
n56L
Junior Member
 
Posts: 4
Joined: Sun Mar 23, 2014 6:10 pm
Country: Togo (tg)
Has thanked: 0 time
Been thanked: 0 time

Re: Build instructions / config

Postby n56L » Thu May 29, 2014 12:00 pm

Hi,

n56L wrote:Well, this might also be an option for me. Is there any more to it than removing the individual .apks? Do I need to delete lines in the updater-script ?


I'm still trying to figure out which files (or file contents) in tytungs ROM belong to the gapps package. Especially the Play Store apk I could not find. The content of the official gapps package did not really help me.
n56L
Junior Member
 
Posts: 4
Joined: Sun Mar 23, 2014 6:10 pm
Country: Togo (tg)
Has thanked: 0 time
Been thanked: 0 time


Return to HD2 Android Q&A, Help & Troubleshooting and General

Who is online

Users browsing this forum: No registered users and 3 guests

cron