yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] zroice:
well the script expects the folders /sdcard/kn0x0ut or /mnt/extSdCard/kn0x0ut - if your device has other mounts you need to tell me where your internal and external sd are located so i can edit it.

To the guy with permission denied on various actions:

Well you cant seem to remount system writable. Without that no altering of the system partition is possible, off course.

Type "busybox df" and please post what you get.

This also applies to the one with sd problem. (this is only tested for n9005 - so it might need adjustments - but as it seems people cant even determine if they got full root or where their sd folders are located - sigh...)

---

If you get any errors please report back what the following commands return on your device:

mount -o rw,remount /system

busybox df

cat /proc/partitions

mount

find /mnt -type d -name "kn0x0ut"
[Galaxy Note 3 Android Development] zroice:
new version is out. (with more fixes to enhance compatibility..)

[MENTION=1191841]those[/MENTION] with permission denied when you try to remount, please try this command:

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

or if that also does not work:

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

(not sure though its partition 23 for all devices..)
[Galaxy Note 3 Android Development] luigimak:
I tried 2 times to install the X-Note ROM, copying the file to "put_file_here" and with the command "rom-install", result bootloop, where am I wrong?
[Galaxy Note 3 Android Development] manageri21:
https://www.dropbox.com/s/xi7l7g3p55fgkre/Screenshot_2013-12-12-16-01-25.png

Now I'm going to try the new version
[Galaxy Note 3 Android Development] mos388:
Same problem, in a couple of hours, i try a New version.
[Galaxy Note 3 Android Development] zroice:
where is your busybox binary and what permissions are set? should be in /system/xbin with 0:2000 as user (root:shell) and 755 (rwxr-xr-x).

just try to reinstall busybox with

sh kn0x0ut.sh mod=busybox

if that also fails then your root is not correct or smth?

What phone, what rom, etc? How did you root etc?
[Galaxy Note 3 Android Development] manageri21:
https://www.dropbox.com/s/91drm6g35crxwtz/Screenshot_2013-12-12-18-18-17.png

Now is ok, reinstall BusyBox and everything is fine now, see image, for the moment can't try to install because I'm outside now.
[Galaxy Note 3 Android Development] parusia:
This is what I got with both commands. I'm stock root, rooted with kingo apk. Tmobile note 3. Thank you for your help.
[Galaxy Note 3 Android Development] robert1968:
Thank you, for help.

Oh I see. I didnt know MJ7 can be URDLV. It seems a good option. Thank you.

Mobile odin pro is not free isnt it?

Do you know MJ7 has any advantage over mj3?

Regards,

R

---------- Post added at 08:48 PM ---------- Previous post was at 08:29 PM ----------

Hi,

Tried to run removebloat_cooolboy.sh but without this line it has failed with read only file system error.

mount -o rw,remount /system

Regards,
[Galaxy Note 3 Android Development] zroice:
omg dude you got 600 posts and lot of thanks .. how can you not know that you need to type spaces between the commands/arguments? like I wrote the commands in the post above. You misstyped there (forgot the spaces).

Plus you got to browse to the kn0x0ut folder to run the command "sh kn0x0ut.sh" for the first time. Only if you installed kn0x0ut to the system with "sh kn0x0ut.sh kn0x0ut" you can use it from everywhere.

You should know this stuff though (or read more careful please)..

spaces in the commands are there for a reason lol...
[Galaxy Note 3 Android Development] zroice:
if you run the script without using the kn0x0ut command you gotta remount system yourself yes. Thats meant for safety kind of.
[Galaxy Note 3 Android Development] zroice:
You used the zip or extracted files? Any error messages or something? What phone, what base rom (odin image did you flash last)?
[Galaxy Note 3 Android Development] robert1968:
Thanks for explanation.
[Galaxy Note 3 Android Development] parusia:
Thank you for the explanation. Really appreciated your help.
[Galaxy Note 3 Android Development] twe90kid:
So this "rom-install" will wipe system, dalvik, and cache?
[Galaxy Note 3 Android Development] zroice:
dalvik-cache and system apps and system framework (aka all files in /system/app and /system/framework)
[Galaxy Note 3 Android Development] twe90kid:
Try this
[Galaxy Note 3 Android Development] twe90kid:
Thanks boss.. Btw, not sure if this is mentioned before... Can I put more than one zip in the install folder? Or do I need to do it one by one? For example, a rom that I want to install has a main zip. But they released 2 other zips as update package to fix issues on the main one. Do I put main zip in the folder to flash, remove then put the other zip?
[Galaxy Note 3 Android Development] zroice:
well its possible to flash multiple files together yes.

