Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,971 Members 44,100 Now Online
XDA Developers Android and Mobile Development Forum

[SCRIPT/TOOL] kn0x0ut Toolbox - Install custom roms, mods + more and KEEP WARRANTY!!!

Tip us?
 
zroice
Old
(Last edited by zroice; 24th December 2013 at 01:22 AM.)
#1  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Angry [SCRIPT/TOOL] kn0x0ut Toolbox - Install custom roms, mods + more and KEEP WARRANTY!!!

Ladies and Gentlemen I present to you the

kn0x0ut Toolbox v2.30!
(complete, with knox 0x0 reference! hehe)

This script/toolbox allows you to install custom roms, and mods that you would normally have to flash with custom recovery.
(aroma installer and other magic like that gets ignored, but the aroma mods can usually be installed manually on a second run)

On top of that it allows you to create and restore backups of your system and data partition. (for "online" restore without needing custom recovery)
.

As we (hopefully) all know, if you want to keep knox warranty void at 0x0 you cannot use a custom recovery or kernel....



But let me start with a few words of warning:

Dont do anything obviously stupid...there are no safe-wheels for most commands.
(for example: dont "clean-base" or use "rom-install" without actually installing a new rom or you will most likely end up without system apps and device not booting correctly - like you wouldnt wipe system in a custom recovery without installing a rom...).

It can be used over adb or terminal, but if you install a rom the system ui gets stopped, so better do it over adb!

kn0x0ut toolbox is 100% safe for your device - no hardbrick or efs clear possible by using it!

The worst thing that can happen when using the kn0x0ut toolbox is that you have to factory reset or flash again with odin, so keep the odin file close. (at best this is a custom made RDLV odin.tar.md5 you used to upgrade your rom version with - or for people who have to use other methods because of the new bootloader - keep the last odin file close you used to upgrade also.. and the root method that worked for you)


This whole thing "programmed" on/for a N9005 but in theory it should work for all samsung devices - including the other knox enabled devices and even on many other devices. (but it might need some adjustments, so be careful and have a way to restore your stock rom before you try anything fancy with other devices)

If your knox warranty is already void aka 0x1 then you can still use the toolbox and its mods (some could actually be useful to anyone..) but it won't bring back the warranty.

I didn't really create this thing for me actually - I already did the all steps the toolbox can do by hand with adb terminal on my device (and perfected my method with lots of trial and error..), but I wanted you guys to also be able to enjoy custom roms while keeping your knox warranty intact and show samsung a big FU for putting us through this BS in the first place...

If you like the toolbox and appreciate the work I put into this please consider buying me a beer or hitting the thanks button at least.

---


This kn0x0ut toolbox itself requires root access (if you want to be able to install mods and files you need to be able to mount system writable)!

You will have to use "Root de la vega" or some other method to get rooted while keeping your warranty intact.

IF YOU GET "PERMISSIONS DENIED" ERRORS, PLEASE TRY THE FOLLOWING COMMANDS TO REMOUNT YOUR SYSTEM WRITABLE:
(please try them all, and report back in the thread which one works, and which fail or get permission denied)


Code:
Select Code
mount -o rw,remount /system

mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system

mount -o rw,remount /dev/block/mmcblk0p23 /system




---

How to use:

Extract the download from below to the root of your internal or external sd card.
The script will try to detect the folder first on the external and then on the internal sd.
(/mnt/extSdCard/kn0x0ut or /sdcard/kn0x0ut)

Then browse into that directory with terminal or adb shell and type:

Code:
Select Code
sh kn0x0ut.sh
and you will get all the commands supported currently.

---

You can then use the command
Code:
Select Code
sh kn0x0ut.sh kn0x0ut
to install the script to your system's xbin folder and create a symlink to "/system/xbin/knoxout" as well.
(if you want to upgrade kn0x0ut from an older version, make sure you delete all the duplicate old files from the kn0x0ut folder - basically everything but the "processed" and the backup folders if you have them, and replace them with the files from the latest versions download. Then re-run the "sh kn0x0ut.sh kn0x0ut" command to update the kn0x0ut script in your system/xbin folder as well)

