To change read/write access from the progrm

thomas at 03h31
14
Sep
2010
To change read/write access from the progrm

Dear All,
I am trying to change the read/write access of the seraical port from my progrm. My code is as follow. The probelm is at the following line. Any suggestion!
su = Runtime.getRuntime().exec("/system/bin/su");
Thanks, Thomas.

if (!device.canRead() || !device.canWrite()) {
try {
/* Missing read/write permission, trying to chmod the file */
Process su;
About
This topic belongs to the forum
  • Numbers of topics : 1006
  • Numbers of messages : 4570
  • Numbers of users : 877
  • Numbers of points : 559
Similar topics
Dear All, How can I change the read/write access of ttySC port permanently? When I switch off the odroid, they are changed back to their original state. Thanks, thomas
If so, how does it work? This is very simple normally, but I can't figure out how to do this in Selenium IDE.
Wondering if it's possible to add a URL and some more text to this page. Information Sorry, but only users granted special access can read topics in this forum.
how to change background when write topic? my current background is blue...i want to change it become white... how to change? thank you
Hi, how to capture the alert message that is shown via response.write() My code snippet: Code:if (Requestaction == "add")                     {        
Forums from same category
See also
more_less
Informations

0 Replies For the topic :
"To change read/write access from the progrm "

This topic has been viewed 426 times.

Last message :
14/09/2010 at 03h31 by "thomas"