[Guide]Modify stock rom and delete bootloader with Knox for Galaxy S4 Mini

Search This thread

alessa

Senior Member
Jul 5, 2008
1,235
119
hello

I would like to flash the ron kitkat déodex, but I have a problem with wifi after flash via CWM I was told I need to change the bootloader ... how? thank you for your help.
 

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
hello

I would like to flash the ron kitkat déodex, but I have a problem with wifi after flash via CWM I was told I need to change the bootloader ... how? thank you for your help.

Best and most easy way is to flash full stock KitKat firmware. Followed by a factory reset and then start over with your CWM and flashing the rom from ladislav.heller
More complicated way :
Download a stock kitkat rom
Code:
unzip *.zip
rm -rf SS_DL.dll
tar -xvf *.tar.md5
tar -H ustar -c aboot.mbn sbl1.mbn sbl2.mbn sbl3.mbn tz.mbn > bootloader.tar
md5sum -t bootloader.tar >> bootloader.tar
mv bootloader.tar bootloader.tar.md5
Try to flash it
 
  • Like
Reactions: torrentu

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
I tried to preroot / delete knox apps from a system.img.ext4 with make_ext4fs for 4.4.2 . Failed ... system not starting ...
Then i flashed untouched system and rooted after, removed Knox apps , system not booting anymore :D
I think i don`t delete what i need to
Maybe someone else can point me in a good direction ?
http://pastebin.com/2UzGPc9M

Back to the drawing board / brainstorming lol
 
Last edited:

chemicalrage

Senior Member
Oct 17, 2011
1,220
763
@SilviuMik: I just managed to downgrade from 4.4.2 (Kitkat KNOX tripped) to 4.2.2 with this KNOX removal method but the wifi does'nt work now. Is there any way to downgrade to 4.2.2 with wifi working or is there any JB firmware for I9192 which has the same kitkat bootloader?

When I try to flash other firmwares(without modification) it returns an error:

Code:
<ID:0/004> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> I9192DDU1BML1_I9192ODD1BML1_I9192DDU1BML1_HOME.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/004> Odin v.3 engine (ID:4)..
<ID:0/004> File analysis..
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> SingleDownload.
<ID:0/004> sbl2.mbn
<ID:0/004> NAND Write Start!! 
<ID:0/004> sbl3.mbn
<ID:0/004> aboot.mbn
<ID:0/004> FAIL! (Auth)
<ID:0/004> 
<ID:0/004> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)

another one:

Code:
<ID:0/004> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> I9192XXUBND2_I9192OXEBML1_I9192XXUBND2_HOME.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/004> Odin v.3 engine (ID:4)..
<ID:0/004> File analysis..
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> SingleDownload.
<ID:0/004> sbl1.mbn
<ID:0/004> NAND Write Start!! 
<ID:0/004> sbl2.mbn
<ID:0/004> sbl3.mbn
<ID:0/004> aboot.mbn
<ID:0/004> FAIL! (Auth)
<ID:0/004> 
<ID:0/004> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)


Right now I am on stock 4.2.2 JB (kitkat bootloader) wifi doesnt work.
 
Last edited:

essasmj

New member
Dec 4, 2012
4
2
Try to flash a non-knox bootloader version more times ( aboot, sbl1/2/3 deleted )
Flash my rom :) It will work

Can any one help with the WIFI trouble

I upgraded my I9192 to Kitkat 4.4.2 But I hated it alot
now I tried to go back so I followed this thread
now I used a ROM without aboot.mbn, sbl2.mbn, sbl3.mb without beneft
I used one of the ROMs in the thread I9192XXUBND2_I9195OXXBML1_I9192XXUBND2_SILVIU.tar also without benefit

then I tried to flash the modem with combination of old and new files NON-HLOS + tz.mbn without any benefit still wifi not working

any help
 

MayB4ck

Senior Member
Jan 11, 2014
173
27
Kavadarci
Can any one help with the WIFI trouble

I upgraded my I9192 to Kitkat 4.4.2 But I hated it alot
now I tried to go back so I followed this thread
now I used a ROM without aboot.mbn, sbl2.mbn, sbl3.mb without beneft
I used one of the ROMs in the thread I9192XXUBND2_I9195OXXBML1_I9192XXUBND2_SILVIU.tar also without benefit

then I tried to flash the modem with combination of old and new files NON-HLOS + tz.mbn without any benefit still wifi not working

any help

Same here man, No matter how hard i tried. I couldn't get my Wi Fi to work
 

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
U both flashed same modem 2 4 times and u checked if it`s changed in baseband section right ?
 

