yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] manageri21:
Sorry for write costum kernel, the right questions is when i install the rom Xnote 5.1 with your tools there is installed the stock kernel too or not? Why this question, if I go too Install with aroma there was the options to choose the kernel and when i install with your tools i see inside the folder not installed the too choose of kernel, now what kernel version have inside my rom the new stock or the old stock?
[Galaxy Note 3 Android Development] zroice:
You will retain the kernel you had before, its just not changed at all. So if you flashed a custom made mj7 file with odin for example (the one root de la vega gives you, or if you created one yourself..) you will have the stock mj7 kernel.

Recovery and kernel are the ones you got from last odin flash or last ota update.

I'm on the stock mj7 kernel as well.

Steps I took from buying the device to now (device had MI6 or MI7 installed):

1.) Debloat with the same rom but without bloatware - so I flashed the stock odin from sammobile for MI6/MI7 whichever I had..

2.) Using ultimate root de la vega tool to patch the MJ7 firmware (together with the additional partitions modem.bin etc. to update these as well, BUT excluding the bootloaders > into a custom odin tar md5) and flashed it with odin to get the MJ7 with root.

3.) Used kn0x0ut to install X-Note 5.1 and simplistic framework + the all the addons currently available inside my kn0x0ut toolbox.
[Galaxy Note 3 Android Development] DustinKimble:
So this post was linked in a thread over in the att note 3 general section, will this work on a phone with a locked bootloader?
[Galaxy Note 3 Android Development] zroice:
try to remount system writable, if yes then yes. (try both remounting system directly and if that doesnt work to remount the block device, like discribed above)
[Galaxy Note 3 Android Development] DustinKimble:
If your asking if I can mount the root directory R/W with root explorer, yes I can.
[Galaxy Note 3 Android Development] manageri21:
Thanks man, now is everything clear in my mind.
[Galaxy Note 3 Android Development] zroice:
Still working on the new version with backup and restore functionality.

If things go as planned then we can backup n restore easily.

Also changing things bit so that new addons can be easier added and will also make it possible to use zip and tar files without needing to manually extract first.

Don't have much time for this though.. only a few hrs in the evening/night..

ARGH: Forgot to include the init.d fix in the release i think... (did the testing on the phone and forgot to copy files back - usually copy from pc to phone always and edit on pc...)

Well the thing is its not working right now because I am in the middle of the editing kind of, so you gotta wait for the next release for the fix unfortunately.

(or you manually delete the logwrapper from the /system/bin/sysinit file. It should be "run-parts /system/etc/init.d" only - the logwrapper causes things to fail)
[Galaxy Note 3 Android Development] Bataga:
No that's not it.
[Galaxy Note 3 Android Development] DustinKimble:
Then I don't suppose I know what you mean
[Galaxy Note 3 Android Development] bishodablack:
will this work in the N9002?
[Galaxy Note 3 Android Development] Killberty:
Should work, but nobody approved

You can just try, wont do any harm to your device, if something fails just flash stock

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] zroice:
--- TEASER ---

kn0x0ut v2.00 should be done this weekend I think.

It will include the ability to install zip, tar (and folders as before) roms and mods.

You will be able to backup system and data.

And theoretically (this needs testing for data, for system it should work 100%) you can restore these backups back with kn0x0ut later.

The mod installation and the script overall has been totally edited.

Instead of having to put each mod inside the script individually there is a automatic mod detection now.

At this stage this shouldnt be used to create own mods (yet) because it needs the files to be in a certain structure to work and not cause problems. (there is no removal of unsupported files for mod installations, so the mod files need to be cleaned and have the right folder structure before adding)

On top of that it will include a command to install kn0x0ut (as well as a standalone fix_permissions and backup_permissions command) to /system/xbin for easier usage in terminal or adb.

Currently (at v.2.00 when its released) kn0x0ut expects to find its folder on the external SD card (/mnt/extSdCard/kn0x0ut) but its planned (and maybe it will even be already included) to be able to set and store the path to the kn0x0ut folder in a settings file.

I will be using /data/media for creating a temporary folder for extracted files, because this folder will be: a) left untouched on all actions b) has plenty of space available usually c) allows for file permissions, which is important for backup restore, which otherwise would lose all file permissions.

---

