[Q] Knox is messin with mah' permissions... any ideas? - Galaxy Note 3 Q&A, Help & Troubleshooting

So after upgrading most of my root apps 99,9% of the things that require root do seem to work - at least with a little workaround like running "restorecon" after you mess with the data/data folders (like when restoring app data with titanium etc).
But one thing that I still didn't figure out to do is to set permissions for stuff in /data/data and have them stick.
For example there is one app where I edited the config files I found in /data/data, changed the owner of that file to root, and then only gave the app itself reading rights (rw-r--r--). This used to work fine on my old galaxy note 1, but now on the note 3, whenever I open the app or run restorecon, the permissions are reversed again, and the app is given owner rights again. I used this "trick" to activate hidden features or disable tracking crap etc on some apps, so I'd be glad to find a workaround for this as well... any ideas?
I'm guessing seandroid is resetting the permissions, but there should be a way to prevent this or?
Does anyone know if and how we can edit the seandroid policies maybe?

Related

Removing stock apps?

Coming from a Mt3g that I've ran exclusively with Cyanogen mod since I got it, I've become quite used to running a very slim, light phone, and getting this today with all this bloatware is driving me nuts. Anyone been successful getting these apps off theirs phones? I'm already rooted, and have astro installed, but didn't quite know what to remove.
Would prefer not having to use adb, as it doesn't work well with Win7
Use Root Manager and delete what u want. be careful what u delete tho.
how do u remove the icons of these crapps from the app menu?
After you delete them with root manager and re set the phone, they should be gone.
Yup. Granted I used ADB, but root manager will work too. Just make sure you delete the apk and the odex.
I deleted mine with root explorer .. worked fine for me...
Yep, I thought Astro had root access but I was wrong, snagged root explorer and cleaned my phone up rather nicely.
Any stock apps cause issues if removed?
try this thread. there are some u can remove and some you shouldn't remove.
http://forum.xda-developers.com/showthread.php?t=712546
Guys I know you can use root manager to delete the bloatware on this phone. How can you delete the .apk files using ADB? I searched but it doesn't seem to work. Any instructions on how its done.
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
Thanx but I thought you needed some type of recovery application. No?
Sent from my SAMSUNG-SGH-I897 using XDA App
I know this is a bit of a noob question. But I have been using root explorer to "move" apk and odec that I do not need. Is is that simple? There is no "uninstall" process, you just remove/delete the apk/odec?
That should be the same as rm -r in ADB and that's what I've been doing for the last couple of years. Proper or not, it does the trick
When I got the phone I think it had 4 pages of bloatware apps? I'm down to 2 and couldn't be happier.
I don't think the remount on root explorer works properly however, I had to remount between rw and ro with terminal.
ADB doesn't work well, I need to set up some sort of remote ssh so I can just run all of these commands from a shell on my desktop.

Need root to access certain files?

I'm doing research on android security, and i realised i can use adb to pull files from /data/data. These files includes SMS databases and sharedpref.
Now I have root on my n1, so I'm wondering if this is possible because of root?
Sent from my Nexus One using Tapatalk
I'm not sure about that specific directory but I do know there are certain system folders/files that can only be modified with root access. Certain apps like Titanium backup use root access to pull apks from root only folders, without root they simply can't function.
It's only possible because of root access. Without root you can't get to the sensitive info like that.
Yep, both /data and /data/data have permissions set to drwxrwx--x, meaning root has read/write/execute permissions, the system group has it too and regular users only have execute permissions.
Thanks all, for your input. Much appreciated!
Sent from my Nexus One using Tapatalk
fubaya said:
Yep, both /data and /data/data have permissions set to drwxrwx--x, meaning root has read/write/execute permissions, the system group has it too and regular users only have execute permissions.
Click to expand...
Click to collapse
To be more accurate, the "drwxrwx--x" (or 771) permission indicates the OWNER's permissions, then the GROUP permissions, and then EVERYONE. root will have the same permissions as the owner.

[q] help removing pre-installed bloatware after rooting

