HI all Again,
I am makaing an application which performs the memory(file read write edit
modify) and cpu(executing comples alogortihms of mathematics) opeartions
also similiarly I am doing the I/O operations on the device memory(file
write read on sqlite DB).I want the root permission for copyingm
certain files on the memory and IO (test files) for that I am doing push
commands at the adb shell and doing chmod to a particular directory (/data)
 where Iam copying the tets files.This is happening in root mode only , so I
am doign this for two pruporses :

*(1) Enabling the read write permission on the device memory and for IO
operation*
*(2) for producing the log files at the end which will get copied on the
device memory.*

But for this I Have to manually to it on the shell.To automate it I ahve
written a script and trying to run it from the application level but since
it is running under application(user level context) I am not able to enable
to do it as I am not doing it on the shell as a root 9 as I was doing it
manually earlier).How do i get arround with it?How can i do it frmo the
application level?Or doing manually at the shell prompt is the only way I
can do it.I want it to automate so that user doesnt have to do this and he
simply run the android application which internally does this
opeartions(more root like operations, chmod, copying test file etc)

here is my script :

chmod 777 /data

adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile1
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile2
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile3
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile4
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile5
/data/myfolderonDevice/



I need above steps to be automated by the application wihtout doing it
manually.

 *Other way round for this problem is --> Is there any folder in the android
file system where i could create a database(sqlite) and do the file
operation(read write ) in this case I dont have to enable the chmod
permission .*



Plz assit, help, groan..

Rgds and Thanks in advance,
Saurabh



"..pain is temporary.....quitting lasts forever......"

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to