[WIP][DEV][ROM]AOSP 4.3 - Developing and Learning Together

shantur

Senior Member
Dec 6, 2010
1,094
3,073
0
Hello guys,

This is an effort to bring together all the guys who would like to learn AOSP Rom development for our beloved HTC Sensation.

HTC has given up on sensation way back but the community is keeping it alive till now. Even some devs have moved to other devices or focusing more on other devices.

I like my Sensation and I want to be able to have the latest versions of Android on it whenever Google releases it. I am sure many many Sensation owners would like that as well. To be able to do it, this is an effort to learn AOSP Rom development.

I would like to invite all like minded people devs / testers to join in. I would also request all the Sensation android gurus out there if they could help us in this effort.

Now to the real business.

I am trying to get 4.3 boot on our sensation. I have been able to compile AOSP 4.3 for Sensation using the resources I could find over forums and internet.

I am using Team-Hydra's repos and kernel. Thanks to TeamHydra for their excellent CM 10.1 ROM.

It now generates a ota-zip package which I am able to flash using 4ext recovery.
The kernel boots, I could see the htc logo but after that a blank - black screen.

It responds a bit with adb, so I could do adb reboot, adb reboot recovery but when i try adb shell or adb logcat i get

Code:
Shantur:~ shantur$ adb logcat
- exec '/system/bin/sh' failed: Exec format error (8) -
I am trying to find and read more to find out what should be the next or rather first step to be able to find out the problem.

I have linked my local_manifest.xml which is pointing to corrected device tree for pyramid for you guys to start.

In case you need help setting up the code repo let me know, I will try to put up a brief tutorial about it.



My Github : https://github.com/shantur
My LocalManifest : https://github.com/shantur/local_manifest_pyramid

Patch for excluding Recovery from otapackage : https://github.com/peteralfonso/platform_build/commit/9b3a020058b84fb1f9cfba600f4a958572a805c3
(Modified Files are attached)


Any pointers, Any suggestions and help is really helpful.
 

Attachments

shantur

Senior Member
Dec 6, 2010
1,094
3,073
0
Was this built using CM-10.2?
not necessarily, the title says AOSP so I'm not sure if it is really built from AOSP or built from CM
No It is built using AOSP (branch android-4.3_r2.1). The device tree was taken from TeamHydra CM10.2 and kernel from TeamHydra CM10.1 Rom.

For the logcat error, have you tried taking a liblog.so from a cm 10.1 rom?
No i didnt try liblog.so it is giving me same error on all even adb shell. I even tried other kernels. I am not sure if we will have to build new kernel for 4.3.
 

Emmanuel U

Inactive Recognized Developer
Jul 29, 2011
1,784
2,608
0
21
Chi-Town Suburbs
No It is built using AOSP (branch android-4.3_r2.1). The device tree was taken from TeamHydra CM10.2 and kernel from TeamHydra CM10.1 Rom.



No i didnt try liblog.so it is giving me same error on all even adb shell. I even tried other kernels. I am not sure if we will have to build new kernel for 4.3.
well first bet I'd try replacing liblog.so from a cm10.1 rom with the one in that rom, also I would suggest building cm 10.2 instead of AOSP unless you want to do all the proprietary patches your self
 

topgeardave

Senior Member
Aug 5, 2011
1,430
603
0
Count me in, like xmc said: lets get cm booting first as you can still use legacy libs as we don't have a full ION kernel. I'll try and download the source tomorrow and see what's what :D
Edit: People who want to learn to build... Just go straight here! http://wiki.cyanogenmod.org/w/Main_Page
I'm also learning to use github so that it's easier to see if everyone's on the same page on development.
Kind Regards
Dave
 
Last edited:
  • Like
Reactions: unclec and rx7_guy

Jonny

Retired Forum Moderator
Jul 22, 2011
9,285
9,606
263
Birmingham
jonathonfitch.com
Count me in, like xmc said: lets get cm booting first as you can still use legacy libs as we don't have a full ION kernel. I'll try and download the source tomorrow and see what's what :D
Edit: People who want to learn to build... Just go straight here! http://wiki.cyanogenmod.org/w/Main_Page
I'm also learning to use github so that it's easier to see if everyone's on the same page on development.
Kind Regards
Dave
This guide is a good place to learn how to use github ;)
 

Emmanuel U

Inactive Recognized Developer
Jul 29, 2011
1,784
2,608
0
21
Chi-Town Suburbs
OP: Actually I would suggest using Evervolv 4.3 as they are moving pretty fast as far as bringing hardware and all libs up to speed with 4.2. BTW I'm on the myTouch 4G Slide, I'm only here because we share the same variant (msm8660) so as one of us gets something done we all basically get it done. Here was what I did today as far as trying to get cm 10.2 working https://github.com/jellybeands :)
 

