yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Alpha] modpunk:
ABOUT THE GALAXY ALPHA CM-12.1 PROJECT

I'm working on getting CyanogenMod working on the Galaxy Alpha since October 2014. This ROM is not complete. There are still features which are not fully working and there are for sure things which need bugfixing. Please check the Known Bugs section before reporting issues.

I work on this project for FREE and putting in a lot of hours into it. A small donation would help to buy better tools to improve the development some day.

RECOVERY

To be able to install the ROM you need a recovery. I suggest to use my TWRP Recovery build. You can find it here.

BACKUP

Before installing the ROM you should create backups. The most important backup is to create one of the EFS partition and store it on safe place on your computer. If something goes wrong you need to restore this partition. It holds information about your device, like the MAC address for your wifi and information for the radio.

DOWNLOAD

You are storing very sensitive information on your phone. You always have to be careful what ROMs you flash and whom you trust. If you don't trust me then don't use my ROM or compile it from source by yourself.

The ROM will be gpg signed with my key 0xCC014E3D. You can verify the ROM with 'gpg --verify cm-12.1-20150901-UNOFFICIAL-slte-beta1.zip.asc '.

Detailed information and instruction for Windows can be found here.

Download BETA

FLASHING THE ROM

As this is a Lollipop (Android 5) based ROM you need to flash sboot (bootloader) and the modem image from one of the latest LL releases. Or install a LL ROM via the Samsung update option. You can find the latest stock ROM here. Suggested modem version is: G850FXXU2COI3 or newer

I suggest to put the ROM on a USB disk and use a USB OTG cable to flash the ROM. It is also possible to put it on the emulated sdcard and flash it from there.

GAPPS

I suggest to use Open GAPPS.

REPORTING BUGS

Before reporting bugs, please check the KNOWN BUGS list below and read THIS HOWTO

XDA:DevDB Information

[ROM][SM-G850F] CM-12.1 UNOFFICIAL ROM, ROM for the Samsung Galaxy Alpha

Contributors

modpunk, raymanfx, bonuzzz, kyasu

Source Code: https://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/

ROM OS Version: 5.1.x Lollipop

ROM Kernel: Linux 3.10.x

ROM Firmware Required: TWRP/CWM Recovery

Based On: CyanogenMod

Version Information

Status: Beta

Current Beta Version: 8

Beta Release Date: 2015-10-22

Created 2015-09-01

Last Updated 2015-10-26
[Samsung Galaxy Alpha] modpunk:
KNOWN ISSUES

RIL: SMS broadcast subscriptions aren't working (generic failure)

MEDIA: HEVC videos don't work

INCALL: Some SLTE devices need 10-30 seconds to wake the screen on an incoming call

VOIP: Not tested (could someone please test)

CHANGELOG

2015-10-22 + BETA8

audio: Should be completely working now

ril: Fixed network operator search

2015-10-15 - BETA7

audio: More fixes to get audio fully working

audio: Fixed voice recording (camcorder should work fine now)

audio: Fixed media playback (especially over bluetooth)

camera: Fixed remaining camera issues (using LL blobs now)

Kernel: Smaller kernel image using XZ compression now

Kernel: Updated arizona sound driver

2015-10-10 - BETA6

More fixes to the audio HAL

Improved PowerHAL (VSYNC and LOW_POWER) support

This version includes the latest Security fixes for Android, see the Android Patchlevel in Settings -> About Phone.

2015-10-07 - BETA5

Fixed audio calls (wideband)

Fixed audio calls with bluetooth headset and carkit

Fixed audio recordings

This version includes the latest Security fixes for Android, details see here.

2015-10-02 - BETA4

Fixed bluetooth call playback (mics are not working yet)

Fixed two mic control in audio HAL

Fixed firmware loading on wisol devices

New sensor HAL

Improved boot time

2015-09-17 - BETA3

Added bluetooth headset support

Added support for noise suppression

Better sound quality on wideband connections

2015-09-03 - BETA2

Fixed flashing issue with TWRP

Set addtitional build information

2015-09-01 - BETA1

Initial release
[Samsung Galaxy Alpha] modpunk:
FREQUENTLY ASKED QUESTIONS

"It doesn't work."

Give the programmer some credit for basic intelligence: if the program really didn't work at all, they would probably have noticed. Since they haven't noticed, it must be working for them. Therefore, either you are doing something differently from them, or your environment is different from theirs. They need information; providing this information is the purpose of a bug report. More information is almost always better than less.

Please read How to Report Bugs Effectively

My modem doesn't work, what can I do?

Did you flash the latest MODEM firmware from the latest Lollipop release? The suggested firmware is at least G850FXXU2COI3 or newer

How do I use adb/logcat go get logs from my device

You can find a good tutorial here.
[Samsung Galaxy Alpha] miszko77:
I have problem with flashing. I tried with suggested TWRP. Flashing rom takes 1 second and ends with successful information

Edit. "Unable to mount /system" twrp error
[Samsung Galaxy Alpha] modpunk:
Which TWRP version are you using?
[Samsung Galaxy Alpha] RobertAslan:
Awesome work man. Honestly I can't flash this right now, just because, I need a fully functioning device daily so, I'll be patient :)
[Samsung Galaxy Alpha] miszko77:
I am using 2870. Anyway I flashed recovery with odin. May this be a problem?
[Samsung Galaxy Alpha] lukrangelu:
I have same problem

---------- Post added at 09:58 PM ---------- Previous post was at 09:57 PM ----------

I am using 2.8.7 also
[Samsung Galaxy Alpha] modpunk:
Could you connect with 'adb shell' to the recovery and run 'getenforce'. Then get me the log and avc_msg file with:

adb pull /tmp/recovery.log

adb pull /proc/avc_msg

and paste the file somewhere ...
[Samsung Galaxy Alpha] modpunk:
Read the bug report section in the initial post, provide logcat for system/main and also radio. This is a beta version you should at least know the basics how to get information from the device ...
[Samsung Galaxy Alpha] modpunk:
Not even close. If you want to run a beta version you should learn at least the basics for using adb.
[Samsung Galaxy Alpha] modpunk:
ADB/LOGCAT HOWTO
[Samsung Galaxy Alpha] miszko77:
Here you are.
[Samsung Galaxy Alpha] modpunk:
The recovery reports:

You have an installed system that isn't signed with this build's key, aborting...
script aborted: Can't install this package on top of incompatible data. Please try another package or run a factory reset
Can't install this package on top of incompatible data. Please try another package or run a factory reset

This is a pretty obvious message to me. You need to wipe system and data in order to install the ROM.
[Samsung Galaxy Alpha] miszko77:
Result of wiping caches, data and system. See attachment.

I did factory reset and getting the same information.
[Samsung Galaxy Alpha] modpunk:
I've wiped my system partition and running into the same problem as you know. I'm investigating it now ...
[Samsung Galaxy Alpha] Blubberor:
Mfg ;)
[Samsung Galaxy Alpha] modpunk:
Please pull /proc/avc_msg ...
[Samsung Galaxy Alpha] Blubberor:
and here you go.

Thanks a lot. crossing fingers that the avc_msg.log helps you with fixing.

Tschö,

blubberor
[Samsung Galaxy Alpha] Mokson:
Cannot change network operator. Search doesn't work.

Could someone advice solution or better implement fix in next build.
[Samsung Galaxy Alpha] modpunk:
It fails with a generic failure, see the radio log. I have no idea what is wrong.
[Samsung Galaxy Alpha] modpunk:
BETA7 is out. More stuff is working correctly but it still not perfect. See ChangeLog and Known Bugs on the first page.

This might be the last cm-12.1 beta. I will switch to cm-13.0 soon ...
[Samsung Galaxy Alpha] oddhap:
Camera finally works, great job! :)
[Samsung Galaxy Alpha] modpunk:
A special thanks goes to:

[MENTION=4724491]surfin-bobby[/MENTION]
[MENTION=6324150]nuno.f.ferreira[/MENTION]

and
[MENTION=3254452]Blubberor[/MENTION]

