• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

(CM ALL_IN_ONE) ViRus kernel for Samsung Galaxy S4 (i9500)

Search This thread

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,953
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
Code:
I:operation_start: 'Flashing'
Installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
 
Archive:  /external_sd/ViRus-ALL_IN_ONE_1.zip
   creating: META-INF/
  inflating: META-INF/CERT.RSA
  inflating: META-INF/CERT.SF
  inflating: META-INF/MANIFEST.MF
   creating: META-INF/com/
   creating: META-INF/com/google/
   creating: META-INF/com/google/android/
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: ViRus.sh
   creating: tools/
  inflating: tools/busybox
  inflating: tools/mkbootfs
  inflating: tools/mkbootimg
  inflating: tools/unpackbootimg
  inflating: zImage
ViRus by Vishal Thakar @ xda-developers
 
ViRus by VISHAL @ xda-developers
 
mount: mounting /dev/block/mmcblk0p21 on /data failed: Device or resource busy
Creating init.d...
 
mkdir: can't create directory '/system/etc/init.d': File exists
Installing kernel...
/tmp/ViRus/ViRus.sh: line 6: kernel.string=ViRus: not found
/tmp/ViRus/ViRus.sh: line 7: do.devicecheck=0: not found
/tmp/ViRus/ViRus.sh: line 8: do.initd=1: not found
/tmp/ViRus/ViRus.sh: line 9: do.modules=0: not found
/tmp/ViRus/ViRus.sh: line 10: do.cleanup=1: not found
/tmp/ViRus/ViRus.sh: line 11: device.name1=Samsung: not found
16384+0 records in
16384+0 records out
8388608 bytes (8.0MB) copied, 0.206441 seconds, 38.8MB/s
BOARD_KERNEL_CMDLINE 
BOARD_KERNEL_BASE 10000000
BOARD_NAME 
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET f1000000
BOARD_TAGS_OFFSET 00000100
[COLOR="Red"]gunzip: invalid magic
 
Unpacking ramdisk failed. Aborting...
Updater process ended with ERROR: 1[/COLOR]
I:Legacy property environment disabled.
Error installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Updating partition details...
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Data backup size is 3418MB, free: 5340MB.
I:sending message to remove 65537
mtppipe remove storage 65537
I:Message sent, remove storage ID: 65537
...done
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Set page: 'flash_done'
I:operation_end - status=1
AnyKernel fails to unpack ramdisk. Ramdisk isn't compressed with GZIP compression, or something went wrong with the ramdisk.

@vishal thakar: You need to add support for ramdisk that compressed with compression other than GZIP (LZMA, XZ, LZO) or the script would instantly fail.

Edit: I'm also thinking that AnyKernel script is somewhat messed up, with 'invalid magic' shown on the output.

Sent from my ASUS_Z00A using XDA Labs
 
Last edited:

vishal thakar

Senior Member
Sep 23, 2014
346
323
valsad
Code:
I:operation_start: 'Flashing'
Installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
 
Archive:  /external_sd/ViRus-ALL_IN_ONE_1.zip
   creating: META-INF/
  inflating: META-INF/CERT.RSA
  inflating: META-INF/CERT.SF
  inflating: META-INF/MANIFEST.MF
   creating: META-INF/com/
   creating: META-INF/com/google/
   creating: META-INF/com/google/android/
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: ViRus.sh
   creating: tools/
  inflating: tools/busybox
  inflating: tools/mkbootfs
  inflating: tools/mkbootimg
  inflating: tools/unpackbootimg
  inflating: zImage
ViRus by Vishal Thakar @ xda-developers
 
ViRus by VISHAL @ xda-developers
 
mount: mounting /dev/block/mmcblk0p21 on /data failed: Device or resource busy
Creating init.d...
 
mkdir: can't create directory '/system/etc/init.d': File exists
Installing kernel...
/tmp/ViRus/ViRus.sh: line 6: kernel.string=ViRus: not found
/tmp/ViRus/ViRus.sh: line 7: do.devicecheck=0: not found
/tmp/ViRus/ViRus.sh: line 8: do.initd=1: not found
/tmp/ViRus/ViRus.sh: line 9: do.modules=0: not found
/tmp/ViRus/ViRus.sh: line 10: do.cleanup=1: not found
/tmp/ViRus/ViRus.sh: line 11: device.name1=Samsung: not found
16384+0 records in
16384+0 records out
8388608 bytes (8.0MB) copied, 0.206441 seconds, 38.8MB/s
BOARD_KERNEL_CMDLINE 
BOARD_KERNEL_BASE 10000000
BOARD_NAME 
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET f1000000
BOARD_TAGS_OFFSET 00000100
[COLOR="Red"]gunzip: invalid magic
 
Unpacking ramdisk failed. Aborting...
Updater process ended with ERROR: 1[/COLOR]
I:Legacy property environment disabled.
Error installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Updating partition details...
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Data backup size is 3418MB, free: 5340MB.
I:sending message to remove 65537
mtppipe remove storage 65537
I:Message sent, remove storage ID: 65537
...done
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Set page: 'flash_done'
I:operation_end - status=1
AnyKernel fails to unpack ramdisk. Ramdisk isn't compressed with GZIP compression, or something went wrong with the ramdisk.

@vishal thakar: You need to add support for ramdisk that compressed with compression other than GZIP (LZMA, XZ, LZO) or the script would instantly fail.

Sent from my ASUS_Z00A using XDA Labs

i will
 

vishal thakar

Senior Member
Sep 23, 2014
346
323
valsad
Code:
I:operation_start: 'Flashing'
Installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
 
Archive:  /external_sd/ViRus-ALL_IN_ONE_1.zip
   creating: META-INF/
  inflating: META-INF/CERT.RSA
  inflating: META-INF/CERT.SF
  inflating: META-INF/MANIFEST.MF
   creating: META-INF/com/
   creating: META-INF/com/google/
   creating: META-INF/com/google/android/
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: ViRus.sh
   creating: tools/
  inflating: tools/busybox
  inflating: tools/mkbootfs
  inflating: tools/mkbootimg
  inflating: tools/unpackbootimg
  inflating: zImage
ViRus by Vishal Thakar @ xda-developers
 
ViRus by VISHAL @ xda-developers
 
mount: mounting /dev/block/mmcblk0p21 on /data failed: Device or resource busy
Creating init.d...
 
mkdir: can't create directory '/system/etc/init.d': File exists
Installing kernel...
/tmp/ViRus/ViRus.sh: line 6: kernel.string=ViRus: not found
/tmp/ViRus/ViRus.sh: line 7: do.devicecheck=0: not found
/tmp/ViRus/ViRus.sh: line 8: do.initd=1: not found
/tmp/ViRus/ViRus.sh: line 9: do.modules=0: not found
/tmp/ViRus/ViRus.sh: line 10: do.cleanup=1: not found
/tmp/ViRus/ViRus.sh: line 11: device.name1=Samsung: not found
16384+0 records in
16384+0 records out
8388608 bytes (8.0MB) copied, 0.206441 seconds, 38.8MB/s
BOARD_KERNEL_CMDLINE 
BOARD_KERNEL_BASE 10000000
BOARD_NAME 
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET f1000000
BOARD_TAGS_OFFSET 00000100
[COLOR="Red"]gunzip: invalid magic
 
Unpacking ramdisk failed. Aborting...
Updater process ended with ERROR: 1[/COLOR]
I:Legacy property environment disabled.
Error installing zip file '/external_sd/ViRus-ALL_IN_ONE_1.zip'
Updating partition details...
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Data backup size is 3418MB, free: 5340MB.
I:sending message to remove 65537
mtppipe remove storage 65537
I:Message sent, remove storage ID: 65537
...done
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Set page: 'flash_done'
I:operation_end - status=1
AnyKernel fails to unpack ramdisk. Ramdisk isn't compressed with GZIP compression, or something went wrong with the ramdisk.

@vishal thakar: You need to add support for ramdisk that compressed with compression other than GZIP (LZMA, XZ, LZO) or the script would instantly fail.

Edit: I'm also thinking that AnyKernel script is somewhat messed up, with 'invalid magic' shown on the output.

Sent from my ASUS_Z00A using XDA Labs

if you flash over any other custom kernel then you will face this problem so flash this kernel after restore stock kerenel
 

Top Liked Posts

  • There are no posts matching your filters.
  • 55
    STABLE version

    Hello there.. :eek:
    This is my first kernel. It is still on alpha level and I'm working very hard on it.. :good:
    Some working features are as under and soon I'll add more feature.
    As it is on alpha version there is chance to have bugs so if you find any please report it in bug section.. :)


    • [*]- Cpu Voltage Control
      [*]- Linux kernel version update to 3.4.5
      [*]- Cpu Underclock (not now)
      [*]- fix little bit heating problem
      [*]- add memory hotplug
      [*]- Built with Uber 4.9
      [*]- Working IR
      [*]- Cpu governor zzmoove,alucard,pegasusq
      [*]- flag o3
      [*]- KSM
      [*]- vibration control
      [*]- charging tweak
      [*]- SELINUX disabled
      [*]- Hotplug
      [*]- custom gpu dvfs
      [*]- gpu overclock to 700mhz
      [*]- f2fs support
      [*]- modify MIF voltage control
      [*]- modify INT voltage control
      [*]- compression xz

    No random reboot
    Best Battery life


    If you like my work don't say that, click on thanks button :eek: :good:

    Hy guys If u like my work then help me for buy mobile data plan to keep me working like that I need to good Internet connection so Keep me online by some fund.

    XDA:DevDB Information
    ViRus, Kernel for the Samsung Galaxy S4

    Contributors
    vishal thakar, dhaval2904, emre3461, asad007
    Source Code: https://www.dropbox.com/s/xlejzu3r8qwese4/ViRus_kernel.7z?dl=0

    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2016-04-03
    Last Updated 2016-09-23
    15
    changelog

    NOTE:- GEAR CM RECOVERY recommended, otherwise you face problems.
    -Clean kernel app data when you flash new kernel
    -clean catch partition


    flash all in one kernel over stock kernel

    DOWNLOAD
    OLD DETAIL

    Code:
    for new RR 5.7.0 follow this step:-
    
    Su:-
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxZExzdVVlVnVFNnc/view?usp=docslist_api[/URL]
    Kernel:-
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxdVYwdHNnaHg3QVU/view?usp=docslist_api[/URL]
    
    Follow this step
    1. Flash su.zip and reboot to system 
    2. Open setting app and wait for su promote and after promote provide su grant
    3. Open super su (in setting ) and update su script 
    4. Now reboot to recovery and flash kernel and reboot
    100% work tested by @[URL="http://forum.xda-developers.com/member.php?u=6044543"]vishal thakar[/URL] and @[URL="http://forum.xda-developers.com/member.php?u=5907474"]kingdevil731[/URL]
    
    download link:-
    
    =》 all in one kernel for all cm base rom (cm 12,12.1, 13, RR, mokee, cm Chinese )
    synapses work only in cm13 and cm 12.1 if u r already in ViRus kernel. if u want synapse then flash virus black edition v7 then flash all in one kernel
    
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxWkE2ZDVKNHdQdFU/view?usp=docslist_api[/URL]
    
    - also flash this file for tweak (after flashing this open synapse and click on right symbol)
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxa0t6UVNIa0RUYzA/view?usp=docslist_api[/URL]
    
    =>MM:- 
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxcFhxc3pkdE9RUE0/view?usp=docslist_api[/URL]
    
    =>LL:-
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxN01ycV9vWkFlUlU/view?usp=docslist_api[/URL]
    
    Chinese cm 12.1=>
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxZFNhOXRua2k3ak0/view?usp=docslist_api[/URL]
    
    =>MOKEE LL
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxM09uRU9LZGR2ak0/view?usp=docslist_api[/URL]
    
    =>ViRus_script_config:-
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxNk1FdDBtMFdFaWc/view?usp=docslist_api[/URL]
    
    =>Fix official cm12.1 wifi (thanks to @[URL="http://forum.xda-developers.com/member.php?u=6043425"]melekbarca[/URL] ):-
    [URL]https://drive.google.com/file/d/0ByZzA_jcaXIxUVVPX2ZlMGFkbTg/view?usp=docslist_api[/URL]
    Changelog

    Code:
    ALL_IN_ONE_!
    *new project
    *working in all rom (cm base)
    *synapses in all rom
    *add tweak
    [B][COLOR=Red]flash 3 files KEREL SYNAPSES TWEAK[/COLOR][/B]
    
    black edition ll 6
    *fix reboot
    *wake lock reduce 
    *many more don't remember 
    
    black edition mm/ll 5.1
    *deadline i/o improve for performance 
    *fix rendom reboot
    *remove uc and oc of cpu
    *synapse update
    
    Black edition MM 5
    *improve performance
    *patch to kernel lz compration 
    *lock screen patch
    *reduce wake lock 
    *many more
    
    Black edition MM/LL 4
    *fast charge
    *improve performance
    
    Black edition 3
    MM/LL/mokee
    
    * selinux disable
    * fix random reboot and bootloop
    * wakelock patch
    * hotplug customisation in synapses
    * synapses tweaks
    * add power manager app
    * start support to LL mokee rom
    * many more tweak don't remember.
    
    Black edition LL/MM v 2
    * add governor
    * add i/o
    * remove some synapse tab
    * active offline charge (switch off charge)
    * synapse tweak
    
    Black edition LL/MM v1
    
    * selinux permissive
    * synapses uci support
    * custom synapses mod app inbuilt
    * init.d support
    * set gpu 350mhz
    * increase earpiece speaker volume
    * add gpu voltage control
    * led control
    * disable L2_hsic
    * many more don't remember
    
    Note- run this command in terminal
    su
    chmod 755 /system/etc/init.d/virus
    
    LL/MM Stable v4
    
    *Gpu overclock to 700 mhz (default 532mhz)
    *increase performance of memcopy and memmove
    *enable disable hotplug (using script)
    *Gpu dvfs tweaks
    
    LL/MM Stable v3:-
    
    *add memory hotplug
    *charging tweaks
    *remove unwanted stuff
    *fix little bit heating problem.
    *Improve overall performance without effect on battery.
    
    Stable LL  2.1:-
    *fix wifi
    
    Stable LL / MM 2:-
    *fix hotplug 
    *improve performance
    *now start ViRus kernel support to LL ;)
    
    
    1.Take backup of system , data , boot 
    2.I m not responsible if something wrong with you.
    3.feedback for LL version because I'm on cm13
    
    Stable v1
    
    *fix cpu voltage control
    *use o3 flag
    *modify INT voltage control
    *modify MIF voltage control
    
    Test v5
    *Add governor
    -alucard
    -pegasusq
    *gpu tweak
    *increase microphone range
    *update kernel 3.4.5
    
    Test v4
    *add custom gpu dvfs 
    *cpu ARCH tweak
    *cpu ideal power tweak
    *charging tweak
    *display tweak
    *many more
    
    -clean kernel app data 
    
    test v3
    *add Cpu Voltage Control
    *fix random reboot for RR rom
    *improve performance
    *tweaks in zzmove governor (use profile 5 for battery
    and profile 11for balance)
    *default governor ondemand (for got to set zzmove to
    default)
    *if you use xprivacy then uninstall for batter's
    performance (cm bug)
    
    test v2.1
    *add zzmoove Governor
    *add zzmoove hotplug
    *compression xz
    *performance and battery improve
    *fix hardware's button (now disable hardware button when enable on screen nav bar)
    
    test v2
    * change toolchain (now uber 4.9.4)
    * modified kernel source (same as stock kernel)
    * kernel Compression LMZA
    *currently hotplug disable (fix in next version)
    * and many more changes
    
    
    test v1.2
    fix camera blue tint
    improve performance
    add camera tweaks
    7
    New RR 5.7.0 virus kernel with synapse

    New RR 5.7.0 virus kernel with synapse

    Su:-
    https://drive.google.com/file/d/0ByZzA_jcaXIxZExzdVVlVnVFNnc/view?usp=docslist_api
    Kernel:-
    https://drive.google.com/file/d/0ByZzA_jcaXIxdVYwdHNnaHg3QVU/view?usp=docslist_api

    Follow this step
    1. Flash su.zip and reboot to system
    2. Open setting app and wait for su promote and after promote provide su grant
    3. Open super su (in setting ) and update su script
    4. Now reboot to recovery and flash kernel and reboot
    100% work tested by @vishal thakar and @kingdevil731

    If u like my work don't say thanks click on thanks
    7
    Update
    LL/MM

    Black edition 2
    * add governor
    * add i/o
    * remove some synapse tab
    * active offline charge (switch off charge)
    * synapse tweak
    7
    Update

    Black edition MM 5
    *improve performance
    *patch to kernel lz compration
    *lock screen patch
    *reduce wake lock
    *many more

    Clean kernel app data other wise you get random reboot

    Its only for MM.i will update LL as soon as possible.

    No lag if you select maximum freq 300mhz ? for battery lover

    Click on thanks button if you like my work