yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] zroice:
it seems the files are not in the right folder structure in that zip you tried to flash.

Did anything appear in the processes/<DATE>/not_installed subfolder in the kn0x0ut folder?

If those files appear there it means they are not in the right folder structure.

---

You prolly misstyped the cooolboy thing (its with three "o").

And you cant run zip fixes like cooolboy bloat remove script as zip because it only runs a script but does not install files. kn0x0ut only installs files. No additional magic like aroma or custom scripting like zips allow. Thats why I included the bloatware removal as script.

The problem is that the script files for cwm (which are inside the zip files as well, in the meta-inf folder) are not written in sh script, but some other script language edify.

There is an edify to sh "converter" out there: Flash Gordon - that allows installing such zips I think, but it wont be able to install roms on the other hand. (this is why I created the kn0x0ut toolbox in the first place - otherwise flash gordon wouldve done the job I guess.. )

But be careful with flash gordon as well. Some scripts in the zips might do stuff that cannot be done on a running system.. (other than a "normal" rom install with clearing the system first)
[Galaxy Note 3 Android Development] girron:
Ah ok lol yeah I didn't put three o's. In the not installed folder there is a services.jar and services.odex
[Galaxy Note 3 Android Development] zroice:
yea, put those files into the following folder: .../put_files_here/system/framework/" (so that they get placed to your /system/framework) and run "install" command. (might cause a reboot, but shouldnt be a problem, if not just reboot yourself, and maybe also clear dalvik cache with knoxout).

Check the not_installed folder again if they appear there again you didnt do it right. (you gotta create those folders yourself in the put files here folder...)

-----------

new version out!

Please try to run one of the remove bloatware scripts before rom installation. (actually there should be enough space because the system apps and framework get cleared, but just incase - since one person had no space left it seems)
[Galaxy Note 3 Android Development] girron:
I got the hotspot mod to install and work correctly by moving the files into the system/framework folders you had me create. I just tried to do a boot ani again and the not install folder contains part0 and part1 folders with the png files in them and a desc.txt file. Would I move these to the framework folder as well? Will the bloat remover remove the apps that are frozen or do they all have to be unfrozen before running?
[Galaxy Note 3 Android Development] zroice:
no, try to find out where files need to be placed and put them in the according folder inside "put_files_here" - it depends on what you want to install.

bootanimation.zip needs to be in /system/media afaik.

Cant give you all the commands sorry, you gotta learn the android file structure
[Galaxy Note 3 Android Development] and2:
Big Thanks for this great tool. I think this will be one of the most important tools for Kn0xsung. I managed to install X-Note. I was to lazy to setup again so i fixed some problems. Now is all fine - GREAT.

I tried your new version. On pic one is the error message with the version 2.20 and pic 2 with 2.21 but only busybox. I had to much trouble with failed supersu installation.

Should i have a folder /data/media/kn0x0ut_temp/? I can´t find it.

Again, thank you verry much!
[Galaxy Note 3 Android Development] zroice:
actually the temp folder should be created automatically.

No matter what you do (unless you provide no command at all), the system should get mounted writable, and a temporary busybox is installed into /data/media/kn0x0ut_temp - I figured that directory would not get deleted no matter what. (but at script end that gets removed again)

Seems that folder can't be created on your device?

Try

busybox mkdir -p /data/media/kn0x0ut_temp

and see if you can (as root obviously)

Also there are still errors with the bin and xbin folders on rom install...?
[Galaxy Note 3 Android Development] zroice:
OHH - please upgrade to 2.22 and then try again.
[Galaxy Note 3 Android Development] manageri21:
With latest version 2.22, deleted bin and xbin during install and without wipe data. When i have time I will try without delete bin and xbin.
[Galaxy Note 3 Android Development] zroice:
Just did a backup and restored the system without any problems or errors:

