是否有可能访问Android的应用程序的的SQLite数据库在我的手机? [英] Is it possible to access the SQLite-database of an Android-app on my phone?

查看:111
本文介绍了是否有可能访问Android的应用程序的的SQLite数据库在我的手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个应用程序,用户在游戏过程中做一些事情,而这些动作都记录在一个SQLite数据库。在游戏结束时,应用程序presents通过一个屏幕,由游戏管理员(如,由游戏管理员观看屏幕物理读出)中读出这些日志。是否有某些方面的参赛者来操作数据库,如果没有,有什么安全措施,从这样prevent他们?

I am creating an app where the user does some things during a game, and these actions are logged in a SQLite-database. At the end of the game the app presents these logs through a screen, which are read by the game administrators (like, physically read by the game administrators watching the screen). Is there some ways for the contestants to manipulate the database, and if not, what security measures prevent them from doing this?

推荐答案

数据库存储在 /data/data/your.applications.package/databases 。通常情况下这个位置只能是由Android操作系统的应用程序创建的用户访问。没有其他用户能够访问此位置,除非该设备根。然后任何用户可以在电话上访问的任何位置和操作数据。

The database is stored under /data/data/your.applications.package/databases. Normally this location could only be access by the user the Android OS created for the app. No other user is able to access this location unless the device is rooted. Then any user can access any location on the phone and manipulate the data.

所以,如果你作弊,你需要一些方法来检查,如果在数据库中的值不变想prevent用户。也许你可以存储在服务器上的某种指纹进行检查。

So if you want to prevent users from cheating you need some way to check if the values in the database are untouched. Perhaps you can store some kind of fingerprint on a server to check this.

这篇关于是否有可能访问Android的应用程序的的SQLite数据库在我的手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