[ROM][SM-G313HU] AOSP 5.1.1 and CM12.1 for Galaxy Ace 4

Search This thread

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
First, sorry for double-threaded (i already posted this in @Nikiz 's thread
It's CM12.1 logcat. Got media.audio_flinger died
Code:
--------- beginning of main
I/lowmemorykiller(  115): Using in-kernel low memory killer interface
W/auditd  (  113): type=2000 audit(0.0:1): initialized
I/auditd  (  113): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/auditd  (  113): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
W/init    (   86): type=1400 audit(0.0:4): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:5): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:6): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:7): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (    1): type=1400 audit(0.0:8): avc: denied { setattr } for name="su" dev="mmcblk0p18" ino=1780 scontext=u:r:init:s0 tcontext=u:object_r:su_exec:s0 tclass=file
W/init    (    1): type=1400 audit(0.0:9): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (    1): type=1400 audit(0.0:10): avc: denied { sys_module } for capability=16 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability
W/init    (    1): type=1400 audit(0.0:11): avc: denied { setattr } for name="mmcblk0" dev="tmpfs" ino=3687 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file
W/init    (    1): type=1400 audit(0.0:12): avc: denied { setattr } for name="mmcblk0" dev="tmpfs" ino=3687 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file
W/init    (    1): type=1400 audit(0.0:13): avc: denied { getattr } for path="/dev/mem" dev="tmpfs" ino=3472 scontext=u:r:init:s0 tcontext=u:object_r:kmem_device:s0 tclass=chr_file
I/ServiceManager(  116): service 'media.audio_flinger' died
I/ServiceManager(  116): service 'media.audio_flinger' died
Is this related to SELinux? If yes, how do i fix?
 

itigr

Senior Member
Oct 21, 2014
188
260
26
Lahdenpohja
First, sorry for double-threaded (i already posted this in @Nikiz 's thread
It's CM12.1 logcat. Got media.audio_flinger died
Code:
--------- beginning of main
I/lowmemorykiller(  115): Using in-kernel low memory killer interface
W/auditd  (  113): type=2000 audit(0.0:1): initialized
I/auditd  (  113): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/auditd  (  113): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
W/init    (   86): type=1400 audit(0.0:4): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:5): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:6): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (   86): type=1400 audit(0.0:7): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (    1): type=1400 audit(0.0:8): avc: denied { setattr } for name="su" dev="mmcblk0p18" ino=1780 scontext=u:r:init:s0 tcontext=u:object_r:su_exec:s0 tclass=file
W/init    (    1): type=1400 audit(0.0:9): avc: denied { write } for name="etc" dev="mmcblk0p18" ino=331 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=dir
W/init    (    1): type=1400 audit(0.0:10): avc: denied { sys_module } for capability=16 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability
W/init    (    1): type=1400 audit(0.0:11): avc: denied { setattr } for name="mmcblk0" dev="tmpfs" ino=3687 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file
W/init    (    1): type=1400 audit(0.0:12): avc: denied { setattr } for name="mmcblk0" dev="tmpfs" ino=3687 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file
W/init    (    1): type=1400 audit(0.0:13): avc: denied { getattr } for path="/dev/mem" dev="tmpfs" ino=3472 scontext=u:r:init:s0 tcontext=u:object_r:kmem_device:s0 tclass=chr_file
I/ServiceManager(  116): service 'media.audio_flinger' died
I/ServiceManager(  116): service 'media.audio_flinger' died
Is this related to SELinux? If yes, how do i fix?

Try to turn it off (not the best way but still).
 

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
Then try this patch. This may be lack of pcm_drain function, post full logcat pls./

That's the whole logcat. The rest of them only shows "service media.audio_flinger died"
Edit: I'll pause CM12.1 project and focus on CM11 first, since Spreadtrum doesn't support lollipop anyway (not cancelling it)
How do you get the background rendering works? (eg: that white shadow in Settings or some apps)
 
