Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,888 Members 52,427 Now Online
XDA Developers Android and Mobile Development Forum

[q-devs] how to make a flashable cwm zip for flashing mods

Tip us?
 
rrgrrg
Old
#1  
rrgrrg's Avatar
Senior Member - OP
Thanks Meter 3452
Posts: 2,110
Join Date: Aug 2012
Location: Alexandria
Wink [q-devs] how to make a flashable cwm zip for flashing mods

hey guys ... currently i have a stock ml4 with philz recovery .. thing is my country has only mi1 build so can anyone help me make the script for flashing the non-hlos bin to my system ?? .. i tried to see s4 forums but the script directs to a block in dev folder that doesnt exist in our s4 mini roms
My Projects:
Current Device:
Quote:
Model:GT-i9192 - Galaxy S4 Mini
Rom: WizzedKAT 2.0RC CHECK THIS QUICK REVIEW NEW !!
Kernel:Amestris Kernel V2.7
Modem:i9192XXUBMK4
 
SilviuMik
Old
(Last edited by SilviuMik; 25th February 2014 at 01:14 PM.)
#2  
SilviuMik's Avatar
Senior Member
Thanks Meter 479
Posts: 614
Join Date: Nov 2011
Quote:
Originally Posted by rrgrrg View Post
hey guys ... currently i have a stock ml4 with philz recovery .. thing is my country has only mi1 build so can anyone help me make the script for flashing the non-hlos bin to my system ?? .. i tried to see s4 forums but the script directs to a block in dev folder that doesnt exist in our s4 mini roms
Did u try :
Code:
Select Code
ui_print("Bla");
show_progress(1.000000, 0);
assert(getprop("ro.product.device") == "serranods" || getprop("ro.build.product") == "serranods" ||
    getprop("ro.product.device") == "serranodsdd" || getprop("ro.build.product") == "serranodsdd" ||
    getprop("ro.product.device") == "i9192" || getprop("ro.build.product") == "i9192" ||
    getprop("ro.product.device") == "GT-I9192" || getprop("ro.build.product") == "GT-I9192");
set_progress(0.100000);
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
set_progress(1.000000);
ui_print("Done ! Reboot your phone !");
show_progress(1.000000, 0);
I am not 100% sure is correct but u can try

Recommandation : Flash with Odin, much better and more safe
Phone: GT-I9192 Samsung Galaxy S4 Mini Duos
ROM: Stock 4.2.2 PDA: I9192XXUBND2 / CSC: I9195ROMBNA1 / MODEM: I9192XXUBND2
Kernel: Custom
Recovery: Stock / Twrp
 
rrgrrg
Old
#3  
rrgrrg's Avatar
Senior Member - OP
Thanks Meter 3452
Posts: 2,110
Join Date: Aug 2012
Location: Alexandria
The thing is i cant find a tar for the modem only .. i only have the whole firmware tar

Sent from my GT-I9192 using XDA Premium 4 mobile app
My Projects:
Current Device:
Quote:
Model:GT-i9192 - Galaxy S4 Mini
Rom: WizzedKAT 2.0RC CHECK THIS QUICK REVIEW NEW !!
Kernel:Amestris Kernel V2.7
Modem:i9192XXUBMK4
 
SilviuMik
Old
#4  
SilviuMik's Avatar
Senior Member
Thanks Meter 479
Posts: 614
Join Date: Nov 2011
Quote:
Originally Posted by rrgrrg View Post
The thing is i cant find a tar for the modem only .. i only have the whole firmware tar

Sent from my GT-I9192 using XDA Premium 4 mobile app
Extract it in Linux a virtual machine Linux is enough
Code:
Select Code
unzip *.zip
rm -rf SS_DL.dll
tar -xvf *.tar.md5
tar -H ustar -c NON-HLOS.bin > modem.tar
Sometimes u need tz.mbn flashed too togheter with NON-HLOS , usually with newer modems from Knox bootloader roms
So the command is :
Code:
Select Code
tar -H ustar -c tz.mbn NON-HLOS.bin > modem.tar
md5sum -t modem.tar >> modem.tar
mv modem.tar modem.tar.md5
Flash it with Odin
U can do this with Windows too with some program called TAR_MD5_PACKAGER or similar
See it is not hard at all
Harder is to compile an CWM zip, sign it and etc

Btw why don`t u use my rom and be happy with it
Phone: GT-I9192 Samsung Galaxy S4 Mini Duos
ROM: Stock 4.2.2 PDA: I9192XXUBND2 / CSC: I9195ROMBNA1 / MODEM: I9192XXUBND2
Kernel: Custom
Recovery: Stock / Twrp
The Following User Says Thank You to SilviuMik For This Useful Post: [ Click to Expand ]
 
rrgrrg
Old
#5  
rrgrrg's Avatar
Senior Member - OP
Thanks Meter 3452
Posts: 2,110
Join Date: Aug 2012
Location: Alexandria
-did with the windows thing but when using tz.mbn from mi1 i got system error x0fffffc knox so i used tz.mbn from ML4-no knox tar and it booted but baseband is unknown ..tried flashing non-hlos only tar still unknown

-im not using ur rom because im building mine on the way if kitkat takes too long
My Projects:
Current Device:
Quote:
Model:GT-i9192 - Galaxy S4 Mini
Rom: WizzedKAT 2.0RC CHECK THIS QUICK REVIEW NEW !!
Kernel:Amestris Kernel V2.7
Modem:i9192XXUBMK4
 
SilviuMik
Old
#6  
SilviuMik's Avatar
Senior Member
Thanks Meter 479
Posts: 614
Join Date: Nov 2011
Quote:
Originally Posted by rrgrrg View Post
-did with the windows thing but when using tz.mbn from mi1 i got system error x0fffffc knox so i used tz.mbn from ML4-no knox tar and it booted but baseband is unknown ..tried flashing non-hlos only tar still unknown

-im not using ur rom because im building mine on the way if kitkat takes too long
Knox is a badass )
Don`t know what to say then ...
Since i don`t have Knox bootloader, all i recommend for me works ...
Then just flash a full stock firmware with Odin ( one that contains Knox bootloader so MK4+ ) and do not remove ANYTHING from tar, not even aboot sbl etc stuff
And then start from there with Kernel/Recovery and building your rom
Phone: GT-I9192 Samsung Galaxy S4 Mini Duos
ROM: Stock 4.2.2 PDA: I9192XXUBND2 / CSC: I9195ROMBNA1 / MODEM: I9192XXUBND2
Kernel: Custom
Recovery: Stock / Twrp
 
rrgrrg
Old
#7  
rrgrrg's Avatar
Senior Member - OP
Thanks Meter 3452
Posts: 2,110
Join Date: Aug 2012
Location: Alexandria
Well if i flash ubna1 modem can i downgrade it or its just like the roms cant downgrade :/ ?

Sent from my GT-I9192 using XDA Premium 4 mobile app
My Projects:
Current Device:
Quote:
Model:GT-i9192 - Galaxy S4 Mini
Rom: WizzedKAT 2.0RC CHECK THIS QUICK REVIEW NEW !!
Kernel:Amestris Kernel V2.7
Modem:i9192XXUBMK4
 
SilviuMik
Old
#8  
SilviuMik's Avatar
Senior Member
Thanks Meter 479
Posts: 614
Join Date: Nov 2011
Quote:
Originally Posted by rrgrrg View Post
Well if i flash ubna1 modem can i downgrade it or its just like the roms cant downgrade :/ ?

Sent from my GT-I9192 using XDA Premium 4 mobile app
I recommend versions from Europe/Egypt XXU***
Don`t go for ones released for latin america
Phone: GT-I9192 Samsung Galaxy S4 Mini Duos
ROM: Stock 4.2.2 PDA: I9192XXUBND2 / CSC: I9195ROMBNA1 / MODEM: I9192XXUBND2
Kernel: Custom
Recovery: Stock / Twrp
 
rrgrrg
Old
#9  
rrgrrg's Avatar
Senior Member - OP
Thanks Meter 3452
Posts: 2,110
Join Date: Aug 2012
Location: Alexandria
Quote:
Originally Posted by SilviuMik View Post
I recommend versions from Europe/Egypt XXU***
Don`t go for ones released for latin america
well u didn't answer the question .. yea sure but i wont download a 1 giga tar file to get a 30 mb image file thats just crazy with a 50kbps connection
My Projects:
Current Device:
Quote:
Model:GT-i9192 - Galaxy S4 Mini
Rom: WizzedKAT 2.0RC CHECK THIS QUICK REVIEW NEW !!
Kernel:Amestris Kernel V2.7
Modem:i9192XXUBMK4
 
SilviuMik
Old
#10  
SilviuMik's Avatar
Senior Member
Thanks Meter 479
Posts: 614
Join Date: Nov 2011
Quote:
Originally Posted by rrgrrg View Post
well u didn't answer the question .. yea sure but i wont download a 1 giga tar file to get a 30 mb image file thats just crazy with a 50kbps connection
I did not answer because i don`t know
As i said earlier Knox is badass Since i cannot test, only u can try and see if it will let u flash an older one ( downgrade ) i think it will not let u
Yeah about your connection ... sux
Phone: GT-I9192 Samsung Galaxy S4 Mini Duos
ROM: Stock 4.2.2 PDA: I9192XXUBND2 / CSC: I9195ROMBNA1 / MODEM: I9192XXUBND2
Kernel: Custom
Recovery: Stock / Twrp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes