Any Android App pro...
 

MegaSack DRAW - 6pm Christmas Eve - LIVE on our YouTube Channel

[Closed] Any Android App programmers know if this is possible???

14 Posts
8 Users
0 Reactions
65 Views
Posts: 0
Free Member
Topic starter
 

I have an app, within the app is an embedded database of questions.

I basically want that database but have no idea what I am looking at!!

I have managed to decompile the .apk file and have been greeted with numerous folders, most of which in smali..... and thats where my skill set stops!

Is it likely to be possible to get at this database??


 
Posted : 08/12/2014 10:17 am
Posts: 4597
Free Member
 

I think android uses MySQL, so in theory should be possible to get the database file and copy it to your pc and access it with a MySQL instance. However it may require a username/password that you probably don't know.

Its probably also against the terms and conditions of the app to extract the data, but I guess it depends what you're going to do with the data.


 
Posted : 08/12/2014 10:24 am
Posts: 0
Free Member
 

The database isn't stored within the application itself.

You would need to root your device to give yourself access to the data directories.

For example the BBC weather app stores databases in the root/data/data/bbc.mobile.weather/databases folder.

Database files end with the extension db and are usually SQL Lite databases.


 
Posted : 08/12/2014 10:32 am
Posts: 31206
Full Member
 

Seems a pretty complicated way to cheat. Wouldn't it be easier to just Google for the answers?


 
Posted : 08/12/2014 10:36 am
Posts: 0
Free Member
Topic starter
 

Ha - its actually the questions themselves I want for the future - they are multiple choice and tell you the answer anyway!

I have a rooted device, managed to pull the apk file and data from the device, decompiled it and found the file!

Here was me thinking it would be in a nice easy to use database, but its actually in text on a JSON file that I guess the app uses the code within the file to display multiple choice and let you know the answer..... now I have to make this JSON file usable!! ARGH!!!!


 
Posted : 08/12/2014 10:59 am
Posts: 1460
Full Member
 

Is it Akinator?

I'd have thought It'll be stored as a tree so json makes sense doesn't it?


 
Posted : 08/12/2014 11:03 am
Posts: 0
Free Member
Topic starter
 

Just googled Akinator and no - but that looks fun.

Its a revision app, that uses multiple choice questions to test your knowledge.

The JSON file appears to be in sections with the 4 possible answers (one marked as true), the responses if you get it correct or incorrect and the question narrative... seeing as its already written in java I can imagine that some how this can be read in its current form and displayed perfectly!


 
Posted : 08/12/2014 11:08 am
Posts: 1460
Full Member
 

Oh OK I just assumed it was akinator because I have considered doing that (Though I think they store their data online), in that case it probably isn't a tree structure if the questions are independent.

Anyway have fun picking it apart with no documentation!! (I'm not jealous) 🙂

EDIT: Just use a JSON lib (Doesn't have to be java pick your favourite language I'm sure there will be a mature JSON library - I've used jsoncpp which was easy enough if you use c++).


 
Posted : 08/12/2014 11:10 am
 IA
Posts: 563
Free Member
 

Can you not just get the app source and use that?

Or are you really asking in here for help in stealing someone else's work/IP?


 
Posted : 08/12/2014 11:11 am
Posts: 1460
Full Member
 

I understand he's just picking apart a plain text file that's installed along with the app.

EDIT: But admittedly I don't know what the license is so you have a point.


 
Posted : 08/12/2014 11:13 am
Posts: 0
Free Member
Topic starter
 

I already have the app and access to the questions - but need them on PC rather than integrated!!


 
Posted : 08/12/2014 11:26 am
 IA
Posts: 563
Free Member
 

Right, but just because you have a copy of something doesn't give you a right to reverse engineer and redistribute it. E.g. Photos online, text in books etc.

Why not run the app on the emulator?


 
Posted : 08/12/2014 11:44 am
Posts: 7985
Free Member
 

Android apps often use an SQLite database. Look for a .SQLite extension.


 
Posted : 08/12/2014 11:50 am
Posts: 1727
Full Member
 

Is there any way of deleting APPs I don't use?


 
Posted : 08/12/2014 11:55 am
Posts: 1460
Full Member
 

Is there any way of deleting APPs I don't use?

Lots of ways, easiest is probably tap and hold on them in the menu and drag to the "Uninstall" thing that appears at the top of the screen.


 
Posted : 08/12/2014 11:59 am