apk

Location of .apk file

一个人想着一个人 提交于 2019-12-28 04:23:09
问题 I recently built an Android application using Eclipse (Galileo) on my PC/Xp. I'm a noob to Android development and it took me 2 months to build my app while reading/experimenting with all the Java and other programming ups/downs. The project runs fine on Eclipse. I now want to sign the application (currently reading on how to do this) in preparation to releasing it to the Android Market. At this point, I am stumped. The "signing your application" talks about signing the .apk file with your

Repackage APK file to contain custom assets - what build tool to use?

a 夏天 提交于 2019-12-28 02:53:48
问题 Update : This is an old post, and references below to broken aapt versions will be out of date. Based on previous feedback, I am storing custom text fields in the assets directory of my app. I will write the app, using default user details in an asset file, and the client would like to rebuild the app for each user, including that user's details in the asset file. (I am aware this is method has some serious shortcomings, but the client is still keen to do it in this way - see Embed login

APK signing error : Failed to read key from keystore

こ雲淡風輕ζ 提交于 2019-12-28 02:37:41
问题 I'm developing android app under intellij and gradle. and using following way to generate keystore file: keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 then used the keystore file in build.gradle: signingConfigs { robert { storePassword 'robert' storeFile file('/Users/bournewang/Documents/Project/android.keystore') keyPassword 'robert' keyAlias 'mike' } } when finally trying to generate signed apk file: ./gradlew

React Native Android Duplicate file error when generating apk

会有一股神秘感。 提交于 2019-12-28 02:26:07
问题 When I am trying to generate android apk by using ./gradlew installRelease , I get this error in console: ~/React-Native/mockingbird/android/app/build/intermediates/res/merged/release/drawable-mdpi-v4/src_resources_img_loading.gif: error: Duplicate file. ~/React-Native/mockingbird/android/app/build/intermediates/res/merged/release/drawable-mdpi/src_resources_img_loading.gif: Original is here. The version qualifier may be implied. I tried Build->Clean Project via Android Studio and ran .

Android - How to intercept the 'Install application' intent

北战南征 提交于 2019-12-28 01:55:23
问题 OK, so not entirely sure this is possible... But trying to write an application so that I can run some code before any of the following activities are performed. 1) APK is downloaded from web and market launches installer 2) Install button is pressed on android market Is it possible to intercept and prompt on these events, or has Google locked that stuff down quite tightly? 回答1: This isn't an answer per se, but I can't find any commenting tool here. Sorry. I'm having this issue as well. I

安装应用提示安装失败或不能安装,报INSTALL_FAILED_DUPLICATE_PERMISSION错误

杀马特。学长 韩版系。学妹 提交于 2019-12-27 17:25:06
最近开发测试应用时,突然发现打包签名之后的apk安装时一直提示“应用安装失败”,这我就懵逼了,因为没有使用签名,直接连接进行设置调试时一直是没问题的,然后我就问度娘去了,结果如下,遇到同类问题的可以看看: Android 5.0上新增加的 permission 的判断,INSTALL_FAILED_DUPLICATE_PERMISSION ,这个简单讲就是如果两个apk声明了相同的permission,但是如果这两个apk的签名不一样的话,后安装的apk会fail。 我的是因为两个apk都申请了一个极光推送的权限: Package schoolcard attempting to redeclare permission schoolcard.permission.JPUSH_MESSAGE already owned by takephoto 以下是看过的文章: https://blog.csdn.net/willba/article/details/71189860 http://tieba.baidu.com/p/3237226241?see_lz=1&traceid= http://www.voidcn.com/article/p-ytnykvnl-bto.html https://www.cnblogs.com/YatHo/p/6767237.html 虽然很简单

Android - Application (apk) Maximum size

孤街醉人 提交于 2019-12-27 10:54:11
问题 I am going to install first application in my android phone, but having some doubts related to Android Memory (Maximum size of APK). So please help me know and solve the problems: What is maximum size of the apk that can be supported by the android ? When we install any apk file in real phone, where does application installed (in SD-card or other memory) ?? I have referred this link: http://groups.google.com/group/android-developers/browse_thread/thread/7965885da4d1a03a and also searched lot.

