[Q] SuperUser and Binding to privileged ports - General Questions and Answers

Heya!
I couldn't really find any threads describing how to solve my particular problem, so here it goes.
I need to listen on port 80 and 53, for this I figured that I needed both the INTERNET permission and SuperUser (since creation of the sockets throws a permission denied exception).
But the thing is, I have added the app to have root privileges, and the permission is added to the manifest, but I still get the permission denied error.
Any ideas on how I should solve this problem? Any help would be appreciated

Related

Custom ROMS: Make sure /dev/tun owner is system

If people are having trouble with OpenVPN or Anyconnect ICS on your custom ROM, this may help:
I spoke to folks at Feat VPN - "I am afraid that so far all custom ROMs that we've
seen have this permission problem with /dev/tun. It seems to be a known
problem at least to the CyanogenMod people, but so far it does not seem to
be fixed in any of the custom ROMs. A workaround would be to manually
change the permissions of /dev/tun. However, this workaround is only
temporary as a reboot of the device resets the permissions. Also, this
workaround requires root and some experience using a command line shell on
Android.
If you'd like to try the workaround, then change the owner of /dev/tun to
"system" and the group of /dev/tun to "vpn". Also, give both, owner and
group, read and write access to /dev/tun (i.e., mode 0660)."
Gummy ICS 1.2.0 had right group and rights, but owner was vpn - needed to be system. Changing owner allowed OpenVPN tunnel AND AnyconnectICS to work for me. But owner doesn't persist on reboot.
Long story short, if you're building a custom ROM, please check owner/group/rights on /dev/tun
thanks!!!
tbig said:
If people are having trouble with OpenVPN or Anyconnect ICS on your custom ROM, this may help:
I spoke to folks at Feat VPN - "I am afraid that so far all custom ROMs that we've
seen have this permission problem with /dev/tun. It seems to be a known
problem at least to the CyanogenMod people, but so far it does not seem to
be fixed in any of the custom ROMs. A workaround would be to manually
change the permissions of /dev/tun. However, this workaround is only
temporary as a reboot of the device resets the permissions. Also, this
workaround requires root and some experience using a command line shell on
Android.
If you'd like to try the workaround, then change the owner of /dev/tun to
"system" and the group of /dev/tun to "vpn". Also, give both, owner and
group, read and write access to /dev/tun (i.e., mode 0660)."
Gummy ICS 1.2.0 had right group and rights, but owner was vpn - needed to be system. Changing owner allowed OpenVPN tunnel AND AnyconnectICS to work for me. But owner doesn't persist on reboot.
Long story short, if you're building a custom ROM, please check owner/group/rights on /dev/tun
thanks!!!
Click to expand...
Click to collapse
how can i change the owner to "system? and group to "vpn"?
please pm me.. thanks
dummypirate said:
how can i change the owner to "system? and group to "vpn"?
please pm me.. thanks
Click to expand...
Click to collapse
You could try a file explorer like root explorer - long press the file and select 'change owner' option :thumbup:
nikufellow said:
You could try a file explorer like root explorer - long press the file and select 'change owner' option :thumbup:
Click to expand...
Click to collapse
I already did, but the set-up of feat vpn still fails..
On my gio I left the ownership as was but set the permissions on the /dev/tun file to 0666 and then openvpn started to work. (using adb shell: chmod 666 /dev/tun). However after a reset the permissions are back to 640.
The OpenVPN app from Arne Schwabe has an option to fix the /dev/tun permissions. This helps on my phone.

[Q][4.2] SDcard user permission in multi user environement

Hello, as i'm sharing my device using google's multi user feature, i tried to make some folder from the sdcard "read only" for everyone but root, i faced a problem when chmod 755 /path/to/my/shared/folder/ didn't work.
I tought i was just dumb and didn't knew how to do it in command line, maybe in Android it doesn't work that way and it's normal to not have my values applied. So i fired up CyanogenMod's file manager in root mode and tried to untick write permission for the sdcard group on this folder and got welcomed by a message stating that for security reason i cannot edit permission on sdcard...
Is this problem CyanogenMod specific ?
How not letting me restrict other users will help with my data security ?
Is there a workaround ?
Regards

A quick note about Su permission denied

If following the guide found at http://forum.xda-developers.com/showthread.php?t=2221039&page=11 and you run into the permission denied error when trying to verify superuser access there is one thing you should ensure before freaking out.
On my first attempt I followed the guide dead on and after Adb shell I entered Su. This caused denial of permission. When changing to Adb shell then su it worked flawlessly.
I wanted to reply in the thread as it seems many people get stuck on this step. Unfortunately with my low post count I'm not able and therefore this seemed the most appropriate place. If someone is able can you please place this information in that thread so others can easily access it? I know this is my first time playing with a droid and trying to root and this would have saved me about a minute of frustrations. It can't hurt anyone, only help.
Thanks.

Frozen boot animation no recovery out of space all files/folders read only...more...

Jp5 tablet jail broke rooted android jellybean. Stuck on frozen boot animation, all files and folders read only, won't chmod or chown (permission denied) out of space message when trying to push, won't pull...adb server won't start tried the. Setprop persist etc. No result. Am won't work pm returns segmentation fault. VM returns 1. Kill all won't work. Wipe all permission denied. Won't master clear etc etc etc...can access via emulator and USB cable but can only look around. Data directory won't ls permission denied. SDcard isn't showing up when ls in /. What else can I add....basically screwed but still persistent and hopeful. please help me, no screenshots available. Oh and tried the rm rf/data* (not sure I wrote that right) in an attempt to free up space to push a service jar, no success. An error shows up in log cat re android os. Hmm, think that's all I remember off the top of my head. There are more errors and faults. Could possibly be related to the ''raccoon'' thing in system/bin I was messing with adb and was curious. Maybe or not. Maybe something else. Help and thanks.
Jason965 said:
Jp5 tablet jail broke rooted android jellybean. Stuck on frozen boot animation, all files and folders read only, won't chmod or chown (permission denied) out of space message when trying to push, won't pull...adb server won't start tried the. Setprop persist etc. No result. Am won't work pm returns segmentation fault. VM returns 1. Kill all won't work. Wipe all permission denied. Won't master clear etc etc etc...can access via emulator and USB cable but can only look around. Data directory won't ls permission denied. SDcard isn't showing up when ls in /. What else can I add....basically screwed but still persistent and hopeful. You can email me [email protected]. please help me, no screenshots available. Oh and tried the rm rf/data* (not sure I wrote that right) in an attempt to free up space to push a service jar, no success. An error shows up in log cat re android os. Hmm, think that's all I remember off the top of my head. There are more errors and faults. Could possibly be related to the ''raccoon'' thing in system/bin I was messing with adb and was curious. Maybe or not. Maybe something else. Help and thanks.
Click to expand...
Click to collapse
Jelly bean and phones that used jelly bean are no longer viable for today's systems, they are way too un-secured and are severe risks to your personal information, privacy and home network security. Not to mention, most of today's apps are not compatible with Jelly Bean.
Sent from my SM-S767VL using Tapatalk
Thank you for your reply
I understand I am using obsolete technology, but this is all I have and I am desperate for a solution. I cannot afford anything else. If someone could at the very least explain how to get around the permission denied so I can wipe it, I will be able to reinstall everyrthing else. Thank you for your time and attention to my plight.

Android permissions issue

Sorry if this is off topic, just didn’t know where else to go for suggestions.
im trying to load an apk but always get this error. I don’t get asked any permissions when loading. (Android 10 )
ive tried manually approving all permissions but the attached permissions request is not listed.
could anyone point me in the direction to fix this!
Access to android.permission.REQUEST_INSTALL_PACKAGES is Critical
Please enable access to
android.permission.REQUEST_INSTALL_PACKAGES in App Settings
i can’t locate this anywhere to enable it.
thanks in advance!

Categories

Resources