topgeardave

Senior Member
Aug 5, 2011
1,430
603
0
OP: Actually I would suggest using Evervolv 4.3 as they are moving pretty fast as far as bringing hardware and all libs up to speed with 4.2. BTW I'm on the myTouch 4G Slide, I'm only here because we share the same variant (msm8660) so as one of us gets something done we all basically get it done. Here was what I did today as far as trying to get cm 10.2 working https://github.com/jellybeands :)
@LaidbackNikez is the official evervolv dev and according to his twitter he's working on it although he hasn't updated his git yet. However he's also said he's quit developing for the sensation so we might be able to build it for the pyramid if he's not going to release it.

Sent from my HTC Sensation using xda app-developers app
 

shantur

Senior Member
Dec 6, 2010
1,094
3,073
0
well first bet I'd try replacing liblog.so from a cm10.1 rom with the one in that rom, also I would suggest building cm 10.2 instead of AOSP unless you want to do all the proprietary patches your self
The original idea was to have pure AOSP experience so that we don't rely on other releases to merge first before we go ahead.

Count me in, like xmc said: lets get cm booting first as you can still use legacy libs as we don't have a full ION kernel. I'll try and download the source tomorrow and see what's what :D
Edit: People who want to learn to build... Just go straight here! http://wiki.cyanogenmod.org/w/Main_Page
I'm also learning to use github so that it's easier to see if everyone's on the same page on development.
Kind Regards
Dave
Welcome.
Looks like we will have to go via CM 10.2 route because of ION kernel. I remember someone was working to boot SebastionaFM JB Sense Kernel on AOSP

OP: Actually I would suggest using Evervolv 4.3 as they are moving pretty fast as far as bringing hardware and all libs up to speed with 4.2. BTW I'm on the myTouch 4G Slide, I'm only here because we share the same variant (msm8660) so as one of us gets something done we all basically get it done. Here was what I did today as far as trying to get cm 10.2 working https://github.com/jellybeands :)
@LaidbackNikez is the official evervolv dev and according to his twitter he's working on it although he hasn't updated his git yet. However he's also said he's quit developing for the sensation so we might be able to build it for the pyramid if he's not going to release it.
We can see what he comes up with then decide.

Today I am migrating from Sensation as my main phone and make it a test device. It takes lot of time to backup and restore again and again.
I will try to replace the liblog.so as suggested earlier and post the results.
 

heavy_metal_man

Senior Member
Nov 6, 2011
2,779
760
0
hey guys, more than happy to do testing as soon as things reach that point, can do logcats and dmesg logs correctly ect. :) good luck, i will chip in where i can :)
 

topgeardave

Senior Member
Aug 5, 2011
1,430
603
0
I'm getting an error whilst compiling:
"virtual memory exhausted: Cannot allocate memory"
- Seems like I'm running out of RAM as I've only got 6gb of RAM. Any way I can carry on compiling without the need for extra RAM?
And here's the local manifest I'm using alongside CM10.2 source:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<project name="Team-Hydra/android_device_htc_pyramid" path="device/htc/pyramid" revision="cm-10.2" remote="github" />
<project name="Team-Hydra/android_device_htc_msm8660-common" path="device/htc/msm8660-common" revision="cm-10.2" remote="github"/>
<project name="Team-Hydra/android_kernel_htc_msm8660" path="kernel/htc/msm8660" revision="cm-10.2" remote="github" />
<project name="Team-Hydra/android_vendor_htc" path="vendor/htc" revision="cm-10.2" remote="github" />
<project name="Team-Hydra/android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" revision="cm-10.2" remote="github" />
<project name="Team-Hydra/android_hardware_qcom_gps-legacy" path="hardware/qcom/gps-legacy" revision="cm-10.1" remote="github" />
<project name="Team-Hydra/android_hardware_qcom_media-legacy" path="hardware/qcom/media-legacy" revision="cm-10.2" remote="github" />


</manifest>
 

NicoC72

Senior Member
Jan 4, 2012
285
70
0
I'm getting an error whilst compiling:
- Seems like I'm running out of RAM as I've only got 6gb of RAM. Any way I can carry on compiling without the need for extra RAM?
And here's the local manifest I'm using alongside CM10.2 source:
Not sure because I don't know much about Linux, but you could increase or enable the page file/swap.

Sent from my HTC Sensation using XDA Premium HD