apk

ANdroid - Run APK file after edited using apktool get error : [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

吃可爱长大的小学妹 提交于 2019-12-22 04:06:12
问题 I have an APK file name : Splash.apk. First i decode it using apktool apk d Splash.apk Then i edit Manifest, XML. Finally I export project to APK file name : EditedSpash.apk. apk b Splash When i run EditedSpash.apk on emulator. I got error. Do you explain it for me ? adb install EditedSplash.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] 回答1: you should sign to apk before install. 1) keytool -genkey -keystore (name).keystore -validity 10000 -alias (name) 2)answer some question (ex:name,

Run apk on android emulator

蓝咒 提交于 2019-12-21 20:49:11
问题 I want to run APK on android emulator and I followed next steps: Copied apk to platform-tools directory Run cmd.exe as administrator Navigated to the platform-tools directory Run emulator from AVD manager In command line entered adb devices (it showed my emulator in list) I entered adb insall name.apk in command line after this I got message as below: I found this link how to run APK on emulator. And other tutorial also show how it works. In case when we entered adb install after few seconds

Android: Java: Proguard: How to: verify if my jar (different jar project)/apk are successfully processed? (I am thinking to reverse engineer it)

荒凉一梦 提交于 2019-12-21 20:37:34
问题 I successfully processed my jar and apk. Then, want to verify if is it truly hard to reverse engineer or truly did the obfuscation. I am thinking to try to reverse engineer it by myself to see what I did. But don't know how to do it. 回答1: For manual reverse engineering, you can try dex2jar and then Java Decompiler. 回答2: I assume you have a set of tests (unit/functionality). Run them against the obfuscated jar file. They should pass as if you had the original program. 来源: https://stackoverflow

ZipResourceFile cannot be resolved to a type

99封情书 提交于 2019-12-21 19:52:19
问题 I am trying to rewrite my App to work with APK Expansion files. I have been following the documentation here http://developer.android.com/google/play/expansion-files.html . I have downloaded the ... ... but when I added this code ... public static Uri getTrackUriFromZipFile ( int track ) { // Get a ZipResourceFile representing a specific expansion file ZipResourceFile expansionFile = new ZipResourceFile(filePathToMyZip); } ... I get the error message ZipResourceFile cannot be resolved to a

How to get keystore file from signed apk

给你一囗甜甜゛ 提交于 2019-12-21 17:22:04
问题 I have already signed my apk with default debug.keystore key.But unfortunately my system destroyed,Now I need to get the key store from the already signed apk. to replace with old apk with new apk. I have MD5,SHA fingerprints with.But i could make them as keystore to sign the apk. Any suggestions would be appreciated.Thank you in advance. 回答1: unzip -p Name-of-apk.apk META-INF/CERT.RSA | keytool -printcert is what I used. It produces information such as the owner, issuer, serial number, valid

Get Application information from an APK using PHP script

余生颓废 提交于 2019-12-21 14:03:37
问题 How can I get the versionCode , versionName , application icon and application label from an APK with PHP 回答1: I'm not that familiar with php so I can't provide any code, but the idea is: unzip the APK file (since it's "nomal" zip format) open the AndroidManifest.xml and parse the <manifest> tag for android:versionCode and android:versionName 回答2: If I'm not wrong, APKs are simply zip files. And android packages will have some sort of XML file that will mention the version information. In PHP

自定义镜像上传阿里云

梦想与她 提交于 2019-12-21 11:14:44
目录 1、alpine制作jdk镜像 2、Alpine制作jre镜像(瘦身) 3、Docker镜像上传至阿里云 1、alpine制作jdk镜像 alpine Linux简介 1.Alpine Linux是一个轻型Linux发行版,它不同于通常的Linux发行版,Alpine采用了musl libc 和 BusyBox以减少系统的体积和运行时的资源消耗。 2.Alpine Linux提供了自己的包管理工具:apk(注意:ubuntu中是apt-get),我们可以通过https://pkgs.alpinelinux.org/packages 查询包信息 3.Alpine Docker镜像继承了Alpine Linux发行版的这些优势,相比于其他Linux Docker镜像,它的体积非常小 对比常用的、没有压缩过的基础镜像(查看当前的:latest标签): Alpine - 4.8MB centos - 124.8 MB Debian - 125.1MB Centos - 196MB 4.建议使用Alpine Linux 3.10.0版本,这也是 v3.10 稳定系列的首个版本 alpine:3.10 基于alpine制作JDK8镜像 #1.下载镜像 docker pull alpine:latest #2.创建并编辑dockerfile touch Dockerfile vi

从事 Android 开发六年,我学到的那些事!

天涯浪子 提交于 2019-12-21 08:04:23
六年来,我为多家公司编写过各种应用程序。你编写代码或处理代码库的文化和方式会随着你的经验而不断变化。 你的代码质量应该随着经验的增加而提高,否则就需要反思了。 选择正确的架构 如果你是从头开始开发应用程序,那么就会有许多优势。 其中之一就是选择正确的体系结构。通常,我们喜欢将所有内容都写在同一个activity文件中,因为这样做很容易。但是,当你的代码量增多时,这就会成问题。你的代码库会变得十分庞大,每个文件包含的代码行数也会非常庞大。 考虑到代码的性能和维护,在早期阶段选择正确的体系结构,才是明智的做法。 MVC、MVP、MVVM和MVI等许多体系结构可帮助 Android 开发人员轻松维护、测试和开发新功能。 上图说明了在设计完应用程序后,所有模块应如何相互交互。尽管这完全取决于你的组织,但你也有可能会有机会选择适合应用程序的体系结构。 但是,强烈建议你选择适合需求的特定体系结构。 关于哪种架构最好这个话题也是众说纷纭。 根据开发人员指南: “没有任何一种方法能够编写出适用于每种情况的最佳应用程序。话虽如此,对于大多数情况和工作流来说,这种推荐的体系结构都是一个很好的起点。” 善加利用Android Studio Android Studio 提供了最快的工具,可以为每种类型的 Android 设备构建应用程序。 不幸的是,我们仅探索了该IDE的一小部分。Android

APK size is bigger than expected - android studio

情到浓时终转凉″ 提交于 2019-12-21 07:08:35
问题 My project content size like this, Main Project (Source & asset size 513KB) Module 1 (Source & asset size 135KB) Module 2 (Source & asset size 80KB) And the apk (signed, debug both) size is 4.87MB. Also tried ProGuard nothing changed. I do not understand the reason of this. Even I have not added any jar file to my project. 回答1: There are 2 build variants, for Debug and for Release. Default build option is for Debug which makes size big. Check this answer : How to use the ProGuard in Android

APK size is bigger than expected - android studio

蓝咒 提交于 2019-12-21 07:08:04
问题 My project content size like this, Main Project (Source & asset size 513KB) Module 1 (Source & asset size 135KB) Module 2 (Source & asset size 80KB) And the apk (signed, debug both) size is 4.87MB. Also tried ProGuard nothing changed. I do not understand the reason of this. Even I have not added any jar file to my project. 回答1: There are 2 build variants, for Debug and for Release. Default build option is for Debug which makes size big. Check this answer : How to use the ProGuard in Android