my mt4g is rooted but i cant delete or move the bloatwares.
astro>system>app (it says: error deleting files)
i dont understand whats going on bcus the steps seem simple but somehow its neither deleting nor allowing it to be moved to my sd card.
any help would be most grateful. thanks in advance.
-----------------------------------------------------------------------------
and one last question. now that my phones rooted, s=off, may i delete visionary, the terminal emulator, and superuser???
>> i have more tasks running now that its rooted along with my inability to remove the bloatware
For your first question, astro cannot delete system apps if you're not mounted r/w, which you wont be by default. Root Explorer gives you the option to mount r/w and then delete apps. alternatively, you may want to install titanium backup and use the "freeze" feature so you can easily restore them if you want in the future.
You can remove visionary, and the terminal emulator if you want, but you'll need the superuser app to grant root permission to any apps that require root in the future.
Don't arbitrarily delete bloat. Use Titanium to freeze apps you don't want like option94 suggested. Some of those apps are tied into the sense ui and deleting them can make things screwy. After freezing in Titanium, if everything is working well, you can delete if you want. Make a nandroid backup before you do anything permanent. I would leave the stock rom alone and flash a rom like iced glacier which is basically optimized stock with all the bloat removed. Don't forget the make backup part.
Sent from my HTC Glacier
thanks i didnt quite understand what 'mount r/w' means or what it really does but as long as changing it to 'mount r/o' makes those unnecessary apps go away, im happy. thanks again
r/w = read/write - you'll be able to make changes
r/o = read only - you wont be able to make changes.

Deleting /su/xbin_bind on SuperSu 2.62

I recently re-rooted my phone to install 6.0.1, and installed SuperSu 2.62 thinking it was systemless root. Android pay didn't work, so I re-downloaded Xposed. After reading that you need to delete the /su/xbin_bind folder to get Android Pay to work, I uninstalled Xposed (flashing the uninstaller) as well as Emoji Switcher (forums say it modifies /system) and set out to try it.
However, when I try to delete /su/xbin_bind, it says failed/cannot be deleted. I've tried with both ES File Explorer and Root Explorer. According to SuperSu, the only things left with root permissions are Nova Prime Launcher, Tasker, and AdAway. Any reason I can't seem to delete this file when everyone else can? I also tried temporary disabling SuperSu, but no go.
Edit: I am a moron. I didn't have root permissions for ES File Explorer, so I couldn't delete the folder. Added that and deleted no problem. Leaving my idiocy here in case anyone else runs into this problem.
So to clarify, if we want android pay to work we can't use xposed?
Sent from my Nexus 6P using Tapatalk
Wehdota said:
I recently re-rooted my phone to install 6.0.1, and installed SuperSu 2.62 thinking it was systemless root. Android pay didn't work, so I re-downloaded Xposed. After reading that you need to delete the /su/xbin_bind folder to get Android Pay to work, I uninstalled Xposed (flashing the uninstaller) as well as Emoji Switcher (forums say it modifies /system) and set out to try it.
However, when I try to delete /su/xbin_bind, it says failed/cannot be deleted. I've tried with both ES File Explorer and Root Explorer. According to SuperSu, the only things left with root permissions are Nova Prime Launcher, Tasker, and AdAway. Any reason I can't seem to delete this file when everyone else can? I also tried temporary disabling SuperSu, but no go.
Edit: I am a moron. I didn't have root permissions for ES File Explorer, so I couldn't delete the folder. Added that and deleted no problem. Leaving my idiocy here in case anyone else runs into this problem.
Click to expand...
Click to collapse
sweet, i flashed 2.62 thinking it was systemless root too and android pay stopped working. came here looking for a solution, deleted /su/xbin_bind and android pay is working again!
Giving Root Access?
How do you go about giving ES File Explorer root access? Usually that is an automatic question asked.
how important or whats the purpose of /su/xbin_bind ??
if its included on the SU install, and we delete it... im trying to gauge if we are damaging something since it was meant to be there....
chaco81 said:
how important or whats the purpose of /su/xbin_bind ??
if its included on the SU install, and we delete it... im trying to gauge if we are damaging something since it was meant to be there....
Click to expand...
Click to collapse
I'd like to know this as well
leamdav said:
How do you go about giving ES File Explorer root access? Usually that is an automatic question asked.
Click to expand...
Click to collapse
Some apps don't ask for root by default, and only do so when you tell them you want to enable the features that require root. ES File Explorer is one such app, and to enable root features you have to open the side menu and toggle the option.
IMO this is the way all apps should be, as I don't always need the root features of every app, as it adds a security risk. I like how BoldBeast Call Recorder does this for example.
bkkzak said:
I'd like to know this as well
Click to expand...
Click to collapse
chaco81 said:
how important or whats the purpose of /su/xbin_bind ??
if its included on the SU install, and we delete it... im trying to gauge if we are damaging something since it was meant to be there....
Click to expand...
Click to collapse
It's a compatability mode that was automatically enabled for a while in older SuperSu.zips to allow developer's apps to work until they update their app to work with systemless root. It is now disabled by defult in newer SuperSu.zips, with the user having to explicitly enable it for its use.
Some apps that requires this to work (becuse they haven't updated their app to work with systemless yet) include:
- Secure Settings
- Es File Explorer.
Etc.Etc.
Hope this helps clarify things for you

Titanium Backup Help I9505

thanks to the brilliant efforts of all the members here at xda forums I was able to root my Samsung galaxy s4 i9505 bought may 2014 out of warranty (didn't need even though had no root) bought may 2014 successfully all things work fine my question is that:
titanium backup detects both backup directories as valid shows all the files but says with extSdCard shows a red folder saying "This folder is not writeable" what's the deal here and how to fix it
additional question not related to this topic exactly but better than starting another thread
I didn't use triangle away and don't give a fudge about knox counter but would really like to remove knox and all its components from phone
the stuff that's on the phone is taking a lot of space and I want some of it back
any help would be appreciated
Samsung Galaxy S4 GT-I9505 Qualcomm Snapdragon 600
Lollipop 5.0.1 Official Rom
Kernel Version: 3.4.0-5978264 [email protected] # ! (CF Auto Root)
Running Latest CWM for I9505
Angel-King said:
thanks to the brilliant efforts of all the members here at xda forums I was able to root my Samsung galaxy s4 i9505 bought may 2014 out of warranty (didn't need even though had no root) bought may 2014 successfully all things work fine my question is that:
titanium backup detects both backup directories as valid shows all the files but says with extSdCard shows a red folder saying "This folder is not writeable" what's the deal here and how to fix it
additional question not related to this topic exactly but better than starting another thread
I didn't use triangle away and don't give a fudge about knox counter but would really like to remove knox and all its components from phone
the stuff that's on the phone is taking a lot of space and I want some of it back
any help would be appreciated
Samsung Galaxy S4 GT-I9505 Qualcomm Snapdragon 600
Lollipop 5.0.1 Official Rom
Kernel Version: 3.4.0-5978264 [email protected] # ! (CF Auto Root)
Running Latest CWM for I9505
Click to expand...
Click to collapse
Enter titanium backup preferences and go to the "backup folder location" setting. Next, touch the "storage provider" and select something else, like documents provider if available.
This may fix that problem.
As for knox, just do a Google search on what apps belong to knox and delete them with titanium backup.
GDReaper said:
Enter titanium backup preferences and go to the "backup folder location" setting. Next, touch the "storage provider" and select something else, like documents provider if available.
This may fix that problem.
As for knox, just do a Google search on what apps belong to knox and delete them with titanium backup.
Click to expand...
Click to collapse
as I understand using your method does show the backup location in extSdCard
but the entire root directory containing system file i.e.
/storage says not writeable
/storage/extSdCard not writeable
/storage/emulated/ not writeable
but
/storage/emulated/0
/storage/emulated/legacy
are accessible by TB here it says <<Create New Folder>>
I'm going like this {} trying to solve this over and over navigating file path changing locations
also does freezing BusyBox would effect this
or is it affected by SuperSU's Mount namespace separation
I'm very confused and frustrated because finding an alternative to TB would be a miracle
Angel-King said:
as I understand using your method does show the backup location in extSdCard
but the entire root directory containing system file i.e.
/storage says not writeable
/storage/extSdCard not writeable
/storage/emulated/ not writeable
but
/storage/emulated/0
/storage/emulated/legacy
are accessible by TB here it says <<Create New Folder>>
I'm going like this {} trying to solve this over and over navigating file path changing locations
also does freezing BusyBox would effect this
or is it affected by SuperSU's Mount namespace separation
I'm very confused and frustrated because finding an alternative to TB would be a miracle
Click to expand...
Click to collapse
My method was a temporary fix for when marshmallow first released and app permissions were f'd up. It had the same problem. Thought it might help you too.
You can restore apps from the sdcard, but you can't backup to it.
Busybox is required for pretty much any rooted app. It also doesn't show up in Titanium Backup normally.
Maybe you should update it or install another version.
Or try the sd fix app by nextapp inc.
GDReaper said:
My method was a temporary fix for when marshmallow first released and app permissions were f'd up. It had the same problem. Thought it might help you too.
You can restore apps from the sdcard, but you can't backup to it.
Busybox is required for pretty much any rooted app. It also doesn't show up in Titanium Backup normally.
Maybe you should update it or install another version.
Or try the sd fix app by nextapp inc.
Click to expand...
Click to collapse
wil try it tomorrow
GDReaper said:
My method was a temporary fix for when marshmallow first released and app permissions were f'd up. It had the same problem. Thought it might help you too.
You can restore apps from the sdcard, but you can't backup to it.
Busybox is required for pretty much any rooted app. It also doesn't show up in Titanium Backup normally.
Maybe you should update it or install another version.
Or try the sd fix app by nextapp inc.
Click to expand...
Click to collapse
sdfix worked I OTA updated to lollipop so all is good user apps are able to write on extSdCard

Categories

Resources