The order in which files get processed are:

zip, tar, tar.gz and files last.

So if you want to flash 2 zips, make sure they are named in the right order. (add numbers at the beginning to make sure they are flashed in the right order). Say you flash the mod first adn the rom after, then the mod might get overwritten by the rom again. So you need to name the rom "1rom.zip" and the mod "2mod.zip" and if you got more files .. you just add the number in front etc.

But i wouldnt mix file types (zip and tars etc.) to not complicate things.

---

I think I will put the folders created when flashing into another subfolder and then place all folders belonging to the same time/date into one folder too, so that people can see easier what has been flashed and what not etc.

But be aware that if you flash zip, tar, or tar.gz only the files which could not be installed will be copied over to the "not_installed" folder, the installed files will just get removed from the temp directory (because otherwise there would be double data which is not really necessary - once in the zip and once outside... keeping the "not_installed" files is already some kind of wasted space imo - but otherwise people dont understand what has been installed and what not i think...).
[Galaxy Note 3 Android Development] zroice:
by the way: You should be able to re-"rom-install" system backups created with kn0x0ut. just put the tar file into the directory and use "rom-install".

To restore data as well make a full backup with titanium (create a new folder if you dont want to mess your other backups up) and after you restored the system, deinstall all user apps and then restore the titanium backup (reinstall all missing apps and restore settings for everything). That should do the job.
[Galaxy Note 3 Android Development] luigimak:
Note3 N9005 FW MJ1 with root de la vega.

I put the zip in "put_file_here", then I gave the command "rom-install" and started the procedure .. after a while that the process has started, if I'm not mistaken it says could not find busybox or something (obviously busybox installed in xbin), then the device freezes and restarts when it goes into bootloop

(sorry for my english)

EDIT:

possible that using the "rom-install" and consequently deleting all the files in /system does not find busybox, and then crashes?
[Galaxy Note 3 Android Development] tankerglenn:
Hi, for all thoses who managed to install a rom, may I know how did you installed it? Did you put the whole zip file, or you extracted only certain folders? I am trying to install xnote btw.

Many thanks in advance.
[Galaxy Note 3 Android Development] zroice:
if you need help or things dont work, provide some info/logs or i cant help.

Always use adb if you install a rom! Then you can post logs even if the phone crashes or smth....

Its alot more convinient over adb anyway or do you enjoy typing all the commands on the phone?
[Galaxy Note 3 Android Development] zroice:
Upgrade to MJ7 with URDLV if you havent (and if you still can do it with RDLV, otherwise you gotta use some other method i think), then put kn0x0ut on the sd and the xnote zip into the put files here folder.

Then install busybox mod to make sure everything is set correctly and then run rom-install. (over adb)

Afterwards reinstall busybox once more and supersu too, just to make sure. Then reboot.

If it does not work (and the adb connection is cut off in the process) then please report back, (then there is an error with the deletion of the dangerous files). I have not tried rom install since version 1 but I didnt change the process - just the script code has changed.. but this might have caused problems which I did not find out about yet.

So if the adb connection gets killed while you do anything with kn0x0ut thats very important info, please say so if.

If adb stays, but there are still other errors, then that would have a different cause - but it should work then and the problem is most likely caused by your device (bad supersu, bad busybox installation, wrong commands.. etc) - then I need logs!!!
[Galaxy Note 3 Android Development] twe90kid:
is there anyone that can confirm that they used this method to flash a rom and it worked?
[Galaxy Note 3 Android Development] jonnyb:
This method work for me

Installed Note X rom... via adb.
[Galaxy Note 3 Android Development] mnemoniq:
Don't work for me, busybox installed in xbin and kn0x0ut, but still have error, the script delete all the System & framework, but don't install anything

