保护cordova android应用程序的内容 [英] protect contents of cordova android app

查看:157
本文介绍了保护cordova android应用程序的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android开发一个Cordova应用程式(因此它是所有的HTML / CSS / Javascript程式码)。

I'm developing a Cordova app for Android (so it's all HTML/CSS/Javascript code).

这个应用程式内容,

虽然这些内容将从服务器和其他内容提供商加载,但是,我们希望它们可以在互联网上自由分发,主要是音频,视频和一些XML文件。用户可以解压缩APK并查看 www 文件夹,分析源代码(主要是jQuery和jQuery Mobile内容),并找到所有这些内容的直接路径。然后,轻松下载。这些路径可能在JavaScript代码或XML文件内。

Although those contents will be loaded from a server and other content providers, a user could unzip the APK and look into the www folder, analyze the source code (mostly jQuery and jQuery Mobile stuff) and find the direct paths to all those contents. Then, easily download them. Those paths might be inside the javascript code or inside XML files.

有什么办法防止这种情况吗?我知道JS obfuscators,但我相信他们很容易扭转。

Is there any way to prevent this? I know of JS obfuscators, but I believe that they're pretty easy to reverse.

推荐答案

资源是世界可读的设计
即使你不打包图像或soundFX文件作为资源,但是在第一次运行时下载它们,
用户具有根访问权限仍然可以访问文件
因为这与人类已经开发的任何其他流行操作系统没有显着不同,
不清楚为什么你认为这是一个Android问题
足够感兴趣的用户可以得到你的图像或soundFX文件在iOS,Windows,OS X,Linux等上。

"Resources are world-readable by design. Even if you were to not package the ""images or soundFX files"" as resources but were to download them on first run, users with root access could still get to the files. Since this is not significantly different than any other popular operating system humanity has developed, it is unclear why you think this is an Android problem. Sufficiently interested users can get at your ""images or soundFX files"" on iOS, Windows, OS X, Linux, and so on."

这篇关于保护cordova android应用程序的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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