for all their help and time to provide the needed information to hopefully have audio working completely soon ...
[Samsung Galaxy Alpha] vectro73:
Ran into some troubles with the latest beta. 1) Phone is not detecting like MTP device, but USB debugging is working. 2) Audio playback glitches and troubles while using google now launcher: opening recents, going back to launcher, launching apps etc.
[Samsung Galaxy Alpha] saxmydix:
Refer post #179 for enable mtp.
[Samsung Galaxy Alpha] vectro73:
Another bug - after a call there is no sound (no ringtone, no alarm etc), but in-call audio works. Standard echo problem is here - echo gone on a half volume position - need to play with mixerpath.
[Samsung Galaxy Alpha] surfin-bobby:
Your first problem is well known and beeing currently fixed in the developer thread. Regarding echo, it seems that the already activated noise suppression feature has no effect. Until it does, the workaround is to either reduce the earpiece volume or edit the builtin mic volume to a value of 12 instead 24 in the file mixer_paths.xml.
[Samsung Galaxy Alpha] Olangu:
Thanks for the good work!

I'm having some troubles with the new camera app tho.

Sometimes it opens up to a black screen. Only reboot helps to get it in working state again.

Other times it fails with error cant connect to camera.

E/CAM2PORT_AndCamAgntImp(22565): RuntimeException during CameraAction[OPEN_CAMERA] at CameraState[1]

E/CAM2PORT_AndCamAgntImp(22565): java.lang.RuntimeException: Fail to connect to camera service

E/CAM2PORT_AndCamAgntImp(22565):	at android.hardware.Camera.<init>(Camera.java:529)

E/CAM2PORT_AndCamAgntImp(22565):	at android.hardware.Camera.open(Camera.java:364)

E/CAM2PORT_AndCamAgntImp(22565):	at com.android.ex.camera2.portability.AndroidCameraAgentImpl$CameraHandler.handleMessage(AndroidCameraAgentImpl.java:370)

E/CAM2PORT_AndCamAgntImp(22565):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/CAM2PORT_AndCamAgntImp(22565):	at android.os.Looper.loop(Looper.java:135)

E/CAM2PORT_AndCamAgntImp(22565):	at android.os.HandlerThread.run(HandlerThread.java:61)

Attaching logcat.
[Samsung Galaxy Alpha] Olangu:
BTW,

anyone know if it's possible to get the unlock gesture dots to appear straight on the lockscreen as in cm11?

Annoying to not be able to unlock straight from lockscreen, or to have to push back button to see the clock/weather if selecting option to show gesture screen straight away.
[Samsung Galaxy Alpha] mejgs:
While opening contact from phonebook I always get some lag. Is it possible to change contact opening animation? Also, can someone provide stock samsung camera app (flashable zip)? It seems faster to me, and I also miss some of the functions like slow motion video etc. Thank you ;)

Btw nice work, I'm always excited when new version arrives

---------- Post added at 05:36 PM ---------- Previous post was at 05:17 PM ----------

I have some suggestions which would make this ROM perfect....

1. Already mentioned lag while opening contact

2. Opening SMS also lags...it looks like some deleted messages are trying to appear

3. Letter size in SMS is to small, I know it can be enlarged by pinching out but it returns to previous state every time while opening SMS

4. Recent apps also lag when i pick ''clear all'' button

5. Implement stock samsung camera app....it's better

6. Icoming call delay - already known issue

Thanks guys
[Samsung Galaxy Alpha] scoddster:
Have just experimented with Beta7 and experience a couple of issues.

- BT Audio works with CarKit, interrupted playback on a Sony SBH-80 BT earpiece

- Call audio still a little buggy, caller can mostly hear me, I can't sometimes hear the caller though. Camera app start does not always seem to solve it

- camera app reports service connect errors from time to time, only reboot helps

What should I provide for the BT issue? How can I be of further help?
[Samsung Galaxy Alpha] modpunk:
These are upstream CyanogenMod issues. Please report them to CM and not here.
[Samsung Galaxy Alpha] modpunk:
BT is working perfectly here with my Sony device. However I had an application which deregistered the headset from the GATT services every few sconds so audio lagged horribly because of that. Check if an App is causing this ...

