[DEV HELP] Android Open Kang Project

aspee

Senior Member
Aug 7, 2011
806
1,057
0
25
mumbai
www.aspeeration.tk
lol, dont depend on aspee, he is all busy with his exams, should be free by april 25th... :D
modify the device folder as per AOKP requirements... :)
Received time table today,exams will be over at 10th April
And yeah too much trimming and I also got the same error.i temp. Fixed it by removing all if qcom **** but ended with no display then I used some lib from beta4.


Sent from my friend phone :(
 
  • Like
Reactions: mDroidd

Sephirothrx7

Senior Member
Mar 10, 2009
244
96
0
SANTO André
Ok after some tries I managed to build a bootable rom! But it won't pass the lockscreen. Looking at the logcat, the launcher cant find a eglconfig and throw a runtimeexception and keep doing for a time until it reboot again.
 

Arjen

Retired Forum Moderator
Feb 26, 2011
2,154
5,911
0
45
Musselkanaal
You can try to push all egl files via adb. But guess it is because of ts-driver.
Can you upload your sources so I can take a look at them?

Sent from my LG-P500 using XDA
 

Sephirothrx7

Senior Member
Mar 10, 2009
244
96
0
SANTO André
You can try to push all egl files via adb. But guess it is because of ts-driver.
Can you upload your sources so I can take a look at them?

Sent from my LG-P500 using XDA
Sure, take a look, commited the changes

https://github.com/sephirothrx7

There's two vendors, I am using the one forked from lupo.

And if it helps too

logcat from adb
http://pastebin.com/DepLJpK3

logcat from ddms
http://pastebin.com/XY3aJd3v

I removed one of the launchers (it builded two) but in both there's the same exception with eglconfig.
 
  • Like
Reactions: mDroidd

mDroidd

Senior Member
Aug 27, 2011
1,844
1,361
0
mappz-development.com
Sure, take a look, commited the changes

https://github.com/sephirothrx7

There's two vendors, I am using the one forked from lupo.

And if it helps too

logcat from adb
http://pastebin.com/DepLJpK3

logcat from ddms
http://pastebin.com/XY3aJd3v

I removed one of the launchers (it builded two) but in both there's the same exception with eglconfig.
Maybe a problem with libgralloc?

EDIT: can you please remove everything starting with I/ or W/ ??

Otherwise I'll do it...

EDIT2: Out the EGL files in prebuilt??

EDIT3: I made those changes myself also, but it did not fix the error in the first post...
 
Last edited:

Sephirothrx7

Senior Member
Mar 10, 2009
244
96
0
SANTO André
Maybe a problem with libgralloc?

EDIT: can you please remove everything starting with I/ or W/ ??

Otherwise I'll do it...

EDIT2: Out the EGL files in prebuilt??

EDIT3: I made those changes myself also, but it did not fix the error in the first post...
The first builds with adam vendor folder was getting me in a bootloop, according to logcat libgralloc couldnt find a function
D/AndroidRuntime( 88):

D/AndroidRuntime( 88): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/AndroidRuntime( 88): CheckJNI is OFF

I/SurfaceFlinger( 87): SurfaceFlinger is starting

I/SurfaceFlinger( 87): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/HAL ( 87): load: module=/system/lib/hw/gralloc.thunderg.so

E/HAL ( 87): Cannot load library: reloc_library[1314]: 87 cannot locate 'android_atomic_cmpxchg'...

E/FramebufferNativeWindow( 87): Couldn't get gralloc module

E/SurfaceFlinger( 87): Display subsystem failed to initialize. check logs. exiting...
With lupo everything seems to go fine except for the glconfig problem (the egl.cfg is there in lib/egl)
IF anyone wants to give a try
http://www.mediafire.com/?vf4atv4o40x5l76
Another someone asked me
http://mir.cr/1Z4Q3J1H

This is rom is not functional, I cant pass the lockscreen with it.
 
Last edited:

Sephirothrx7

Senior Member
Mar 10, 2009
244
96
0
SANTO André
Trying now with my force-builded own AOKP.

@Sephirothrx7: You did not have my errors??
Actually no, have you tried deleting and syncing again? Maybe something got corrupt or dont downloaded.

I'm still trying to figure out the eglconfig not initialized, maybe it's a kernel problem? I got it from lupo repo's. I have spent the last few days reading everything about android, there's so many things to learn.
 

mDroidd

Senior Member
Aug 27, 2011
1,844
1,361
0
mappz-development.com
Actually no, have you tried deleting and syncing again? Maybe something got corrupt or dont downloaded.

I'm still trying to figure out the eglconfig not initialized, maybe it's a kernel problem? I got it from lupo repo's. I have spent the last few days reading everything about android, there's so many things to learn.
I got advised syncing adfad...
But i suppose you mean only kernel on this one...

Yup, I deleted everything once (except .git ofcourse) and re-synced.



Greets!
 

Sephirothrx7

Senior Member
Mar 10, 2009
244
96
0
SANTO André
Before going to sleep I builded one more with a new kernel Got the same result from last time but then I pushed all the libs from Kang beta and the touch screen seems to work just fine but I also broke the telephony with the new ril libs and I couldn't test anything because of the non stop popups of telephony not responding.
I think I need to build my own rild and libril from source, will check this later.

Sent from my LG-P500 using Tapatalk
 
  • Like
Reactions: mDroidd

rukin5197

Senior Member
Jul 26, 2011
838
797
0
its easier to fix it when you build it from source...
Why port it like this when you have the source code??

Good Luck in bugfixing... :D
I only ported it to see if I could build it. You see, I ported CNA and realized that all I had to do to port it was frameworks, apps, and media. So, if I directed the default.xml to grab those files from CNA's source, it would work. It did. I only ported AOKP to see if I could build it just as easily as CNA. I'm running into a build error, but at least I know what I'm doing :)
I have read somewhere that gannon had built CNA from source?? :)

Sent from my HTC One X using xda premium
You've read correctly :)
 

RockR172

Senior Member
Jun 12, 2011
1,421
1,503
0
I only ported it to see if I could build it. You see, I ported CNA and realized that all I had to do to port it was frameworks, apps, and media. So, if I directed the default.xml to grab those files from CNA's source, it would work. It did. I only ported AOKP to see if I could build it just as easily as CNA. I'm running into a build error, but at least I know what I'm doing :)

You've read correctly :)
Wow, thats the easiest way to port a ROM... :D
Using CM9 sources, but the packages and framework/base from AOKP/CNA...
You land up with all its features, at the same time you have the minimum bugs... :D

But porting the whole source can be beneficial at times, especially when there are major modifications/patches to some of its parts... ;)

@mDroidd- I would have loved to port and help you port AOKP to P500, but at present, m busy with my AOSP... :(
Bigfixing! ;)

Sent from my HTC One X using xda premium