essasmj

New member
Dec 4, 2012
4
2
1939

Flash modem only with Odin 3.10 in "CP" option 2 times or 3 times SAME modem and let your phone reboot . Check if baseband changes

This is what I did in details

my mobile is I9192 samsung galaxy s4 mini duos

first I upgraded it with the RUS 4.4.2 kitkat I9192XXUCNG2_I9192SERCNG2_I9192XXUCNG2_HOME.tar
Then I started to have problems with language and some SD card programs which are essential to me so I want to go back to 4.2.2


First
I flashed the mobile with 4.2.2 "I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar" after removing aboot.mbn sbl1/2/3
the result was no wifi no sound SIM cards not recognized and baseband was unknown

I tried to flash the NON-HLOS + tz.mbn from the same version 4.2.2 three times with the same result "no wifi no sound and baseband was unknown "

Second
Next step was to flash with tz.mbn from the old version 4.2.2 and NON-HLOS from 4.4.2
from the first time sound +SIM resolved and baseband I9192XXUCNG2
But wifi not resolved after three trials

Third
I used NON-HLOS + tz.mbn from the new version 4.4.2
also without benefit

All trials done with Odin 3.09 /Auto reboot and F. Reset time only ticked
all without any benefit
Any suggestions
 
Last edited:

chemicalrage

Senior Member
Oct 17, 2011
1,220
763
This is what I did in details

my mobile is I9192 samsung galaxy s4 mini duos

first I upgraded it with the RUS 4.4.2 kitkat I9192XXUCNG2_I9192SERCNG2_I9192XXUCNG2_HOME.tar
Then I started to have problems with language and some SD card programs which are essential to me so I want to go back to 4.2.2


First
I flashed the mobile with 4.2.2 "I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar" after removing aboot.mbn sbl1/2/3
the result was no wifi no sound SIM cards not recognized and baseband was unknown

I tried to flash the NON-HLOS + tz.mbn from the same version 4.2.2 three times with the same result "no wifi no sound and baseband was unknown "

Second
Next step was to flash with tz.mbn from the old version 4.2.2 and NON-HLOS from 4.4.2
from the first time sound +SIM resolved and baseband I9192XXUCNG2
But wifi not resolved after three trials

Third
I used NON-HLOS + tz.mbn from the new version 4.4.2
also without benefit

All trials done with Odin 3.09 /Auto reboot and F. Reset time only ticked
all without any benefit
Any suggestions