The described functionalities are there already 99% - but I need to test things first. (its a quite big script now, and I have just been programming, no testing yet, so there will probably be some syntax errors left). Plus some other things left to be done.

But its worth the wait, trust me :D
[Galaxy Note 3 Android Development] megatooth:
We have a new hope..., de la Vega is playing hide-and-seek likely.
[Galaxy Note 3 Android Development] DAGr8:
My friend you may just have given me THE reason for making a custom rom for this device. .. kudos to you
[Galaxy Note 3 Android Development] zroice:
sigh, just tripped my friend's note 3's knox counter, but not with the toolbox...

(really no idea why, flashed my custom odin tar which I already used like 10 or more times on my note before...I'm guessing he already had the updated bootloaders or something - the weird thing is the custom odin was ok it seems, but after I used the root de la vega files to install su it got tripped (but without any message at all).. after everything went through I went into the download mode again and his knox was 0x1...)

But this doesnt affect the toolbox in any way.

Still working on finishing version 2.00 ... almost done. (testing the commands now ..)
[Galaxy Note 3 Android Development] prisonnet:
Great work...trying to port this to the Galaxy S4 and have a quick question: on line 150 of the sh script, you have "dd if=/dev/block/platform/msm_sdcc.1/by-name/efs" but should it be pointing to the partition, in my case, "dd if=/dev/block/mmcblk0p10"? Or would this not matter?
[Galaxy Note 3 Android Development] zroice:
Well type "busybox df" (or just df if you installed busybox with kn0x0ut toolbox - because it changes the default symlink as well) and post what it says please.

Or rather: look if you got the device mentioned above or not. This device by-name thing should actually work without knowing what the partition number is and work cross devices, but not 100% sure.

---

The new toolbox is 99% done - and everything tested but the rom install. But I didnt change the way it works, just the script, so the only errors could actually be syntax or so.

I wanna make sure this thing is really good before I release it.
[Galaxy Note 3 Android Development] prisonnet:
Here ya go:
[Galaxy Note 3 Android Development] radicalisto:
Once again Kudos my friend, nice to see you got a script going, I'm gonna give it a shot (my KNOX is tripped but I fancy playing)
[Galaxy Note 3 Android Development] zroice:
well I can see the partitition in your list, so it shouldnt need any adjustments.
[Galaxy Note 3 Android Development] twe90kid:
this is interesting.. wonder if it will get to a point where it has an actual GUI to run.
[Galaxy Note 3 Android Development] Killberty:
Hahah from a single copying idea from adb shell to a high complex program with graphical user interface? Would be soo cool meh

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] tongueman87:
Interesting
[Galaxy Note 3 Android Development] zroice:
Sorry for the delay - I'm pretty busy with other stuff and I don't wanna release this half-assed.
[Galaxy Note 3 Android Development] mnemoniq:
Hello ! i used all steps to install custom rom in my NG3 MJ7 Knox 0x0, unfortunately the reboot, and now my it stick in the Samsung logo !!

Help please, how to restore and let my knox safe ?!!!
[Galaxy Note 3 Android Development] twe90kid:
Does the script work for Sprint Note 3?
[Galaxy Note 3 Android Development] zsolti256:
Me too , I am stuck in bootloop.

I had mi6 rom and upgraded in mobile odin pro to mj7.

Please help me restore my phone, and keep the knox 0x0.

Thanks!

Im waiting for solution.
[Galaxy Note 3 Android Development] tonime:
see if you can fix here

http://xdaforums.com/showthread.php?t=2507403
[Galaxy Note 3 Android Development] zsolti256:
I think this not my problem, i have no custom recovery!

A need knox to stay 0x0!

I got boot freeze because of this script , not because the explanation of how I obtained root w mj7!

I think the script deleted system files, but didnt copy new ones!
[Galaxy Note 3 Android Development] Killberty:
Flash stock frimware in odin, no bootloop, knox safe

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] zsolti256:
What one? my bootloader is still mi6 , my system is mj7

I saw they said in the mobile odin thread here , there is no way to go back without tripping knox. and if i flash mj7 in odin I trip knox

and hotfile is no more, cannot dl..
[Galaxy Note 3 Android Development] parusia:
As long as you don't flash a custom recovery or custom kernel you can odin back to stock firmware without tripping the Knox flag. Use PC Odin no mobile odin. And you can look for the stock firmware at sammobile.
[Galaxy Note 3 Android Development] zroice:
keep the odin tar you created with RDLV if you have updated through RDLV custom tar. Then you just reflash that back when you have an error.

