apk

有没有办法从APK文件中获取源代码?

最后都变了- 提交于 2019-12-10 18:25:33
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我的笔记本电脑上的硬盘驱动器刚刚崩溃,并且丢失了过去两个月来我一直在使用的应用程序的所有源代码。 我所拥有的就是APK文件,该文件存储在我发送给朋友时的电子邮件中。 有什么办法可以从这个APK文件中提取我的源代码? #1楼 这两篇文章描述了如何结合使用 apktool 和 dex2jar 来获取 APK 文件,并创建一个可以构建和运行它的Eclipse项目。 http://blog.inyourbits.com/2012/11/extending-existing-android-applications.html http://blog.inyourbits.com/2012/12/extending-existing-android-applications.html 基本上,您: 使用 apktool 将资源文件移出apk 使用 dex2jar 获得一个jar文件,其中包含Eclipse所需格式的类。 创建一个Eclipse项目,将其指向资源文件和新的jar文件 使用zip实用程序打开jar文件并删除现有资源 使用 JDGui 打开jar文件以查看源代码 从 JDGui 所需的任何源代码,将其粘贴到Eclipse中的类中并对其进行修改 从jar文件中删除该类(因此您没有多次定义相同的类) 运行。 #2楼

Cannot build an APK due to problems with AndroidManifest.xml

◇◆丶佛笑我妖孽 提交于 2019-12-10 17:45:29
问题 For some reason, whenever I load my project, I immediately get the following error: The code in my AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.avi12.palindrome" android:versionCode="59" android:versionName="3.3" > <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27" /> <application android:allowBackup="true" android:debuggable="true" android:fullBackupContent="" android:icon="

Library based application installs 2 APK files, not one - Why?

為{幸葍}努か 提交于 2019-12-10 16:02:12
问题 I am trying to restructure an existing app so that, except for a few override-able methods in a derived activity, all code will reside in a library. This still doesn't work for some reason, but in the process of attempting to troubleshoot this, I discovered much to my dismay that there are two .apk files installed, not one (when I run a debug session from eclipse): The first (and larger file) is having the original library name. The second (only 20KB in size) is having the derived application

To check or not to check “IsLibrary”?

浪尽此生 提交于 2019-12-10 15:38:10
问题 I built my app using a library project (that I also created, to be reused in other apps). It builds fine, but when I try to install & run it through Eclipse (Ctrl+F11), I get this red Could not find MyLib.apk! error line in my console: Console output: [2013-11-30 14:42:59 - MyApp] ------------------------------ [2013-11-30 14:42:59 - MyApp] Android Launch! [2013-11-30 14:42:59 - MyApp] adb is running normally. [2013-11-30 14:42:59 - MyApp] Performing com.sfinja.myapp.ActivitySubClass activity

ClassNotFoundException in apk build with maven

时光怂恿深爱的人放手 提交于 2019-12-10 15:11:09
问题 I want to switch to maven for my build process in Android development. I followed http://www.sonatype.com/books/mvnref-book/reference/android-dev-sect-archetype.html to create the pom.xml and adjusted the version a bit so that I'm using the latest version of the android-maven-plugin. While my apk gets build fine manually from within my IDE (IntellJ), there are problems with the apk built with maven. Obviously something's missing that doesn't put the classes into the apk. When I check both

Send the .apk file to client for review

我只是一个虾纸丫 提交于 2019-12-10 15:05:20
问题 I have developed an Android application and had it tested on emulator as well as device. I want to export the .apk file to the client for review. I used the Application manifest file to export the unsigned apk and sent it, but that's not getting installed on his phone. I have read multiple questions over here but din't get anything in specific to resolve my issue. I'm very new to this platform. Can anybody please help me in this regard? Thanx in advance. 回答1: Make sure your client has allowed

Why apk size increase in different android version

拟墨画扇 提交于 2019-12-10 14:41:49
问题 I create a simple application and size of .apk generated by android studio is 1 MB, then i installed in android 2.3 version size increased to 3.48 MB , then i installed in android 5.0 version size increase to 5.48 MB. My Question is only that why size of apk in increased in different version. 回答1: When installing an APK in android system, what's installed is the DEX file. Which contains your code, resources etc compiled as binaries. Your dex is generally the same size of your apk, unless you

从Linux传输apk包到Windows系统,一周的心路历程,累

a 夏天 提交于 2019-12-10 14:05:05
1、在Windows服务器上打开一个cmd窗口,执行脚本,只适用于Windows系统     --NO String cmd = "cmd.exe /c adb -s f223413 install -r D:\apps\rent_test_v1.6.0.apk";Runtime.getRuntime().exec(command) 在Linux Jenkins里加 Windows批处理命令 :java wmic /node:192.168.27.209 /user:Administrator /ptassword:123456 process call create "cmd.exe /c adb -s f223413 install -r D:\apps\rent_test_v1.6.0.apk" 遇到的问题:Jenkins在执行完批处理命令后,无法切换回Linux系统,导致编译失败 2、在Linux服务器上安装 lrzsz,用sz从Linux服务器下载apk到Windows系统      --NO   1)CRT里设置默认下载路径      2)写下载脚本      3)./download.sh 在Linux上执行shell,可以下载到本地   4)但是,把脚本引入到Java工程里执行时,sz没有被执行,只输出了echo里的语句    3、引入com.jcraft.jsch

signed APK: Failure [INSTALL_FAILED_DEXOPT].. Updated

六眼飞鱼酱① 提交于 2019-12-10 13:56:53
问题 the "app-release.apk" generated ... is not working on my devise, but the "app-debug.apk" is working perfectly, Update: after going to the previous version of my App: in my MainActivity i have this strings: public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final String PREFS_NAME = "MyPrefsFile"; SharedPreferences settings = getSharedPreferences(PREFS

获取apk的签名信息

喜夏-厌秋 提交于 2019-12-10 13:36:35
方法一: 获取apk签名信息的步骤: 1)修改apk后缀名为zip,解压得到其中的META-INF文件夹; 2)把META-INF文件夹放到C盘根目录下; 3)在dos面板中, 敲入命令: keytool -printcert -file C:\META-INF\CERT.RSA 命令,即可获取sha1签名信息 方法二: 在dos面板中, 敲入命令:keytool -printcert -jarfile debug.apk 来源: CSDN 作者: 会飞的熊猫啦啦啦 链接: https://blog.csdn.net/qq_39505012/article/details/103473405