apk

App系列之Android Apk分析---付宝android客户端的动态加载

本小妞迷上赌 提交于 2020-01-10 07:40:41
工具: 工欲善其事,必先利其器。因为平时拆包少,对某些好工具也了解不多,基本用了手工的方法来处理的。大家可以用什么APK改之理之类的工具。 apktool :这个大家都知道,反编译利器,我下的是apktool_2.0.0b9版本 dex2jar :不是必须,但看smali代码太累,用这个工具好受一些 jd-gui :不解释 Replace Studio :文本搜索工具,可以搜索某文件夹下的文件是否有某文本,我一直用这个,不知道大家有没有其它好工具推荐。 notepad++ :如果你用记事本也可以 android环境 :这个必须,你看完它的代码了,你起码得自己写的试试吧 简单拆包分析 先copy一份apk出来,改后缀名为zip,直接解压,先瞧瞧里面的内容,发现在/lib/armeabi/下的so文件相当的多,有蹊跷! 出于习惯,立马就拿notepad++打开了,结果发现,在文本的最前边是 PK 开头的两个字符,哈哈,这绝对的是一个zip文件,我们都知道apk其实就是一个zip,而且,真正的so文件应该是以 ELF 开头的。随便找一个打开,发现了APK的结构: 该上工具了,一步到位。对支付宝主APK进行拆包,使用 apktool d xxx.apk 命令,直接拆成smali,再使用 dex2jar 命令拆成jar包,再保存成java文件。 打开 AndroidManifest.xml

INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES on adb install

醉酒当歌 提交于 2020-01-10 03:28:07
问题 The same Android project is built in debug mode, sometimes with Eclipse, sometimes with ant (on build machine). If I first install the ant build, and then try to start Eclipse debugging, the Eclipse console displays [2012-03-20 13:32:26 - myproject] Re-installation failed due to different application signatures. [2012-03-20 13:32:26 - myproject] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2012-03-20 13:32:26 - myproject] Please

How do I access Android STK Menu using APK?

雨燕双飞 提交于 2020-01-09 19:45:32
问题 I would like to access the SIM menus on an Android phone using STK. I am trying to write an APK that shows the SIM Menus and perform operations on it. However, since the software would be used by users, replacing the OS core modules may not be an option. How can I do this? 回答1: This is, unfortunately, not possible. SimToolkit applications are protected from use by other applications because they could incur charges for the user or alter his connectivity state without his knowledge or consent.

Export unsigned apk from a Gradle Project in Android Studio

五迷三道 提交于 2020-01-09 19:39:14
问题 I usually create projects with Eclipse and import them into Android Studio, because I hate the project structure AS gives me. In it´s module settings, I have the possibility to create artifacts which allow me to output the built apk to a certain path. Now I have created a Gradle project directly with AS and it seems that those projects have quite less options than eclipse projects. I don´t find anything to output my apk and I don´t find any apk inside my project folder after building. How do

Eclipse installation failed due to invalid APK file?

♀尐吖头ヾ 提交于 2020-01-09 19:33:11
问题 I use Eclipse for develop android apps, but when run projects see this error: Installation failed due to invalid APK file! 回答1: In my case this was caused by errors in a .jar file included my library. The .jar file was one I created and so I was able to fix it. Here is a breakdown of how the problem started and how I fixed it: I made changes to another project(not the project that failed to install) Exported to a .jar included ALL files in project(which was the mistake) the resulting .jar

'Intent cannot be resolved to a type' error in eclipse

偶尔善良 提交于 2020-01-09 11:13:14
问题 I am programming the first android tutorial in eclipse, and when compiling this code: Intent intent = getIntent(); it gives the error Intent cannot be resolved to a type How do I fix it? 回答1: Probably, the import statement is missing. Try pressing Ctrl + Shift + O , Eclipse will automatically add the import statement if missing. Then look at the top of the file and see what has been added. It should be something like this: import android.content.Intent; 来源: https://stackoverflow.com/questions

'Intent cannot be resolved to a type' error in eclipse

回眸只為那壹抹淺笑 提交于 2020-01-09 11:11:11
问题 I am programming the first android tutorial in eclipse, and when compiling this code: Intent intent = getIntent(); it gives the error Intent cannot be resolved to a type How do I fix it? 回答1: Probably, the import statement is missing. Try pressing Ctrl + Shift + O , Eclipse will automatically add the import statement if missing. Then look at the top of the file and see what has been added. It should be something like this: import android.content.Intent; 来源: https://stackoverflow.com/questions

Content Provider INSTALL_FAILED_CONFLICTING_PROVIDER (installing content provider as a separate apk)

旧巷老猫 提交于 2020-01-09 06:19:49
问题 I have two applications which use the same content provider, but I can't put the same content provider in both applications- it shows INSTALL_FAILED_CONFLICTING_PROVIDER error. So I have put my content provider in a 3rd .apk and used this from two applications and it is working well. Now the problem is- The content provider apk must be installed before any of those two apps can be installed on the device. Otherwise, it shows Provider not found error during installation. So, how can I ensure

Android组件化和插件化开发

泪湿孤枕 提交于 2020-01-09 04:16:56
什么是组件化和插件化? 组件化开发 就是将一个app分成多个模块,每个模块都是一个组件(Module),开发的过程中我们可以让这些组件相互依赖或者单独调试部分组件等,但是最终发布的时候是将这些组件合并统一成一个apk,这就是组件化开发。 插件化开发 和组件化开发略有不同,插件化开发时将整个app拆分成很多模块,这些模块包括一个宿主和多个插件,每个模块都是一个apk(组件化的每个模块是个lib),最终打包的时候将宿主apk和插件apk分开或者联合打包。 组件化 概述 android工程的组件一般分为两种,lib组件和application组件 application组件 是指该组件本身就可以运行并打包成apk lib组件 是指该组件属于app的一部分,可以供其它组件使用但是本身不能打包成apk 为什么要有组件化? 加入一个app工程只有一个组件,随着app业务的壮大模块越来越多,代码量超10万是很正常的,这个时候我们会遇到以下问题 稍微改动一个模块的一点代码都要编译整个工程,耗时耗力 公共资源、业务、模块混在一起耦合度太高 不方便测试 组件化正确的姿势 既然选择使用组件化,那么如何正确的使用它呢?这里给出一种解决方案,如果你有更好的方案,欢迎交流。 我们创建了一个app工程project,默认里面有一个app组件,这个app组件是可以直接运行的。 怎么划分组件呢? 1

docker基础镜像打包

不羁的心 提交于 2020-01-08 19:55:16
基础镜像打包 Alpine apk update //需要更新源 apk add gcc apk add musl-dev apk add python-dev //缺少python开发环境 apk add zlib-dev // 安装pip pillow apk add libjpeg-turbo-dev //安装pip pillow apk add postgresql-dev //安装pip psycopg2-binary Alpine 不能安装opencv-python Ubuntu apt-get update //更新源 apt-get python3-pip //安装pip,不需要python get-pip.py 更新国内原 #vim /etc/apt/source.list #cat /etc/apt/source.list deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates