Comments (108)
i manage to got worked boot.img with adb too compiled under cm-12.1, and also i have an idea want to apply after see first boot to get worked ril without patches, keep in touch 👍
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig sure bro, our device will be faster with a stable rom i think :)
from android_device_huawei_p8lite_alel21.
It's not a good idea to copy the whole folders, I'll upload it this afternoon
from android_device_huawei_p8lite_alel21.
The tree is updated, I'll upload the vendor files in the evening. Thanks!
from android_device_huawei_p8lite_alel21.
It boots x I am using r1
from android_device_huawei_p8lite_alel21.
Since I can't seem to get RIL working, I guess I'll post the Alpha version of the rom in order to build up interest. A true shame.
from android_device_huawei_p8lite_alel21.
Well, not really, the help I received here was essential to develop the rom, I am a C developer and I have stuff to work on and I have never developed an android rom before, so I just used the office Build server and my spare time. I don't really want to release the rom, because it isn't finished but we need as much help as possible.
Now, I have discovered that hwframework (I don't remember the full name of it) invokes RIL and manages it, that framework is developed by Huawei, Will CM fix this? I really doubt it, however we'll know pretty soon. Anyway it looks like we'll have to patch our framework, and I don't even know where to start.
from android_device_huawei_p8lite_alel21.
@XePeleato thanks for clearify this. Then will hold my eyes open again for this ril problem. Dont have much experiances with rom (just few small one) more with kernel, but anyway try my best to help out whenever i can. ;-)
from android_device_huawei_p8lite_alel21.
@Hak86 @XePeleato All fighting for one common cause.... to free everyone from the horribly designed (although with many great features and addons) EMUI.
from android_device_huawei_p8lite_alel21.
Development is officially resumed!
from android_device_huawei_p8lite_alel21.
Hi there, the build works, but the device won't boot to android due to some GPU issues that I am trying to fix.
As far as I can tell, the device configuration is fine, the current issue is with the Mali GPU, but the libs get loaded by the device.
Feel free to contribute, some help would be awesome!
from android_device_huawei_p8lite_alel21.
Hello! I am very glad that you are working on CM for alel21. Can the USB Host / OTG support for him? Unfortunately I'm still a noob and cant do it myself. Sincerely, Alexander.
from android_device_huawei_p8lite_alel21.
Hey, thanks for the reply. I also have the same problem with the GPU, it seems to boot but the graphics do not get initialized.
Did you use a stock kernel? Maybe it has something to do with this, I am currently trying to compile the kernel too. I also wrote to someone on xda-developers who seems to have accomplished to compile the kernel.
from android_device_huawei_p8lite_alel21.
Well, first I am trying to get working pure Android, whenever that's done, I'll start with Cm.
from android_device_huawei_p8lite_alel21.
@powerpaul17 The kernel gets compiled from source, I am pushing that commit right now.
from android_device_huawei_p8lite_alel21.
@powerpaul17 I'd love to see your logcat output, mine is this
Is surfaceflinger also crashing on your end?
from android_device_huawei_p8lite_alel21.
sorry, I haven't saved the logcat, but it looks pretty much the same.. it also crashed at the same point with the same stacktrace. I also tried to use the surfaceflinger binary from the stock rom but then it doesn't even get started.
I start to believe it might have something to do with the kernel. Maybe the stock kernel is not compatible with AOSP, I am trying to compile the kernel from the sources but I still got some issues.
from android_device_huawei_p8lite_alel21.
I think I've reached a major milestone :P
from android_device_huawei_p8lite_alel21.
Nice.. :) So is it booting? Did you manage to compile the kernel? I am still trying..
from android_device_huawei_p8lite_alel21.
@powerpaul17 It's almost booting. What's that kernel issue? Are you using Linaro toolchain?
from android_device_huawei_p8lite_alel21.
I am using the toolchain which gets compiled or prepared from the "repo" system (just started with Android development.. ;) ). The kernel finished compiling now using the sources from Huawei but I haven't tested yet. What are your boot issues?
from android_device_huawei_p8lite_alel21.
@powerpaul17 zygote is crashing, at least surfaceflinger loads properly, it looks like I'll need to change some libs.
from android_device_huawei_p8lite_alel21.
Any progress ?
thx in advance.
from android_device_huawei_p8lite_alel21.
@olrak2 Well, I have compiled the kernel succesfully, and now the "rom" itself is my obejctive, if there's any major progress I'll post it here or wherever I find it convenient.
Have a nice day!
from android_device_huawei_p8lite_alel21.
Just a quick update for those of you who are waiting, I have spent all of the weekend working on this, I have compiled more than 40 images so far just in the weekend, I have solved some issues but the rom is not finished yet. Now I am not stuck with the graphics system anymore, but there are more issues to fix, I won't surrender.
from android_device_huawei_p8lite_alel21.
Good luck with the problems :) I'm very glad you won't surrender. We need a rom for our Little P8
from android_device_huawei_p8lite_alel21.
Alright, got it, the rom boots to android, I am not too excited about it since some services crash and the rom is not functional, since you are spammed with "service XXX stopped working" warnings, but at least, it boots :) I'll upload some pics later
from android_device_huawei_p8lite_alel21.
I'm very excited to hear that. Those warning's can't be worse than EMUI :) Let those pics come :)
from android_device_huawei_p8lite_alel21.
There are lots of bugs (as expected), but there's the proof!
from android_device_huawei_p8lite_alel21.
wow, congrats, so it was libs issue?
from android_device_huawei_p8lite_alel21.
Kind of @Hak86 I also disabled selinux and modified the ramdisk, I'll submit a pull request in the afternoon to your tree, since I have spotted something weird.
from android_device_huawei_p8lite_alel21.
@XePeleato i think you need to remove everything used by emui, second we should make a ril.java file to let it works, we can try with honor 6 one, it's use kirin920 if not wrong but i'm not sure ;)
from android_device_huawei_p8lite_alel21.
@Hak86 True, since the phone doesn't even ask me to unlock the SIM card. I didn't had much luck following the Honor 6 config. I removed every Huawei file inside 'framework', so there's no trace of Huawei code (just the libs used to get the camera/wifi/bluetooth/display..) working.
from android_device_huawei_p8lite_alel21.
one question, does get in the out like root/res? needed for the charger? @XePeleato because my own boot won't boot without them....pretty weird...
from android_device_huawei_p8lite_alel21.
@Hak86 Yes, I copied them from the original ramdisk, it's not updated here because I am building everything again from scratch.
from android_device_huawei_p8lite_alel21.
UPDATE: I am switching from AOSP to CM, because AOSP doesn't let me configure some things that CM does, and at the moment, I don't have the time to figure out how to do them on my own, so the Build machine is now compiling, allow some hours for a new update.
Have a nice weekend!
from android_device_huawei_p8lite_alel21.
Well, it looks like it wasn't as easy as just switching sources, now it doesn't even boot.
from android_device_huawei_p8lite_alel21.
i fix copying blobs into build and now should copy them with any rom, for the boot.img i still don't understand why in the out/target/product/hi6210sft/root, give me only sbin and res, should be folder like data, dev, system and many other..bah.. @XePeleato
from android_device_huawei_p8lite_alel21.
Well, you can copy them by hand in order to check if it works @Hak86 Mine copied that files just fine.
from android_device_huawei_p8lite_alel21.
@XePeleato Can you update your source? I also want to test aosp and try to boot up my P8 lite. One thing i find weird. How does it come your build number is the same as the original stock build number? It should be a total different number than the stock one, no?
from android_device_huawei_p8lite_alel21.
@olrak2 It doesn't work that way, the build number is written into a file, I uses the file that came with the device, so it isn't so surprising
from android_device_huawei_p8lite_alel21.
Good to know :) I don't know anything about building. Still learning. Is your tree up to date so i can test on it?
from android_device_huawei_p8lite_alel21.
@olrak2 Kind of, however you can download it and test it, but let me remind you that it isn't even finished, and you'll need to use my kernel in order to get it working, also, folders "vendor" and "etc" are not copied, since I am doing it by hand because I am testing those files at the moment, However you can still copy them yourself
from android_device_huawei_p8lite_alel21.
I'm getting closer :)
from android_device_huawei_p8lite_alel21.
nice, i just finish a build too, let's see 👍
from android_device_huawei_p8lite_alel21.
Update.
I have been talking to codeworkx and it looks like the whole RIL stack isn't compatible with the AOSP framework. As I see it, We have three options.
- We can decompile Huawei's framework
- We can develop a hack
- We can beg Huawei
Any Java developer is up to a challenge?
from android_device_huawei_p8lite_alel21.
did you try to call the command like adb shell > rild to see if drivers are missed?
from android_device_huawei_p8lite_alel21.
Yes, however it worked. 'adb logcat - b radio' was more explicit
from android_device_huawei_p8lite_alel21.
@XePeleato Remove the third option. 3. We can beg Huawei I have done that already and too much...
from android_device_huawei_p8lite_alel21.
@XePeleato which sources you used to compile RIL
from android_device_huawei_p8lite_alel21.
The RIL daemon is the original one, and the libs are also from Huawei. If you mean the Java class, it's just used to fix signal strength and some other minor bugs.
from android_device_huawei_p8lite_alel21.
@XePeleato Talking about codeworks, he did compiled CM 11 for Honor 6. Any tip from him? I am seriously not good in Java (even I am below moderate in C/C#). You mentioned, decompiling Huawei Framework. Any idea from where to start? I know someone who may take a look.
from android_device_huawei_p8lite_alel21.
@XePeleato Why not try omnirom or cyanogenmod again?
Probably also a good idea is to update your source tree so everybody can build from your source.
I gave tried to build but could not boot to android.
There were a couple of weird things in your tree that i needed to fix before i could build:
- BoardConfig.mk line 90 needted to remove: TW_THEME := hdpi_portrait
- BoardConfig.mk TARGET_KERNEL_PREBUILT does not exist it's : TARGET_PREBUILT_KERNEL
- You import in aosp_hi6210sft.mk as well in device.mk your ramdisk (only needed once)
Could you please also upload your vendor files so we can use them. I have seen a dir /vendor/huawei/p8litekirin/ and a dir /vendor. Where did you place the vendor files?
Here was my catlog file from my bootup: http://pastebin.com/raw/F1744gqG
Many thanks for the work that you already done. 😃
from android_device_huawei_p8lite_alel21.
No, thank you @XePeleato
from android_device_huawei_p8lite_alel21.
@XePeleato would it be helpfull to take a look into huawei p6? They fix ril problems, maybe this will helps you to fix it to. Just search "huawei p6 ril fix" in google.
from android_device_huawei_p8lite_alel21.
@sgspluss Since it doesn't support Lollipop, I don't think it'll work.
However thank you for your suggestion!
from android_device_huawei_p8lite_alel21.
I know it didnt has lollipop but maybe it will be helpful anyway @XePeleato, hope you can fix it finger-cross
from android_device_huawei_p8lite_alel21.
@XePeleato, just search a bit around and found following things, all for CM12.1...
https://github.com/ShevT/vendor_huawei_U9500/commit/0de7be416167dab5ac53677cfdbff1044347e4be
https://github.com/ShevT/device_huawei_U9500/commit/625ed001a380605584de526c3cd006cdc90c737d#
http://forum.xda-developers.com/showpost.php?p=62770987&postcount=7
The last link sounds that the ril fix for CM11 should work bur just for single sim, dual sim have problems.
Well however hope that links can help to find the problem for our device...
from android_device_huawei_p8lite_alel21.
@sgspluss It still will be difficult. Apart from the RIL blobs, the QMI blobs won't work for our device. QMI is a protocol developed by Qualcomn and is only available on Qualcomn Chipsets.
Our best bet would be to,
- Patch the Modem Images to make them compatible.
- Switch to CM base.
- Or maybe give that QMI fix a try :) Atleast nothing bad would happen.
from android_device_huawei_p8lite_alel21.
Maybe in this case it would be the best to test it with cm base at first. Right it could be that the QMI fix doesn't work due to chipset, so we'll have to find an other solution sadly...
from android_device_huawei_p8lite_alel21.
@XePeleato did you checked the kernel source code. There might be some modem or RIL configurations. Another bet could be to edit them and compile the modified modules and make them compatible with AOSP.
from android_device_huawei_p8lite_alel21.
@XePeleato Since you switched to Android 5.1.1. Does it boots (I believe it'll boot fine)? Secondly, which release version you are using? There are so many releases r1 to r25 to r.... Does picking right release matters?
from android_device_huawei_p8lite_alel21.
@XePeleato First of hello , I have been watching this project for a while and I see you make a lot of progress. Nicely done. I would like to try it out if it's ok for you. Could you tell me everything I need in order to build it? The newest Kernel Source of you I guess? And which vendor?
from android_device_huawei_p8lite_alel21.
@VenityZ You don't need Kernel Sources. A prebuilt kernel is included with this repository. Secondly, you have to extract vendor files yourself from your device. At the moment, a script to automatically extract the needed vendor files is not included. Therefore, see aosp_hi6210sft.mk
to get a list of the vendor files needed and where they have to be placed.
from android_device_huawei_p8lite_alel21.
I forgot to upload the blobs, since you can get them from your device, I'll post them whenever I can.
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig Thanks. Saw the Kernel wasn't sure about that. A little Challenge for me.
from android_device_huawei_p8lite_alel21.
@XePeleato Don't say "True Shame". The problem with Huawei is the lack of community of developers who are willing to spare time and devote in development. You are a lone ranger who took the interest in development and got this far. Now that's a true achievement. Also, you're the first one to create a bootable 5.1.1 ROM for Huawei HiSilicon chipsets. We need people to gain interest in this project and maybe someone who has enough experience shines some light in this regard.
However, even if you have decided to upload the ROM, make sure to warn people about the ROM's current state. You might not want a flood of comments saying A is crashing, B doesn't opens, etc.
from android_device_huawei_p8lite_alel21.
CM won't fix this but CM is relatively easier in fixing bugs (thanks to it's large community support) but very difficult in getting it to boot.
from android_device_huawei_p8lite_alel21.
Does the RIL effect 3g and etc. I don't know if I can help but you need someone who has Java knowledge. I have mush but not in things such this , gonna have a look and try to find someone who knows what to do.
from android_device_huawei_p8lite_alel21.
The first step would be to deodex the framework files. Due to Android ART Runtime, the framework classes are stored in a boot.oat file. So the actual framework files contain nothing useful as most of the classes are pulled away and stored in a separate file. I'll edit this post as soon as I get the deodexed framework.
from android_device_huawei_p8lite_alel21.
@VenityZ RIL (Radio Interface Layer) manages the complete baseband and modem. Simply, your cellular network. It is a means of transport or whatever else between the software and hardware.
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig Already knew this but thx anyway. On my old device it had a more important role.
@XePeleato If you need help , I could make a public post with a full explanation of the project and with its problems where I search for people to help. If you give me a yes I will make one.
from android_device_huawei_p8lite_alel21.
@XePeleato Did you decompiled the hwframework.jar? I would upload it right now if's not.
from android_device_huawei_p8lite_alel21.
@XePeleato in aosp_hi6210sft.mk add these libraries /vendor/lib/libreference-ril.so
, /vendor/lib64/libreference-ril.so
, /vendor/lib/librilutils.so
and /vendor/lib64/librilutils.so
.
Also I've got 3 other Anonymous developers to look into this RIL problem :)
from android_device_huawei_p8lite_alel21.
I really appreciate your help,thank you! But unfortunately it doesn't work
from android_device_huawei_p8lite_alel21.
Could it be have someting to do with this?
Stock:
-#BOARD_RIL_CLASS := ../../../device/HUAWEI/hi6210sft/ril/
Edit in yours:
+BOARD_RIL_CLASS := src/java/com/android/internal/telephony
Maybe not vaild path or else?
from android_device_huawei_p8lite_alel21.
@sgspluss That's because I have moved it,however that RIL class just fixes the signal strength and other minor bugs, so even if it's not loading correctly, it's not causing the problem.
from android_device_huawei_p8lite_alel21.
If anyone here knows anything about Java development, I have uploaded the disassembled hwframework.jar here: https://drive.google.com/file/d/0B0LG0AQ4V9FpN0xmZERsbEdVQTg/view?usp=sharing. The file uploaded is a .zip file. Inside it are .smali files which can be edited using any text editor (such as Notepad++).
This framework can be used as a reference to patch AOSP framework (which unfortunately I don't know how to)
from android_device_huawei_p8lite_alel21.
@XePeleato , you already done a very good job, you are my hero 😄
But could you please tell us how you were able to build? I tried to build from your tree, it worked after adjusting some settings but got an error when i booted. adb error. Maybe a little manual 😉
Never been able to get a full boot. Always stuck on boot.
I would like to help with the ril problem but if i can't make a build it's not easy
from android_device_huawei_p8lite_alel21.
@Olrak which Android repo you're using?
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig , i have tried all of them. Android 5.0, Android 5.1 R1, etc...
I always get this error : http://pastebin.com/raw/F1744gqG
from android_device_huawei_p8lite_alel21.
- Downgrade back to Android 5.1.1 (if you are on Android 6.0) i.e. flash stock Huawei Android 5.1.1.
- The stock boot.img won't work. Netd (Network Daemon) is failing maybe because @XePeleato made some changes to kernel (NETFILTERS???) and init.rc in ramdisk. Compile a boot.img yourself using this repository kernel and ramdisk files.
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig of which vesion is the Framework?
from android_device_huawei_p8lite_alel21.
@VenityZ It's stock Huawei Framework Android 5.1.1. EMUI 3.1
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig I don't know if it changes something. But you were using B008 I guess theres a newer 5.1.1. I think the frameworks are different need update pakage?
Also are the permissions in the ueventd.rc right not familiar the modem.
from android_device_huawei_p8lite_alel21.
@VenityZ Actually, we don't need any EMUI framework patches. We only need how hwframework invokes and manages RIL. You may compare all RIL classes in my uploaded version to any other Android 5.1.1 EMUI version. I think it would be the same.
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig Nice job! Let me play around with it, and let's see if I can understand it.
from android_device_huawei_p8lite_alel21.
@olrak2 So were you able to get it to boot?
from android_device_huawei_p8lite_alel21.
@XePeleato About the RIL issue, I was able to find RIL libraries for HiKey boards. And HiKey Board is compatible with AOSP. Any chance they might work?
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig No idea, where did you find them? I could try.
from android_device_huawei_p8lite_alel21.
@XePeleato Here is the link for complete AOSP ROM for HiKey: https://builds.96boards.org/snapshots/hikey/linaro/aosp/218/ . Download system.img.tar.xz. Also for a list of libs and other files included in this distribution, see installed-files.txt
I think the libs would work. GPS, Bluetooth, and maybe RIL, I hope they'll work.
from android_device_huawei_p8lite_alel21.
@XePeleato I built from your sources. Unfortunately, my device is stuck on Huawei logo. It doesn't even goes to bootscreen. Any idea why? (using the boot.img compiled from sources)
from android_device_huawei_p8lite_alel21.
@olrak2 @XePeleato I confirm the bug faced by @olrak2 . Stuck at Net.d starting....
http://pastebin.com/eyVhnnAE
from android_device_huawei_p8lite_alel21.
@muhammadfahadbaig, after looking in the system.img from @XePeleato , you need to copy the entire bin, etc, lib, lib64 dir's to the out directory of your build. You need to put it all in the system folder. After copying the dir's you can build your rom.
Tomorrow i post a scrypt that you can put in your Android.mk file.
from android_device_huawei_p8lite_alel21.
@olrak2 Yeah, I figured that out. The reason of Net.d is crashing was either because of init.rc in ramdisk or because of the Android Runtime crashing. The latter is caused because of incompatible libraries being used in the ROM which are not compatible with AOSP.
@XePeleato It would be great if you upload the vendor files you're using. It seems that some vendor files which I'm using are not compatible with AOSP and hence the Android Runtime crashing. It would be great if you upload the vendor files to ensure compatibility and that anyone who is trying to build from your source atleast gets a bootable build.
from android_device_huawei_p8lite_alel21.
@XePeleato Right about that! I'm using Android 5.1.1 r37 and I would not like to face some major crashes. Also, it's good you uploaded the 5.1.1 system.img on XDA. I'll extract the libs from that and then I'll create a repository here on github.
from android_device_huawei_p8lite_alel21.
@XePeleato @olrak2 Here are the vendor files :) https://github.com/muhammadfahadbaig/vendor_device_hi6210sft
from android_device_huawei_p8lite_alel21.
@XePeleato Good news
If you need something, just call.
My working tree for omnirom 5.1 is on my github. (https://github.com/olrak2/android_device_huawei_alice)
from android_device_huawei_p8lite_alel21.
How's everything going? And what about the RIL?
from android_device_huawei_p8lite_alel21.
There's still work to be done, the RIL stack won't work until I patch the framework.
from android_device_huawei_p8lite_alel21.
Related Issues (9)
- Cyanogenmod13_xda HOT 1
- RIL working? HOT 7
- CyanogenMod 13 Alpha release HOT 14
- Blobs..
- Main bugs & things I need help with HOT 96
- I/ServiceManager( 3164): Waiting for service media.audio_policy... HOT 10
- Testers needed! HOT 24
- Android 6.0 ALE-L21 Oficial HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_device_huawei_p8lite_alel21.