[COLOR="333333"]This is the Bug fix thread for all MTK 6592 & 6582 running CM12.1[/COLOR]
[COLOR="cc3366"]
I need the help off all the porters, to make a full Bug fix list. Just post your fix and i will add it to the list.
Special thanks to CM Team, fire855 and of course to all the supporters.[/COLOR]
I need the help off all the porters, to make a full Bug fix list. Just post your fix and i will add it to the list.
Special thanks to CM Team, fire855 and of course to all the supporters.[/COLOR]
-Open Bug fixes-
Gps
Sensors
Or tell me what is missing.
[COLOR="cc3366"]-Network Drop-[/COLOR]
system/bin/rild
system/bin/rildmd2
system/etc/ril/oper.lis
system/lib/libreference-ril.so
system/lib/libril.so
system/lib/librilmtk.so
system/lib/librilmtkmd2.so
system/lib/librilutils.so
system/lib/mtk-ril.so
system/lib/mtk-rilmd2.so
system/etc/firmware <---(Only replace from stock to Cm12.1 Don´t delet the folder in Cm12.1)
[COLOR="cc3366"]-Offline charging-[/COLOR]
system/bin/ipod
system/bin/boot_logo_updater
system/bin/factory
system/lib/libipod.so
system/lib/libshowlogo.so
(From stock to --> Cm12.1 Boot.img)
init.charging.rc
all init.rc files with factory in the file name (factory_init.rc; factory_init.project.rc)
all init.rc files with meta in the file name (meta_init.rc; meta_init.modem.rc; meta_init.project.rc)
[COLOR="cc3366"]-Camera-[/COLOR]
system/lib/libcameracustom.so
system/lib/libdpframework.so (Fix Green Camera)
system/lib/libfeatureio.so
system/lib/libcam.paramsmgr.so (Fix Megapixel)
system/lib/libjpeg.so
system/lib/libcamalgo.so
system/lib/libcamdrv.so
[COLOR="cc3366"]-Bluetooth-[/COLOR]
[(bluetooth.default.so)] <---(If Bluetooth dosen´t work after this fix dont copy this file)
system/lib/libbluetooth_mtk.so
system/lib/libbluetoothem_mtk.so
[COLOR="cc3366"]-You Tube reload after 5 sec & Netflix stucked at loading screen-[/COLOR]
delet the folder vendor/lib <-- DELET
Copy this files in the folder vendor/lib
MEGA
[COLOR="cc3366"]-GPU Bugs-[/COLOR]
system/lib/egl/libEGL_mali.so
system/lib/egl/libGLES_android.so
system/lib/egl/libGLESv1_CM_mali.so
system/lib/egl/libGLESv2_mali.so
system/lib/libMali.so
system/lib/hw/hwcomposer.mt65xx.so
system/lib/hw/gralloc.mt65xx.so
system/lib/hw/gralloc.default.so
[COLOR="cc3366"]-Notifications lights-[/COLOR]
system/lib/hw/lights.default.so
[COLOR="cc3366"]-Bootloop-[/COLOR]
(From stock to --> Cm12.1 Boot.img)
ueventd.rc
[COLOR="cc3366"]-Audio-[/COLOR]
system/lib/libaudio.primary.default.so
system/lib/libaudiocompensationfilter.so
system/lib/libaudiocustparam.so
system/lib/libaudiosetting.so
system/lib/libaudioutils.so
[COLOR="cc3366"]- Internal and external storage-[/COLOR]
(In Cm12.1 Boot.img)
-Stock init.mt65xx.rc-
Code:
on init
export LD_PRELOAD /system/lib/libxlog.so
[COLOR="red"] export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage/sdcard0 0700 root root
mkdir /storage/sdcard1 0700 root root
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw[/COLOR]
.....
on fs
.....
[COLOR="red"] #setprop ro.crypto.fuse_sdcard true[/COLOR]
.....
# virtual sdcard daemon running as media_rw (1023)
[COLOR="red"]service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled[/COLOR]
service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
Change red marked lines to
-Modified init.mt65xx.rc-
Code:
[COLOR="blue"]on init
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
export SECONDARY_STORAGE /storage/sdcard1[/COLOR]
[COLOR="DimGray"] export LD_PRELOAD /system/lib/libxlog.so[/COLOR]
[COLOR="blue"] mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /storage/sdcard1 /mnt/sdcard2[/COLOR]
.....
on fs
.....
[COLOR="blue"] setprop ro.crypto.fuse_sdcard true[/COLOR]
.....
# virtual sdcard daemon running as media_rw (1023)
[COLOR="blue"] service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled[/COLOR]
service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
-Stock fstab.mt65xx-
Code:
[COLOR="red"]# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/[email protected] /system ext4 ro,commit=1,noauto_da_alloc wait
/[email protected] /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected] /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected]_f /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected]_s /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/devices/platform/mtk-msdc.0/mmc_host/mmc0/mmc0 auto auto defaults voldmanaged=sdcard0:8,nonremovable,noemulatedsd
/devices/platform/mtk-msdc.1/mmc_host/mmc1/mmc1 auto auto defaults voldmanaged=sdcard1:auto
/devices/platform/mt_usb auto auto defaults voldmanaged=usbotg:auto[/COLOR]
Change to
-Modified fstab.mt65xx-
Code:
[COLOR="blue"]# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/[email protected] /system ext4 ro,commit=1,noauto_da_alloc wait
/[email protected] /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected] /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected]_f /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/[email protected]_s /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/devices/platform/mtk-msdc.0/mmc_host/mmc0/mmc0 auto vfat defaults voldmanaged=sdcard0:auto
/devices/platform/mtk-msdc.1/mmc_host/mmc1/mmc1 auto vfat defaults voldmanaged=sdcard1:auto
/devices/platform/mt_usb auto auto defaults voldmanaged=usbotg:auto[/COLOR]
framework-res.apk (framework-res.apkresxmlstorage_list.xml)
-Stock storage_list.xml-
Code:
[COLOR="red"]<?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_internal" android:primary="true" android:removable="false" android:allowMassStorage="true" />
<storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:primary="false" android:removable="true" android:allowMassStorage="true" />
<storage android:mountPoint="/storage/usbotg" android:storageDescription="@string/storage_usb" android:removable="true" />
</StorageList>[/COLOR]
Change to
-Modified storage_list.xml-
Code:
[COLOR="blue"]<?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_internal" android:primary="true" android:emulated="true" android:allowMassStorage="true" />
<storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:primary="false" android:removable="true" android:allowMassStorage="true" />
<storage android:mountPoint="/storage/usbotg" android:storageDescription="@string/storage_usb" android:removable="true" />
</StorageList>[/COLOR]
XDA:DevDB Information
Cyanogenmod 12.1 [MTK fix all Bugs], ROM for all devices (see above for details)
Contributors
OrdenKrieger, fire855
Source Code: https://github.com/cyanogenmod
ROM OS Version: 5.1.x Lollipop
Version Information
Status: Testing
Created 2016-02-05
Last Updated 2016-05-11