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):

XePeleato commented 8 years ago

@muhammadfahadbaig Thanks! Just copy the kernel to that directory manually, it happened to me too. cp device/HUAWEI/hi6210sft/kernel out/target/product/hi6210sft/kernel

Change the command as needed.

sgspluss commented 8 years ago

First of all thanks @XePeleato for your work on P8 Lite, nice to see there will be an AOSP and maybe CyanogenMod soon. Will follow this project and hope to see an public beta or even an better version soon on XDA :)

debbiche commented 8 years ago

@XePeleato Is there anything you did to any makesfiles to get the RIL class to compile except adding the flag to the board config file?

XePeleato commented 8 years ago

I had to modify frameworks/opt/telephony/Android.mk However it failed to compile on Android 5.0, I switched to 5.1.1

@sgspluss Just got sound working, whenever RIL works, I'll release a beta.

muhammadfahadbaig commented 8 years ago

@XePeleato What you did to fix sound? Added some blobs?

muhammadfahadbaig commented 8 years ago

and also @XePeleato , I have cloned your source to my machine so that I can try a build for my p8 lite. I hope if that's ok (any permission or anything)

XePeleato commented 8 years ago

@muhammadfahadbaig You can check it in the last commit. Sure, you can clone it and use it however you want, that's why I released it :+1:

muhammadfahadbaig commented 8 years ago

@XePeleato Thanks!!! I'm building now...

muhammadfahadbaig commented 8 years ago

I have a really bad luck today. Was building on a server, and I have a fixed monthly cap. Didn't knew that I have already used up all of my resources and bam, all servers were shut down. Well, I'll have to wait for a week for the credit to reset :)

debbiche commented 8 years ago

@XePeleato Did you have any issues with camera apps not able to get camera info? I added all the camera blobs but it fails with this error: http://pastebin.com/YMsNAzEy

XePeleato commented 8 years ago

@debbiche Does the Camera app work?

debbiche commented 8 years ago

@XePeleato No, it just shows a black screen then crashes. I was fixing some other small issues yesterday and managed to get rid of the Camera app exception but it still crashes and force closes. Log with all the errors since boot, starting the camera still causes the invalid id error : http://pastebin.com/J79zeayE

olrak2 commented 8 years ago

@XePeleato: Does Bluetooth works on the latest build, the one on XDA?

For me it won't start. I get an error on startup Android and an error while starting up Bluetooth?

XePeleato commented 8 years ago

@olrak2 I forgot to include the BT firmware, I wasn't really focused on it so, my bad. The fix should be really easy, if you want to work on it.

gabrielepmattia commented 8 years ago

I'm porting AOSP for Huawei Mate 7 and I managed to get the RIL working by decompiling the original framework and implementing needed functions, try this frameworks/opt/telephony https://github.com/mt7-dev/aosp_frameworks_opt_telephony

XePeleato commented 8 years ago

@gabry3795 Cool! I'll check it out, it's nice to have a guy who understands Java by our side.

debbiche commented 8 years ago

@gabry3795 That's really amazing! I will run a new MM build for the P8 with this to try it out!

gabrielepmattia commented 8 years ago

@XePeleato @debbiche perfect! On Mate7 I can make calls, send and receive sms and 4G but carrier's APN is not set automatically so I have to set it manually to get the 4g internet connection working

XePeleato commented 8 years ago

@gabry3795 Tried your files, it throws some Java errors, I'll look further into it

gabrielepmattia commented 8 years ago

@XePeleato Post here your make log, maybe I can help! My tree is based on android-6.0.0_r1, which one do you build?

XePeleato commented 8 years ago

Oh, I am at 6.0.1 http://pastebin.com/FzbubWrV I'll try with 6.0.0, I'll also try by extracting the files from the P8 Lite framework.

gabrielepmattia commented 8 years ago