From then on you can just type
Code:
Select Code
kn0x0ut <command>
or even easier:
Code:
Select Code
knoxout <commands>
The script will automatically detect the kn0x0ut folder on the external or internal sd. (external has higher priority if both present)

To install a zip file meant to be flashed in CWM, you put in into the "put_files_folder". You can put zip, tar, tar.gz or already extracted files and folders into there.

---

To actually work, the files/folders must be in a certain stucture. The script expects already extracted files which get placed into the put_files_here folder to be in the structure like they would appear on the device.
Think of the "put_files_here" folder as the root folder - files get placed on the system in the same structure as if the put_files_folder was the rootfs "/". So if you got a subfolder system/app inside the put_files_here folder, the files inside it will get pushed to /system/app... Hope this makes any sense, else someone else pls try to explain it better.

(NOTE: The script will only install files, it wont do additional magic if there is any contained inside the zip like aroma installer - its mainly meant to speed up the process of installing mods and/roms that require system files to be replaced. (and some things might need to be done by hand, if you want enhanced functionalities from aroma installer)

If you have a zip that does not fully install, check out if there are any scripts inside etc. - and also check the "not_installed" folder which gets created after each installation.


If you want to install a rom, make sure you are on the same base version as the rom you are trying to install. So if you want to flash rom "xyz" based on MK2 then you gotta have stock, but rooted MK2 installed (with odin and RDLV for example). If you want to mix versions, you can try - but I can't tell if that actually works or causes problems - I just would skip the BS and make sure you got the right base rom installed with odin before tying to install a custom rom with kn0x0ut...


---

See 2nd post for current command list.

See 3rd post for current list of available mods.

See 4th post for more detailed command explanation.

See 5th post for download.
The Following 63 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 18th December 2013 at 10:06 PM.)
#2  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Code:
Select Code
>>> commands <<<

Help:
-----
  help          - Display help
  listmods      - Display a list of all available mods

Backup:
-------
  backup-base   - Backup system app and framework files
  backup-efs    - Backup efs partition
  backup-system - Backup system partition
  backup-data   - Backup data partition
  backup-full   - Backup system and data partition

Installation / Restore:
-----------------------
  install      - Install contents of "put_files_here"
                 (place backup tar's there for restore)
                 For System Restore use "rom-install"!
                 For Data Restore run "clean-data" then "install"!
  rom-install  - As above but clean system apps, framework
                 and dalvik-cache before

Mod Installation:
-----------------
  mod=[mods] - Install specified mods (for multiple seperate with ',')

Special:
--------
  supersu      - Install supersu v1.80 to xbin (incl. init.d support for all kernels)
  busybox      - Install busybox v1.21.1 to xbin (incl. symlink-redirect)
  kn0x0ut      - Install kn0x0ut v2.30 to xbin
  fix_perm     - Install fix_permissions v2.10 to xbin
  backup_perm  - Install backup_permissions v2.00 to xbin

Cleaning:
-----------------------
  clean-dalvik - Clean dalvik-cache
  clean-base   - Clean system apps and framework (MAKE SURE YOU INSTALL NEW BEFORE REBOOT!)
  clean-data   - Clean data partition to restore from backup (leaves sdcard content alone)

Bloatware Removal:
------------------
  removebloat-cooolboy  - Remove most bloatware (based on CoOoL_BoY's bloatware remove script)
  removebloat-zroice    - Remove bloatware hardcore mode (beware - most google stuff gone except playstore)

>>> commands END <<<
The Following 23 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 18th December 2013 at 10:03 PM.)
#3  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Code:
Select Code
>>> available mods <<<

Mod: acid
Description: ACID Audio Engine v5 (optimised for samsung)

Mod: acid_awesomebeats
Description: ACID Audio Engine AddOn - Awesome Beats

Mod: acid_noozxoide
Description: ACID Audio Engine AddOn - Noozxoide

Mod: aosp_browser
Description: AOSP Browser (with Google, Startpage & Startpage Mobile)

Mod: aosp_clock
Description: AOSP Clock (deinstall ClockPackage.apk if you want to use this)

Mod: bash
Description: BASH Shell

Mod: busybox
Description: busybox v1.21.1 (busybox.net) + special default symlink fixes

Mod: chronus
Description: Chronus Clock Widget

Mod: forcelte
Description: Init.d script to force lte on

Mod: onandroid
Description: onandroid script v9.20 + necessary binaries (mkyaffs2image, dedupe)

Mod: onandroid_n9005
Description: onandroid partition layout for N9005

Mod: openvpn
Description: openvpn binary v2.1.1 (statically linked, no libs necessary)

Mod: sqlite3
Description: sqlite3 binary + libs and init.d script to optimise db's at boot

Mod: zipalign
Description: zipalign binary + init.d script to run at boot (fixed to make it work!)

>>> available mods END <<<
The Following 17 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 20th December 2013 at 08:13 PM.)
#4  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Add ons and commands explained in detail:

