如何保存在安卓APK私人字符串值? [英] How to save private string values in android apk?

查看:152
本文介绍了如何保存在安卓APK私人字符串值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以节省资源/价值/ strings.xml中的字符串,但如果有人拆卸的DEX文件或apk文件那么他将能够看到HARD $ C $的cD字符串或RES /价值/ strings.xml中的字符串

I know i can save strings in res/values/strings.xml but if someone disassembles the dex file or the apk file then he will be able to see HARDCODED strings or res/values/strings.xml strings.

有储存,如果拆解,不会被读取字符串的方法吗?

Is there a way to store strings that wont be read if disassembled?

推荐答案

简单 - 没有。

如果你能解密/提取您的APK任何字符串,有足够的知识,可能有人会去翻你的code和重新cosntruct用来提取这些字符串的算法。然后自己提取它们。

If you can decrypt/extract any string from your apk, potentially anyone with enough knowledge may look through your code and re-cosntruct the algorithm you use to extract those strings. And then extract them by herself.

当然,你可以使用一些技巧,使之更难。什么招数可以用来实际上是你的,Android不默认(据我所知)提供任何

Of course you may use some tricks to make it harder. What tricks can be used is actually up to you, Android doesn't provide any by default (AFAIK).

这篇关于如何保存在安卓APK私人字符串值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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