So I'm creating an app that needs to copy the database of another app locally so that I can view it. Unfortunately, once I copy it using cp, the file's user and owner group is set to root, which, I believe, is resulting in my program's crash when trying to open the database.
My question is, how can I copy the database without changing the user and owner groups? If this isn't possible how can I figure out the app's user and owner group so I can change it correspondingly.
Related
Hey ho peeps,
I have been putting together a simple app which uses a sqlite database. According to Google, app databases should be stored in /data/data/app_name/ but on my phone this directory is empty. Do I need to root my phone to access my database or are they stored elsewhere on the SGS?
Cheers!
BMF
Yep, you need to have superuser permissions.
My pc crashed the other day. I've rebuilt a new one and installed all my software, but the keystore directory to my android app was not backed up. I know the password, alias and directory it was all in, but after re-creating that directory, it still wants me to create a new keystore. What should I do? If I create a new keystore using the previous keystore's password/alias, will the market let me upload a new version of my app?
No. You're pretty much screwed. If you lose you private key, there is no way to recover it.
So what does that mean for my app in the market. What do I do the next time I have an update to upload?
I'm not sure. You'll have to ask them.
removed
Wow, so I lose my download count, comments, ratings, and confuse everyone that already has my app and has to download one with a different name. It seems like there should be a more efficient way to resolve this type of problem.
Read up on Public-key cryptography. There really is no other way. You must keep your private key and must keep it private for the system to work. Make a copy and burn it to a CD (maybe 2 CDs), then store it someplace safe.
So what's normally done here... do I delete my existing app and then publish a similarly named one with my new key, or do people just leave both the old and the new apps up?
...backed up my keystore just in case after reading this.
I do have a copy of my signed apk. If I re-create the directory that was my keystore (I do know the passwords and alias names) and put the signed apk in that directory...will that then let me build a properly signed apk using my existing key?
You didn't read the link I posted I see.
The answer is no. If your private key is gone, it's gone. You could try and brute-force it from your public key if you've got nothing better to do with a super computer for a few centuries.
So for the future, if I want to back up my keystore, what specifically do I need to back up? Is it the directory that I told Eclipse to put the signed apk in? I can't remember anything other than the apk being in the directory.
removed
I'm trying to access my Final Fantasy IV data folder to backup my save folder, but I can't seem to find the folder even though I already researched the specific directory. How do I access the "hidden" directory? I am using root access explorers set to show hidden files but that doesn't help.
Here is a link that shows the specific directory to backup the save file (read the second comment).
As title states, to access the obb folder, do I need to be rooted?
no you dont need to be rooted.
I dnt see the obb folder inside the Android folder.. its normally
Android > obb
what file manager are you using? Are you checking for the obb folder on the memory card or internal memory? What game/app are you trying to install that you need the obb folder?
S7 built-in file manager... and of course internal memory...
hmm it should be available by default try creating the folder and placing whatever game/app you want in side it.
doesnt seem to work... tried a few times with different app... just FCs
Out of interest, If you do not see it, You may not have an application thats created Obb.
This folder is not created unless a package is stored in here.
you can create it manually via file manager / file browser
(If you create it manually, there is every chance you need to set the permissions and assign it a group)
obb is owned by media_rw (Group id 1023)
The permissions on this folder are:
rwxrwx--- OR 0770 (Owner and Group Full read Write Execute)
If the folder exists and is hidden, the application will not allow you to create the folder.
Delete the folder and download one of the following from the store:
This should create the OBB folder
StarKnight
Brain it on
The Room 3
Thumb drift
Ilttle Drew
Odyssey
(Just some packages i have in Obb)
dave7802 said:
Out of interest, If you do not see it, You may not have an application thats created Obb.
This folder is not created unless a package is stored in here.
you can create it manually via file manager / file browser
(If you create it manually, there is every chance you need to set the permissions and assign it a group)
obb is owned by media_rw (Group id 1023)
The permissions on this folder are:
rwxrwx--- OR 0770 (Owner and Group Full read Write Execute)
If the folder exists and is hidden, the application will not allow you to create the folder.
Delete the folder and download one of the following from the store:
This should create the OBB folder
StarKnight
Brain it on
The Room 3
Thumb drift
Ilttle Drew
Odyssey
(Just some packages i have in Obb)
Click to expand...
Click to collapse
Im not rooted so I cant check/change permissions.. But I did install the thumb drift game and the OBB file showed up.. still just getting FCs
I'm using an s5 on RR 7.1.2 and I can't access obb. It's there but the folders inside are empty. And I can not move files into the directory.... I don't know why.
Hello everyone and Happy New Year !
I was just given a NON-rooted Galaxy J5. I would like to recover the SMS and MMS to return them to its former owner in a readable form (HTML or individual files and also extract the images from the MMS). I just tested Epistolaire under F-Droid and I recovered the JSON export with adb under Linux, but I cannot convert to HTML. I do not want to synchronize with GAFAMs, I want a local solution. I saw another solution wich consists to recover with adb the sqlite database of SMS/MMS but I can not do it because it requires root privileges (but to root, you have to make sure that the data is saved before ?!? => it bites the tail ).
Do you have a solution for me?
With adelphity,
lnj