How do i give my app SU permission? - Nexus One General

im writing an app and it requires root permissions, can anyone help me out?

Normally you execute "sh" to open a shell and then you keep streaming commands to it.
The only difference is that you need to use "su" instead of "sh"
See http://code.google.com/p/netmeterle...statusled/utilclasses/ChargingLEDLib.java#295 for an example

Thank you so much!
Sent from my Nexus One using XDA App

Related

Superuser permissions removal

I am able to open terminal emulator, but I don't know the commands to remove superuser permissions app. Can someone help me out? or is there an easier way?
HotdogH20 said:
I am able to open terminal emulator, but I don't know the commands to remove superuser permissions app. Can someone help me out? or is there an easier way?
Click to expand...
Click to collapse
Why in the world do you want to remove the app that allows you to use root?

[Q] sqlite3 ?

Hey, just noticed that along with missing push/pull which i know has a work around it is also missing sqlite3. I tried looking for a binary and using the one that is in the sdk but even after chmod i get permission denied. Anyone know anything about this?
Maybe try
#chown root
#chgrp 1000
?
Sent from my SGH-T959 using Tapatalk
Well got the binary out of g1, it also needs to go into /system/xbin or else I got permission errors.
Sent from my SGH-T959 using XDA App

How does one get su in ADB?

I am rooted with S-OFF on the phone. But, unlike the Vibrant, adb denies me su access when I enter "su" at the $ prompt. Anyone else see this?
Once you enter ADB through the SDK tools if I remember right, just start out with the 'su' command- I just caught it a couple days ago in one of the mt4g rom threads under the android development section- maybe a search for 'su' in those threads- I can't take the time to look right now- I'm @ work
Some roms connect by default as Su over adb... if you see a $ your regular user, # is root prompt...
If you have a $ and you get denied still, go to your Su app and confirm that adb has Su permission or at least isn't denied...
Sent from my Desire HD using XDA App
ESKIMOn00b said:
Some roms connect by default as Su over adb... if you see a $ your regular user, # is root prompt...
If you have a $ and you get denied still, go to your Su app and confirm that adb has Su permission or at least isn't denied...
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Thanks for the replies so far. ADB is not listed in the su app. How do I add that? Wouldn't it be the daemon that needs root access?
EDIT: Got it. Duh! It would help if I look at the phone while requesting root access. Thanks!
yes it should.... i was wanting you to check that it was not in there with specific permission to deny...
youll need to hit allow on the phone just like any SU call BTW...
Editing my post while you posted. Thanks!
Confused me too the first time.... I got it figured out pretty quick tho....
Give a look at wireless adb its super sweet! Market wireless adb...
Sent from my Desire HD using XDA App

ADB question

I have a question regarding the adb push command. Can the same thing be accomplished by moving files with root explorer? For example, adb push randomfile.xxx system/data, can I just move the file to system/data with root explorer? Sorry if my command lines are incorrect, im going off memory. Thanks
Sent from my HTC Glacier using XDA Premium App
hlee3374 said:
I have a question regarding the adb push command. Can the same thing be accomplished by moving files with root explorer? For example, adb push randomfile.xxx system/data, can I just move the file to system/data with root explorer? Sorry if my command lines are incorrect, im going off memory. Thanks
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
Yes you can do the same thing with any thing like Super Manager, root Explorer or Android Commander.
Thanks for the reply

Sqlite3 terminal?

I'm sorry if this is a noobish question but can anyone tell me what terminal and where it is that I'm supposed to use to pull and push files? I'm trying to stop the nook color Ota updates with these commands and they said to move sqlite3 file to my system/ bin then use terminal to type in these scripts. I have no idea what terminal they are talking about. Please help!! Thank you
Sent from my SAMSUNG-SGH-I997 using XDA App
Terminal emulator on the market
Sent from my HERO200 using XDA App

Categories

Resources