apk

adb adb monkey命令及介绍

為{幸葍}努か 提交于 2019-12-09 20:50:43
1.adb的组成部分 守护进程,客户端,服务器端` 2.Monkey程序是Google公司提供的一个压力和稳定性测试的工具 3.命令 命令 参数 功能 adb version 查看当前adb 版本 adb devices 查看当前连接设备列表 查看当前连接设备信息 adb strat-server 启动adb 服务 adb kill-server 停止adb 服务 adb connect 如果是USB 连接,直接会连接ADB ,如果是想通过网络连接, 则需要在同一个局域网,通过IP 连接 adb disconnect 断开连接设备 adb reboot 重启手机 adb install –r E:/AD.APK 安装APP ,如果apk 已安装,则覆盖安装 -r 如果apk 已安装,则重新安装apk 并保留数据和缓存文件 -d 允许降级覆盖安装 adb shell pm install -r/data/lmm/zhihu.apk 安装模拟里的apk adb uninstall 包名 卸载aPP ,不保留数据和缓存文件 -k 卸载app 但保留数据和缓存文件 adb shell pm list packages 列出设备上的所有包名 -s 列出系统应用的所有包名 -3 列出除了系统应用的第三方应用包名 -f 查看安装包位置 -d 只显示disabled 的应用 -e

Android white labeling

会有一股神秘感。 提交于 2019-12-09 19:44:59
问题 I am working for a company which has this "foo" app on the store, the app is a helper for our hardware which is revelled by resellers. We made sure that the name is as generic as possible - in order for our vendors to be able to market the app as "their app". However - some re-sellers do want to have their exact name and icon on the app. And they are willing to pay so, I need to make this happen. Questions: I understand that I am looking for build variants. But still, how can I modify the apk

安装apk时出现错误Failure [INSTALL_FAILED_DEXOPT]问题解决的方法

懵懂的女人 提交于 2019-12-09 18:31:05
在android4.0源码里面编译出来apk后,用adb install (或adb install -r 重装)安装时,报错[INSTALL_FAILED_DEXOPT]。 xu @xu-PC :~$ adb install workspace/out/target/product/generic/system/app/xxx.apk 2820 KB/s (225970 bytes in 0.078s) pkg: /data/local/tmp/xxx.apk Failure [INSTALL_FAILED_DEXOPT] 或者 xu @xu-PC :~$ adb install -r workspace/out/target/product/generic/system/app/xxx.apk 2768 KB/s (225970 bytes in 0.079s) pkg: /data/local/tmp/xxx.apk Failure [INSTALL_FAILED_DEXOPT] 这是因为 在system\app下面的apk是经过优化的,而dex文件不会打包到apk中,dex文件会被优化后,生成odex文件 。 下面就是程序经编译之后,在workspace/out/target/product/generic/system/app/下生成的.odex和.apk两个文件

Android:使用adb安装apk安装包

戏子无情 提交于 2019-12-09 18:30:44
如果 安卓模拟器打开 、 USB连接Dubug模式真机 这两个条件满足其一,可以这样: adb install /path/to/app-release.apk 如果 安卓模拟器打开 、 USB连接Dubug模式真机 这两个条件都满足,需要在其中一个Android系统上安装,对于模拟器: adb -e install /path/to/app-release.apk 对于真机: adb -d install /path/to/app-release.apk 另一种方法是 -s 指定哪台机器。例如先: $ adb devices List of devices attached F1241SDF21 device 192.168.201.102:5555 device 然后: $ adb -s "F1241SDF21" install /path/to/app-release.apk 如果已经安装,再次安装会出现这个错误: Failure [INSTALL_FAILED_ALREADY_EXISTS] 在Android系统上卸载已装app,重新安装即可。或者在 install 后加上 -r : $ adb -s "F1241SDF21" install -r /path/to/app-release.apk 来源: oschina 链接: https://my.oschina.net

Error in building release apk with latest updates

白昼怎懂夜的黑 提交于 2019-12-09 18:29:43
问题 I recently updated Android Studio on my machine to version Android Studio 3.1 Build #AI-173.4670197, built on March 22, 2018 JRE: 1.8.0_152-release-1024-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.13.3 Also, I replaced all the compile statements with implementation . And finally I updated: buildToolsVersion to 27.0.3 com.android.tools.build:gradle to 3.1.1 After these changes when I now try to build my release apk, it says the following: Cannot create android app

记录一个appium制作共存脚本,基于Mt管理器2.8.2beta

痴心易碎 提交于 2019-12-09 17:46:05
from appium import webdriver from time import sleep,time def echo(log): print(f"\r{log}",end="") class appGC: #apk共存类 """ driver.press_keycode('keycode') 等于 driver.keyevent('keycode') """ true = True desired_caps = { "platformName": "Android", "platformVersion": "8", # 字符串版本号如 8.0.0可简写8 "deviceName": "oppo1", "appPackage": "bin.mt.plus.canary", "appActivity": "bin.mt.plus.Main", "automationName": "uiautomator2", "unicodeKeyboard": true, #unicode编码方式发送字符串 "resetKeyboard": true, #将键盘隐藏起来 "noReset": true, #不重置应用 "dontStopAppOnReset": true, #不关闭应用 "undefined": true #自动获取权限 } def __init__(self,url=

Phonegap non debug mode and signing with license key

不打扰是莪最后的温柔 提交于 2019-12-09 17:41:22
问题 I've completed a app in phonegap and would like to publish this on the google app store. Every time I download the apk file its in debug mode. How do I go about signing it with a key or keystore to get this to upload into google play as google will not upload it into my account in debug mode. I'm doing something wrong but can not see how in build.phonegap.com you can sign the app? Please help Thanks 回答1: Use this command from the terminal or command prompt to generate keystore file: keytool

Signing APK file in Cordova v-5.0 CLI is not working

这一生的挚爱 提交于 2019-12-09 17:31:46
问题 i tried to add keystore properties into two files in the platforms/android directory. key.store=Users/admin/workspace/android-keystore/keystore key.alias=keystore into ant.properties and project.properties File. It worked fine in previous version, but not seems like the Cordova does not using ant in latest version. So if i run command: cordova build android --release I always get only unsigned apk. platforms/android/build/outputs/apk/android-release-unsigned.apk How can i solve it please?

How do you share an Android project?

无人久伴 提交于 2019-12-09 16:09:50
问题 I am trying to send the files from an Android project so that a friend of mine can open a new Android project in eclipse and mess around with code/run the project from their home machine. However, I have run into some problems dealing with missing manifest files, and non-matching signatures. What is the simplest procedure for bundling up an Android project (not an .apk) to send to someone for their use in eclipse? 回答1: The easiest way would be to create a Archive File export. It bundles the

“Package file was not signed correctly” error — detect whether or not it will happen with Google Play app apk

自古美人都是妖i 提交于 2019-12-09 15:11:57
问题 I am having problems with the error described in the questions below: Published Android apk gives error "Package file was not signed correctly" Some (but not all) users receive "Package file was not signed correctly" when downloading my app from Google Play Specifically, when some users try to download my Google Play app, they get the error, others don't. My question is: how to detect before submission whether the problem is going to occur or not? For what it's worth, when I run jarsigner