apk

Build unsigned APK file with Android Studio

半世苍凉 提交于 2020-01-08 17:22:12
问题 I'm developing an android app with the Android Developer Tool. Now I tried the new Android Studio, everything works fine if connect my smartphone with the pc and directly run the program in the Android Studio. But now I want to test the program with other smartphones without connecting them to my pc. The ADT creates the .apk file under "projectname/bin" every time you compile the program. How I see it at the moment the Android Studio doesn't do that. So my question is it possible to create an

Build unsigned APK file with Android Studio

故事扮演 提交于 2020-01-08 17:21:12
问题 I'm developing an android app with the Android Developer Tool. Now I tried the new Android Studio, everything works fine if connect my smartphone with the pc and directly run the program in the Android Studio. But now I want to test the program with other smartphones without connecting them to my pc. The ADT creates the .apk file under "projectname/bin" every time you compile the program. How I see it at the moment the Android Studio doesn't do that. So my question is it possible to create an

Android反编译

六月ゝ 毕业季﹏ 提交于 2020-01-08 05:44:49
先说一下 apk 的结构。 APK 采用了 zip 格式的压缩,我们可以很容易解压。 一个 APK 文件结构为: META-INF/ Jar 文件中常可以看到 res/ 存放资源文件的目录 AndroidManifest.xml 程序全局配置文件 classes.dex Dalvik 字节码 resources.arsc 编译后的二进制资源文件 apk 下的文本文件是做了二进制处理的。 如果我们只是想看 APK 的 Manifest 信息。可以使用 aapt 命令。 命名格式为: aapt dump badging *.apk ( 这里 *.apk 是你的 apk 名 ) aapt 命令我们可以在 SDK 下对应版本下的 tools 文件夹下找到 : 这个是我的路径 : C:/android-sdk-windows/platforms/android-7/tools 如果是 res 目录下的文件,则需要用工具来读取并生成文本文件, android4me 的 AXMLPrinter2 是个很好的选择。 下载地址: http://code.google.com/p/android4me/downloads/detail?name=AXMLPrinter2.jar&can=2&q= 使用方法: java –jar AXMLPrinter2.jar capture.xml > test

android 反编译apk文件

混江龙づ霸主 提交于 2020-01-08 03:57:29
一般的apk文件如果后缀改为rar并解压的话,可以得到一些图片资源,和一堆打开乱码的文件。但我们往往想要的是得到它的xml文件学习下怎么布局的,或者看看它的源码学习下优秀程序的思路。这时就要借助以下工具对apk进行反编译了。 一、工具准备:apktool , dex2jar , jd-gui 工具包也可以在 这里 下载。 1、dex2jar可以在 这里 下载,jd-gui可以在 这里 下载。 2、apktool,可以去 Google的官方下载 ,apktool-1.0.0.tar.bz2(里面有apktool.jar)和apktool-install-windows-2.1_r01-1.zip两个包都要下。 解压apktool.jar到 C:\Windows ,解压apktool-install-windows.zip到任意文件夹(例如E盘根目录)。 二、使用dex2jar + jd-gui 得到apk的java源码 ,步骤如下: 1、用.rar打开apk文档,将classes.dex文件解压出来,然后使用工具反编译成.jar文件。 在cmd下进入dex2jar.bat所在路径,然后输入“dex2jar.bat XXX”,XXX指的是你要反编译的apk中的classes.dex文件所在路径及名称,比如:我的dex2jar.bat在D:\Android\apk_decode

记 Hook 一次游戏客户端

旧街凉风 提交于 2020-01-07 23:59:02
创建 Hook 应用 先创建一个应用,用来做 Hook 之用 修改 app\build.gradle ,加入仓库与 Xposed 模块依赖 apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.seliote.hook4ft" minSdkVersion 19 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } // 加入仓库 repositories { jcenter() } dependencies { implementation fileTree(dir: 'libs', include: ['*

Android Studio打包.so文件教程

。_饼干妹妹 提交于 2020-01-07 18:07:37
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在eclipse里,.so文件eclipse会帮助我们自动打包进apk文件,通常是放在:libs/armeabi目录,然后把libxxx.so拷贝到这个目录下,这样NDK就会自动把这个libxxx.so打包进apk,安装 apk 后位置是在放在your_apk_package_name/lib/目录下。 android studio就有些不同了,下面给大家介绍一下,方法很简单,一学就会。 这里给大家介绍三种方法,来自网络和QQ群: 1.来自 网页 : 将需要打包进apk内的so文件放入项目文件夹下的libs目录,然后在app内(注意是app内的,不是project的)的build.gradle中的android { }中添加如下代码 <span style="font-size:14px;"><span style="font-size:14px;">sourceSets { main { jniLibs.srcDirs = ['libs'] } }</span></span> 添加后是这样的(仅为范例): <span style="font-size:14px;">apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion

Building AOSP and adding a system app with runtime permission

随声附和 提交于 2020-01-07 08:40:58
问题 I work on Android 6 AOSP. I am able to build add the application as a system app but now I want to add runtime permission by default on this system app. Like that the app can start without asking the user to validate the permission. Do you know how I can do that? Thanks for you help. 回答1: If your app is privileged, all Runtime permissions are granted if requested in manifest. To make your app privileged: in Android.mk LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true If this does

Where is the APK file in PhoneGap after compile it?

旧街凉风 提交于 2020-01-07 04:27:07
问题 I just installed Phonegap and created the app through the terminal (command line), everything works fine. It compiled the code and exported it to my smartphone, that was connected to PC. The problem is, where PhoneGap storage the APK file after use the command " phonegap run android " or " phonegap compile android "? 回答1: I just founded that is inside app folder: /--app folder--/platform/android/bin/~ thanks for the help 回答2: Try this step if u r using eclipse Right Click on the Project ->

Error:Execution failed for task ':java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class

試著忘記壹切 提交于 2020-01-07 03:12:05
问题 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class It occurs this error. The app builds success but when I get build apk, android studio show this message This is my gradle apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '25' defaultConfig { applicationId "com.example.thewell_dev

Failed to upload apk to google play

爱⌒轻易说出口 提交于 2020-01-07 02:45:06
问题 I just got the following error report when attempting to upload my lastest version of an already published app: Upload failed Your APK cannot be analysed using 'aapt dump badging'. Error output: Failed to run aapt dump badging: W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in package 0 (error -75) W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in package 0 (error -75) W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in