Experiencing the same thing. No sound , no wifi in JB. Tried flashing even cyanogenmod 11. KNOX is one pain in the a$$. Stuck with kitkat. cant downgrade to JB. sound wifi not working
 

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
Guys i am sorry then :( No other ideas :(
Guess i should stay on JB and don`t try to flash KK yet ( with Knox included )
 
  • Like
Reactions: Darktitor

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
I think we need to patch the kernel to be able to got stock rom without Knox

I did not find something related to Knox name in kernel only TIMA which i disabled but still nogo
Knox 2.0 is in much more places then Knox 1.0 and is more agressive .
And i am not a good coder to understand code in kernel all is intuition. Maybe someone more skilled can do that :)
 
  • Like
Reactions: Darktitor

Darktitor

Senior Member
May 31, 2012
1,577
908
I did not find something related to Knox name in kernel only TIMA which i disabled but still nogo
Knox 2.0 is in much more places then Knox 1.0 and is more agressive .
And i am not a good coder to understand code in kernel all is intuition. Maybe someone more skilled can do that :)
Yeah
Because S4 got custom rom with KK TouchWiz based without Knox :p
Like Omega for example :)
I think the solution for you guys is to stick with Samsung kk
I'm using CyanogenMod and AOSPA sometimes and I'm very happy with them :D
 

SilviuMik

Senior Member
Nov 17, 2011
1,495
1,512
Yeah
Because S4 got custom rom with KK TouchWiz based without Knox :p
Like Omega for example :)

I'm using CyanogenMod and AOSPA sometimes and I'm very happy with them :D

*smile*
knox:
The new Omega is based on Samsung Android 4.4.2 Kit Kat firmware and it needs the new bootloader to work.
This mean the knox will be triggered and your warranty will be void, more info:
 
  • Like
Reactions: Darktitor

fburgos

Senior Member
Sep 1, 2012
1,511
384
Yeah
Because S4 got custom rom with KK TouchWiz based without Knox :p
Like Omega for example :)

I'm using CyanogenMod and AOSPA sometimes and I'm very happy with them :D


on s4 wanamlite V4 didnt need the knox bootloader to work, also I installed ozcanrom on the same knox free bootloader an worked fine, some video glitch and rare random reboots but it works fine.

I dont want to have that crazy knox bootloader on any device. this will be my last samsung, I'm happy with mine it's knox free :)
 
  • Like
Reactions: SilviuMik

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    Quick and dirty guide on how-to delete bootloader stuff that contain Knox from stock rom ( only works on Jelly Bean ) . On KitKat we have Knox 2.0 which is more harder to conquer :)
    Only use it if u do not have KNOX WARRANTY in download mode
    U need : a virtual machine or any linux environment . I use Vmware player + Linux Mint 16 x64
    First download the rom from Sammobile and place it on your Desktop in a folder called work in linux
    Let`s say we download Russia one for I9192
    I9192XXUBMK4_I9192SERBMJ3_SER.zip
    U can use this guide on other versions of this phone I9190/I9195
    Firmwares that contain MK4/MK5/ML1/ML2/ML4/NA1/NA2 and so on from here have Knox bootloader inside
    Only the name will be different but what is inside is the same
    Only latest versions of firmware contain Knox Bootloader ( usually the ones released in late november/december 2013 )
    Open terminal and type
    Code:
    cd Desktop
    cd work
    Now we need to extract it
    Code:
    unzip *.zip
    U will get 2 files
    First: I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar.md5
    Second: SS_DL.dll
    Now again in terminal type:
    Code:
    rm -rf SS_DL.dll
    tar -xvf *.tar.md5
    After it will finish to extract we can delete the files we do not need
    Code:
    rm -rf aboot.mbn - bootloader ( knox included )
    rm -rf sbl1.mbn - part of bootloader
    rm -rf sbl2.mbn - part of bootloader
    rm -rf sbl3.mbn - part of bootloader
    rm -rf *.tar.md5
    Now we can place it back in an archive. Choose any name u want i had chosen original name for reference only.
    Code:
    tar -H ustar -c rpm.mbn tz.mbn boot.img recovery.img system.img.ext4 NON-HLOS.bin cache.img.ext4 hidden.img.ext4 > I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar
    After comes md5 stuff
    Code:
    md5sum -t I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar >> I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar
    mv I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME.tar.md5
    Now transfer it to your windows pc and flash it with Odin :) Make sure u do not rename the file at this stage or md5 checksum will fail
    Double check it before u flash, look inside the archive that u don`t have those files u just deleted :) Maybe u did not move the correct file :)

    Video of "How to" credit to @Mitko
    4
    Hello mate, i took a look inside the rom and i don`t see anything related to Knox
    So no need to do anything to the rom before u flash it


    U need file_contexts because ext4_utils can not work without . It is needed for 4.2.2+ . Before on GB , ICS 4.1.2 it worked without.
    About kernel guide i think u can find a guide made by @proxuser . I am not so good at explaining stuff :)
    Short version :
    U need GT-I9192_JB_Opensource_Update1.zip and arm-unknown-linux-gnueabi-linaro_4.6.4-2013.05-build_2013_05_18.tar.bz2
    Extract it and place them somewhere on your disk i used /home
    Code:
    export ARCH=arm
    export CROSS_COMPILE=/home/silviu/toolchains/linaro_4.6.4/bin/arm-gnueabi-
    make clean && make mrproper
    make VARIANT_DEFCONFIG=msm8930_serrano_eur_3g_defconfig SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig msm8930_serrano_defconfig
    make menuconfig
    Modify anything u want there
    Code:
    make -j5
    ( if u have quadcore cpu or more )
    Take your zImage and place it with a modified ramdisk
    Code:
    ./mkbootimg --kernel zImage --ramdisk ramdisk.cpio.gz --base 0x80200000 --pagesize 2048 --ramdiskaddr 0x82200000 --cmdline 'console=null androidboot.hardware=qcom user_debug=31' -o boot.img
    U must modify in ramdisk
    Code:
    default.prop file
    Code:
    ro.secure=1 -----------------> ro.secure=0
    ro.adb.secure=1 -----------------> ro.adb.secure=0
    init.rc file
    Code:
    setsebool debugfs 1 --------> setsebool debugfs 0
    *ADD THIS LINE UNDERNEATH*
    setenforce 0
    
    setprop selinux.reload_policy 1 -------> setprop selinux.reload_policy 0

    U need to find those tools to pack/repack ramdisk :)
    Have fun
    4
    Is there an archive for current firmware versions that are already freed from the knox bootloader?

    I9192DDU1BML1_I9192ODD1BML1_I9192DDU1BML1_HOME_NoKnox.tar.md5.zip 956.9 MB
    https://mega.co.nz/#!xclRTaAR!Wk8Z_lR0crmWbyh7ajKDLXhbe5Zafe_EqvclSU6Fb8k

    I9192UBUBMK4_I9192UUBBMK2_I9192UBUBMK4_NoKnox_TTT.tar.7z 744.5 MB
    https://mega.co.nz/#!gdMCDDBI!Cf46XFNzCqaJCigSqZcOfy-q1P4KdmPa7UoO3OoP1C4

    I9192UBUBMK4_I9192ZTOBMK2_I9192UBUBMK4_HOME_NoKnox_ZTO.tar.7z 781.3 MB
    https://mega.co.nz/#!8I8gGYxJ!bLxwXlySmcqOp_DJdH5O6DIDFu0DQdroqwKIZBSLuBM

    I9192XXUBMK4_I9192SERBMJ3_I9192XXUBMK4_HOME_NoKnox_SER.tar.7z 765.0 MB
    https://mega.co.nz/#!sRMFGR7B!P8WzKQjZEbkKeGAIo1sdlzF82Qkr6LQveWwnYM6W-tA

    I9192UBUBNA2_I9192UUBBMK2_I9192UBUBNA2_HOME_NoKnox.tar.rar 818.0 MB
    https://mega.co.nz/#!MEcnkBqL!HxJiezzPpaZLjZ6zWp7DwmGVuwNMBh_hRrlGAnGxcFU

    This i have on my mega account
    4
    :fingers-crossed::fingers-crossed::rolleyes: sometimes at late hours i get new ideas . Tomorrow i will try it , now is too late :)
    3
    On the S4 (I9505), I also have NON-HLOS.bin, but I also have modem.bin file.

    Not seen on the S4 forums a subject on that!

    ---------- Post added at 03:17 PM ---------- Previous post was at 03:15 PM ----------



    Except this risk... This one, I'll have it certainly with the SAV!! :(

    ---------- Post added at 03:21 PM ---------- Previous post was at 03:17 PM ----------

    Otherwise, I followed your tuto and like I didn't see the modem.bin file, I removed it. At worse, I could flash it after.

    Yes of course , better to try then flash all the files and see after :)
    Btw, S4 Mini Knox firmware contains:
    sbl1.mbn - part of new bootloader , safe to delete
    sbl2.mbn - part of new bootloader , safe to delete
    sbl3.mbn - part of new bootloader , safe to delete
    aboot.mbn - New Knox bootloader , DELETE
    rpm.mbn - Resource power Management link
    tz.mbn - Trusted zone ( Wifi won`t work if u don`t flash it together with new Modem )
    boot.img - Kernel
    recovery.img - Recovery/Download mode
    system.img.ext4 - your apps/framework/android
    NON-HLOS.bin - modem
    cache.img.ext4 - CSC / APN settins / What bloat is to be installed depending on zone / carrier
    hidden.img.ext4 - Another "system" part of apps that are too big for /system ( for now almost empty ) on S2 was full of apps

    Try and see :)