[SOURCES][DEVONLY][SM-G850F] LineageOS 14.1 - Samsung Galaxy Alpha

Hello,
I've started to bring the ROM forward to LineageOS X.x for the G850F. If anybody knows how to port a ROM or knows C/C++ and want to work together, feel free to contact me! Reading and understanding strace output is essential.
SOURCES
I will post my progress in this thread.

I already booted it but it has many bugs : Ril, Camera, Etc...
나의 IM-100S 의 Tapatalk에서 보냄

good job bros keep going

SerenityS said:
I already booted it but it has many bugs : Ril, Camera, Etc...
나의 IM-100S 의 Tapatalk에서 보냄
Click to expand...
Click to collapse
So you already fixed ril.h, kernel build issues, SlteRIL.h, gralloc.h ... ???

modpunk said:
So you already fixed ril.h, kernel build issues, SlteRIL.h, gralloc.h ... ???
Click to expand...
Click to collapse
Check this - https://github.com/SerenityS/android_device_samsung_slte
Im using CM13 kernel source with SELinux permissive , CM13 vendors.
It has little bit dirty commit status & sources because i try many things to fix errors.

SerenityS said:
Check this - https://github.com/SerenityS/android_device_samsung_slte
Im using CM13 kernel source with SELinux permissive , CM13 vendors.
It has little bit dirty commit status & sources because i try many things to fix errors.
Click to expand...
Click to collapse
I've started too, the main repo is now here:
https://git.cryptomilk.org/projects/android/android_device_samsung_sltexx.git/
The kernel already has all the fixes and compiles.
I would be great if you could start again based on my android_device_samsung_sltexx.git branch and we work together to get things done. There is #cyanogenmod-exynos5 on irc.freenode.net for developers.

A lot of stuff will not work, because the features have not been ported to cm-14.1 yet. For example the Samsung camera code is not in framworks_av, color support is missing etc.
So the first steps are just to get it compiling.
Next:
Update ril.h (this is a manual task which needs to be done carefully)
Update sepolicy

modpunk said:
A lot of stuff will not work, because the features have not been ported to cm-14.1 yet. For example the Samsung camera code is not in framworks_av, color support is missing etc.
So the first steps are just to get it compiling.
Next:
Update ril.h (this is a manual task which needs to be done carefully)
Update sepolicy
Click to expand...
Click to collapse
https://github.com/SerenityS/android_device_samsung_slte
In branch cm-14.1, I updated ril.h & some other fixs, so we need to verify it.
+ source are based on your cm-14.1

SerenityS said:
https://github.com/SerenityS/android_device_samsung_slte
In branch cm-14.1, I updated ril.h & some other fixs, so we need to verify it.
+ source are based on your cm-14.1
Click to expand...
Click to collapse
Yes, I've looked into your changes already but a lot of some are not really correct.
SLTE doesn't need a modemloader, this is only required for treltexx and gts2 devices. We also do not have to set the hwrevison for cbd.
I like your ril.h changes, they are small and easy to review! Great work!
I review and cherry-pick them tomorrow. I don't have time today.
Thanks for your help!

That will be great!

modpunk said:
Yes, I've looked into your changes already but a lot of some are not really correct.
SLTE doesn't need a modemloader, this is only required for treltexx and gts2 devices. We also do not have to set the hwrevison for cbd.
I like your ril.h changes, they are small and easy to review! Great work!
I review and cherry-pick them tomorrow. I don't have time today.
Thanks for your help!
Click to expand...
Click to collapse
Okay I revert commits what we doesnt need.
I've just tried to test about seclabels and domain_deprecated just now, but I think it doesn't need now.
I don't know why it work soon without that patches, maybe there is something about the work at Cyanogen Team.
Now I'm in clean build, I'll let you know that we need patches surely when the build is done.
+ Please check my hardware_5430 repo and vendor repo.
Mobicore works without any error (according to logs).

@SerenityS can you tell me what works and what doesn't so far:
RIL (radio)
phone calls
Wifi
Camera
Audio
...

modpunk said:
@SerenityS can you tell me what works and what doesn't so far:
RIL (radio)
phone calls
Wifi
Camera
Audio
...
Click to expand...
Click to collapse
No problem.
I will rebuild with your source and notice which function working or not working.