For the others, well you use the odin tar you used last - or the one which fits your firmware rather (minus the bootloaders if you still got the old) and flash that.

---

Version 2.00 released. If you encounter bugs or problems please post asap. As in the past: The worst thing that can happen with kn0x0ut is that you have to use odin to flash back stock (which you most likely came from anyway, if you want to use kn0x0ut to install a rom... so nothing lost there.)
[Galaxy Note 3 Android Development] tropazr:
Will the bloatware command remove bloatware from a rooted stock AT&T Note 3?
[Galaxy Note 3 Android Development] zroice:
Well it will remove those bloatware that the devices have in common.

(if you have full root access to system)
[Galaxy Note 3 Android Development] tropazr:
I can confirm that it does remove shared bloatware but does not touch AT&T bloat. I used your bloatware script and lost Play Store & Browser. Will Cooolboy's script leave that stuff?
[Galaxy Note 3 Android Development] twe90kid:
Waiting to see if a dare devil will try this script on a Sprint Device.
[Galaxy Note 3 Android Development] zroice:
yea - you lost playstore as well? Hmm thats a mistake hehe, actually it should leave the playstore, google login and framework (thats all you need from google to access the play store, then you can dl the rest basically). Hope you made the backup as it suggested :P

But yea beware - the "zroice" version of remove bloatware is pretty hardcore .. all factory test apps etc and all google stuff gone except the playstore etc. Browser gone too but just install the aosp browser. (but if you got titanium you can just restore those back that you want)
[Galaxy Note 3 Android Development] tropazr:
It works on AT&T. I don't see why it wouldn't work on a rooted Sprint device.
[Galaxy Note 3 Android Development] zroice:
did you install a rom with it or just mods / bloat removal?

Uploading new version which leaves the playstore with the bloatware removal scripts.
[Galaxy Note 3 Android Development] tropazr:
I installed T-Mobile Jedi Elite earlier. Everything worked great except Live Wallpaper Picker and WiFi would forget password and have to be manually turned on after disconnect/reboot. I think [MENTION=4701028]drakeymcmb[/MENTION] is working on a fix for the WiFi issue for us.

For now, I'd like to go back to stock AT&T but debloated...I need stability for work.

This toolbox is amazing. There were a lot of people on the AT&T Note 3 who didn't think we would ever get custom ROMs.

---------- Post added at 09:18 PM ---------- Previous post was at 09:16 PM ----------

The zroice bloatware option is exactly what I have been looking for for my Note 3. As long as you leave phone, messages, email, playstore (and requistes)...I can pick and choose what I want to add from the Play Store. Great news!!!
[Galaxy Note 3 Android Development] zroice:
It also kills the google sync crap if you need that you need to restore it back. (just use titanium for finetuning - aka delete the apps or reinstall those that you want or dont want that are left over/missing).

To fix your problems, have you tried to run "restorecon"?

restorecon -R -v /data

and

restorecon -R -v /system

... or just

restorecon -R -v /

to recursively restore selinux context (the last 2 need system to be remounted rw). Could maybe be the problem? Or different permissions needed than the n9005?
[Galaxy Note 3 Android Development] tropazr:
I have not tried that. And restorecon would be to fix the Wifi issue? [MENTION=4701028]drakeymcmb[/MENTION] would be the one to ask...my skill level is limited to reading and being able to follow directions. ;)
[Galaxy Note 3 Android Development] zroice:
no idea tbh, but worth a try? goin to bed now..
[Galaxy Note 3 Android Development] tropazr:
Awesome. Thanks for the help and quick fix!!!!

---------- Post added at 10:03 PM ---------- Previous post was at 09:36 PM ----------

For some reason now I am getting the error "su-mksh: kn0x0ut not found" when trying to run debloat...what am i doing wrong?

EDIT: Fixed the above... I am now getting "Error Downloading" from Playstore after using zroice debloat. Any ideas???? Tried clearing data...no go.
[Galaxy Note 3 Android Development] Killberty:
Is the efs backup working?

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] zroice:
remove and re-add the google account. (for the download error thing)
[Galaxy Note 3 Android Development] zroice:
for the "kn0x0ut not found" error:

Well do you have kn0x0ut installed? else you gotta type "sh kn0x0ut.sh" and be in the right folder for it to work.

So browse into the directory on the sd and type "sh kn0x0ut kn0x0ut" to install the script to system xbin. then you can just type "knoxout"
[Galaxy Note 3 Android Development] Killberty:
And how to restore the backups?

hit 'thanks' if i helped you

SM-N9005 DBT-DMJ7 0x0

XDA Developers 4 premium app
[Galaxy Note 3 Android Development] mnemoniq:
Re use the Universal Root de la Vega script, it works for me finally, check this url http://www.theandroidsoul.com/universal-root-de-la-vega-script/
[Galaxy Note 3 Android Development] manageri21:
i just try to make a full backup, question, the last line for me was

"tar: error exit delayed from previous errors" when I make with sh kn0x0ut.sh backup-full, but when I try with knoxout backup-full don't give the tar: error.... Anyway when finish to make backup must be there some like done, finished?

other try

clean-dalvik------>work

clean-base-------> error unknown parameter "clean-base"
[Galaxy Note 3 Android Development] zroice:
gonna look at it later - still not @ home.
[Galaxy Note 3 Android Development] mos388:
Hello.

When i runs sh

This link failed It's normal?

Then, i try to install acid mod and backup_efs, and it works.

but when i try install a zip of cerberus....

and don't install it.

Any suggestion?
[Galaxy Note 3 Android Development] mnemoniq:
Same problem with X-note custom rom (zip) in my NG3 9005 MJ7 Knox safe, with ADB or terminal, busybox link failed, many failed and cant' error...my installed_files folder is empty !!
[Galaxy Note 3 Android Development] zroice:
just came home, will look at it now.

---

UPDATE: Aww some syntax errors (did so much editing to clean up the code...). Fixing...
[Galaxy Note 3 Android Development] tongueman87:
So we are now able to backups and restore? I'm on t mobile wanting to flash jedi elite on my note 3
[Galaxy Note 3 Android Development] zroice:
Not yet - I didnt try to just delete /data and copy over the backed up one yet on running system. Aka: need to find out which files should not be deleted (a factory reset wipes data, but this doesnt mean you can delete everything at boot time without errors, even when the systemui is stopped - at least I think you cant.)

What about the sockets on /data for example? No idea if its ok to delete those, it wouldnt brick or anything, but it would maybe cut off the system or the adb connection for example.. etc etc.

And I have very few time to work on this. (plus to be honest I cannot invest time to set up everything on my phone once again incase the test fails lol). So at best someone with knox 0x1 and custom recovery would be so kind to volunteer to do some tests for me. (they can just use nandroid to restore after the tests, without having to do it by hand...)

But in theory (unless selinux interfers.. this could also be a possibility still) data restores should work the same way as system files. You gotta leave some dangerous files out (maybe) and then just clear the safe files and restore from the backup.

---

Fixed the errors now, I will also do some testing now, but the newest version should actually work now lol.. damn those syntax errors. (renamed functions and forgot to rename at another place... and some of the commands I used in the script were relying on busybox beeing symlinked to some commands already, but this is also fixed now.)

But for everyone the first command (after reading the help) should be to install busybox and fix symlinks etc. This will ensure everything goes smooth. After that you can use the "kn0x0ut" command to install the kn0x0ut toolbox to system as well. (this relies on busybox already, but the busybox install itself does not).

Check out the new version please - also gonna test things again now (but my time is very limited atm - havent had a good sleep in days)

---
[Galaxy Note 3 Android Development] zroice:
Your errors should be fixed now, but please (re)install the busybox from the toolbox with

sh kn0x0ut.sh mod='busybox'

before you do anything. This should fix 99% of the errors. (on my system the symlinks are all set, so I was probably expecting too much from the other peoples installation - but this reliance is now fixed i think)