PS : rooted with Kingo
[Galaxy Note 3 Android Development] manageri21:
try different time on 2.03 but nothing dont install system , the file stay on put_file_here not moved to installed,

https://dl.dropboxusercontent.com/u/14151986/rom_install2.03.jpg

with 1.03 without any problem install jackaway mj7.7 , like this

https://dl.dropboxusercontent.com/u/14151986/rom_install1.03.jpg

root with RDLV
[Galaxy Note 3 Android Development] zroice:
RTFM (and what I already wrote - your remount fails .. just open your eyes please.)

Really, if you know nothing about terminal or cant even understand what permission denied means after the log says "remounting" system then I can't help any more. The commands to try to still remount the system were given a couple of times by me, if you did not test that yet, why do you ask again?

Sorry, I try my best to help, but this stuff shouldnt be used by people who don't know jack about terminal - (or at least do the steps that I already provided to fix things) at least not at this stage yet.

I do this all not for myself, and my time is limited. (plus nobody even donated a dollar yet or smth - not that I do it for that, but it just tells me that it's not of much interest to people.. and if some guys ask stupid stuff over and over again this ruins the fun in this project - not one person offered help so far .. or actually tried to find errors themselves to report etc..)

Hope you understand. (as people reported this thing is actually working, if you follow the steps)
[Galaxy Note 3 Android Development] zroice:
thanks, will look into it when at home.
[Galaxy Note 3 Android Development] zroice:
Did the script/toolbox work for anyone that did not use RDLV yet or are you all getting the permission denied errors?

If you get the errors, have you tried the other commands I gave to try to remount? (dont dare to post about remount problems if you did not try the other ways or remounting please - only if these also fail)

If the "normal" command does not work, but some other does - then tell me which.

Kingo Root does not seem to give full root to remount system rw with the standard command. This can be caused by Kingo itself, or because of the new bootloaders, or because of old supersu files.

So you need to find a way to remount the system rewriteable (one of the commands I gave definitely works - had my phone rooted with kingo too in the past - and I know it worked) and then reinstall supersu and busybox with kn0x0ut. (AFTER YOU REMOUNTED SYSTEM WRITABLE)

If you after all this, still cant use "mount -o rw,remount /system" and still get permission denied, then I need to edit the script, but for that I need info which command actually worked on your devices...........
[Galaxy Note 3 Android Development] twe90kid:
just tried this.. for some reason phone went into black screen..

I'm rooted on RDLV.

Ran Rom install and it was running... then phone went into black screen. no response in power button.

Held the power button for half a minute and the phone rebooted. Still the same stock rom before flash. nothing changed.

On Sprint Note 3
[Galaxy Note 3 Android Development] zroice:
rtfm and more info needed if you want any help.
[Galaxy Note 3 Android Development] twe90kid:
:confused:

Terminal, used su promp, then mounted to the right folder using cd command to /sdcard/kn0x0ut

ran the busybox (installed fine, no error). ran the install of kn0x0ut (no error). then ran the kn0x0ut rom-install command.

while it was installing the rom, the phone sudden went dark.

checked the kn0x0ut folder, the rom went into the archieve folder.
[Galaxy Note 3 Android Development] zroice:
you didnt read careful enough (hint: do rom-install over adb because the system gets "stopped" to remove all system apps and the framework)

You almost did it right - just do it over adb shell!

---

I can just repeat - do the stuff over adb shell. If you get errors or if the phone just restarts or smth you can at least see the shell output still etc. Plus its alot easier to type the commands on a normal keyboard.

I know its fun to run scripts on phone in terminal and stuff - but this is not meant to be run in terminal - unless you understand what you can do or cant. And if you get errors or smth you cant tell **** because you wont see where it went wrong.

---

New Version 2.10 is out - should fix the last remaining bugs and changed the way files are gettin placed after beeing processed, to make it more user friendly and easier to browse. (read the instructions on how to update please - replace ALL the files in the kn0x0ut folder on the phone or sd card and then run the "kn0x0ut kn0x0ut" command again)
[Galaxy Note 3 Android Development] twe90kid:
Failed! :crying:

System boots into android system recovery.
[Galaxy Note 3 Android Development] mos388:
with 2.03

with 2.10

Then the phone restart in recovery mode all time.
[Galaxy Note 3 Android Development] effortless:
Phone reboots to recovery

I also tried with 2.10 using a zipped ROM. Once it installs the new system and finishes fixing permissions, are you supposed to send a command to reboot or do you disconnect the phone and hold power until it restarts (which I did).

It kept booting to the stock recovery and then I tried to wipe system from there and it still didn't work.

EDIT: I used adb shell
[Galaxy Note 3 Android Development] twe90kid:
Guess i'm not the only one. Script has problems from the beginning!
[Galaxy Note 3 Android Development] mos388:
don`t execute kn0x0ut clean-base?
[Galaxy Note 3 Android Development] twe90kid:
I'm pretty sure we didn't screw up anything during the ADB process and it's pretty straight forward.

for those that want to try, don't bother until OP actually test his work. you'll just end up wasting time!

also, asking for help on this thread is just going to get you yelled at by the OP.

~ I decided to just go ahead and install a custom recovery and not worry about the 0x1.
[Galaxy Note 3 Android Development] zroice:
Well I already said I can't test the rom install because I don't have time to set up my phone again. You know how much time I already spent on this here? (without needing it myself - just out of generosity to try to help)

I asked a couple of times for people willing to help, so that I can actually learn what is the problem without having to set up my phone again. (I'm sorry but im busy most of the time.. and I already spent way too much time on this anyway...).

---

If you want to be spoonfed then yea please go ahead and use cwm or smth. Actually I just created / released this stuff on request from people who wouldnt understand how to do this process by hand (its just simple copy n paste basically). And I overestimated the folks here I guess, not one person took time to analyze the code to point me to errors or smth.

---

Anyway: I think I found the bug that causes the rom install. In theory this happens because the system/xbin and system/bin folders are overwritten and the file permissions get "destroyed" in the process. But because the permissions are destroyed, they can't be fixed (because the fixing permissions script relies on the binaries...). So as a workaround I will either have to also remove the system/bin and system/xbin folder before the install process. Or b: (this would also fix busybox problems I think) To make kn0x0ut always use an integrated busybox binary which gets put into a safe place before install, so that it wont get overwritten and its permissions destroyed.

With this fix, then everything should work, assuming you can mount writable. (as a workaround till fix: delete the /system/bin and /system/xbin folders from the rom-archive you are trying to install - or extract the archive into the put_files_here folder and then delete the /system/bin and /system/xbin subfolders there.. and if you want to be 100% sure also delete /system/vendor subfolder there)
[Galaxy Note 3 Android Development] zroice:
took down the download till the final fix is implemented and things actually work flawlessly finally...

need someone willing to test the rom install when its done, so that its confirmed working (normal zip install is tested by me, and that shouldnt have caused any problems or?). Please send a pm or write here if you want to help.
[Galaxy Note 3 Android Development] manageri21:
waiting for the link to download, try and report after .
[Galaxy Note 3 Android Development] mos388:
Hello, i unziped the xnote rom, and delete folders /system/bin , /system/xbin and /system/vendor

my steps:

reboot phone...

AND!!!!

I go to try install only delete folders /system/bin , /system/xbin. And check if rom works fine...
[Galaxy Note 3 Android Development] panjaby:
Yeah im thinking the same to hell with the warranty and just install the custom recovery. I tried knoxout more than 10 times everytime it fails for one reason or the other over adb shell 'yes'. But its a good experience and I have learned more stuff on adb. What is stopping me from installing a custom recovery is that I want to successfully install rom using knoxout.
[Galaxy Note 3 Android Development] mnemoniq:
Thank you for your response, I tried knoxout more than 10 times everytime it fails over adb shell. But its a good experience and I have learned more stuff on adb.

I think testing the latest version 2.10, thank you for your efforts :D
[Galaxy Note 3 Android Development] zroice:
Thanks alot - this indicates that the bin and xbin folders are indeed the problems.
[Galaxy Note 3 Android Development] luigimak:
link download 2.10??
[Galaxy Note 3 Android Development] mos388:
Hello, My experience with this rom is bad. Apps like flashannotate.apk and samsung keyboard stoped all time. I instaled swiffkey and keyboard problem solved, but wiht flashannote i don`t know...

Perhaps is the apk problem....or perhaps is the installation mode problem. I am downloading echoe rom 5 and will try,
[Galaxy Note 3 Android Development] evilvoice:
[MENTION=3160325]zroice[/MENTION] Don't give up on this. It is very interesting and the only option for installing a custom rom without tripping Knox. I have not had a chance to test it, but always download the newest updates in the event I have time to test. I see you are getting frustrated. Just keep doing your thing: releasing updates when needed, debugging issues if found and possible to locate.

I think another issue people might be having is flashing a rom that is a different version than what is on their phone. In my case, I'm on MI5 and the latest is MJ4. Maybe include a check that the rom they are trying to install matches what is on the phone or it will output a notification that it may not work if continued. I only think this might be an issue because some files are left behind that shouldn't be overwritten. Another option would be to md5sum the files that are going to be left on the phone versus the files not being copied from the rom install and compare. If they aren't the same, exit with file name that caused the issue. This gives the user the information that could be used to figuring out what went wrong when they installed a rom and it didn't work. Just some thoughts I had. If you do anything like this currently, disregard. Thanks and I can't wait to test this out.
[Galaxy Note 3 Android Development] deadlyheart4u:
It's awesome. Good? work

Sent from Samsung Galaxy Note 3.

If you like my post hit thanks .
[Galaxy Note 3 Android Development] alwayslookingforanswers:
Agree

I think you hit the nail on the head. And don't give up. I want to thank you for this. I've never been one to use adb shell too much. Really never had the time to figure it out. I stayed up 32 hours trolling this and learned more than the couple of years I've been rooting devices. Please don't give up! I'd throw some donations your way but I'm justa broke ass. Lol I'm up for testing when I can. I work nonstop but if there's a will there's a way!
[Galaxy Note 3 Android Development] zroice:
gonna try to implement the fix today and release a new version. but please read the instructions before you post errors and if you post then please with log (to see where it fails). Also try to remount the system writable by hand before you run the install commands, and if it fails and you get permission denied, try the other commands I provided.
[Galaxy Note 3 Android Development] alwayslookingforanswers:
Can't wait! The instructions and the correct commands are the key. Google Google and Google. The correct commands in adb and shell is one of the reasons so many are having problems. If you don't input them correctly nothing us going to work. And thanks again for all the work you put in this! I myself think this is going to be one of the greatest script tools out one day. Just my opinion no one has to agree or disagree with me.
[Galaxy Note 3 Android Development] zroice:
new version out, the rom install is not tested by myself for the reasons already given(no time).

BUT it should work now without the issues people reported (permissions are immidiately fixed and busybox+supersu installed after rom file copy operation finishes and a busybox binary gets copied to a safe place to operate from there to make sure its always available for these operations no matter what happens to the system partition.).

If things still fail then pls report.
[Galaxy Note 3 Android Development] alwayslookingforanswers:
?

I've gotten busybox installed. I'm not using the right commands myself I guess? Not looking to be spoon fed, but can someone please give me the right command to install kkn0x0ut please. Here's where I'm at.
[Galaxy Note 3 Android Development] drakeymcmb:
use this command

sh kn0x0ut.sh kn0x0ut
[Galaxy Note 3 Android Development] alwayslookingforanswers:
Sweet thanks! I've been on a crash course of adb shell for the past two days. Never Been interested in it before now. Now I can't stop learning about it. Just so many commands I'm getting confused! Lol
[Galaxy Note 3 Android Development] Dral29:
]

You can answer without using profanity and in an other tone. If you one to invite someone to something wouldnt you do it nicely?

Send from my N900W8 using xda premium.

hit "Thanks" if I helped
[Galaxy Note 3 Android Development] twe90kid:
And he expects people to donate to him.. Good thing I rated this thread 1 star.
[Galaxy Note 3 Android Development] drakeymcmb:
Guys, he trying his best and honestly, the noob questions do get kind of annoying.
[Galaxy Note 3 Android Development] Killberty:
Same opinion

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] alexng2208:
Success

followed instructions from the TS together with some assistance from my fellow forumers

https://forum.lowyat.net/topic/3050968/+1440&#entry65205979

succcess in flashing knox 0x0 with xnote nowwwww