How do you do that?

Check logcat and check for GATT deregister by a pid which is not the bluetooth service...
[Samsung Galaxy Alpha] scoddster:
Okay, thanks will debug a little further - tested BT audio with a vanilla install and only Spotify and the audio recorder. Other apps should not interfere. The issue is not that it is actually disconnected, audio starts and "stutters" for about 8 seconds (feels a bit like filling a buffer) then works fine for that particular track it plays. Same effect then with the next track - but only with that earpiece (i. e. not car kit). What model are you using? Are you using it just for media audio or phone audio as well?

Will go through logs later today and see if I find something. Thanks again.
[Samsung Galaxy Alpha] Blubberor:
To Start something not (universal)kiddi...

For those who have hickhups with music BT streaning. For me taking a picture with camera solves the problem completely.

Best,

Blubberor
[Samsung Galaxy Alpha] likhon02:
recent button does not work on any aosp rom..but recent button works fine on ozcanrom and stock based any rom...
[Samsung Galaxy Alpha] Ashareth:
That's a device problem more than probably, because it depends on people Rom (sometimes even the same Rom at different times/flash it works or not).

There was lot of people ending up with a non working "Recent Apps" button after updating to official 5.0.2 for exemple.
[Samsung Galaxy Alpha] :
Thread cleaned.

Stay on topic and keep arguments to PM, not in open forum.

Regards,

The_Merovingian

Forum Moderator
[Samsung Galaxy Alpha] scoddster:
Okay, long test and debug session compeleted:

- BT sound works mostly correct after taking a photo, sometimes reboot and photo required

- In-phone audio (key sounds, audio player) may stop unexpectedly after some hours of use.

- call audio still a little buggy, caller can often not hear me, even through car kit (intermittant problem) I can mostly hear the caller though

- logcat inconclusive, no BT disconnects or unusual BT events.
[Samsung Galaxy Alpha] modpunk:
Can you try with setting 'UartForceUse2StopBits = true' in /etc/bluetooth/bt_vendor.conf
[Samsung Galaxy Alpha] scoddster:
Just did so, set it to "1" rebooted, without any significant effect, probably a little less hiccups on the SBH-80 earpiece, however still pretty distorted. Interestingly the media streaming works pretty well on the car kit, no hiccups at all. The SBH-80 earpiece works with other Android devices. I also made sure that it is in single connect mode: http://support.sonymobile.com/global-en/sbh80/userguide/Multipoint-functionality/.

What Sony device are you using?
[Samsung Galaxy Alpha] modpunk:
It needs to be 'true' not '1'
[Samsung Galaxy Alpha] scoddster:
Well, tried that too. BT does not turn on in that case. BluetoothManagerService is reporting continuous on/off state changes and Adapter cannot be activated:

D/BluetoothAdapterState(18782): CURRENT_STATE=PENDING, MESSAGE = ENABLE_TIMEOUT, isTurningOn=true, isTurningOff=false
E/BluetoothAdapterState(18782): Error enabling Bluetooth
E/bt-btif (18782): bte_ssr_cleanup
F/libc (18782): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 18804 (BluetoothAdapte)
I/DEBUG (18779): property debug.db.uid not set; NOT waiting for gdb.
I/DEBUG (18779): HINT: adb shell setprop debug.db.uid 100000
I/DEBUG (18779): HINT: adb forward tcp:5039 tcp:5039
I/DEBUG (18779): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG (18779): Build fingerprint: 'samsung/sltexx/slte:5.0.2/LRX22G/G850FXXU2COD4:user/release-keys'
I/DEBUG (18779): Revision: '10'
I/DEBUG (18779): ABI: 'arm'
I/DEBUG (18779): pid: 18782, tid: 18804, name: BluetoothAdapte >>> com.android.bluetooth <<<
I/DEBUG (18779): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG (18779): r0 a0bd3df0 r1 00000000 r2 a1d3f68c r3 a1d50378
I/DEBUG (18779): r4 aec91c40 r5 000102e8 r6 00010474 r7 00000000
I/DEBUG (18779): r8 12d62c00 r9 b4a1cc00 sl 00000000 fp 12d994a0
I/DEBUG (18779): ip aebff900 sp aebff9b8 lr a1ceb49b pc 00000000 cpsr 600e0010
I/DEBUG (18779):·
I/DEBUG (18779): backtrace:
I/DEBUG (18779): #00 pc 00000000 <unknown>
I/DEBUG (18779): #01 pc 000fa499 /system/lib/hw/bluetooth.default.so (vendor_ssrcleanup+12)
I/DEBUG (18779): #02 pc 0003ab0f /system/lib/hw/bluetooth.default.so (bte_ssr_cleanup+38)
I/DEBUG (18779): #03 pc 00003cb1 /system/lib/libbluetooth_jni.so
I/DEBUG (18779): #04 pc 000e2cf3 /data/dalvik-cache/arm/system@app@Bluetooth@Bluetooth.apk@classes.dex
I/DEBUG (18779):·
I/DEBUG (18779): Tombstone written to: /data/tombstones/tombstone_07

Cleaned logcat attached.
[Samsung Galaxy Alpha] likhon02:
my device is okay!! recent button works fine on nee stock 5.0.2 roms and i am 100 percent sure its a bug in aosp roms...
[Samsung Galaxy Alpha] modpunk:
This looks like a NULL pointer dereference in the default bluetooth HAL.
[Samsung Galaxy Alpha] Darkbepo:
That's funny, because to me this looks like a bunch of numbers and letters scrambled together XD Keep up the good work!
[Samsung Galaxy Alpha] scoddster:
Mh, the BT issue is probably a seccond priority. Seems to work with the most devices and for the most of the users. How can I help debugging phone audio and audio issues? Log cat does not reveal much when sound stops working.
[Samsung Galaxy Alpha] modpunk:
See the SOURCES thread. logcat is important to understand how things are working.
[Samsung Galaxy Alpha] modpunk:
BETA8 is live!

Several people confirmed that audio is working and I've also fixed the network operator search. Please test and report if it is working.

I think this is the last cm-12.1 build. I will move to cm-13.0 next week
[Samsung Galaxy Alpha] scoddster:
First tests are looking promising, followed test scenarios from sources thread. Need to test a little more but call problems seem to be solved, so is switching between headphones and speaker. Thanks.
[Samsung Galaxy Alpha] omarmonajed:
Thanks but doesn't cm13 need official android marshmallow installed already?
[Samsung Galaxy Alpha] modpunk:
Why should it?
[Samsung Galaxy Alpha] omarmonajed:
Never mind I'm mistaken sorry.

BTW thanks a lot for your work. When will you finish cm 13?? We're so excitedd
[Samsung Galaxy Alpha] modpunk:
I've just started syncing the tree. This takes a long time, cause syncing is broken for some trees. When a working cm-13.0 is ready I dunno. Maybe in two weeks ...
[Samsung Galaxy Alpha] sunsettrack4:
I also tried to compile CM13, and I already synced the source code to my PC. Several branches are causing errors, so I'm unable to create the build:

"make: failed to build some targets" ;)

Gesendet von meinem SM-G850F mit Tapatalk
[Samsung Galaxy Alpha] Der_Neger:
Hi modpunk,

The new rom works great. But there is something wrong, when you listen to music and use your phone then then the music stops for a short time, where the ui would make a sound.

Maybe you should try it youself, or don't you have that problem? BTW i'm using Poweramp but it happens with every musicplayer app.

The microphone in an inline remote doesn't work either bit the controls for volume and song are working properly.

Best regards
[Samsung Galaxy Alpha] modpunk:
If you listen to music and you have an event like an incoming mail and the system plays a sound for the incoming mail, the music volume is reduced and the sound is played. This works just fine for me. I dunno how you configured your mixer ...

I have no idea what you are talking about.
[Samsung Galaxy Alpha] modpunk:
It fails because several overlays are not merged yet. They can be temporarily disabled. However I have the first set of patches for the device tree.
[Samsung Galaxy Alpha] Der_Neger:
Hi modpunk,