...
Moving /storage/extSdCard/kn0x0ut/put_files_here/system_backup.tar into "processed_archives" folder...
Extracting /storage/extSdCard/kn0x0ut/put_files_here/*.tar.gz to temp folder...
Moving /storage/extSdCard/kn0x0ut/put_files_here/*.tar.gz into "processed_archives" folder...
Moving unsupported files to /storage/extSdCard/kn0x0ut/not_installed...
Removing dangerous files before installation...
Stopping the SystemUI (WARNING: You need to install a rom before rebooting!!!)...
Removing all /system/app and /system/framework files...
Installing all supported files...
Installing busybox v1.21.1 (busybox.net) + symlink redirects...
Enforcing busybox symlinks...
Fixing permissions...
Installing supersu v1.80 + init.d script support...
Removing old su control apps...
Installing su files and setting permissions...
Making sure su daemon is started and init.d scripts are running at boot...
Moving installed files to /storage/extSdCard/kn0x0ut/processed/2013.12.18@20-19-42/installed_files
(only those were already extracted into the "put_files_here" folder)
Removing all install temp folder /data/media/kn0x0ut_temp/install...
Removing all temp folder /data/media/kn0x0ut_temp...

root@hlte:/storage/extSdCard/kn0x0ut # reboot
reboot

--

So restoring system_backup.tar created by kn0x0ut works fine.

Now gonna try rom-install from a zip. (tars contain file permissions, while zip dont... so zip is a bit different)
[Galaxy Note 3 Android Development] zroice:
Rom Install tested and it works - 0 errors.

...
Moving /storage/extSdCard/kn0x0ut/put_files_here/X-Note_Aroma_Build_5.1_MJ7_Public.zip into "processed_archives" folder...
Extracting /storage/extSdCard/kn0x0ut/put_files_here/*.tar to temp folder...
Moving /storage/extSdCard/kn0x0ut/put_files_here/*.tar into "processed_archives" folder...
Extracting /storage/extSdCard/kn0x0ut/put_files_here/*.tar.gz to temp folder...
Moving /storage/extSdCard/kn0x0ut/put_files_here/*.tar.gz into "processed_archives" folder...
Moving unsupported files to /storage/extSdCard/kn0x0ut/not_installed...
Removing dangerous files before installation...
Stopping the SystemUI (WARNING: You need to install a rom before rebooting!!!)...
Removing all /system/app and /system/framework files...
Installing all supported files...
Installing busybox v1.21.1 (busybox.net) + symlink redirects...
Enforcing busybox symlinks...
Fixing permissions...
Installing supersu v1.80 + init.d script support...
Removing old su control apps...
Installing su files and setting permissions...
Making sure su daemon is started and init.d scripts are running at boot...
Moving installed files to /storage/extSdCard/kn0x0ut/processed/2013.12.18@20-26-40/installed_files
(only those were already extracted into the "put_files_here" folder)
Removing all install temp folder /data/media/kn0x0ut_temp/install...
Removing all temp folder /data/media/kn0x0ut_temp...

EVERYTHING IS WORKING (FOR ME AT LEAST- MJ7 with RDLV method root)....

(restoring my system backup again as final test..)
[Galaxy Note 3 Android Development] and2:
I tried the 2.22. I started with sh kn0x0ut.sh busybox kn0x0ut. Kn0x0ut installed but not busybox. Then i used kn0x0ut busybox, again "unable to chmod/chown..." and /data/media/kn0x0ut_temp/busybox: not found AND /data/media/kn0x0ut_temp/busybox: not found. Busybox, su and sysinit was gone from the tools folder. I don´t know why, maybe a copy failure. So i created the temp folder by hand copied the files back.

Result:

root@hlte:/ # kn0x0ut busybox
kn0x0ut busybox

#####################################
# #
# kn0x0ut Toolbox v2.22 by z.ro-ice #
# #
#####################################

Mounting /system writable...

Installing busybox v1.21.1 (busybox.net) + symlink redirects...
Enforcing busybox symlinks...
Removing all temp folder /data/media/kn0x0ut_temp...

root@hlte:/ # kn0x0ut supersu
kn0x0ut supersu

#####################################
# #
# kn0x0ut Toolbox v2.22 by z.ro-ice #
# #
#####################################

Mounting /system writable...

Installing supersu v1.80 + init.d script support...
Removing old su control apps...
Installing su files and setting permissions...
Making sure su daemon is started and init.d scripts are running at boot...
Removing all temp folder /data/media/kn0x0ut_temp...

One thing, it seems like the superuser.apk did not install. I did it via playstore. could this be a problem, is there a missing chcon line? (just a guess)

Did i say thank you?

Edit: I forgot to tell i did not deleted any system/xbin or so before rom installation. I wanted to take it as it comes and tooked the step from MJ7 to MK2.

Next step: Backup
[Galaxy Note 3 Android Development] zroice:
Hey, yea must have had a file copy problem maybe to your sd? Best thing is to just copy the zip, and extract it then with a file explorer into your sd root folder. This should make sure you got the right files.

Superuser should be there too, maybe that file missing too in your kn0x0ut folder? should be in kn0x0ut/tools/supersu
[Galaxy Note 3 Android Development] zroice:
So my test cycle went through as expected:

Made a backup with "backup-full".

Copied the system_backup.tar into the put_files_here folder and ran "rom-install" to restore the backup.

Then copied X-Note 5.1 (didnt download the new version yet and im still on mj7) to the put_files_here folder and installed that with "rom-install".

Then ran my remove bloatware script "remove-bloat-zroice".

Then finally restored my backup again ("rom-install") and now I'm back where I started. No errors along the way. (but some "bloatware is back that doesnt get deleted in my script - like the bootanimation hehe)

(obviously rebooted inbetween to make sure it boots up correctly)

-------------

Now its time for updating the script output (some output is outdated) and to add more features or mods - suggestions welcome. (but only stuff that cant be just installed with the install method, that require "additional magic")

Data restore can be made with titanium backup, so thats not so high priority to be honest.
[Galaxy Note 3 Android Development] zroice:
Just uploading version 2.30 - I figured out how to restore data!

(read the help text)

To restore a system backup (currently only kn0x0ut backup tested, but in theory nandroid backups as tar or tar.gz should work as well) place the backup file inside the put files here folder and run "rom-install".

To restore a data backup put it into "put_files_here" then run "clean-data" and then "install".

To restore both, place both (system and data backup) inside the folder and run "clean-data" and then "rom-install".

!!!!!!!!!!!!!!!!

Booooyakasha!

--- I think its time for a new thread with all updated informations and so.

... by the way - Donation count: zero .... (I don't do it for that but still a bit disappointing lol, you damn cheapskates!) :p
[Galaxy Note 3 Android Development] evilvoice:
Then stop mentioning it Michelangelo! LOL j/k.
[Galaxy Note 3 Android Development] zroice:
Well look at how active I have been on this thing to make sure everything is working etc. While I already released a huge thread to explain the method kn0x0ut uses so people could do it on their own with terminal or adb (which took many hours to figure out itself). The script/tool wasnt really needed...

But many did not understand it and begged me to release a script/tool to do the stuff automatically for them. And besides lots of thanks (and many people not reading the instructions and asking rather stupid questions at times) I have just spent alot of my rare freetime on this lol.

I also heard that this is the only method currently available to have custom rom for people with a locked bootloader since they cant even flash a kernel or recovery if they wanted.

And then people have also used this thing for their own project/thread - like on how to install a rom on locked bootloader device - without even mentioning my thread but instead distributing their own download...

and on top of that not one person donated a single dollar lol... (even of those who literally begged me to create this thing, while having a 600$+ device...)

--

This just does disappoint a bit, dont you think? :laugh:

But I'm not trying to push anyone or smth, I learned alot creating this "toolbox" and now can handle the terminal and adb even better hehe. So this is a win for me too, plus I guess this still helps alot of people and I got alot of thanks etc, so its cool I guess. Plus I'm sure people will appreciate it more now that all the bugs are fixed and with the new online backup/restore feature etc... :cool:

----

ADD: Did a full restore now as well.. copied both data and system_backup.tar to put_files here and ran "clean-data" then "rom-install" - booted fine without even recreating the dalvik cache (which gets restored as well)!

I recommend to run remove bloatware script before restore. Also try to use it from fresh odin stock rom if possible - at least if you had installed a different rom since the time you created the backup... (it does not delete everything on system and data, just the apps and their data - the rest is overwritten basically (like the database files for system settings etc), so you want a clean base to restore to)
[Galaxy Note 3 Android Development] evilvoice:
It was more of a response to you saying boooyakasha from TMNT. I agree that it sucks that everyone asked for the script but can't be bothered to donate. On the other hand, I think it's crap to hold something back unless you get donations like some rom developers, which you don't do and is awesome. I understand that it takes time to create things to help others (you can search my name and see some of the stuff I have done...even outside of xda - though it's not always me) and it would be nice to get compensated for your time. I also agree that you should get something for offering support for those that can't be bothered to read. Anyways, too much going on around me to keep this coherent so...
[Galaxy Note 3 Android Development] Mwyann:
Could you tell us how you updated to X-NOTE with kn0x0ut? I'm wondering about all the options in the aroma installer, and possible kernel issues. DId you run into any difficulties in the process, is everything running fine?
[Galaxy Note 3 Android Development] alwayslookingforanswers:
successful update!

You are the man. Everything went smooth as expected. I'm still wanting to learn more about adb shell before I move onto rom install. I read your post above and I do agree with you on every issue that's bothering you. If things weren't so tight I'd send you some cash bra. Cut back on hours at the job and Christmas etc. I'm Pretty broke right now. Along with you my Android skills have shot way up. I've learned so much using this tool. I've tried many and none have caught my interest. For the ones posting your work copying it etc. Contact the mods they will take care of it on here. These mods don't play with people who do that. Thanks again for your work and your knowledge. You have helped me learn so much!
[Galaxy Note 3 Android Development] zsolti256:
Yeah allready fixed it restored everything back, lucky I did make a backup(so that works too :) ), Youre insane(paranoid) man ! :) They say you can never be too carefull, but they didnt have you in mind :p

I still need Some google stuff !

Thanks!
[Galaxy Note 3 Android Development] and2:
Sorry, this is not true; 14.12.2013 Transaktionscode 09598404B1578404G. Not that much but i have 2 kids.
[Galaxy Note 3 Android Development] zroice:
ohh really? thanks alot! (weird I thought you get notified? sorry for complaining then I guess I shouldve looked inside the account as well and not hope for notification emails...never used paypal for that and usually you get a message if someone sends you anything or?)
[Galaxy Note 3 Android Development] zroice:
please use the update method to upgrade your script to 2.30 before you use it to install a rom or smth. 2.20 still had some bugs i think
[Galaxy Note 3 Android Development] manageri21:
Hi, I wanna ask, how many command we can put simultaneous? Why? I try this command line "knoxout clean-base rom-install reboot" the first two going successful, installed X-Note 6 without any problems with zip, but the command reboot getting unknown parameter, must write again and the smartphone reboot like always. Why again and question to you? if this three command working well we can Install rom update directly from the smartphone with terminal, I think maybe work, and you what do you think?
[Galaxy Note 3 Android Development] zroice:
there is no reboot command for kn0x0ut itself (but I could implement that too i guess.. its a oneliner)

... just use "reboot" at the end or hold power button for restart.

At least I should probably notify the user that they should restart their device after certain actions.

But the user friendliness is the next step - first had to make sure the thing actually works without errors.

---

Directly installing from device - not sure if that would work. The terminal is an app - which gets also stopped when you use the rom-install method, so it might kill the script while its still executing. Go ahead and try, worst thing that can happen is that you get bootloop and have to odin flash.

By the way: restarting the phone by holding power also works once the system is stopped.
[Galaxy Note 3 Android Development] manageri21:
Yeah right, until right now I flashed more than 20 time, and isn't problem Odin is always ready, for moment I'm enjoying the X-Note 6. And congratulations for your tools.
[Galaxy Note 3 Android Development] girron:
I downloaded the new updated kn0x0ut and re ran the script but it still says v 2.21 instead of v 2.3
[Galaxy Note 3 Android Development] marcusmt:
My bootloader is MJ1 stock rom. i will go flash stock MK2, after can I flash omega rom XXUDMK2 with this tool?
[Galaxy Note 3 Android Development] zroice:
knoxout kn0x0ut

this updates the installed kn0x0ut file in system xbin to the one it finds on the sd folder. (so this one needs to be updated always by hand, then you run the command to update the installed file as well)

Then, when you rerun it will show new version.

knoxout
[Galaxy Note 3 Android Development] zroice:
if you can keep or get root access on the mk2 as well then yea. (best thing is to make sure the base matches the rom youre tryng to install, like in your example - wouldnt try to install mk2 rom on mj7 stock for example..)

---

the toolbox will never break knox warranty or efs or anything - just flashing wrong with odin remains as risk. (but with old bootloader it should be quite tolerant I think, make sure you use URDLV to create your update from the stock odin file)

when you factory reset after upgrading (which i would recommend) it will also clear internal sd, so be careful to have a backup if you need any files from there.

You can also try to make a data backup with kn0x0ut and restore it at the end, but I don't know if this is compatible across versions. I would rather use titanium backup for data restore if you upgrade.
[Galaxy Note 3 Android Development] mos388:
hello with version 2.30 i sucess install rom foxhound 1.2. But some apps " has been stoped" for example flashannotate.apk or keyboard.

I back to stock rom.

somebody problems with this/others apps? Works fine the roms??
[Galaxy Note 3 Android Development] manageri21:
You make clean-base before rom-install?

And you must see inside folder processed, what is installed and what not because are option on aroma install.
[Galaxy Note 3 Android Development] dancedreamfly:
Say I'm coming from a version of X-Note based on MJ7, would I need to flash a stock MK2 ROM before installing the new X-Note based on MK2?
[Galaxy Note 3 Android Development] manageri21:
Read this http://xdaforums.com/showthread.php?t=2522729

SUCCESS !!! Knox 0x0 with Mobile Odin Pro 3.85 !!!
[Galaxy Note 3 Android Development] dancedreamfly:
Hi, I know how to flash stock ROMs with MOP I'm just asking if I can update from X-Note 5.1 to 6.0 directly without having to flash stock MK2 with MOP.

I'm also having problems with installing this toolbox:

Thanks in advance for any help.
[Galaxy Note 3 Android Development] zroice:
do you have busybox installed?
[Galaxy Note 3 Android Development] zroice:
@ the guys asking whether you can install mk2 rom on mj7 - will tell ya in a few lol - no stock mk2 out for my country ... so ill just flash stock mj7 and then install xnote 6 with kn0x0ut.

Will report if I get any errors.

Aww.. f it dont wanna flash stock and re-root it with urdlv again.. (too much reboots involved lol).. Ill just flash the mk2 xnote 6 right on top of xnote 5.1 like a boss =)..

if that doesnt work ill get me a mk2 stock and only flash the system.img.ext4 with mobileodin and everroot.

--

installing MK2 on top of MJ7 as I type
[Galaxy Note 3 Android Development] zroice:
Everything went fine.

Just directly upgraded from X-Note 5.1 to X-Note 6 (MJ7 to MK2) without wiping anything or flashing stock inbetween.

It reverted xposed framework installation (as expected) and the build.prop tweaks also got overwritten (also expected) but other than that I kept my data and stuff, no FC so far.

Gotta rerun bloatware removal first though =)
[Galaxy Note 3 Android Development] lippstuh:
delete
[Galaxy Note 3 Android Development] girron:
I did that and it still says 2.21.
[Galaxy Note 3 Android Development] dancedreamfly:
Thanks, installed it through Play Store and was able to install kn0x0ut already. On my way to X-Note 6.1! Expect a beer coming your way.

EDIT: Done donating! 5B549841RH572524P
[Galaxy Note 3 Android Development] and2:
I had flashbarservice fc and keyboard fc. The problem with the flashbar was wanam and multiwindow app manager together. For the keyboard as i said i did it very dirty and i guess there are some missing lib files. I think on the weekend i will install the stock MK2 via Mobile Odin Pro for the kernel and then à la kn0x0ut the X-Note MK2.
[Galaxy Note 3 Android Development] !crazy:
Guys, could someone please answer my question regarding this tool kit. What I do not understand is that it requires root. AFAIK the one who already has root, and has rooted on knox less stock ROM, can anyway flash custom ROMs, which have no knox, without any problem.

To us, who already got phones with knox on it, this toolkit is of no use, am I right?
[Galaxy Note 3 Android Development] Killberty:
Hahahahahah someone cant read :'D

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] !crazy:
I can read, and was reading, but I cannot spend all time I have on this issue, that's why I am asking if I got this right. You could have answered my question (since you know the answer, right.) instead of posting such .* 'conclusion'
[Galaxy Note 3 Android Development] and2:
This tool is for guyes with rooted stock and Knox 0x0. As you know you can root a rom with bootloader lower than MJ3 via Root de la Vega without flagging Kn0x. So, we have a rooted rom but can not flash stuff via recovery.
[Galaxy Note 3 Android Development] Killberty:
This is for flashing custom roms when rooted 0x0 and keep 0x0 with custom rom.

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] !crazy:
Thank you for the answer.

I have missed that information, there were / are bootloader versions with knox, which can be rooted while keeping knox flags at 0. I have thought that was only possible for bootloader versions without/before knox.

---------- Post added at 04:11 PM ---------- Previous post was at 03:55 PM ----------

Wanted to answer to your post, actually. Thanks. But why would you need recovery? You can still use (mobile) Odin, heimdall?