已取消

android application running as root

hello guys

basically i am running some system commands using android application some of my commands need root privileges

now i have tried in my java application to do

####################

p = [login to view URL]().exec("su");

os = [login to view URL]();

dos = new DataOutputStream(os);

[login to view URL](command + "\n");

[login to view URL]();

p = [login to view URL]().exec(command);

reader = new BufferedReader(new InputStreamReader([login to view URL]()));

while ((line = [login to view URL]())!= null) {

Log.d("iBridge-autodetect", " line = " + line);

}

[login to view URL]();

###################

but i get this error message

#########################

01-01 01:10:51.378 1080-1114/[login to view URL] W/[login to view URL]: [login to view URL]: Error running exec(). Command: [busybox, lsusb] Working Directory: null Environment: null

01-01 01:10:51.378 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.380 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.380 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.380 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.380 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.380 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.382 1080-1114/[login to view URL] W/[login to view URL]: Caused by: [login to view URL]: Permission denied

01-01 01:10:51.382 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL](Native Method)

01-01 01:10:51.382 1080-1114/[login to view URL] W/[login to view URL]: at [login to view URL]([login to view URL])

01-01 01:10:51.382 1080-1114/[login to view URL] W/[login to view URL]: ... 5 more

your task is to make sure i am

your task

1) to make sure my android application can run system command with root privilege?

Regards

Nick

技能: 安卓, 嵌入式软件, 软件构架

查看更多: system err, root your android, root my android, new android os, java system err, java command line application, err java, busybox android, android thread, android runtime, android permission, android guys, android command line, android busybox, basic gps running application android code, gps running application android code, prting application android, webex application android, soundboard application android, database application android

关于此雇主:
( 1条评论 ) Woking, United Kingdom

项目ID: #11084246

6 威客就此工作平均出价 $170

KESHAVINFOTECH

Hi Thanks for your valuable time. :-) Please check below points : 1. hello guys basically i am running some system commands using android application some of my commands need root privileges now i have 更多

$250 USD 在15天内
(375条评论)
8.3
JinDongZhe

We are web & mobile development team of JinDongZhe freelancer We have powerful back-end(Java,Spring Framework, Hibernate, JPA, Oracle, Hadoop etc) and front-end(Android, iPhone, Hybrid App, Mobile web, Sencha ExtJS, 更多

$210 USD 在3天内
(78条评论)
7.2
AdeelAslam4

Hi there! I have read what you exactly need, however I would like to ask you a few questions. I wouldn't call myself a master but I do work smart and do not rest until I get the job done. Please feel free to ping me an 更多

$188 USD 在3天内
(25条评论)
6.7
vantuanvn

Hello sir, I am from Vietnam, I have 8 year in Software Industry with many running product. I have experience in web application with many large sites, also enterprise applications and mobile applications. My 更多

$60 USD 在3天内
(83条评论)
6.1
emiliogaiines

I have several years of Android experience and have published many apps on the Play Store. I have also developed professional apps for both private parties and companies. I am used to developing layouts with Material 更多

$111USD 在1天里
(1条评论)
2.6
wasyl123

Hello. I have good skills in Android and mobile web development with over 8 years experiences. I am always ready for you and your job. If you give me a chance, I shall do my best for your job success. I think thi 更多

$200 USD 在2天内
(1条评论)
0.0