已取消

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 = [url removed, login to view]().exec("su");

os = [url removed, login to view]();

dos = new DataOutputStream(os);

[url removed, login to view](command + "\n");

[url removed, login to view]();

p = [url removed, login to view]().exec(command);

reader = new BufferedReader(new InputStreamReader([url removed, login to view]()));

while ((line = [url removed, login to view]())!= null) {

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

}

[url removed, login to view]();

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

but i get this error message

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

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

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

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

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

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

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

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

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

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

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

01-01 01:10:51.382 1080-1114/[url removed, login to view] W/[url removed, login to view]: ... 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

7 威客就此工作平均出价 $168

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天内
(341条评论)
7.9
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天内
(16条评论)
5.3
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天内
(31条评论)
4.9
sabirshah4545

I have a great experience in this field. Kindly, contact me now and I’m sure we will make a reasonable deal thanks a lot.

$666 USD 在30天内
(4条评论)
4.5
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天内
(3条评论)
2.6
$155 USD 在3天内
(3条评论)
2.6
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
BeautifulFemale

Dear client Greeting of the day! We are happy to discuss our proposal with you. KEY POINTS THAT MAKE US DIFFER FROM OTHERS: ~ We have 7 years of experiences in Unity 3D, Xcode, CoCoa 2d, Phonegap and major i 更多

$100 USD 在3天内
(6条评论)
1.8
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天内
(0条评论)
0.0