Hello all,
I am new to XDA, but I am not new in software development.
I wanted to install Lineage OS on my realme 3 pro, but all I have come across is download links to direct installers, and all I see is people blindly trusting and installing those ROMS.
Why aren't developers putting links to their modified source code of Lineage OS so people can review the code and compile directly from source?
How do I know these ROMS/installers/tools don't have malware/botnets in them?
Concerned
Even I have a realme 3 pro and I'm concerned over this same thing. If someone can shed more light on this topic or take the necessary actions, it would be highly appreciated .
Related
Hello Everyone!
Please, what are the requirements for porting a certain ROM to (Huawei Honor 7)?
I am really interested in trying to port a certain ROM to this device. Although i am not an Android Developer but rather a web programmer, still i would like to try to port it and hopefully learn along the way.
Other Related Questions:
Q1). Taking this device into consideration (Huawei Honor 7 - PLK-L01), what ROMs are the easiest and most suitable to be ported to it? (e.g. CyanogenMod, AOKP, ParanoidAndroid, OmniROM, or MIUI...etc).
Q2). I read a guide on this forum teaching an easy method for porting. Since the post is old though, i have a feeling that the method is pretty much outdated or simply does not work for Honor 7. You can find this guide at: http://forum.xda-developers.com/showthread.php?t=1908008
If someone can check it up and see if it is still a valid method, i would surely like to try it on Honor 7 and share any good results with everyone on here.
In case it is a valid method, then which would be the most suitable "Port ROM" candidate to be chosen for this device (Huawei Honor 7 - PLK-L01)?
Q3). What are the required skills needed to port a certain ROM to Honor 7?
I am just a web developer (HTML5/CSS3, PHP, MySQL, JS) with no skills in C/C++, Java or Android (apart from those courses that i have got during the college years).
Thanks for reading my questions! Any comments, answers or suggestions will always be appreciated.
Dear xda community,
I just made my account so I can ask the question written above (and join your community :fingers-crossed. I don't ask for instructions, guides etc. I just want to know if it's possible and if so, how hard is it?
There was a guy who always ported the MIUI official global developer SD roms to the MTK phones. It worked pretty well, though I'm not a great fan of MIUI's design & bloatware. Long story short: he did it in a very short period of time.
There are many Android 5 (6 at best) custom roms out there, though we have Android 7 (offical resurrection remix OS) for the SD device. MTK and Snapdragon share the latest MIUI/Android version (7.11.23), so maybe copy/paste files is possible until a certain limit?
Thanks for your answers and best regards (and sorry if I'm not seeing any obvious mistake, I'm just learning C++ at the moment and that's all )
Marvin M.
MarvinMe said:
Dear xda community,
I just made my account so I can ask the question written above (and join your community :fingers-crossed. I don't ask for instructions, guides etc. I just want to know if it's possible and if so, how hard is it?
There was a guy who always ported the MIUI official global developer SD roms to the MTK phones. It worked pretty well, though I'm not a great fan of MIUI's design & bloatware. Long story short: he did it in a very short period of time.
There are many Android 5 (6 at best) custom roms out there, though we have Android 7 (offical resurrection remix OS) for the SD device. MTK and Snapdragon share the latest MIUI/Android version (7.11.23), so maybe copy/paste files is possible until a certain limit?
Thanks for your answers and best regards (and sorry if I'm not seeing any obvious mistake, I'm just learning C++ at the moment and that's all )
Marvin M.
Click to expand...
Click to collapse
Actually No... SD and MTK are 2 different architectures and the kernel having the apis implementated wont be common... But it would be little simpler if porting rom also shares the same archecture... So u need to browse similar roms which are in same architecture....
Also to port across different OS versions, you need kernel source to provide respective drivers.... Hope it helps
As there is no interest nor popularity on this device to stimulate a healthy developer community, I have decided to look into ROM building and what is required. I have followed this three part video in explaining how to build Lineage OS from source to a device. I have made it to part two where I download the Lineage OS source code to my Linux work-space. Where I get stuck is adding the source to the ROM. The question now is How do I attach the Lineage OS source code to the kernel source code for this device?
Information sources...
Part 1 https://www.youtube.com/watch?v=iZmjOlUq_3c&t=1s
Part 2 https://www.youtube.com/watch?v=MGI3NSJFtKA
Part 3 https://www.youtube.com/watch?v=AJCgOHtli64&t=153s
Current Kernel source code from Asus https://www.asus.com/ca-en/Phone/ZenFone-4-ZE554KL/HelpDesk_Download/
Just ordered one. I've never built Lineage OS either, but maybe we can work together to figure it out.
I have the lineage OS sorce code ready to compile on my system. I just need to know how to add the nesary kernel with it. Any ideas?
Any progress?
Sent from my [device_name] using XDA-Developers Legacy app
Nope! Unless you have anything to contribute.
someaguy said:
As there is no interest nor popularity on this device to stimulate a healthy developer community, I have decided to look into ROM building and what is required. I have followed this three part video in explaining how to build Lineage OS from source to a device. I have made it to part two where I download the Lineage OS source code to my Linux work-space. Where I get stuck is adding the source to the ROM. The question now is How do I attach the Lineage OS source code to the kernel source code for this device?
Click to expand...
Click to collapse
I also looked into building Lineage, seems like it's going to be more than I'm willing to commit to, so I'll share what I found in hopes that it will help you or anyone else move forward with this.
I found this restored CM wiki page on the subject: fat-tire.github.io/porting-intro.html (Sorry, can't make it clickable since I'm new)
The gist seems to be that you need to make three directories in the lineage source (note z01kd appears to be the codename for the Zenfone 4 based on the build.prop file I pulled from my phone)
device/asus/z01kd - Device file tree
kernel/asus/z01kd - Kernel
vendor/asus/z01kd - Proprietary blobs
In the above CM guide, it says to use ./build/tools/device/mkvendor.sh to generate the Device file tree from a boot.img file extracted from an update.zip (from Asus) or extracted from the phone, but that didn't work with the version I was trying to do (15.1), mkvendor.sh wasn't there at all. So I explored option #2 which was to fork an existing device file tree repo from a similar device and tweak it for the device you want to port and I found that the Zenfone Max Pro M1 (X00TD) (github.com/LineageOS/android_device_asus_X00TD) is the closest lineage supported device that we could copy from (at least that I could find). It looks like you might even be able to use the same kernel as that device (github.com/LineageOS/android_kernel_asus_sdm660) because the SOCs are pretty close (Snapdragon 630 vs Snapdragon 636), but you may need to use the stock kernel that you linked to in your original post, not sure.
There's a part in the lineage docs about building from source (only for supported devices) (wiki.lineageos.org/devices/X00TD/build#extract-proprietary-blobs) about extracting proprietary blobs (wiki.lineageos.org/extracting_blobs_from_zips.html) for the vendor/asus/z01kd folder. It said that you could use a lineage update.zip, but I was able to do it with the Asus update.zip. Don't know if that will work or not, but it seems like the only option since the Zenfone 4 doesn't have a lineage update.zip to pull proprietary blobs from.
And that's about as far as I got
Once you have those three folders set up and properly configured you should in theory be able to build it.
Update 9/3/2018
I just found the device file tree and kernel for Zenfone 4 that @shakalaca used to build TWRP. Looks like there are some different naming conventions from what lineage would expect (omni_Z01K.mk vs lineage.mk), but a lot of the stuff looks to be the same (eg BoardConfig.mk) and the files that do have a different name look like they're roughly equivalent.
github.com/TeamWin/android_device_asus_Z01K - Zenfone 4 TWRP device file tree
github.com/shakalaca/android_kernel_asus_ze554kl - Zenfone 4 TWRP kernel
Between these and the above X00TD device file tree and kernel links, we should be able to get pretty close to a working config.
What if you compile what you have and see if it boots on your device?
someaguy said:
What if you compile what you have and see if it boots on your device?
Click to expand...
Click to collapse
Sorry...I already deleted the environment I had set up, to reclaim the 50+ GB of disk space.
If it's any consolation, I never made it far enough for it to build successfully.
I am trying to build Lineage OS too
In this guide(https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763)
It says we need three files(device tree,kernel,vendor) to build it.
We have kernel and device tree from github(https://github.com/TeamWin/android_device_asus_Z01K)
but we still need vendor from our device,and the commend under this guide(https://www.isthnew.com/archives/build-lineageos.html) says that we can get vendor files by running "extract-files.sh".
But where can we find that?
(Sorry for my bad English
rol.
try to look here.https://forum.xda-developers.com/pr.../tool-capire-le-treble-terble-vendor-t3774629
I have tried that CLT project,but it didn't work
Maybe use this?
https://forum.xda-developers.com/axon-7/development/tool-party-v0-1-vendor-partition-t3831517
Hello all,
I have a question regarding compiling the android source. This is mostly a general question that can be applied to any device ; however, the device I will be using is the Ascend Mate 7.
I recently got an old Ascend Mate 7 from a friend that I can do what ever with. So, I figured I would try to build Android from source and then flash it to the device.
I have already downloaded the source code. I am about to build the source for the Ascend Mate 7. Then, I found out that I might need to know the Device tree? There seems to be some conflicting information regarding this. Using google's guide, all I need to know is the code name for the device and there we go. We can compile the source! (Woot!)
On the other hand, other guides state that I need to download the device identity such as the tree, vendor, and kernel and include this in the source. (See this guide on xda website: https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763) In another guide, I need to setup the jack server? (https://www.digitalocean.com/community/tutorials/how-to-build-android-roms-on-ubuntu-16-04)
So which is it? Should I just follow Google's guide or do I really need to know the device identity? If the latter, How do I search for the device tree, vendor, and kernel? More importantly, what are these and how do they work in relation to the Android source?
Also, I believe I will need manufacturer drivers for my phone to operate the peripherals. How do I download this? This might be a stretch but can't I get those files from the Mate 7?
Any thoughts?
I’ve been looking for the best supported/stable open source OS for poco f1, for example I’d like to try Ubuntu touch but I’m having difficulty finding the right kernel, SailfishOS lacks support. I’m no expert, but want to try something other than iOS or Android. Has anyone tried anything different or maybe can advise me on a rom to try.
Many thanks