문제

I have an android application apk file. I want to open a database file from apk file: is there any official tool to open a database file from apk file?

By using extractor I extract that apk file. Finally I get some files namely assets, bin, lib, res folder, but I cant find the database file and layout files.

I searched the path given below:

assets->data

but I didn't found that data folder inside the assets folder. Why?

도움이 되었습니까?

해결책

Database that is actually used is not stored in the APK. It needs to be in a writable location. Canonically it's in databases under the application's data directory e.g. /data/data/package.name/databases.

Many apps generate their databases dynamically in code. Some apps ship with a pre-populated database in assets, but even they need to copy it to a writable location before using.

다른 팁

In some cases developer might have loaded data from ms excel sheet/textfile/sqllite. so if that's the cases, the files will be under res/raw folder

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top