XePeleato / android_device_huawei_p8lite_alel21

AOSP for Huawei P8 Lite (ALE-L21)
33 stars 22 forks source link

Main bugs & things I need help with #3

Closed XePeleato closed 8 years ago

XePeleato commented 8 years ago

So, in order to keep track of what is fixed and what is not (and if it's fixed, how to fix it), I have created a list, so if anyone wants to collaborate with their experience, any ideas or even linking me to a post or anything, feel free to do so, I'll edit it whenever I achieve something new. The list is small because I want to focus into a small group of issues at a time.

(Currently fighting against):

debbiche commented 8 years ago

Does the device currently boot? Any logcat logs?

XePeleato commented 8 years ago

Sure it does, I don't know why would you need a logcat, but if you want it anyway, I'll upload it somewhere.

P.S: Just got wifi working dsc00178

debbiche commented 8 years ago

Nice! The reason I was asking is that I'm currently porting CM for the Huawei P8 and was wondering how far you've gotten with the P8 Lite. Mine currently has issues with blobs while booting (stuck at CM boot animation) so I will take a look at what you have done.

debbiche commented 8 years ago

@XePeleato Is this list up to date? I got bluetooth and Wifi working yesterday. Sound is still not working. Seems mediaserver dies all the times.

XePeleato commented 8 years ago

Oh I forgot about it, if you send me your logcat I might be able to help you

debbiche commented 8 years ago

@XePeleato Here you go: http://pastebin.com/EHFKcs2G

XePeleato commented 8 years ago

Hm, so you are facing a segmentation error, your best bet is to debug the process in order to detect what's exactly wrong with it

debbiche commented 8 years ago

Yeah, what's the best way to debug the process itself?

XePeleato commented 8 years ago

For this kind of issue, I'd use gdb.

Good Luck!

debbiche commented 8 years ago

I will try, thanks. What's status for you? What's working and not working?

XePeleato commented 8 years ago

The device boots fine as I showed, however when I change some libs to make it more functional, I face some errors

debbiche commented 8 years ago

Did you get the audio to work? I had some errors with medaserver and its blobs but I fixed them and everything audio and camera wise seems to load fine but it never completes booting or at best shows the android is upgrading/starting apps screen but no crashes: http://pastebin.com/ztg0X19w

XePeleato commented 8 years ago

@debbiche I don't know since I had some issues with media_codecs/profiles.xml Could you please find what's the lib that triggers that 'state' ?

debbiche commented 8 years ago

Were you able to boot with sound working? I'm not sure which lib causes this state, here is my list (probably a few that are not needed): http://pastebin.com/ud57xYeG

XePeleato commented 8 years ago

@debbiche As I said above, I haven't tested it, so I guess it's not working. I agree with you, there are some libs that shouldn't be there, altought I am not sure since I haven't finished the rom

XePeleato commented 8 years ago

@debbiche I have spotted why it doesn't boot, let me investigate it a little bit more and I'll tell you what is it.

debbiche commented 8 years ago

That's great. I cleaned up my blobs list quite a bit but still same effect. I'm running a new build now since it's been a few days since I did a clean one.

XePeleato commented 8 years ago

The camera is now working!

debbiche commented 8 years ago

Very nice. What did you do? Blobs thing? Mine just gives me sensors error or something.

XePeleato commented 8 years ago

Yeah I just copied some blobs and all of a sudden it worked. Audio works in your build right? How did you did it? Have you copied media_codecs.xml or/and media_profiles.xml?

debbiche commented 8 years ago

Which blobs did you copy? Audio works perfect for me. Took me a while to get it to work. And you need all the stuff in etc/audio and some other files.

XePeleato commented 8 years ago

I copied all the libcamera_* and libjpegenchw.so and libmedia.so (just the 32 bit lib). Is your blob list at your github updated? It'll be easier to know wich ones are missing.

debbiche commented 8 years ago

Yeah they are updated and for the audio too so it should work for you. On Mar 23, 2016 23:28, "Eduardo Alonso" notifications@github.com wrote:

I copied all the libcamera_* and libjpegenchw.so and libmedia.so (just the 32 bit lib). Is your blob list at your github updated? It'll be easier to know wich ones are missing.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/XePeleato/android_device_huawei_p8lite_alel21/issues/3#issuecomment-200568221

XePeleato commented 8 years ago

Well, since the HuaweiRIL.java I am using is made for Android 5.1 Ther are lots of missing dependencies. Do We have any Java developer? I can handle C/C++ but not Java.

debbiche commented 8 years ago

I do Java but I'm not familiar with how these ril classes work.

XePeleato commented 8 years ago

If We had a 5.1 version, it'd be much easier, so whenever Marshmallow is released, I'll switch to it.

olrak2 commented 8 years ago

There is a 5.1 version available. But no source. It's possible to bootup and work with the system with the 5.0 own build kernel and stock 5.1 ramdisk files.

XePeleato commented 8 years ago

@olrak2 Oh, could you find me a link? It would be interesting to have a look.

olrak2 commented 8 years ago

@XePeleato , it's a lot of work. But you can take an nandroid after installation

http://forum.xda-developers.com/p8lite/help/upgrade-android-5-1-1-b008-ale-21-t3285993

First install B052 with mfastboot Then install B136a with mfastboot Then install B008 (5.1.1) with dload

XePeleato commented 8 years ago

@olrak2 Thank you! I wasn't aware of that.

olrak2 commented 8 years ago

From my post to haky86:

If you need them or not, here are all the kernels + ramdisk files:

Download link for kernel android 5.0 ALE-21: https://mega.nz/#!dF9x1ZbA!pipmYzYtbaKpZbrFPYmAKtmpLaNkszyoLMgyVfsTmZw

Download link for kernel android 5.1.1 ALE-21: https://mega.nz/#!oRVwxBKI!w2NcBAKouK0Q6aLz-9v01v6evqG8uVFwfCDfnOPFeaI

Download link for kernel android 6.0 ALE-21: https://mega.nz/#!IVdVRSJB!qU4na409x8JCeOFnHoAVjEKEPowl4vY-hbjn5dbQMyw

XePeleato commented 8 years ago

@olrak2 It worked! Now I have Android 5.1.1 installed. The server is compiling!

olrak2 commented 8 years ago

@XePeleato : You can start building 6.0 :smiley:

https://github.com/olrak2/make_boot_image_hi6210sft https://github.com/olrak2/android_kernel_huawei_hi6210sft

screenshot_2016-03-25-11-51-17

XePeleato commented 8 years ago

@olrak2 Good Job! However, I am now building 5.1.1, the RIL classes compiled perfectly, anyway that are some good news!

XePeleato commented 8 years ago

Update: Xposed works

screenshot_2016-03-26-12-30-43

muhammadfahadbaig commented 8 years ago

@XePeleato didn't Xposed worked flawlessly on AOSP?

XePeleato commented 8 years ago

@muhammadfahadbaig Sure it did, but no one got it working on the P8 Lite

FelipeBR28 commented 8 years ago

Hi, I know this isn't the right place to ask, but... Anyone knows how to unlock bootloader with the new Huawei's website? I don't know and I need it...

XePeleato commented 8 years ago

@FelipeBR28 Log in with your Huawei ID here https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail

FelipeBR28 commented 8 years ago

@XePeleato I know how to, but the problem is that some time ago, you could choose the model number Y300-0000 and then, you had the number, but now you can't even with that, so if there's any other way to do it...

olrak2 commented 8 years ago

@FelipeBR28 : don't know if it will work but try this unlocking guide

http://huaweip8lite.blogspot.be/ (--> you need google translate :smile: )

XePeleato commented 8 years ago

@FelipeBR28 What device do you have?

FelipeBR28 commented 8 years ago

@olrak2 I'll try it... thanks!!

FelipeBR28 commented 8 years ago

@XePeleato ALE-L21, the standard

muhammadfahadbaig commented 8 years ago

@XePeleato Still no sign of baseband?

muhammadfahadbaig commented 8 years ago

There is way to unlock bootloader without Huawei's website. However you must be rooted for that method.

XePeleato commented 8 years ago

@muhammadfahadbaig I am working on it.

muhammadfahadbaig commented 8 years ago

and also what about graphics.c file? I am working for TWRP for my other Huawei device.

XePeleato commented 8 years ago

@debbiche Also asked for it, @muhammadfahadbaig I forgot to upload it https://gist.github.com/XePeleato/3e886d517fbc7142780d

place it in bootable/recovery/minuitwrp

muhammadfahadbaig commented 8 years ago

just one more question... I am compiling TWRP right now. No idea why it's failing at " make: *\ No rule to make target /datadrive/android/system/out/target/product/hi6210sft/kernel', needed by/datadrive/android/system/out/target/product/hi6210sft/boot.img'. Stop. I am using my own prebuilt kernel. And thanks for graphics.c . You are doing a great job sir!