modpunk said:
@SerenityS can you tell me what works and what doesn't so far:
RIL (radio)
phone calls
Wifi
Camera
Audio
...
Click to expand...
Click to collapse
Work
WIFI
Bluetooth
Audio
NFC
etc,,
Not work
RIL (slte.java?)
Camera (SHIM not working properly now + maybe more framework's problem)
GPS (Need hexedit : https://github.com/TheMuppets/propr...mmit/976064c4c69acbb91c8355b09c0c7645ba6cd76d)
In cm-14.1_dev branch
Fix more sepolicy denied (Fix for CBD - now can working cpboot service normally)
Fix settings FC
Update README
Fix module name for stlport (I don't know why you using stlport instead of libstlport)
logcat : https://gist.github.com/SerenityS/d437342e6516461b402cde28aead6b1f

SerenityS said:
Work
WIFI
Bluetooth
Audio
NFC
etc,,
Not work
RIL (slte.java?)
Camera (SHIM not working properly now + maybe more framework's problem)
GPS (Need hexedit : https://github.com/TheMuppets/propr...mmit/976064c4c69acbb91c8355b09c0c7645ba6cd76d)
In cm-14.1_dev branch
Fix more sepolicy denied (Fix for CBD - now can working cpboot service normally)
Fix settings FC
Update README
Fix module name for stlport (I don't know why you using stlport instead of libstlport)
logcat : https://gist.github.com/SerenityS/d437342e6516461b402cde28aead6b1f
Click to expand...
Click to collapse
I will try to look into RIL tonight.
The Samsung Camera support in frameworks/av is missing.
Can you give more details on the GPS hexedit ...

modpunk said:
I will try to look into RIL tonight.
The Samsung Camera support in frameworks/av is missing.
Can you give more details on the GPS hexedit ...
Click to expand...
Click to collapse
Check commit message in themuppets'.

Now camera is working
+ If sepolicy permissive, video recording and shim working too.
So we need to fix sepolicy..
나의 IM-100S 의 Tapatalk에서 보냄

Is it usable now ? And where can i download the file if yes ?

What works:
RADIO
Camera taking normal picture
Audio
Wifi
What doesn't work:
GPS
Video decoding
Haven't tested more yet ... time to go to bed ...

@SerenityS Do you have gpsd working. Did you use a newer gpsd binary?

Related

[ROM] [Unofficial] [Stable] [6.0.1] CyanogenMod 13.0 for trltespr

Disclaimer
This ROM is constantly under development, and the file(s) provided are a snapshot at a particular point in time. There are no guarantees that they will work. On the other hand, it's quite possible that the file(s) here may make your phone explode, make your boy/girlfriend leave for another country, cause you immense financial loss or other horrible things. The CyanogenMod team and I are not responsible for any of it.
***THIS ROM ONLY WORKS WITH OK1 OR PREVIOUS BOOTLOADERS/MODEMS***
Reporting Bugs
This thread is for development discussion of this ROM only. If you have encountered a bug, please try to reproduce it with a CLEAN FLASH without any other apps/data (unless specifically needed to reproduce the bug).
Valid bug reports will contain the items below as a minimum:
Steps to reproduce error
Phone firmware (Baseband) - (i.e. NK2, OB7, OG5) - You can find this by going to Settings->About phone and looking for Baseband version
Version of CyanogenMod (i.e. 2015XXXX-UNOFFICIAL)
Filename / version of gapps used if the issue may be related to gapps
Logcat - CatLog is a good Android app to save logs with. You can attach to your XDA post if you desire or use a service like PasteBin.
Installation Instructions
MAKE SURE YOU ARE ON OG5 OR GREATER BASEBAND!!!!
Use TWRP!
Do a nandroid! What happens when the ROM doesn't work?? You'll be stuck, that's what!
Factory Reset if this is your first flash of CyanogenMod 13.0! (Wipe Cache/Dalvik/Data)
Install the latest nightly ROM ZIP file!
Install your favorite gapps (Slim Marshmallow Gapps is the only version I consider at this point in testing)
What Works / Doesn't
Working: Mobile Data
Working: WiFi
Working: Camera / Camcorder
Working: Calls / SMS / MMS
Working: GPS
Working: Bluetooth
Working: External SD, including formatting
Working: S-Pen
[*]Not Working: Bluetooth (Voice Calls) -- Needs more testing and more logs (fixed in 01/22/16 build)
[*]Not Working: APN Access (even if you make an Activity shortcut) (fixed in 02/04/16 build)
[*]Not Working: Exfat formatted external SD cards (fixed in 12/16/15 build)
Not Tested: Anything not mentioned above.
Found Bugs
Camera takes a long time to launch the first time each boot (before asking for location permissions, if first time)
Camcorder crashes if you use UHD 4k resolution -- 1080p works fine.
Browser crashes when downloading files -- use Chrome instead or edit Browser's permissions to allow "Storage".
Brightness gets wonky - when you let the phone dim, it may not go back to normal brightness. Press power to turn off screen and press again to fix the brightness and turn screen back on. Seems to be resolved by turning off Ambient Display / Daydream.
Automatic time zones may not work properly. You can force a timezone in Settings->Date and Time
Sometimes calls will show up as "Unknown" in the call log.
Cannot use WiFi Hotspot in 5GHz Mode
Camera freezes when you use the flash -- use alternate camera from Play Store
Download
AFH
Sources
Device Tree
Common Tree
Kernel
To compile, you will need a proper build environment. You will also need a stock OG5 or OK1 ROM to extract the proprietary files from. These builds also use the Adreno blobs from "shamu" (here). The shamu blobs Adreno blobs replace any blobs from the OG5/OK1 ROM.
THIS THREAD IS NOT FOR BUILD ENVIRONMENT OR COMPILING DISCUSSIONS
Please be aware that cm-13.0 is in a HUGE state of flux. You should NOT depend on this as your primary ROM. I cannot guarantee that everything (or anything) will work.
If you cannot post a helpful message or a detailed bug report, please do not post at all.
XDA:DevDB Information
CyanogenMod 13.0 for trltespr, ROM for the Sprint Samsung Galaxy Note 4
Contributors
nivron, drcrimzon, fattire
Source Code: https://github.com/fat-tire/android_kernel_samsung_trlte/tree/cm-13.0
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: OG5 or Greater Baseband
Based On: CyanogenMod
Version Information
Status: Stable
Created 2015-12-03
Last Updated 2016-02-25
Changelogs
Below are changelogs for the different versions of the ROM available for download on AFH. Please re-read the original post, as the Working/Not Working/Known Issues section relates to the MOST RECENT version of the ROM.
06/21/16 - Probable Final Build
Upstream CM features and bug fixes
05/24/16
Includes "Gello" Browser instead of AOSP Browser
Specific ISO options in Camera are now selectable
Updated CPU/Architecture Variants for Build
Upstream CM features and bug fixes
05/18/16
Upstream CM features and bug fixes
05/05/16
Upstream CM features and bug fixes
04/12/16
Upstream CM features and bug fixes
03/21/16 - EXPERIMENTAL BUILD
Upstream CM features and bug fixes
Misc common updates to get closer to my branch
03/08/16 - EXPERIMENTAL BUILD
Upstream bug fixes and features
Updated time_daemon (fix time/date resets?) Credit: @placiano and @Pafcholini
SELINUX Enforcing
Back to Fat Tire's common repo (which I contribute to)
Charging Rapidly will now show if >= 750mA
Vibrator Intensity configurable via Settings->Display
03/01/16 - EXPERIMENTAL BUILD
Fingerprint Scanner (a bit tricky to use, but it works) - Credit: Ljzyal
Added sensorhub service - Credit: raymanfx, fattire
02/25/16 - EXPERIMENTAL BUILD
Upstream bug fixes and features
Less GPS Debugging in Logs
Removed init system prop generator
Removed trlteusc (because of above change)
Shimmed libqc-opt.so
Switched build to clang
Switched back to CM PowerHAL
Added hardware-backed graphics for Recents
Removed qcmediaplayer
Removed tcmiface
Stopped mpdecision from spamming the logs
Removed ZeroLemon fix (Battery Capacity Testing)
02/09/16
Upstream bug fixes
Fixed accidental touch input while in call
02/04/16
Upstream bug fixes
CM - Fresh installs won't default to 24-hour time or a particular date format.
CM - Live Lockscreen (currently cannot disable properly, will be fixed in future build)
APN Settings are now available/editable
Useless "Carrier Settings" option removed.
01/27/16
Bluetooth - Corrected to a more proper fix.
Upstream bug fixes
01/22/16
Upstream bug fixes
Forgot to add the ZeroLemon battery fix (AGAIN), should be back next build
01/14/16
New Camera App
Removal of Busybox in favor of Toybox (upstream AOSP change)
Upstream CM Changes
Forgot to add the ZeroLemon battery fix, should be back next build
01/04/16
Upstream CM Changes
12/16/15
Upstream CM Changes
Exfat external SD cards now are usable
12/10/15
Upstream CM Changes
ZeroLemon Fuel Gauge Fix (by TheLoneWolf20)
12/09/15
Upstream AOSP/CAF Changes
Upstream CyanogenMod Changes
Fixed Button Remapping (Recents Button Now Available for Mapping)
Re-Enabled Stylus Gestures
Added Updated Offmode Charging (Now With Icon!)
One of the upstream AOSP changes is related to DHCP on WiFi. Certain DHCP servers use non-standard UDP ports when they offer addresses. The prior build that was posted would not interpret these properly, and you would lose WiFi connectivity within a minute or so of connecting. This is now fixed.
12/03/15
Initial Version
6.0 is here!!
Thank u so much dude!!!
I'll fix in a bit but the OP says to get Slim Lollipop gapps. That was from me copying the old thread. Use the Marshmallow gapps, obviously!
Sent from my SM-N910P using Tapatalk
Thank you!
Please always review the current status of the ROM before posting any potential bugs. I'm also curious to see if our issue sending texts is fixed - the one that requires switching the network types.
Sent from my SM-N910P using Tapatalk
Superb. Great work nivs.
Getting folder not found in mega, it worked from the office about an hour ago but not anymore.
Won't download on my phone or pc link might be dead ?
Mega site is asking for decryption key ...
I'm uploading to AFH now, will update OP when complete with link.
See OP for AFH link.
Thanks ?
Does it have mobile Hotspot?
Nice work, keep it up!
I have tested and can confirm Hotspot is working.
Also can confirm Xposed Frameworks works without issue on this build as well, just make sure you get xposed-v78-sdk23-arm.
crazycori said:
Nice work, keep it up!
I have tested and can confirm Hotspot is working.
Also can confirm Xposed Frameworks works without issue on this build as well, just make sure you get xposed-v78-sdk23-arm.
Click to expand...
Click to collapse
Sms work without fix?
xyojimbox said:
Sms work without fix?
Click to expand...
Click to collapse
Yeah, I was able to send SMS and MMS without issues right after install.
drcrimzon said:
I'm uploading to AFH now, will update OP when complete with link.
See OP for AFH link.
Click to expand...
Click to collapse
Got it, it worked, thanks a billion! Loving MM
Thanks for the AFH upload! Silly MEGA.
I'm going to work on this a bit more today and try to get some of the bugs worked out. Future uploads will probably be AFH only.
drcrimzon said:
I'm uploading to AFH now, will update OP when complete with link.
See OP for AFH link.
Click to expand...
Click to collapse
Sent from my SM-N910P using Tapatalk
Does or when will this include the zero lemom mod if not does anyone know a kernel I can flash onto this that includes it? Also is this a nightly update?
Just a warning for any newb's, as it states:
•Not Working: Exfat formatted external SD cards
Anyone installs this ROM and has this type of filesystem with your EXTSdcard may very well have issues with your SD card and the ROM thinking it is corrupted and try to FIX (meaning it will format the disk). DO NOT DO THIS or you will lose your SDCard.
You may also have issues after you play with CM13 and go back to other ROMs with not being able to read the SDcard (thinking it is corrupted and not readable, this is NOT true, it is still there). I got around this by wiping device, and using CM12.1 (latest), copying all of my SDCard to my PC, then formatting the SCDard back to a universally readable filesystem.

[WIP] AOSP 7.1.1 (Nougat)

What's up guys, even though this Nexus 4 is 4 years old, (pun not intended XD) it's still holding up strong and in time for some Nougat treatment. [emoji14]
Note: Most of the components are working and I believe that it is enough for daily tasks. However, YOU see whether it fits your needs or not.
Working:
- Audio
- Wi-Fi
- Bluetooth
- RIL
- H/W Acceleration
- USB
- GPS
- NFC
- Sensors
Semi-Working:
- Camera (Video recording stutters sometimes with some apps)
Not Working:
How to Flash:
1. Download Zip
2. Flash zip
3. Flash GApps
4. Wipe Data (If coming from anything other than 7.0)
4. Flash SuperSU (Optionnal, Uses systemless as a root method)
5. Profit
Note: You will see Fc's all along the setup, just skip them if shown. Also if Google Play Services is crashing, grant it the location permission in the settings.
Download:
AOSP 7.0 download folder
Mirror
Quanta:
Quanta V19 Test
GApps:
OpenGApps
Banks GApps
SuperSU: SuperSU Stable
Sources:
Device Tree
Kernel Source
Changelog, other stuff
Code:
V10 (18/12/16):
- Updated to Android 7.1.1
- Patched kernel with the latest security fixes.
V9: (14/10/16)
- Video recording on Camera2 partially fixed (Video shakes sometimes)
- Fixed stack trace for native processes
- Updated to October's Security patches
- Misc fixes
V8: (18/09/16)
- Kernel patched accordingly to September security fixes (Patches all Quadrooter exploits up to now)
- Fixed Torch
V7: (11/09/16)
- Updated to September security fixes (For real this time)
- Enabled H/W encoding for video recording
- Re-enabled navigation bar tweaks and night mode in SystemUI
- Fixed Google Play Services FC's using OpenGApps (For real also)
- Add possibility to change WebView provider
V6: (09/09/16)
- Updated to September security patches
- Fixed freezing while watching YouTube
- Attempt to enable LTE
- Hidden misc battery drain as it causes some misinterpretations
V5: (05/09/16)
- Enabled Doze for real this time
- Reverted a change that may have broke Camera
V4: (02/09/16)
- Fixed H/W video decoding for the most part
- Kernel: SDCard FS enabled
- Attempt to fix permissions for GApps
- Enabled Navigation Bar tweaks and Night mode in SystemUI Tuner.
V3: (30/08/16)
- Fixed Sensors
- Semi-Fixed camera
- Fixed MPDecision
- Enabled Doze
- Used Flo's developper preview N GPU drivers
V2: (28/08/16)
- Fixed audio
- Fixed GPS
- Fixed data connectivity
- Disabled the power toggle widget which caused Settings to crash on every boot
V1 (26/08/16):
- Initial release
Here's a video showing how to install the ROM. (Thanks @Swapnil Soni)
Here's another one with a little overview of it. (Thanks @DaKoin)
Build instructions:
Since some of you guys asked me how to build from scratch, I will give a walkthrough of what I mostly did.
Note that this is in no way a walkthrough in how to compile (there are several guides for that on XDA) but more a guide
on how I did my setup so you can replicate the AOSP builds on your device.
Here's what I did:
1. Download the latest AOSP revision for android-7.1 which is r6 at the time of this writing (replace with whatever required branch necessary)
Code:
repo init -u https://android.googlesource.com/platform/manifest -b refs/tags/android-7.1.1_r6
repo sync
2. Download the kernel source used for the build:
Code:
git clone https://github.com/zaclimon/android_kernel_google_msm -b mako_nougat
3. Once both sources has been downloaded, compile the kernel. Note that AOSP do have a kernel toolchain that you can use to compile
Code:
export CROSS_COMPILE "/path/to/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-"
make mako_defconfig
make -j$(grep -c processor /proc/cpuinfo)
4. Copy the arch/arm/boot/zImage file to the Android source into device/lge/mako-kernel
Note: You must create the said directories if they don't exist. You also must rename the file to kernel after copy.
5. Go back to the AOSP source, and download/update/replace the following repositories for each component (relative path):
Code:
device/lge:
git clone https://github.com/zaclimon/android_device_lge_mako mako
hardware/qcom:
git clone https://github.com/zaclimon/android_hardware_qcom_audio audio
git clone https://github.com/zaclimon/android_hardware_qcom_display display
git clone https://github.com/zaclimon/android_hardware_qcom_gps gps
git clone https://github.com/zaclimon/android_hardware_qcom_media media
vendor:
git clone https://github.com/zaclimon/android_vendor_lge lge
6. Apply the following patches to each of their respective repositories:
Code:
bionic:
https://github.com/LineageOS/android_bionic/commit/81af26a3a033723fb34ddf280e33a9d4a6ce82c4.patch
frameworks/base:
https://gist.github.com/zaclimon/bb39d7f5059b63e3add3b5cad15e87db
https://android-review.googlesource.com/#/c/147266/
system/sepolicy:
https://github.com/LineageOS/android_system_sepolicy/commit/10dd0402ab62aa1a6416d7ea549a6a3eea1c6ae4.patch
7. Increase RAM usage for Jack (Only if you have 6/8GB of RAM in your system)
Code:
export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
8. Once all the patches have been applied, we can now proceed to compile the system.
Code:
. build/envsetup.sh && lunch aosp_mako-userdebug
make -j$(grep -c processor /proc/cpuinfo) otapackage
9. The build should be in out/target/product/mako
10. Flash and enjoy!!
You're the king, buddy! ?
P.
[sntfrmnxs⁴]
first
oops, second
Thanks @zaclimon and BTW wiping data is needed?
Nitin
nitin.chobhe said:
first
Nitin
Click to expand...
Click to collapse
Ha ha ! Almost.
Sent from my Nexus 4 using Tapatalk
You're great!!
nitin.chobhe said:
first
oops, second
Thanks @zaclimon and BTW wiping data is needed?
Nitin
Click to expand...
Click to collapse
It's not necessary per se because it should boot fine. That said, as always, it's recommended to wipe so random issues are less prone to happen.
Merci infiniement !!!
Just downloaded, and works, I think we need to changes the permission so that google play service not crashing
Its people like you who make this world a better place, thank you very much!
zaclimon said:
It's not necessary per se because it should boot fine. That said, as always, it's recommended to wipe so random issues are less prone to happen.
Click to expand...
Click to collapse
Thanks man! One last question - I need N gapps for this, right?
Open gapps should be fine?
@cqloveqc what gapps did you use? And what permissions need to be modified?
Nitin
funthomasz said:
Its people like you who make this world a better place, thank you very much!
Click to expand...
Click to collapse
nitin.chobhe said:
Thanks man! One last question - I need N gapps for this, right?
Open gapps should be fine?
@cqloveqc what gapps did you use? And what permissions need to be modified?
Nitin
Click to expand...
Click to collapse
Please everybody read the note (I should make it bold so people can see it)
"Note:You will see Fc's all along the setup, just skip them if shown. Also if Google Play Services is crashing, grant it the location permission in the settings. I'm also surprised to say that even with your data not wiped, it's working."
I am coming from the fake Nexus Rom aka I do not have a custom bootloader yet. What bootloader is the best to go with?
Could someone write me a quick instruction how to get started with my situation. I bet there are a lot coming from fake nexus.
Thanks for the great work!!
wow! cool zaclimon, so quanta is now N compatible i guess? haha, gj, if i'll find any kind of fix for something, i'll pull request, and thanks alot!
aabuk said:
wow! cool zaclimon, so quanta is now N compatible i guess? haha, gj, if i'll find any kind of fix for something, i'll pull request, and thanks alot!
Click to expand...
Click to collapse
I compiled a stock kernel as I wanted to start off a fresh base if ever others wanted to use a custom kernel. (Including myself with Quanta) It is patched with Google's latest updates.
I could compile a build of Quanta and incorporate the patches required to boot Nougat but it wouldn't be fair lool.
zaclimon said:
Please everybody read the note (I should make it bold so people can see it)
"Note:You will see Fc's all along the setup, just skip them if shown. Also if Google Play Services is crashing, grant it the location permission in the settings. I'm also surprised to say that even with your data not wiped, it's working."
Click to expand...
Click to collapse
I'm using the open gapps 7.0 arm version, and after change the app permission, all is good so far
And another sergestion, can we change the original LCD density to 240 instead of the default 320 ?
This change make the desktop more attractive.
zaclimon said:
I compiled a stock kernel as I wanted to start off a fresh base if ever others wanted to use a custom kernel. (Including myself with Quanta) It is patched with Google's latest updates.
I could compile a build of Quanta and incorporate the patches required to boot Nougat but it wouldn't be fair lool.
Click to expand...
Click to collapse
hahaha, okie, atleast i got some space to look at dem kernelzz, thanks for echo
cqloveqc said:
I'm using the open gapps 7.0 arm version, and after change the app permission, all is good so far
And another sergestion, can we change the original LCD density to 240 instead of the default 320 ?
This change make the desktop more attractive.
Click to expand...
Click to collapse
This has been allowed always from build.prop, did you try that?
P.
[sntfrmnxs⁴]
Gu$houn* said:
This has been allowed always from build.prop, did you try that?
P.
[sntfrmnxs⁴]
Click to expand...
Click to collapse
Yes, I've tried that by using a es file manager, but if we can make the 240 default, we don't need to make change anymore
Damn I'm late to the party, downloading now !
And thanks a ton @zaclimon for keeping mako alive, you're the man !
@zaclimon nice work.. keep it clean please

[6.0.x|SM-T520| Unofficial Lineage/CyanogenMod 13.0 (n2awifi)

Lineage/CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0 (Marshmallow), which is designed to increase performance and reliability over stock Android for your device.​
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
Lineage/CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). Lineage/CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
Important information:
This thread is for Unofficial Lineage/CyanogenMod 13.0 builds for picassowifi/n2awifi (SM-T520). The following will not be supported here:
Custom kernels
Mods
Xposed
I don't support Xposed and any logcat which includes a Xposed module will be ignored. You're kindly invited to not report bugs if you:
Flashed a custom kernel
Installed or did mods from untrusted sources
Modified system files
Installation
First time flashing Lineage/CyanogenMod 13.0 on your device, or coming from another ROM?
Download the zip(s)
Install a compatible Recovery
Perform a nandroid backup of your current ROM (Optional)
Wipe data/factory reset
Flash Lineage/CyanogenMod
Install the Google Apps addon package (Optional)
Reboot
Other issues?
Before posting in this thread, make sure of a few things:
You used the search function of the forums.
If you are the only one having a problem. Boot into recovery, wipe data/factory reset, reflash the rom/gapps and nothing else. Boot up and see if the problem persists.
Make sure your post is relevant to this thread.
Logs! You can use this: https://play.google.com/store/apps/d....tortel.syslog
Downloads
Lineage:
2017/01/14 build
CyanogenMod:
2016/12/30 build
2016/11/5 build
2016/10/9 build
2016/9/22 build
Changelog:
2017/01/14
migrate from CM to Lineage (better chance to upgrade to CM14.1 soon)
Info: OK-Google/MIC should work. (please feedback!)
2016/12/30
Change to exynos common tree sources (chance to upgrade to CM14.1)
Support of "Deathly Adiutor"
Info: OK-Google/MIC broken!
2016/11/05
Nightly without specific changelog. Just latest sources used.
2016/10/09
IR Blaster fixed
Mic fixed
2016/9/22
Initial Release
Google Apps:
http://opengapps.org/- thanks to the OpenGapps team!
The Lineage/CyanogenMod team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!
Source:
Kernel: https://github.com/exynos5420/android_kernel_samsung_exynos5420
Device Tree: https://github.com/exynos5420/android_device_samsung_n2awifi
Credits:
@UpInTheAir for his kernel magic and misc fixes
@crpalmer (for picassowifi device and kernel gits)
@eousphoros (for his work on klimtwifi)
@nvertigo67 (for his work on chagallwifi)
@Nexorrr (for his work on chagalllte)
@LaCruz (For testing my builds on device)
Exynos5420 Dev Team (@deadman96385 @thompatry @ZakooZ @Orion116 @mosimchah @joshndroid @Andmoreagain @thermskin, @javelinanddart )
@awidawad for his first picassowifi builds
XDA:DevDB Information
[6.0.x|SM-T520| Unofficial Lineage/CyanogenMod 13.0 (n2awifi), ROM for the Samsung Galaxy Tab Pro 12.2, 10.1, 8.4
Contributors
deadman96385, LaCruz
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.4.x
Version Information
Status: Stable
Created 2016-09-22
Last Updated 2017-01-14
Bugs:
None at this time
Hybrid Build:
I have completely replaced all of the proprietary blobs that were from n2awifi (SM-T520) and replaced them with those from n1awifi (SM-P600). It is pretty much your sister tablet the only differences is it has a different screen that supports the s-pen. Internally they are exactly the same. Crucially it also got official Lollipop which your tablet did not. This build is also now using the M kernel base designed for the Galaxy Tab S this allows it to get the latest kernel updates and drivers.
Kernel Info:
M Kernel base from the Galaxy Tab S
M GPU driver from Galaxy Tab S
CPU Voltage Control
CPU OverClock/UnderClock (Up to 2.1GHZ)
MIF/INT Voltage Control
Wolfson Sound Control (No Yamaha support)
UKSM instead of KSM
Added the following IO Schedulers: fifo, fiops, sioplus, tripndroid, vr, zen, bfq (Default)
Full f2fs support updated off the mainline (Stock cm kernel has limited support)
Modified Thermal Throttling temperatures for all devices so hopefully they won't get as hot
Exynos thermal exposed to sysfs
Android Logger disabled by default can be enabled over sysfs
WQ power efficient workqueues (Still need to apply in more places)
Frandom Support
Readahead bumped to 256 from 128
Currently Disabled:
GPU Voltage Control/GPU OverClock/UnderClock (Needs to be rewriten for the M driver)
Mine just in case
Thanks! Will try soon!
Working really great thanks! A good surprise as it seems everything is working. Even the glitches in recent menu are fixed. Kernel is doing good job.
You've done a huge step for this tablet development ...totally unexpected
I Will use it as daily driver and will signal any issue if encountered
Sent from my SM-T520 using XDA-Developers mobile app
Working great.
Camera and gps active!
Thanks a lot for this rom.
OMG thank you! will try it later
sys log - playstore
working in this case or needed Logcat from adb & fastboot ? (ty & sorry for english)
works great, thanks
daitalos said:
working in this case or needed Logcat from adb & fastboot ? (ty & sorry for english)
Click to expand...
Click to collapse
It doesn't need anything! Flash ROM and gapps in twrp nothing else
Sent from my SM-T520 using XDA-Developers mobile app
man for Logcat I asked
Cosmox_ said:
It doesn't need anything! Flash ROM and gapps in twrp nothing else
Sent from my SM-T520 using XDA-Developers mobile app
Click to expand...
Click to collapse
No for how flashed this ROM...
Very nice work!
daitalos said:
working in this case or needed Logcat from adb & fastboot ? (ty & sorry for english)
Click to expand...
Click to collapse
Camera, gps ,wifi ,sd,bluetooth,adb,all working correct,only sometimes some app closed.... ( I have big problem to upload files,maybe my router, I hope be arrived correctly the Logcat) Ty & sorry for english :good:
Great ROM - camera GPS all working.
Had problem with MIC - not sure if working. OK Google does not response (worked on other version of CM13). Tried voice recorder and file was blank
same problem here
DAVECGC said:
Great ROM - camera GPS all working.
Had problem with MIC - not sure if working. OK Google does not response (worked on other version of CM13). Tried voice recorder and file was blank
Click to expand...
Click to collapse
with Ok google...opens,but is not responding...
A thing of beauty - everything I've tested working, no more random brightness fluctuations.
So, how soon do we get CM14?
(I kid, I kid!! No ETAs, I know)
Sent from my SM-T520 using XDA Premium HD app
I jumped ships from CM 12.1. First experiences are very positive, everything works as expected or better. I will report any stray bugs if found.
Thank you very much!
Will this work on picassowifi (SM-T520) or only n2awifi (SM-T520)? I never heard of n2awifi and the link I got to this page was from picassowifi cm13. Thanks!
WVUTampaAlum said:
Will this work on picassowifi (SM-T520) or only n2awifi (SM-T520)? I never heard of n2awifi and the link I got to this page was from picassowifi cm13. Thanks!
Click to expand...
Click to collapse
n2awifi is the proper name for picassowifi, picasso is from the qcom lte device.
Genesius01 said:
A thing of beauty - everything I've tested working, no more random brightness fluctuations.
So, how soon do we get CM14?
(I kid, I kid!! No ETAs, I know)
Sent from my SM-T520 using XDA Premium HD app
Click to expand...
Click to collapse
Well cm-14.0 is mostly working on n1awifi, once its most things are working i will release a build of it
daitalos said:
with Ok google...opens,but is not responding...
Click to expand...
Click to collapse
DAVECGC said:
Great ROM - camera GPS all working.
Had problem with MIC - not sure if working. OK Google does not response (worked on other version of CM13). Tried voice recorder and file was blank
Click to expand...
Click to collapse
Can you post a log of when you are trying to use ok google?
daitalos said:
Camera, gps ,wifi ,all working correct,only sometimes some app closed.... ( I have big problem to upload files,maybe my router, I hope be arrived correctly the Logcat) Ty & sorry for english :good:
Click to expand...
Click to collapse
What apps are forcing closing also are they force closing while you are doing certain things?
some times ..
I am on playstore and i want to Install a app...Touch screen does not respond & says "app does not respond" & closing...After reboot working correct again...This happens only in playstore ( i hope understand me my english is not good) I sent you before Logcat, i think has records this ( if you want I can sent you & another Logcat if it happens again) Ty ( I use nano gapps perhaps i will try & with mini) and google now from any screen display options but not working (see screenshot) [ I got another dmseg & Logcat from fastboot perhaps to help you ] :good:
This. rom. is. awesome!
Thank you! Everything is working so smoothly and without problems so far. best rom ever!

[ROM] Lineage 15.1 for Galaxy A5 2016 [UNOFFICIAL]

Disclaimer
Code:
/*
* Your warranty will be VOID after installing a custom ROM.
*
* Get notified yourself that I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this ROM
* before flashing it!
* YOU are choosing to make these modifications,
* and if you point the finger at me for messing up your device,
* I will laugh at you.
*/
Downloads
Lineage 15.1 builds for Samsung Galaxy A5 2016: mega.nz
Magisk: forum.xda-developers.com
OpenGApps: opengapps.org (I highly recommend you to take Pico package in ARM 8.1)
Installation
Be sure you are running the last version of TWRP available for your device
Do a Nandroid Backup
Download and flash new TWRP 3.2.1 from TWRP Official Website
Download the last O build from mega
Put the zip on the sdcard/internal storage and flash it
Boot it
Working
Telephony (Calls, SMS, Mobile Data)
Wi-Fi
Audio
GPS
Bluetooth (A2DP and BLE is working too)
Enforcing kernel
Camera (picture and video)
Flashlight
NFC
Fingerprint
Not working
NFC is sometimes buggy
UX can be a bit laggy (but it seems it's common to every systems on A5 2016)
Please note that i put here only bugs that i verified and reproduced on my phone /!\
Supported variants
All variants should work at least they have an Exynos 7580!
How to fix error 7
Error 7 is due to non-updated TWRP!
Download newer TWRP (3.2.1-0) on official website (twrp.me)
Flash it using Odin or directly on TWRP
Reboot to recovery then re-flash the ROM
Credits
@l-0-w — maintainer
@Stricted — maintainer
@EinsamerSpieler — A5 2016 donator
Alca, Datenkralle, Gareth, Saino and Sever — testers
Big thanks to all donators
Other details
Sources: Exynos7580 GitHub
Please follow rules and don't insult or off-topic talk in the replies !
Making a fully working system take much time, you can support and help me by doing a small donation : PayPal
Changelog
09.02.2018
- First release
Click to expand...
Click to collapse
20.02.2018
Second release :
- Fully fixed audio speaker
- Fixed lock-screen password, pin and schema
- Reworked fluidity of the interface, isn't the best at this moment, but a bit better
- Fixed touchkeys on variants, also fixed on A3 (build soon)
Click to expand...
Click to collapse
21.02.2018
Second release :
- Regenerated GPS, now fully working (a bit slow to fix position, can take up to 2 minutes)
- Fixed camera (picture only)
- Updated LineageOS sources : re-designed all default icons
Click to expand...
Click to collapse
02.03.2018
Second release :
- Fixed video recording
- Fixed NFC
- Fixed flashlight
Click to expand...
Click to collapse
04.03.2018
- Fixed fingerprint reader
- UI seems a bit faster
- Added Widevine libraries (this can fix some steaming apps such as MyCanal or Netflix, etc...)
Click to expand...
Click to collapse
05.03.2018
- Fixed some sepolicy denials
- Switched to stock LineageOS PowerHAL (can maybe improve performances or battery)
- Binderized some services (can optimize some performances or tasks)
Click to expand...
Click to collapse
20.03.2018
- Updated and fixed denials on Audio Amplifiers (surely better reliability, maybe no more freezes (?) - need testing on long time)
- Fixed screen-recording (by Stricted)
- Fixed issues with WhatsApp, file-photo sharing (by Stricted)
- Improved some RIL-related things
- Updated Wi-Fi kernel driver
Click to expand...
Click to collapse
28.03.2018
Almost final build!
- Fixed earpiece problems
- Fixed random freeze (Update: this wasn't fixed. ref: 08.04.2018 build)
- Fixed most of RIL issues
- Reviewed screen-recording issues (it was maybe wrong built last time)
- Improved UX fluidity (it is still a very very bit laggy, but i think i can't do more optimizations)
- Much more small things (kernel updates, cleaned up some code and useless flags, etc...)
Click to expand...
Click to collapse
08.04.2018
- Fixed again random freezes. I hope this is really fixed now, please don't forget it's a random issue, it can appear anytime ! Actually, testers reported it's gone.
- Fixed sepolicy denials
- Disabled MSAA 4x enabled by default
- Updated Bluetooth configuration
- Added good DRM libraries, so Netflix, MyCanal and other apps are now really working.
- Fixed NFC tile (ref: LineageOS Gerrit)
- Maybe more small edits
- Fixed fingerprint battery draining
Click to expand...
Click to collapse
Discord Group
https://discord.gg/KZvUKPz
Yes brother! I hope that soon the bugs are corrected and we have a good aosp on our mobile, blessings!
Enviado desde mi SM-A510F mediante Tapatalk
Thanks for your hard work bro
Wow, I'm impressed. Keep it up!
Wysłane z mojego SM-A510F przy użyciu Tapatalka
Can I try it on A510M?
Edit: I could try also Dual SIM on it
Flashing....
new link for Gapps just becuase link posted above is a closed thread
https://forum.xda-developers.com/android/apps-games/arm-unofficial-opengapps-builds-android-t3743495
Can you make Linage os for a7 2016? I really want to try lineage os
Thanks for this mate... Hope to see better things in future
Thank you very much! You're awesome! ?
KMXSLR said:
Not working
Flashlight QS
Fingerprint
Video recording
NFC
Audio (speaker + microphone)
GPS (device-only)
Untested & potential errors
Dual-SIM
Click to expand...
Click to collapse
Perhaps for functions that do not work there may be information that will help you out here.
https://lineage.stricted.net/a5xeltexx
https://lineage.stricted.net/a3xeltexx
Installation
To have Google apps working flash at the same time rom and opengapps zip file.
I tried aroma file and replaced every every aosp apps with google apps, everything working good without any FC.
xpity34 said:
Perhaps for functions that do not work there may be information that will help you out here.
https://lineage.stricted.net/a5xeltexx
https://lineage.stricted.net/a3xeltexx
Click to expand...
Click to collapse
There's builds never worked.
frrfba said:
To have Google apps working flash at the same time rom and opengapps zip file.
I tried aroma file and replaced every every aosp apps with google apps, everything working good without any FC.
Click to expand...
Click to collapse
Thanks for reporting a working link and your experience, I updated the 2nd post with your link
xpity34 said:
Perhaps for functions that do not work there may be information that will help you out here.
https://lineage.stricted.net/a5xeltexx
https://lineage.stricted.net/a3xeltexx
Click to expand...
Click to collapse
thanks for reminding me to remove these builds
as stated by @KMXSLR these builds never really worked (at the time where they got built noone really worked on the devices)
i removed them now
as soon as we have stable lineage-15.1 i will add the devices back to my build server
I have the greatest admiration for You, and all those involved in the project!
Respect...
Not Working report
Confirmed working all @KMXSLR reported on first post.
Unhappy to add Ambient Display e Cast (wireless display also WiFi direct) at doesn't work list
nice job victor
i will start following this project
and after u make this rom stable and fast
u can start porting pixel x2 rom which will be amazing
tnx for ur great job
thank you !
Oh my god, I've lost all hope before this post! Thank you, keep it up!
A510M Bugs:
- Same mentioned in post
- Back and recent keys, kernel problem, I guess. It happens when A510F kernel is used on A510M (on any ROM, if I use A510F on Stock, everything works except these keys). So I turned virtual keys on.
- Lags (it is expected, that's the first build...)
DUAL SIM IS WORKING
Ps: Mobile data works only on 2G for SIM2. For SIM1 everything is fine.

[KERNEL] Linux Kernel Version 4.9

Linux Kernel 4.9 for Moto G5​
As you guys already know, our Moto G5 has an ancient linux kernel (3.18.x) which is now EOL (end of life) from support from actual Linux Foundation. It's pretty much stuck there with no probable updates to it (can use the android 3.18 for updates, but I think that's pretty much soon to be deprecated).
I have been working on this kernel since the past one year and finally managed to boot it on our Cedric!​
WARNING: THIS KERNEL IS STILL ALPHA AND MOST OF THE BUGS HAVE STILL NOT BEEN FIXED​.
I just wanted to share this kernel with the community!
What works:
Boots
Display
Touch
Storage
Charger
Battery Indication
Bugs:
Pretty much every basic thing
RIL (Calls, mobile data, etc.)
Vibrations (Weird and too strong)
Camera
Flashlight
Only Oreo boots so far.
Want to try for yourself?
Click Here to download link LineageOS 15.1 with Linux Kernel 4.9
Huge Thanks to @wiktorek140 for helping me out with bugs and congratulations to him for booting 4.9 on Montana
Leave a thanks if you like my work!
Buy me a Cup of Coffee or Beer here​
XDA:DevDB Information
Linux Kernel 4.9, Kernel for the Moto G5
Contributors
m_vaisakh, wiktorek140
Source Code: [url]https://github.com/mvaisakh/msm-4.9[/URL]
Kernel Special Features: Linux Kernel 4.9.x
Version Information
Status: Alpha
Created 2020-03-30
Last Updated 2020-03-30
Reserved
You can find screenshots here:
https://m.imgur.com/a/OWEhM3b
NOTE: The screenshots are from 2 different builds and hence the difference in kernel version.
Cheers!
Update:
I've been working to fix display and audio on for us.
You can check the progress in my kernel repository. I hope to fix it soon!
Nice! Simply nice. This will hopefully get more attention :good:
Update:
Indian variant finally boots now!!
Thanks to Neosight from Mido community for the fix!
It was because of the bootloader not accept the arm IOMMU of cedric (atleast in indian variant). Instead the kernel sent a full aarch64 (or arm64) iommu tz cb, which wasn't getting a secure pass from bootloader through qseecom interface, which apparently states that motorola still uses older (nougat) bootloader in XT1677 (or the Indian variant).
m_vaisakh said:
Update:
Indian variant finally boots now!!
Thanks to Neosight from Mido community for the fix!
It was because of the bootloader not accept the arm IOMMU of cedric (atleast in indian variant). Instead the kernel sent a full aarch64 (or arm64) iommu tz cb, which wasn't getting a secure pass from bootloader through qseecom interface, which apparently states that motorola still uses older (nougat) bootloader in XT1677 (or the Indian variant).
Click to expand...
Click to collapse
Ig edit the op then :angel:
nift4 said:
Ig edit the op then :angel:
Click to expand...
Click to collapse
Updated OP.
m_vaisakh said:
Updated OP.
Click to expand...
Click to collapse
bro how did u update from v3.18 to v4.9 ? Pls I wanna know where can I study about this?
devvikram said:
bro how did u update from v3.18 to v4.9 ? Pls I wanna know where can I study about this?
Click to expand...
Click to collapse
CAF had added support for msm8937 for 4.9 with Android Oreo, I just used their base and added moto g5 specific changes. It may sound easy, but it's not.
m_vaisakh said:
CAF had added support for msm8937 for 4.9 with Android Oreo, I just used their base and added moto g5 specific changes. It may sound easy, but it's not.
Click to expand...
Click to collapse
where to study on this??I want to do with my Snapdragon 625 . It's v3.18 which I have to upgrade to v 4.9
devvikram said:
where to study on this??I want to do with my Snapdragon 625 . It's v3.18 which I have to upgrade to v 4.9
Click to expand...
Click to collapse
There's no specific documentation for this. It was all trial and error. Have you read the OP? I've clearly stated it took me 1 year to get it to work.
To start, you should know your way around linux kernel and for reference you can use my source and well there are many other devices that were 3.18 and now run 4.9
m_vaisakh said:
There's no specific documentation for this. It was all trial and error. Have you read the OP? I've clearly stated it took me 1 year to get it to work.
To start, you should know your way around linux kernel and for reference you can use my source and well there are many other devices that were 3.18 and now run 4.9
Click to expand...
Click to collapse
thanks alot
I overtook the development and got a few quite nice results. Current bug list:
Boots -
Bt -
Wifi -
Camera -
Vibration -
Gps -
Audio -
Ril - (no call audio)
Fp -
Light Sensors -
Accelerometer -
Proximity -
Gyro -
Mic -
Usb Tethering -
MTP & ADB -
Headphones -
Offline Charging -
Flashlight -
SD Card -
FM Radio -
Issues:
Rebooting to recovery boots to system.
Random reboots.
(that is on Android 10)
my source is at https://github.com/n4experiments/
and thanks to wiktorek140 and his 4.9 montana port because without him I would never be able to get so far

Categories

Resources