1.) Fix permissions script is running after all the commands to ensure permissions are correct. You can also install the fix_permissions script as standalone command. (see command list)

2.) To install a rom or other cwm zip file put it into the "put_files_here" folder and run "install" or "rom-install" depending on what you want to do. You can also use this to restore system and data partition backups made by kn0x0ut or onandroid (those have to be in tar or tar.gz format).

3.) The busybox which gets installed is directly from busybox.net and has more commands than the "normal" busybox floating around from stericson.
Additionally if you use the "busybox" command some symlinks will get redirected from toolbox to busybox and give enhanced functions.
(for exampe: mv, cp, rmdir, rm, ...)

4.) "sqlite3" and "zipalign" will also install an init.d script so that they are running on system boot to optimize the dbs and/or zipalign the apks.

--- more to come ---
The Following 9 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 24th December 2013 at 01:28 AM.)
#5  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Current Version: v2.30

### Downloads ###

Please do link to this thread if you want to use the kn0x0ut toolbox for other projects.
(do not distribute kn0x0ut download links but instead link to this thread, not only for credits, but so people can report bugs etc in one place)

READ THE INSTRUCTIONS AND TRY TO REMOUNT YOUR SYSTEM WRITABLE BEFORE YOU TRY TO INSTALL A ROM! AND ONLY DO THAT OVER ADB SHELL!!!

>>> YOU HAVE TO RUN KN0X0UT AND ALL ITS COMMANDS AS ROOT USER IN TERMINAL OR OVER ADB SHELL. TO MAKE THE SHELL ROOT YOU HAVE TO TYPE "SU" AND THEN ENTER BEFORE USING ANY OF THE OTHER COMMANDS! <<<

kn0x0ut_2.31.zip - 14.84 MB

Do not run rom-install if any of the other commands fails, and please try them first. (at least busybox and supersu installation)
The Following 15 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 18th December 2013 at 10:06 PM.)
#6  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
reserved
The Following 4 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
zroice
Old
(Last edited by zroice; 20th December 2013 at 08:08 PM.)
#7  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
reserved
The Following 3 Users Say Thank You to zroice For This Useful Post: [ Click to Expand ]
 
harosxcomp170
Old
(Last edited by harosxcomp170; 1st December 2013 at 01:44 AM.)
#8  
Senior Member
Thanks Meter 107
Posts: 245
Join Date: Jan 2012
So if I already have Knox at 0x1 am I screwed?

Sent from my SM-N900TA running HyperDrive 3 using Tapatalk 2
 
zroice
Old
#9  
Senior Member - OP
Thanks Meter 363
Posts: 518
Join Date: Nov 2010

 
DONATE TO ME
Quote:
Originally Posted by harosxcomp170 View Post
So if I already have Knox at 0x1 am I screwed?

Sent from my SM-N900TA running HyperDrive 3 using Tapatalk 2
well then this thing has no use to you, other than the addons and installing stuff on a running system instead of using custom recovery.

But it wont fix the knox warranty no. It just KEEPS it from getting tripped by allowing installs without custom recovery.
 
harosxcomp170
Old
#10  
Senior Member
Thanks Meter 107
Posts: 245
Join Date: Jan 2012
Now say if I odined back to completely stock with no root. Will that bring my Knox back to 0x0? Or has the damage already been done?

Sent from my SM-N900TA running HyperDrive 3 using Tapatalk 2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes