是否有可能以某种方式破解的apk文件,使计费的许可? [英] Would it be possible in some way to hack an apk file to enable billing permission?

查看:134
本文介绍了是否有可能以某种方式破解的apk文件,使计费的许可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Adobe的PhoneGap构建做一个Android应用程序。它是完整的,我在其提交给谷歌播放市场的边缘,但我最近才发现,为了支持支持的应用程序,我需要启用开票的权限。预期的商业模式

I have made an Android app using Adobe Phonegap Build. It is complete and I'm on the verge of submitting it to the Google Play market, except that I only recently discovered that in order to support the intended business model that supports the app, that I need to enable "billing" permissions.

不幸的是,现在看来,这是不以任何可能的方式使用的config.xml 文件,其中PhoneGap的权限设置的休息,使计费权限。结算尚未,而且可能永远不会成为通过PhoneGap的支持。

Unfortunately, it seems it is not in any way possible to enable the billing permissions using the config.xml file where Phonegap sets the rest of the permissions. Billing is not yet, and might not ever be, supported by Phonegap.

所以,现在我卡住了,不知道是什么我的选择是,如果我甚至有什么。它是在任何可能的方式来破解或修改由Adobe的PhoneGap产生的 APK 文件的建立,使计费权限?有没有其他办法可以连接到我的应用程序计费的许可?

So now I'm stuck and wondering what my options are, or if I even have any. Is it in any way possible to hack or modify the apk file generated by Adobe Phonegap Build to enable billing permissions? Is there any other way I can get the billing permission attached to my app?

(请注意,如果它已经能够建立我的原生Android code程序的话,我会采取从一开始的选择,所以请不要认为我应该解决这个问题,重写应用程序。对于好是坏,这点我在现在。感谢您的理解。)

推荐答案

这应该是可能的使用apktool,在这里找到:

This should be possible using apktool, found here:

http://ibotpeaches.github.io/Apktool/

您应该能够去code XML资源,并重新打包为APK。

You should be able to decode XML resources and repackage as an APK.

反编译APK是这样工作的:

Decompiling the apk is done as follows:

java -jar apktool.jar decode app.apk app

如果它只是你需要添加你需要添加下面一行到AndroidManifest.xml文件开票权限:

If it is just the billing permission that you need to add you will need to add the following line to the AndroidManifest.xml file:

<uses-permission android:name="com.android.vending.BILLING" />

在你做出你可以重新编译成一个APK使用必要的修改:

After you have made the necessary changes you can recompile into an apk using:

java -jar apktool.jar build app app_new.apk

几个环节,你可能会发现有用的:

Several other links that you may find useful:

<一个href="http://stackoverflow.com/questions/8209816/android-is-it-possible-to-manually-change-somethings-in-manifest-file-directly">Android,它是可以手动直接从APK更改清单文件出头?

<一个href="http://stackoverflow.com/questions/4191762/how-to-view-androidmanifest-xml-from-apk-file/4191807#4191807">How从APK查看AndroidManifest.xml文件?

这篇关于是否有可能以某种方式破解的apk文件,使计费的许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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