android 反编译apk

耗尽温柔 提交于 2019-12-27 02:20:24
apktool——可以反编译软件的布局文件、图片等资源,方便大家学习一些很好的布局; dex2jar——将apk反编译成java源码(classes.dex转化成jar文件); jd-gui——查看APK中classes.dex转化成出的jar文件,即源码文件。 1、apktool文件的下载 apktool是反编译Android apk文件的工具,apktool的主页是https://ibotpeaches.github.io/Apktool/;我们可以从这里找到最新版本的apktool.jar文件https://bitbucket.org/iBotPeaches/apktool/downloads/,以及apktool的安装说明。 2、apktool的安装 前面我们已经下载了最新的apktool.jar文件,最新版本是2.3.1,请按照以下步骤操作,参考https://ibotpeaches.github.io/Apktool/install/: 新建文本文件,将下面的脚本复制到文本并保存,然后重命名为apktool.bat; @echo off if "%PATH_BASE%" == "" set PATH_BASE=%PATH% set PATH=%CD%;%PATH_BASE%; chcp 65001 2>nul >nul java -jar -Duser.language

Android APK反编译技巧全讲解

孤街浪徒 提交于 2019-12-27 02:19:09
导言:在我们安卓开发当中,我们不仅需要掌握基础的开发技能,也需要掌握软件的安全技能,这样才可以让我们的软件能够成为一款能够真正可以进行发布的软件,同时也可以让自己的核心技术不会被别人所盗取。 首先我们应当了解的是,对于反编译我们一共需要三个工具,它们分别是:APKTool,dex2jar,和jd-gui。 APKTool :用于解析apk的res文件以及AndroidManifest.xml文件 dex2jar :用于把apk解压后生成的classes.dex文件解析为后缀为jar的文件,与下面的jd-gui工具联合使用则可以得到我们的核心Java代码 jd-gui :将上一步所得到的jar文件解析为Java文件,从而得到软件的核心代码 这就是反编译的核心流程,凡是没有被MD5算法加密,或者未被加固过的APK都可以利用这个方法来进行反编译破解。 第一步.来到官网下载APKtool 网址:https://ibotpeaches.github.io/Apktool/install/ 界面如下: 我们需要把下载的两个文件都放在同一个文件夹下,这个文件夹可以自己进行选择或者新建,本人这里在E盘下创建了一个androidsafe的文件夹用于保存这个工具,点击第二个链接之后会出现如下界面: 第二步.将需要进行反编译的文件放到刚刚我们创建好的那个文件夹下 此时我们的E:

Android 反编译apk

谁说我不能喝 提交于 2019-12-27 02:17:51
工具介绍:   apktool     作用:资源文件获取,可以提取出图片文件和布局文件进行使用查看      下载地址: https://bitbucket.org/iBotPeaches/apktool/downloads    dex2jar     作用:将apk反编译成java源码(classes.dex转化成jar文件)      下载地址: http://sourceforge.net/projects/dex2jar/files/    jd-gui     作用:查看APK中classes.dex转化成出的jar文件,即源码文件      下载地址: http://jd.benow.ca/ 下载完成后如图: 如果上面的文件没有下载成功就自己在其他地方下载,网上搜索下还是很多的,只是注意下比较新的版本就好了哈(版本太旧会导致反编译失败),这里可以将这三个一起下载----> CSDN下载 (PS:没有积分的可以直接问我要文件,我也不知道为什么一传上去就默认要5分了) 将【dex2jar-2.0.zip】和【jd-gui-windows-1.4.0.zip】分别解压到当前文件夹,接下来开始使用 1、使用apktool反编译apk得到资源文件 使用cmd将目录切换到当前文件夹的目录下,然后输入 java -jar 【apktool的jar包名称】 d -f