Last edited:

itigr

Senior Member
Oct 21, 2014
188
260
26
Lahdenpohja
That's the whole logcat. The rest of them only shows "service media.audio_flinger died"
Edit: I'll pause CM12.1 project and focus on CM11 first, since Spreadtrum doesn't support lollipop anyway (not cancelling it)
How do you get the background rendering works? (eg: that white shadow in Settings or some apps)

Well this could be related to wrong file_contexts/selinux/etc.
I dunno? If i get it right, i've had it working by default. Maybe your ro.config.low_ram is set to true so animations and other effects are turned off.
 

itigr

Senior Member
Oct 21, 2014
188
260
26
Lahdenpohja
Damm! I hope to see a final and stable build of both CM11 and 12.1?
Don't you think the(Microphone)record quality is messed up too? It's too distorted compared to stock.

I think its ok in dialer since no one reported that it's bad. I heard that it sounds like crap in whatsapp, but perfect in telegram, etc. No freaking idea how to fix this. Sorry.
Last build should pretty stable tho, at least cm11.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Code:
    #include 
    /*
    * Your warranty is now void.
    *
    * 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.
    */
    General:
    AOSP 5.1 and CM12.1 for Samsung Galaxy Ace 4 (SM-G313HU). Note that Google apps are not included.

    What works:
    • Pretty much everything
    What does not:
    • FM Radio (removed from the firmware)

    Download:
    Downloads moved.
    CM12.1
    AOSP
    Google Apps

    Screenies:
    Screenshot_2015-12-27-10-36-01.jpgScreenshot_2015-12-27-10-36-35.pngScreenshot_2015-12-27-10-36-30.pngScreenshot_2015-12-27-10-36-45.pngScreenshot_2015-12-27-10-38-20.png

    Sources:

    Please report any bugs to this thread.

    Thanks alot to TheNikiz for a device tree and helping me with some thingies.
    2
    Did you figure out the codec issues? For example the Facebook video playback?

    Yeah, you need to patch frameworks_av like in cm12 to add YcbYCr color format, and add proper media_codecs.xml. Haven't tested facebook tho, but video recording/playing and apps like youtube work. Check out git repo.
    Tho that routing still annoys crap outta me, it tries to add route to gateway, but fails, cause gw is in another network, we need to add static route to rmnet0 address instead, i tested adding it manually and it worked.
    1
    @itigr Thanks for the ROM but isn't there any possibility of getting the mobile data thing fixed permanently?
    Also,ROM with pretty much everything working with tiltle[Experimental].
    weird. @Nikiz how did you unlock the bootloader of the almost dead Trend 2 or it wasn't locked?
    1
    @itigr Thanks for the ROM but isn't there any possibility of getting the mobile data thing fixed permanently?
    Also,ROM with pretty much everything working with tiltle[Experimental].
    weird.

    No, at least not now. And i don't want to spend one more week figuring out why it doesn't work, i will probably pause dev for indefinite period 'coz i'm tired of this.
    Yep, cause i messed with sources alot :D
    1
    @itigr ok... but...
    First of all AOSP sucks(It doesn't even have a file manager)
    There's alot more bugs i.e
    Wifi does't work (always shows exclamation even though the wifi is working good)
    Calls doesn't end(mention about the work around for this too)
    Last thing isn't there anyway that I can flash both ROM's by @Nikiz and you without editing things?
    Coz having to switch recovery is really a hard task!

    Got the bootloader unlocked by just typing "fastboot oem unlock-go" into the terminal. I just made a minimal device tree for this phone, with the partition information, TWRP settings and the fstab-file. I just built it and I was surprised that it booted on the first try. All I had to do was to fix the fstab-file, change the pixel format and add couple of recovery settings to make it fully working. Building CM12.1 now. (Luckily there was couple of officially supported, similar Huawei devices, so I just copied bunch of code from there.. :D)