about Runtime.getRuntime().exec

by tstanly » Thu, 20 Aug 2009 12:11:03 GMT


Sponsored Links
 hi all,


I am use the command:
Runtime.getRuntime().exec("chmod 777 /data");


but still not to change the file mode?


why fail?

thanks
--~--~---------~--~----~------------~-------~--~----~



about Runtime.getRuntime().exec

by Dianne Hackborn » Thu, 20 Aug 2009 13:19:10 GMT


 Apps don't have permission to change /data.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. MapView.postInvalidate() triggers redundant call to onDraw()?

While optimizing code I found that, somehow inherently, a single call
to com.google.android.maps.MapView.postInvalidate() triggers two calls
to com.google.android.maps.onDraw(), within a single event cycle. This
of course noticeable slows down Overlays that display a lot of
elements on a MapView, as any additional calls to onDraw() within a
single event cycle are redundant.
I was able to trace the problem back to
com.google.android.maps.OverlayBundle, which calls
com.google.android.maps.Overlay.draw() from lines 42 and 45... This is
Donut 1.6 but I know this was the case in earlier releases of Android
as well.  I tried to rearrange and disable a few things in my app
(such as the display of zoom controls), but could not isolate the
condition that triggers these redundant calls. I wasn't able to track
down OverlayBundle.java either, to see what's in that particular area
of the code.... so my question is whether anybody seen this effect as
well/or is able to provide a few pointers?


--~--~---------~--~----~------------~-------~--~----~

2. device shape configuration

Hi,

The current PhoneWindowManager code depends on DevPhone type device.
If it gets the EV_SW event, then the orientation will be changed.
How can I do for a cramshell type device without removing the current
code?

Do you have any plan that the platform has a device shape
configuration?


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Market style buttons

4. How to add external static libraries to Android.mk?

5. :Training on Advance C and Linux System Programming from Expert

6. DDMS doesn't show my G1

7. Mutex issues.. :(