It seems that the 8 errors are related only to different android versions and not to my edits.. worse luck I am obliged to build the 6.0 because of the proprietary blobs but now if you can build the 6.0 with my telephony framework you can try to apply my last 3 commits to the original 6.0.1 telephony framework. As far as regards cyanogenmod I totally give up that project because proprietary libsurfaceflinger and other graphics related blobs has been adapted by huawei so they don't follow the android original code, as a matter of facts if I try to build the 6.0.1 (or cm13) using libsurfaceflinger I get missing methods form libandroid_runtime.so that looks for 6.0.1 methods in a 6.0.0 library. They adapted Android to their libraries instead of adapt their libraries to Android.

XePeleato commented 8 years ago

@gabry3795 I am building CM, you don't need surfaceflinger, at least not on the p8 lite. I'll look into it, thanks!

XePeleato commented 8 years ago

By the way, I managed to fix it. I'll report the results later on.

debbiche commented 8 years ago

@XePeleato Did you get it to work on 6.0.1 or you used 6.0?

XePeleato commented 8 years ago

@debbiche I used 6.0.1 but it shouldn't matter

Sn0wPaw commented 8 years ago

Hey! I would like to ask is this new release stable enough to use every day? (Sure i know its nightly, but i owned a lot devices, if you know what i mean... ;) )

powerpaul17 commented 8 years ago

More interestingly: what does it require, is there a boot image? Because I flashed it and it's stuck at the boot screen.

FelipeBR28 commented 8 years ago

@powerpaul17 did you installed any gapps package? (It doesn't work for me neither :( )

XePeleato commented 8 years ago

As you can see there, it's just a nightly, because I enabled my Jenkins instance to compile nightly builds, and whenever I reach a milestone, it's uploaded to github, this one was uploaded as a test, please don't intend to use it as a daily driver. I'll have a look about that, but here you have the boot.img : https://mega.nz/#!ZxwQ2I7K!6EERItMjNbli6aDm2KkaxZfU5iUi74HLaANyiUlYMlU

FelipeBR28 commented 8 years ago

But... it's 22 mb... is it flasheable? I mean, if I flash it, I will have CM?

XePeleato commented 8 years ago

I'll quote myself "here you have the boot.img" I was answering to @powerpaul17 It's the ""fix"" to the black screen, or at least, that's my best guess, I can't try it at the moment.

FelipeBR28 commented 8 years ago

@XePeleato Sorry for pissing you, but it stucks for me too, I'll have to flash it after installing the previous zip? Thanks.

XePeleato commented 8 years ago

@FelipeBR28 After flashing the zip, you'll have to install that image via fastboot, fastboot flash boot XXX.img

Sn0wPaw commented 8 years ago

Sorry, can you please link me the "tutorial" for flashing this ROM? I want to do it properly.... thanks

XePeleato commented 8 years ago

@Sn0wPaw There's no tutorial because the rom was just uploaded to test if my build script worked, for any issue that you may have, please open a new one so We don't clog this one up.

powerpaul17 commented 8 years ago

Thanks @XePeleato but even with your boot.img it is stuck at the boot screen. I hope it is not related to a changed vendor partition because I did an upgrade of the Huawei firmware. Can't access it through adb neither, so I can't provide more information now.

FelipeBR28 commented 8 years ago

@XePeleato I flashed your .img after installing the zip. I left it all night long, and it stucks at "Android is starting. Starting apps." but I connected it to the computer and installed CM drivers.

edskv commented 8 years ago

Can someone give me link to download rom?

powerpaul17 commented 8 years ago

You find it under Code/Releases but it does not work. It was just a build test from XePeleato.

edskv commented 8 years ago

Oh right, forgot to check there, thank you :)

XePeleato commented 8 years ago

Enough off topic, this is not Xda, this is a developer network

noxifoxi commented 8 years ago

@XePeleato Are all of these bugs fixed?

XePeleato commented 8 years ago

@NoxNebula No, it depends on the rom you are talking about but they are not fixed

noxifoxi commented 8 years ago

@XePeleato oh ok, I was just wondering because the issue were closed.

Btw, I really love what you are doing here 👍

powerpaul17 commented 8 years ago

He closed it because people keep asking for his ROM which is really annoying after some time.