Skocz do zawartości
ct65

kernel [UB][Z5/Z5C] AndroPlusKernel

    Rekomendowane odpowiedzi

    ct65

    Changelog:

    Spoiler

    v41
    Add support for 32.2.A.4.3 (only for Z5, someone please send me kernel.sin for Z5C...)
    Remove verifiedbootstate flag from /proc/cmdline

    v40
    Fix CVE-2016-5195 "Dirty COW"
    Fix recovery booting

    v39
    Added support for 32.2.A.0.305
    Added nightmare CPU gov
    --------------------------------------
    v38
    Enabled core_ctl

    v37
    Added CPU OC (2054MHz/1708MHz)

    v36
    Fixed CVE-2016-2059 and CVE-2016-2504
    Added darkness CPU governor

    v35
    Changed ZRAM size to default

    v34
    Updated to support 32.2.A.0.253

    --------------------------------------
    v33
    Updated DRM patch to v5 beta8
    v32b
    Updated DRM patch to v5 beta7
    Increased default ZRAM to 1073741824
    * for some reason v32b and v33 breaks touch function for Xperia Z4 Tablet. Please use v32 for now.

    v32
    Reverted power_efficient workqueues and bcl_hotplug related commits because of instability
    Moved hosting to Google Drive (f**k AFH, my FTP account is banned for unknown reason and no response)

    v31
    Now supports Android 6.0.1 32.2.A.0.224!

    --------------------------------------
    v30
    Added patch for kexec-hardboot and workaround for USB problem to Z4T and Z5C
    Lowered backlight initial brightness
    Switched to LITTLE tuning
    Enhanced power efficiency

    v29
    *Z5 only for now
    Added support for tap to enter recovery
    ---Tap screen when LED is blue, or press volume up/down when LED is orange
    Updated alucard CPU gov to v4.0

    v28
    *Z5 only - Added patch for kexec-hardboot and workaround for USB problem (thanks Myself5)

    v27
    Always enabled CPU core 0 and 4 to prevent freq and gov resetting
    Added software crc toggle
    Added patch to prevent perfd to change max cpus and freqs
    Re-added power_efficient workqueues
    Added patch to support touch in MultiROM menu (not tested)
    Set default ksm to stop state to save power on boot
    Add the possibility to change the value for BCL's low power mode (default: 0)
    sysfs path is: sys/module/battery_current_limit/parameters/soc_low_threshold

    v26
    Reverted optimizations in v25 due it caused FC and other problems
    Fixed loading of ecryptfs module (now you can encrypt your data, but decryption in TWRP isn't working)
    Re-added alucard gov
    Added optimizations for msm-core and vmpressure

    v25
    Removed cluster_plug (not working as desired)
    Added some optimizations
    Set HZ tick rate to 300
    Disabled modifications of cpu max freq via msm_performance

    v24
    Added cluster_plug

    Enable hotplug (1=enable, 0=disable):
    echo "1" > /sys/module/cluster_plug/parameters/active
    Enable low power mode (1=enable, 0=disable):
    echo "1" > /sys/module/cluster_plug/parameters/low_power_mode
    

    Disabled workqueue

    v23
    Updated ramdisk to 32.1.A.1.185
    Added fix for bug in bcl
    Added fix for CVE-2016-0774

    --------------------------------------
    v22c
    Added some optimizations
    Added support for USB to Ethernet Adapter

    v22b
    Disabled some unneeded drivers

    v22a
    Disabled CPU Quiet as it caused random reboot

    v22
    Added CPU Quiet - "runnable" is recommended.
    Disabled msm_performance hotplug
    Disabled touch input boost by default (it causes conflict with CPU Quiet)
    Removed undervolting since it isn't working
    Added some optimization patches

    v21
    Removed PowerSuspend due wakelock problem
    Added support for cdrom (DriveDroid)
    Set ROW I/O scheduler as default
    Fixed overflow in /sys/kernel/debug/msm8994_cpuinfo (thanks Tommy-Geenexus)
    Enabled elementalx CPU governor
    To limit CPU freq and fix CPU governor, run script like this:

     

    for i in `seq 0 7`
    do
    
    if [ $i -le 3 ]; then
    if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit ]; then
    echo "1344000" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit
    fi
    fi
    
    if [ $i -ge 4 ]; then
    if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit ]; then
    echo "1536000" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit
    fi
    fi
    
    if [ $i -le 3 ]; then
    if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard ]; then
    echo "elementalx" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard
    fi
    fi
    
    if [ $i -ge 4 ]; then
    if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard ]; then
    echo "elementalx" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard
    fi
    fi
    done

    Note this is incomplete and you will loose those settings sometimes...

    v20
    Updated to Android 6.0 Marshmallow 32.1.A.1.163
    Removed underclock due it break build
    --------------------------------------
    v14
    Removed some patches including thunderplug
    Added limit for min/max cpu frequencies

     

     

    Limit max freq of A57 (big):
    echo "1536000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq_hardlimit
    Limit max freq of A53 (LITTLE):
     echo "1344000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq_hardlimit


    v12
    Added undervolting (thnaks Hundsbuah)
    *Note: Please don't blame if you get random reboot after undervolting.
    Updated workqueue
    Fixed some bugs and logspam

    v11
    Added thunderplug - hotplug & load balancer

     

     

    Enable hotplug (1=hotplug, 2=load balancer):
    echo "1" > /sys/kernel/thunderplug/hotplug_style
    Change endurance mode (0=disable, 1=quad core mode, 2=dual core mode):
    echo "1" > /sys/kernel/thunderplug/endurance_level
    Disable hotplug and Enable load balancer (default):
    echo "0" > /sys/kernel/thunderplug/endurance_level
    echo "2" > /sys/kernel/thunderplug/hotplug_style
    Change load balancer mode (1=Balanced, 2=Turbo performance):
    echo "1" > /sys/kernel/thunderplug/sched_mode

    Added saving log of kernel panic (pstore)
    previously it was last_kmsg, but now log location is

     

    /sys/fs/pstore/console-ramoops

    Fixed kernel crash when msm thermal limits CPU freq
    Added some patches

    v10
    Added ZZMoove (test version)
    Fixed random reboot caused by conservative, elementalx, ondemand and zzmoove
    Muted some logspam
    Updated TWRP to 3.0.0-0

    v9
    Fixed CVE-2016-0728 (please redownload if you downloaded v9 before 2016/01/20)
    Added DRM functions restore patch (thanks tobias.waldvogel)
    --This is just a fallback and you have to delete contents of /data/credmgr to enable restore patch.
    --Flashable zip can be downloaded from here.
    Added patches for power efficient workqueue
    Added underclocking
    Added BFQ I/O Scheduler
    Added patches for cpugov conservative and msm_performance
    Added fix for bug of clearpad

    v8
    Added patch commits for performance

    v7.2
    Removed some patches added in v7.1 due microSD card (64GB+) problem

    v7.1
    Fixed recovery loading (because of strict Enforcing)
    Added power_efficient workqueue
    Added option to disable Gentle Fair Sleepers in kernel adiutor and other apps
    Added some patches

    v6
    Update source to 32.0.A.6.200
    Added Adreno idler
    Removed some patches and dynamic fsync control for more stability
    --------------------------------------
    v5
    Z5C only: calibrate jdi_novatek panel (by Tommy-Geenexus)
    Added elementalx and conservative CPU gov
    Enabled NTFS
    Added optimization
    Added option to control throttle temp
    Mute logspam: _cpu_up: attempt to bring up CPU n failed

    v4
    Released SELinux Permissive and Enforcing version for Z5
    Added toggle for preventing wakelock
    Added Powersuspend 1.5
    Added some patch
    Allowed to show CPU voltage (not changeable)
    Changed version name to contain version number: e.g. 3.10.49-v4 [email protected] #41
    NOTE: The number after # is random number.

    v3
    Added dynamic sync control 2.0

    v2
    Updated sound control
    Reverted patches for crypto as it causes softbrick

    v1
    First custom kernel!
    Added impulse CPU governor
    Added tomtom-sound-control
    *This is not included in Kernel Adiutor for now.
    To enable, you have to run command or mod file with root explorer.

     

    Enable tomtom-sound-control:
    echo "1" > /sys/class/misc/tomtom_control/enabled
    Change headphone volume (first one is left, second is right)
    echo "-1 -1" > /sys/class/misc/tomtom_control/hpgain
    Change mic volume (first one is left, second is right)
    echo "-1 -1" > /sys/class/misc/tomtom_control/micgain
    Change camera mic volume (first one is left, second is right)
    echo "-1 -1" > /sys/class/misc/tomtom_control/cmicgain

     

    Added Zen I/O scheduler
    Disabled DM_VERITY and CORESIGHT (debugging)
    Added KCAL
    Added additional TCP cong algorithms
    Added CPUQuiet
    Some GPU related patch
    I/O scheduler SIO and FIOPS
    ric disabled
    insecure adb 

     

    Wymagania:

    Dla Xperii Z5 [E6653 / E6603]:

    stock 6.0

    - 32.2.A.4.3 -> v41 -

    - 32.2.A.0.305 -> v39 - v40

    - 32.2.A.0.253 -> v34 - v38

    - 32.2.A.0.224 -> v31 - v33

    - 32.1.A.1.163 -> v20 - v22c

    stock 5.1.1

    - 32.0.A.6.200 -> v6 - v14

    - 32.0.A.6.152 -> v1 - v5

    - Unlocked bootloader

     

    Dla Xperii Z5 Compact [E5823 / E5803]

    stock 6.0.1

    - 32.2.A.0.305 -> v39 -

    - 32.2.A.0.253 -> v34 - v38

    - 32.2.A.0.224 -> v31 - v33

    stock 6.0

    - 32.1.A.1.185 -> v23 - v30

    - 32.1.A.1.163 -> v20 - v22c

    stock 5.1.1

    - 32.0.A.6.200 -> v6 - v14

    - 32.0.A.6.152 -> v1 - v5

    - Unlocked bootloader

     

     

    Linki do pobrania:

    Z5 lub [GOOGLE DRIVE (V32 AND LATER)]

    Z5 Compact lub [GOOGLE DRIVE (V32 AND LATER)]

     

     

     

    ANI AUTOR ANI JA NIE PONOSIMY ODPOWIEDZIALNOŚCI ZA EWENTUALNE USZKODZENIA TELEFONU, KARTY SD. KAŻDĄ MODYFIKACJĘ WGRYWASZ NA WŁASNĄ ODPOWIEDZIALNOŚĆ!!!!

     

    Instalacja:

    Przez recovery

    1. pobraną paczkę z kernelem wrzucamy na kartę sd

    2. wchodzimy w recovery i flashujemy paczkę
    3. reboot

     

    Przez fastboot

    1. Pobraną paczkę z kernelem wypakowujemy i plik boot.img przenosimy do głównego folderu adb

    2. odpalamy adb i wpisujemy następującą komendę:

    Cytuj

    fastboot flash boot boot.img

    jeśli nie mamy recovery, możemy je wgrać używając tej komendy (oczywiście plik z recovery musi być w głównym folderze adb):

    Cytuj

    fastboot flash recovery twoja_nazwa_pliku_recovery.img

    3. Reboot
     

    UWAGA! Jeśli wystąpią problemy z aparatem, po dograniu xposed, tutaj znajdziemy rozwiązanie tego problemu.

     

    Autorem kernela jest użytkownik AndroPlus

    Link do xda

    Edytowane przez ct65

    Udostępnij tę odpowiedź


    Odnośnik do odpowiedzi
    Udostępnij na innych stronach

    Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

    Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

    Zarejestruj nowe konto

    Załóż nowe konto. To bardzo proste!

    Zarejestruj się

    Zaloguj się

    Posiadasz już konto? Zaloguj się poniżej.

    Zaloguj się

    • Ostatnio przeglądający   0 użytkowników

      Brak zarejestrowanych użytkowników przeglądających tę stronę.

    x