[ROM][GT-I9305][Marshmallow][6.0][Cyanogenmod 13.0][UNOFFICIAL]

Search This thread

p.a.n

Senior Member
Dec 1, 2015
242
701
Prague
Disclaimer (partially borrowed from MIT license) - WARNING:
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. If you loose your data, brick your device, any other damage or anything else happens (e.g. your cat eats your dog), it is YOUR PROBLEM and YOUR RESPONSIBILITY. Your device warranty is most probably void after installing this.

Although my original intention was just to help with porting CM 13 to i9305, I ended up with my build :)

To avoid any confusion a because I still have a felling that some people don`t understand this, I have to explain one more detail. I didn`t create this, I only built it. It is a big difference, similar to buying versus building a house. Buying a house is not a simple thing (at least in my country) and you`d probably need to do some changes and repairs before you can start living in it. But building a house is something completely different and much more difficult. The work I`ve done on this CM build is more like buying a house. The see the list of people who "built the house" go into Settings on your phone, section About phone and then Contributors. It is a really long list. Thanks to all of them :)

Also, please, keep in mind, that I am only sharing results of my hobby.

It is build mostly directly from CyanogenMod 13.0 sources. I only added support for i9305 and cm12 chroot for RIL support. See the original thread for some details. Anyway my work on this is really small, I fixed some problems a put all of this together.

You can download here:
cm-13.0-20160907-UNOFFICIAL-i9305.zip

There is also another builds from @evilracer123. (EDIT 31.3. 2016)

If you want you can also download unofficial build of TWRP with f2fs support TWRP-UNOFFICAIL-3.0.1.img

Changelog:

EDIT (17.1. 2016) - new build with bluetooth fixed
EDIT (19.1. 2016) - new build with bluetooth for non owner fixed, the code for this build downloaded yesterday
EDIT (22.1. 2016) - new build
EDIT (25.1. 2016) - new build - there is some bug in FileManager - see http://xdaforums.com/showpost.php?p=64980000&postcount=150
EDIT (27.1. 2016) - new buld - FileManager bug fixed, Answer call with hardware HOME button commit included
EDIT (29.1. 2016) - new build
EDIT (1.2. 2016) - new build - attempt to fix bluetooth audio problem
EDIT (8.2. 2016) - new build - clock overflow fix (details)
EDIT (17.2. 2016) - new build - I added the SlimISP_PH.bin file, fixed the crashing gallery for non-owner (I added the INTERACT_ACROSS_USERS permission, I hope that it is a correct fix) and added rules for selinux denies @BMP007 reported for logcat.
EDIT (25.2. 2016) - new build with multiple RIL implementations, diff attached
EDIT (19.3. 2016) - new build, f2fs support (some hints here). I attached 2016-03-18_16-49-21-cm-13.0-20160318-UNOFFICIAL-i9305.tar.gz, which contains diff file, roomservice.xml and list of used commits.
EDIT (31.3. 2016) - new build
EDIT (18.4. 2016) - new build
EDIT (25.4. 2016) - new build
EDIT (20.5. 2016) - new build
EDIT (23.6. 2016) - new build
EDIT (7.9. 2016) - new build


EDIT (10.4. 2016) - new build, compiled with ArchiDriod optimizations (thanks to @JustArchi), fixed mDNIe settings

This ROM supports F2FS - you can find some hints, how to use it here. (EDIT 31.3. 2016)

If you want world writable sdcard, set property persist.world_writable_sdcard to true (search the thread to see how) , but be aware that this is not standard behavior.

Multiple RIL implementation
In this ROM, there are more then one RIL implementations. None of them is perfect, but you can choose, which one of them works better for you. The first RIL implementation is the usual CM 12.1 based one (this is the default one), the second one is based on proprietary files extracted from stock 4.4.4 ROM downloaded from sammobile.com (I9305XXUFOB2_I9305PHNFOB2_I9305XXUFOA1_HOME.tar.md5), the third is based on proprietary files from TheMuppets, with one small change (see here for details). To switch between them open shell (over adb, or using the build in app, or whatever you like) and execute command ril. You will see something like this:
Code:
Select RIL implementation:
* 1 - CM 12.1 based
  2 - Stock 4.4.4 based
  3 - TheMuppets based 
  x - quit
?
Type 1,2,3 or x and hit enter. The requires root, so be sure it is enabled. After switching, reboot the phone. If you don`t want bother with this, don`t. The default one is, based on my experience, the best:)


If you want gapps, use http://opengapps.org/. As mentioned several times elsewhere flash it RIGHT AFTER the ROM. I tried the nano version and it works fine.

As far as I know all hardware and RIL is working without problems (even barometer is correctly detected).

Know BUGs:
- sometimes after boot RIL is not started correctly (http://xdaforums.com/galaxy-s3/development-i9305/rom-t3252492/post64740417#post64740417) - data connection (and maybe something else) is not working. In that case turn on and of flight mode (or go somewhere without signal). I trying to fix this, but it is difficult.
- the led flash light used as a torch goes off together with the display (http://xdaforums.com/galaxy-s3/development-i9305/rom-t3252492/post64699946#post64699946)(fixed http://review.cyanogenmod.org/#/c/132783/)
- I suppose there is still msm_hsic_host wakelock bug (https://jira.cyanogenmod.org/browse/CYAN-2266). Supposedly unplugging the charger with display on should prevent this. EDIT (13.2. 2016) Some people are reporting that is fixed. I didn`t anyting specific to fix it, so I am not sure. One possibility is that this was also caused by the clock bug.
- if you have non FAT partition on you sdcard, you get a message that sdcard is corrupted. I`ll try to fix this one, it should not be difficult and it is annoying for me.
- gallery app is crashing for non owner (EDIT 19.1. 2016) (EDIT 17.2. 2016)
- there a problem with bluetooth audio - it occasionally stops for few seconds may be fixed in the today`s build (EDIT 1.2. 2016)
- on the first boot (after /data wipe) the SIM may not be found. Reboot should fix this. (EDIT 31.3. 2016)


Selinux is enforcing. If you used some of my previous builds from the original thread and there is something broken, what worked before, this may be the reason. In that case output of dmesg | grep 'avc.*denied' from the moment the problem happens, is a big help to solve it.

Code related to this can be found here:
https://github.com/p-an/i9305-cm13-device
https://github.com/p-an/android_system_core/tree/cm-13.0
https://github.com/p-an/android_build/
and some smaller changes in attached diffs (part of attached tar.gz archives as code.diff since 2016-3-18)

Build instructions:
This is definitely not the only way how to build CM13 for i9305, but it is the procedure, which I, more or less, use.
First of all read (and understand) the original guide. My build process is modified version of it. The modification is necessary, because there is no official CM13 for i9305, so the breakfast command won`t work. It is replaced by creating .repo/local_manifests/roomservice.xml file. Another change is that proprietary file are part of my github repo, so you don`t have to connect the phone.

Followe the guide mentioned above till the repo command setup. The next step is to initialize the CyanogenMod source repository - use the cm-13.0 branch:

Code:
$ cd ~/android/system/
$ repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0

Now before you do repo sync, you have to create the roomservice.xml file (note the actual command is old, download the latest .tar.gz archive attached to this post and extract roomservice.xml from it):

Code:
$ mkdir .repo/local_manifests
$ wget "http://xdaforums.com/attachment.php?attachmentid=3657032&d=1456237857" -O .repo/local_manifests/roomservice.xml

Now is time for downloading the code (it takes some time):

Code:
$ repo sync

After this is done you will probably need to sync the code from my github with upstream. It may up to date, but i can`t guarantee it. First add the upstream repo:

Code:
$ cd ~/android/system/system/core/
$ git remote add upstream https://github.com/CyanogenMod/android_system_core.git

And now sync the code:

Code:
$ cd ~/android/system/system/core/
$ git checkout cm-13.0
$ git fetch upstream
$ git merge upstream/cm-13.0 -m 'sync with upstream'

The checkout is necessary to have cm-13.0 branch active. Following two commands download the code from upstream and merge it. They can be replaced with one pull command. Now apply patches. I usually attach them either to this post, or the post, where I announce something new (like a fix). The reason why I share some changes this way, is that I don`t wan`t to fork whole big repository because of a small change. In the latest (cm-13.0-20160217-UNOFFICIAL-i9305.diff) diff there is only one change bigger than one line - delete 5 lines (2 of them are comments). This is usually easy to change manually, if patch fails. You can use this https://groups.google.com/forum/#!topic/repo-discuss/43juvD1qGIQ to apply the patch (store the script into ~/bin/repo_patch and make executable).

Code:
$ cd ~/android/system/
$ repo_patch cm-13.0-20160217-UNOFFICIAL-i9305.diff

Now proceed to the Extract proprietary blobs step. The commands are the same, but you don`t have to connect the phone to the computer:

Code:
$ cd ~/android/system/device/samsung/i9305
$ ./extract-files.sh

Since you skipped the breakfast step, you should now return to the ~/android/system/ directory and setup the environment:

Code:
$ cd ~/android/system/
$ source build/envsetup.sh

Now setup the ccache, if you want. See Turn on caching to speed up build in the original guide.

Start the build:

Code:
$ brunch i9305

If you find some problem let me know, I can try to fix it. But I can`t promise anything, this is only hobby for me and my original intention was just to help with porting CM 13 to i9305.

pAn
 

Attachments

  • cm-13.0-20160217-UNOFFICIAL-i9305.diff
    2.7 KB · Views: 921
  • roomservice.txt
    765 bytes · Views: 557
  • cm-13.0-20160225-UNOFFICIAL-i9305.diff
    2.2 KB · Views: 285
  • 2016-03-18_16-49-21-cm-13.0-20160318-UNOFFICIAL-i9305.tar.gz
    21.9 KB · Views: 634
  • 2016-03-31_11-51-11-cm-13.0-20160331-UNOFFICIAL-i9305.tar.gz
    21.7 KB · Views: 174
  • changelog-2016-04-10_16-51-31-cm-13.0-20160410-UNOFFICIAL-i9305.txt
    25.2 KB · Views: 131
  • 2016-04-10_16-51-31-cm-13.0-20160410-UNOFFICIAL-i9305.tar.gz
    22.4 KB · Views: 82
  • 2016-04-18_12-27-17-cm-13.0-20160418-UNOFFICIAL-i9305.tar.gz
    22.3 KB · Views: 84
  • changelog-2016-04-18_12-27-17-cm-13.0-20160418-UNOFFICIAL-i9305.txt
    60.1 KB · Views: 90
  • 2016-04-25_16-15-53-cm-13.0-20160425-UNOFFICIAL-i9305.tar.gz
    22.3 KB · Views: 116
  • changelog-2016-04-25_16-15-53-cm-13.0-20160425-UNOFFICIAL-i9305.txt
    57.2 KB · Views: 113
  • changelog-2016-05-20_15-15-11-cm-13.0-20160520-UNOFFICIAL-i9305.txt
    9.2 KB · Views: 104
  • 2016-05-20_15-15-11-cm-13.0-20160520-UNOFFICIAL-i9305.tar.gz
    22.4 KB · Views: 165
  • 2016-06-23_13-30-50-cm-13.0-20160623-UNOFFICIAL-i9305.tar.gz
    22.4 KB · Views: 323
  • changelog-2016-06-23_13-30-50-cm-13.0-20160623-UNOFFICIAL-i9305.txt
    140.8 KB · Views: 202
  • 2016-09-07_14-32-18-cm-13.0-20160907-UNOFFICIAL-i9305.tar.gz
    26.1 KB · Views: 592
  • changelog-2016-09-07_14-32-18-cm-13.0-20160907-UNOFFICIAL-i9305.txt
    193.8 KB · Views: 533
Last edited:

Sectorian

Senior Member
Apr 27, 2013
1,262
338
The bug whit the flashlight is on every CM12.1 rom.
2 min using the flashlight and the phone automaticly booting (bootloop).
Is there a chance the problem whit the sdcard to be permision problem?
Thanks i was start thinking that no one want we to have a marshmallow rom for our devices. Live long and prospect.
 

p.a.n

Senior Member
Dec 1, 2015
242
701
Prague
The bug whit the flashlight is on every CM12.1 rom.
2 min using the flashlight and the phone automaticly booting (bootloop).

This is new for me. I`ve probably newer used it for such a long time. I`ll put on my list :)

Is there a chance the problem whit the sdcard to be permision problem?

I don`t think so. I suppose that this is because there is ext2 partition (with Debian chroot) and Android has never designed to use sdcard with something like this. Until this version it was simply ignored. It is not a big problem, just annoying message.
 

rodman01

Inactive Recognized Contributor / Themer
Apr 25, 2012
5,770
9,564
Allgäu
@p.a.n gongrats for your first and the new thread with your rom and many thanks for uploading your sources.
But I am wondering, why you haven't pushed the changes in build and smdk-common, which are present in your posted diff file? Are they not needed (anymore?). And still not clear is, where to put mount_chroot.sh? In system/bin or cm12chroot/system/bin?
 
  • Like
Reactions: doodownunda

rodman01

Inactive Recognized Contributor / Themer
Apr 25, 2012
5,770
9,564
Allgäu
ok ... I tried it with usual cyanogenmod smdk-common cm-13.0 branch and original cyanogenmod build and without mount-croot.sh and: sim card and ril is working. But I still cannot hear something or anybody during a call :(. What vendor/samsung repo are you using? themuppets or crazyweazel and which branch? Maybe there is the problem located?
 

p.a.n

Senior Member
Dec 1, 2015
242
701
Prague
ok ... I tried it with usual cyanogenmod smdk-common cm-13.0 branch and original cyanogenmod build and without mount-croot.sh and: sim card and ril is working. But I still cannot hear something or anybody during a call :(. What vendor/samsung repo are you using? themuppets or crazyweazel and which branch? Maybe there is the problem located?

All the my changes from smdk-common are either in upstream (e.g. the incomminmg call fix) or I moved them to i9305. Script mount-croot.sh is not necessary anymore, the mounts are handled by init (init.target.rc). The only changes from the diffs which are not in those two repositories were in kernel and they are not necessary. The proprietary files which I am using are in the repo (https://github.com/p-an/i9305-cm13-device/tree/cm-13.0/proprietary, https://github.com/p-an/i9305-cm13-device/blob/cm-13.0/cm12chroot/cm12chroot.tgz), I don`t remember where I have it from :) Just execute extract-files.sh in device/samsung/i9305.

I really have no idea what could be wrong in your case :( You problems with audio or is it the still the problem with incoming calls (the phone doesn`t ring when someone calls)?
 

Sectorian

Senior Member
Apr 27, 2013
1,262
338
Im expirience a slow charging whit your Rom whit agni kernel. Before that i was on Acip10 whit the same version of agni kernel and the charging work corectly. Hope im helpes.
Oher bugs: trebuchet crashing, skype is not working.
 

p.a.n

Senior Member
Dec 1, 2015
242
701
Prague
@rodman01 just and idea, you`ve probably tried it - do you have data connection, when you try the call? The bug which requires airplane mode on/off effects more than only data connection - if it happens also Llama doesn`t correctly detect area based on cell id. So it could be the reason for your problems.
 

p.a.n

Senior Member
Dec 1, 2015
242
701
Prague
Im expirience a slow charging whit your Rom whit agni kernel. Before that i was on Acip10 whit the same version of agni kernel and the charging work corectly. Hope im helpes.

What about cpu load, wakelocks? Did you check it?

Oher bugs: trebuchet crashing, skype is not working.

Could you provide some details - how to replicate it, logcat, etc. ? Trebuchet seems to be stable to me, but I using mostly another launcher. I don`t use skype, so I am afraid I can`t help with that one :(
 
  • Like
Reactions: doodownunda

rodman01

Inactive Recognized Contributor / Themer
Apr 25, 2012
5,770
9,564
Allgäu
Many thanks for the the tip, I will look at it and make some tests. Sim and ril is working, incoming and outgoing calls too...but no call audio, so I cannot hear the caller and he doesn't hear me neither.
 

Glenn2

Senior Member
Jul 22, 2013
420
210
London
Im expirience a slow charging whit your Rom whit agni kernel. Before that i was on Acip10 whit the same version of agni kernel and the charging work corectly.

In AGNi control set 'Ignore unstable charging power', 'ignore safety margin', 'AC charge rate 1500mA'.

You won't damage anything, not phone nor charger.

There is a free app called Galaxy Charging Current which shows you the charging rate.

If you're too scared, just do the ignore unstable power and that will cure your issue. The other two things just make it charge even quicker.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 58
    Disclaimer (partially borrowed from MIT license) - WARNING:
    THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. If you loose your data, brick your device, any other damage or anything else happens (e.g. your cat eats your dog), it is YOUR PROBLEM and YOUR RESPONSIBILITY. Your device warranty is most probably void after installing this.

    Although my original intention was just to help with porting CM 13 to i9305, I ended up with my build :)

    To avoid any confusion a because I still have a felling that some people don`t understand this, I have to explain one more detail. I didn`t create this, I only built it. It is a big difference, similar to buying versus building a house. Buying a house is not a simple thing (at least in my country) and you`d probably need to do some changes and repairs before you can start living in it. But building a house is something completely different and much more difficult. The work I`ve done on this CM build is more like buying a house. The see the list of people who "built the house" go into Settings on your phone, section About phone and then Contributors. It is a really long list. Thanks to all of them :)

    Also, please, keep in mind, that I am only sharing results of my hobby.

    It is build mostly directly from CyanogenMod 13.0 sources. I only added support for i9305 and cm12 chroot for RIL support. See the original thread for some details. Anyway my work on this is really small, I fixed some problems a put all of this together.

    You can download here:
    cm-13.0-20160907-UNOFFICIAL-i9305.zip

    There is also another builds from @evilracer123. (EDIT 31.3. 2016)

    If you want you can also download unofficial build of TWRP with f2fs support TWRP-UNOFFICAIL-3.0.1.img

    Changelog:

    EDIT (17.1. 2016) - new build with bluetooth fixed
    EDIT (19.1. 2016) - new build with bluetooth for non owner fixed, the code for this build downloaded yesterday
    EDIT (22.1. 2016) - new build
    EDIT (25.1. 2016) - new build - there is some bug in FileManager - see http://xdaforums.com/showpost.php?p=64980000&postcount=150
    EDIT (27.1. 2016) - new buld - FileManager bug fixed, Answer call with hardware HOME button commit included
    EDIT (29.1. 2016) - new build
    EDIT (1.2. 2016) - new build - attempt to fix bluetooth audio problem
    EDIT (8.2. 2016) - new build - clock overflow fix (details)
    EDIT (17.2. 2016) - new build - I added the SlimISP_PH.bin file, fixed the crashing gallery for non-owner (I added the INTERACT_ACROSS_USERS permission, I hope that it is a correct fix) and added rules for selinux denies @BMP007 reported for logcat.
    EDIT (25.2. 2016) - new build with multiple RIL implementations, diff attached
    EDIT (19.3. 2016) - new build, f2fs support (some hints here). I attached 2016-03-18_16-49-21-cm-13.0-20160318-UNOFFICIAL-i9305.tar.gz, which contains diff file, roomservice.xml and list of used commits.
    EDIT (31.3. 2016) - new build
    EDIT (18.4. 2016) - new build
    EDIT (25.4. 2016) - new build
    EDIT (20.5. 2016) - new build
    EDIT (23.6. 2016) - new build
    EDIT (7.9. 2016) - new build


    EDIT (10.4. 2016) - new build, compiled with ArchiDriod optimizations (thanks to @JustArchi), fixed mDNIe settings

    This ROM supports F2FS - you can find some hints, how to use it here. (EDIT 31.3. 2016)

    If you want world writable sdcard, set property persist.world_writable_sdcard to true (search the thread to see how) , but be aware that this is not standard behavior.

    Multiple RIL implementation
    In this ROM, there are more then one RIL implementations. None of them is perfect, but you can choose, which one of them works better for you. The first RIL implementation is the usual CM 12.1 based one (this is the default one), the second one is based on proprietary files extracted from stock 4.4.4 ROM downloaded from sammobile.com (I9305XXUFOB2_I9305PHNFOB2_I9305XXUFOA1_HOME.tar.md5), the third is based on proprietary files from TheMuppets, with one small change (see here for details). To switch between them open shell (over adb, or using the build in app, or whatever you like) and execute command ril. You will see something like this:
    Code:
    Select RIL implementation:
    * 1 - CM 12.1 based
      2 - Stock 4.4.4 based
      3 - TheMuppets based 
      x - quit
    ?
    Type 1,2,3 or x and hit enter. The requires root, so be sure it is enabled. After switching, reboot the phone. If you don`t want bother with this, don`t. The default one is, based on my experience, the best:)


    If you want gapps, use http://opengapps.org/. As mentioned several times elsewhere flash it RIGHT AFTER the ROM. I tried the nano version and it works fine.

    As far as I know all hardware and RIL is working without problems (even barometer is correctly detected).

    Know BUGs:
    - sometimes after boot RIL is not started correctly (http://xdaforums.com/galaxy-s3/development-i9305/rom-t3252492/post64740417#post64740417) - data connection (and maybe something else) is not working. In that case turn on and of flight mode (or go somewhere without signal). I trying to fix this, but it is difficult.
    - the led flash light used as a torch goes off together with the display (http://xdaforums.com/galaxy-s3/development-i9305/rom-t3252492/post64699946#post64699946)(fixed http://review.cyanogenmod.org/#/c/132783/)
    - I suppose there is still msm_hsic_host wakelock bug (https://jira.cyanogenmod.org/browse/CYAN-2266). Supposedly unplugging the charger with display on should prevent this. EDIT (13.2. 2016) Some people are reporting that is fixed. I didn`t anyting specific to fix it, so I am not sure. One possibility is that this was also caused by the clock bug.
    - if you have non FAT partition on you sdcard, you get a message that sdcard is corrupted. I`ll try to fix this one, it should not be difficult and it is annoying for me.
    - gallery app is crashing for non owner (EDIT 19.1. 2016) (EDIT 17.2. 2016)
    - there a problem with bluetooth audio - it occasionally stops for few seconds may be fixed in the today`s build (EDIT 1.2. 2016)
    - on the first boot (after /data wipe) the SIM may not be found. Reboot should fix this. (EDIT 31.3. 2016)


    Selinux is enforcing. If you used some of my previous builds from the original thread and there is something broken, what worked before, this may be the reason. In that case output of dmesg | grep 'avc.*denied' from the moment the problem happens, is a big help to solve it.

    Code related to this can be found here:
    https://github.com/p-an/i9305-cm13-device
    https://github.com/p-an/android_system_core/tree/cm-13.0
    https://github.com/p-an/android_build/
    and some smaller changes in attached diffs (part of attached tar.gz archives as code.diff since 2016-3-18)

    Build instructions:
    This is definitely not the only way how to build CM13 for i9305, but it is the procedure, which I, more or less, use.
    First of all read (and understand) the original guide. My build process is modified version of it. The modification is necessary, because there is no official CM13 for i9305, so the breakfast command won`t work. It is replaced by creating .repo/local_manifests/roomservice.xml file. Another change is that proprietary file are part of my github repo, so you don`t have to connect the phone.

    Followe the guide mentioned above till the repo command setup. The next step is to initialize the CyanogenMod source repository - use the cm-13.0 branch:

    Code:
    $ cd ~/android/system/
    $ repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0

    Now before you do repo sync, you have to create the roomservice.xml file (note the actual command is old, download the latest .tar.gz archive attached to this post and extract roomservice.xml from it):

    Code:
    $ mkdir .repo/local_manifests
    $ wget "http://xdaforums.com/attachment.php?attachmentid=3657032&d=1456237857" -O .repo/local_manifests/roomservice.xml

    Now is time for downloading the code (it takes some time):

    Code:
    $ repo sync

    After this is done you will probably need to sync the code from my github with upstream. It may up to date, but i can`t guarantee it. First add the upstream repo:

    Code:
    $ cd ~/android/system/system/core/
    $ git remote add upstream https://github.com/CyanogenMod/android_system_core.git

    And now sync the code:

    Code:
    $ cd ~/android/system/system/core/
    $ git checkout cm-13.0
    $ git fetch upstream
    $ git merge upstream/cm-13.0 -m 'sync with upstream'

    The checkout is necessary to have cm-13.0 branch active. Following two commands download the code from upstream and merge it. They can be replaced with one pull command. Now apply patches. I usually attach them either to this post, or the post, where I announce something new (like a fix). The reason why I share some changes this way, is that I don`t wan`t to fork whole big repository because of a small change. In the latest (cm-13.0-20160217-UNOFFICIAL-i9305.diff) diff there is only one change bigger than one line - delete 5 lines (2 of them are comments). This is usually easy to change manually, if patch fails. You can use this https://groups.google.com/forum/#!topic/repo-discuss/43juvD1qGIQ to apply the patch (store the script into ~/bin/repo_patch and make executable).

    Code:
    $ cd ~/android/system/
    $ repo_patch cm-13.0-20160217-UNOFFICIAL-i9305.diff

    Now proceed to the Extract proprietary blobs step. The commands are the same, but you don`t have to connect the phone to the computer:

    Code:
    $ cd ~/android/system/device/samsung/i9305
    $ ./extract-files.sh

    Since you skipped the breakfast step, you should now return to the ~/android/system/ directory and setup the environment:

    Code:
    $ cd ~/android/system/
    $ source build/envsetup.sh

    Now setup the ccache, if you want. See Turn on caching to speed up build in the original guide.

    Start the build:

    Code:
    $ brunch i9305

    If you find some problem let me know, I can try to fix it. But I can`t promise anything, this is only hobby for me and my original intention was just to help with porting CM 13 to i9305.

    pAn
    23
    Hi,
    there is a new CM13 build in OP and also unofficial TWPR 3.0.1 with f2fs support. I`ve been busy lately, so I am sorry I don`t have much time for fixing bugs or adding new features :(
    17
    Hi,
    there are several messages about problems in the latest build, you may have felling that I am ignoring those messages. Here are my reasons:
    1) I simply don`t have enough time, energy etc. to respond to everyhting
    2) I am using the latest build and except the bugs mentioned in OP and the clock bug I don`t have any problem with it (and I can`t do anything with a problem that I can`t replicate - even if you`d pay me million dollars or point a gun at my head :) )
    3) message saying just that application xy is crashing or doesn`t work is useless
    4) as I mentioned before - I am just putting pieces together - there is over 20GiB of source code, I`ve seen only a little fraction of it

    So if you have a problem - google it, try debug it. I realize that not everyone is experienced it expert but using logcat is not rocket science. AFAIK every application crash creates some kind of log there. Googling this message often helps.

    Some application crashes are caused by a different permission handling in MM. In MM apps are expected to explicitly ask for a permission. In the old way they simply expected to have it. If an app tries to do something forbidden, it probable it crashes (again google will give more details :) )

    Another thing is the clock bug. As mentioned - this may be responsible for several other problems, not just the audio bluetooth bug. It is difficult to say. I have a lead (right now I suppose that is simply an arithmetic/overflow error), but it is still kind of mystery for me.

    The petition to make cm13 for i9305 official is not a good idea. If anything else then the way how ril works is kind of a hack (even if it is not anything unusual in Linux world).

    I`ll make another build, maybe this weekend, but more probably during next week, hopefully it will fix some problems :)
    17
    Hi everyone,
    after a while I am back with a new build. See OP for details :)
    13
    I`ll be short - there is a new build in OP:)