yes i know that the music stops when you get a message but i mean you listen to music and are on the homescreen and then push the app drawer icon then the music stops for a short time and for other ui elements which make a sound when you touch them also.

With the inline remote i mean something like this:

http://cdn.head-fi.org/4/49/493f8848_iremote_470x250.jpg

In the cable integrated remote for music control. They usually come with a microphone and this microphone does not work with your Rom.

And i've found another problem with the wifi. In my School they use a 802.11x wifi to ditribute one wifi with many access points. I can only Connect to the access point which i connected first when i walk to another room with another access point it tries to connect but it can't. I have to delete the known network an reregister in it. With my nexus 7 (2013) it works like it should. It automatically connect's to the nearest access ponit without any problem and reconnects when i go to another room without deleting the network and reconnecting.

I hope that it might help.

Best regards
[Samsung Galaxy Alpha] modpunk:
Till you prove it is a bug I say it is a feature. To report a bug you need to provide more information. See the FAQ section on the first page ;)
[Samsung Galaxy Alpha] nuno.f.ferreira:
I guess what you're saying is that those issues are not specific to your ROM and I believe that's true.

[MENTION=2108652]Der_Neger[/MENTION] relative to your wi-fi roaming problem have you tried enabling "Always allow Wi-Fi Roam Scans" under developer options?
[Samsung Galaxy Alpha] modpunk:
If the headset isn't working. We have to see if the audio HAL sets ups the route incorrectly. If we do not see a route change at all, then it is an issue of the audio framework and not my fault ...

Only logcat can reveal that ...
[Samsung Galaxy Alpha] omarmonajed:
Hi.

Any news for the cm13 build?
[Samsung Galaxy Alpha] sunsettrack4:
Nope. It's done when it's done.
[Samsung Galaxy Alpha] Der_Neger:
Hi,

thanks for the tip but that doesn't work.

I'm sorry to not provide a Logcat but in whatsapp the call feature is also broken i cant't hear what the other peron is saying but they can hear me.

Best regards
[Samsung Galaxy Alpha] nuno.f.ferreira:
Ok but please note that WiFi roaming aggressiveness is a general issue with AOSP and also conditioned by HW. There are apps in Play Store that implement "approaches" to fix classes of these issues.

Relative to whatsapp I guess you're answering one of modpunk's previous requests to test VoIP.

[MENTION=4297219]modpunk[/MENTION] I can confirm Der_Neger report with Limphone connected to asterisk.
[Samsung Galaxy Alpha] sphazer:
Awesome battery life on this ROM.the best.
[Samsung Galaxy Alpha] modpunk:
Thanks, I've revisited the powerHAL and improved it further. It will come with cm-13.0
[Samsung Galaxy Alpha] sphazer:
Is there anyway to fix the problem with vibration intensity loss .
[Samsung Galaxy Alpha] modpunk:
Yes, I have a fix for that. It will be configurable and will come with cm-13.0 ...
[Samsung Galaxy Alpha] gabrielking9:
Is possible to add fingerprint support?
[Samsung Galaxy Alpha] maciocho:
Hi,

Had anyone noticed some minor graphic glitches?

If yes, is this something possible to get rid of?

Thanks,

M
[Samsung Galaxy Alpha] modpunk:
If we get a fingerprint HAL ...
[Samsung Galaxy Alpha] tileeq:
I thought fingerprint security support is added in the system by google?

Fingerprint scanners supported as standard

Finger scanners have been found in Android phones for years now. However, it’s only with Android Marshmallow that the system supports the hardware natively. Before now, software for these scanners had to be jammed in by the manufacturer

Read more at http://trustedreviews.com/opinions/android-m-features#rwBXO1cmquoYXK6G.99

Sent from my SM-G850F
[Samsung Galaxy Alpha] gabrielking9:
I think HAL part should come from Samsung
[Samsung Galaxy Alpha] modpunk:
No, every vendor implemented it on their own. I think Marshmallow is the first one defining a fingerprint HAL API. The Alpha stock ROM doesn't provide a fingerprint HAL, they implemented it differently. The clean way is fingerprint. We need to check if there is a HAL for the Alpha fingerprint sensor ...