Open GoogleCodeExporter opened 8 years ago
It's probably the permissions. Did you chmod the copied file to have the
correct permissions necessary for your application to read it?
Original comment by Stericso...@gmail.com
on 9 May 2013 at 6:43
No I did not do "chmod" on any of the database files but if this is the case
then how come the first database is working fine but not the second. As both
are copied from same location to a same folder.
Original comment by shrewd.h...@gmail.com
on 10 May 2013 at 3:52
Adding to above comment:
using "cat" without "chmod" made the second database work.
So, I dont think its chmod issue.
Original comment by shrewd.h...@gmail.com
on 10 May 2013 at 8:00
I'd guess it's a owner issue.
When you copy the database using RootTools you are copying the file as root
user. Therefore the new database will be owned by user "root".
When you do cat (I assume using adb shell) you are also user "root". Therefore
you anyway can read any file. However you need to change the ownership to the
app user who will open the database. (Android creates a new user for each app)
Maybe you can also open the database if you make it world read- and writeable
(chmod a+r, chmod a+w). But maybe you then just run into security issues and
Android won't allow this. You can give it a try first, because finding out the
user for an app is not trivial.
Original comment by tob...@schulz-hess.de
on 4 Jul 2013 at 8:40
I have another problem with move/copy files in my Android app. If I copy a file
with spaces in name (hello world) for me it didnt work but without spaces it
works (helloworld).
Original comment by dnielfe
on 3 Oct 2013 at 11:10
Original issue reported on code.google.com by
shrewd.h...@gmail.com
on 9 May 2013 at 6:20