Still best thing to do is to use the busybox command. (on top of installing the latest busybox from busybox.net with more commands than the stericson build, it also redirects many symlinks which by default belong to the "toolbox" binary which is a gimped down version of busybox basically. This gives more options for many of the most used commands like "cp","mv","chmod", etc etc. you get the point.

---

Tested the installation method now and its working. (rom install should work also it only does clean-base before install otherwise it does the same, but not tested it again)
[Galaxy Note 3 Android Development] parusia:
Can somebody help me here? I already tried to remount the system partition as rw but that doesn't change from ro. Maybe I'm re mounting the wrong line? Thank you for your help.
[Galaxy Note 3 Android Development] mnemoniq:
Thank's for this update, but i and up with this error : kn0x0ut.sh[587]: busybox: can't execute: Permission denied.

I used the rom-install command (adb), after reboot i and up with the Samsung recovery !!! and nothing else

What is the problem ?
[Galaxy Note 3 Android Development] iTTi:
Hey Guys!

I hope I am in the right section. In my Note 3 About device section at the bottom of the page it states:

United Arab Emirates

TRA ID:0016333/08

TA: 00000000/00

I wanted to know if I root my phone will there be any issues? Is it something like O2 or carrier based phone?
[Galaxy Note 3 Android Development] manageri21:
me too same problem and supersu :permission denied

....

after some trying, to install a costum rom only the script 1.03 for me work.
[Galaxy Note 3 Android Development] mnemoniq:
You have version 1.03 for testing, I do not find it! thx
[Galaxy Note 3 Android Development] manageri21:
i send you a PM
[Galaxy Note 3 Android Development] mnemoniq:
thank's
[Galaxy Note 3 Android Development] robert1968:
mj3 to be on safe side.

Hi Zroice.

Amazing work! Thanks.

Im on MJ3. rooted with Kingo. (that was my only option to be rooted.)

I want to debloat with your tool, but before that I want to know what are my option if I delete an important app accidentally...

1. Odin stock MJ3 and Kingo again, and try again debloat.

2. Can I install stock with KN0X0ut? How to extract stock firm ?

3. Rewrite debloater not to rm, but mv to a backup folder, and copy back necessary files in emergency case? + permission recovery.

Regards,

Robert
[Galaxy Note 3 Android Development] mnemoniq:
You can use the Universal Root de la Vega to create a stock rom and keep the old bootloader then flash with Odin, i use this method and no problems at all, my knox still safe, check this link http://www.theandroidsoul.com/universal-root-de-la-vega-script/
[Galaxy Note 3 Android Development] robert1968:
Hi,

Unfortunately MJ3 reported to hurt Knox with Vega. It is not option to me.

Regards
[Galaxy Note 3 Android Development] mnemoniq:
From MJ3 you can update to MJ7 with Mobile Odin Pro, I use this method and work for me. Then create another MJ7 stock rom with URDLV (to isolate the old boot loader) in case bootloop or want to restore your firmware with Odin (pc). It work for me perfectly.

Envoyé depuis mon SM-N9005 avec Tapatalk
[Galaxy Note 3 Android Development] zroice:
@ those who got permission denied on some actions:

Did you use "everroot" or "ota survival" for your su binary? I think they might be marked as undeleteable then (need to be unmarked with chattr binary - gonna include that in the script as well)

If not or if you getting permission denied when you try to run the following command:

mount -o rw,remount /system

then please report back. In that case you might need a different method of remounting (already posted it somewhere here in the thread) or your locked bootloader prevents the remount or something.

On my phone (no undeletable su binary, latest busybox in xbin) everything is working fine as far as I can tell. (as I said I did not retest the "rom-install" command, but it only has one more action than the normal "install" which is tested and therefore it should work in theory).

As a temporary fix just install "chattr" mod and use:

chattr -i /system/xbin/su
chattr -i /system/bin/.ext/.su
chattr -i /system/xbin/daemonsu
chattr -i /system/etc/install-recovery.sh

before trying to update supersu
[Galaxy Note 3 Android Development] tankerglenn:
Hi,

I'm sorry if this is a very noob question, but I'm totally new to this, and help is greatly appreciated.

I have managed to browse into /mnt/extSdCard/kn0x0ut through adb shell, but anything I type, such as : sh kn0x0ut.sh mod='busybox' kn0x0ut just gives me either a 'no such file or directory' or 'not found'

Can someone point out what I'm doing wrong? Many thanks in advance.
[Galaxy Note 3 Android Development] mnemoniq:
I tested again with busybox (that come wtih the zip) in xbin, but I do not know the su binary undeletable !!!, I installed "chattr" and use your control but after install-rom, I still have an error. here a screenshot

[/IMG]

---------- Post added at 11:45 AM ---------- Previous post was at 11:39 AM ----------

You can use storage/extSdCard/kn0x0ut/