当前位置:网站首页>Auto.js学习笔记4:autojs打包后,大部分华为等大牌子手机无法安装?利用模拟器远程在autoPro里签名打包可以解决该问题。
Auto.js学习笔记4:autojs打包后,大部分华为等大牌子手机无法安装?利用模拟器远程在autoPro里签名打包可以解决该问题。
2022-06-12 09:20:00 【PYB3】
准备工作
- Android模拟器,我用的逍遥模拟器;
- auto Pro版本的apk(本人用的是Prov7.0.4.1版本);
- vs Code开发工具;
- 一台可以正常连接网络的电脑,这个是必须;
- 在vs Code里安装auto.js-Pro-Ext插件,然后禁止auto.js的插件,不然Pro指令可能会失效,切记(很重要);

安装逍遥模拟器,为何安装它呢?
因为逍遥模拟支持ip,可以实现vscode通过ip进行局域网打包和测试

vs连接模拟器方式
- 打开模拟器,点击“设置”按钮,找到网络设置界面,选择默认模式下面的以太网选项,这点很重要,然后必须重启模拟器(具体看图1)。
- 安装autoPro的app,在主界面点击“调试服务”,根据图二上显示的ip,在vscode里输入如下id(每个电脑ip不同输入的ip也不同哈)。
- vs code输入新ip的方式,Shift +Ctrl +P,进入指令界面,选择Auto.jsPro:连接到新设备(Connect)指令(图三),选择“输入设备IP地址”,在图四界面,输入IP点击Enter按钮确认,才会生效。





autoPro常规签名打包流程
打开autoProAPP,在主界面,找到需要打包的脚本,进行打包,方式和Auto4.1.1常规打包流程一样的。
签名方法,在打包应用界面,最底部,点击“选择签名”,进入签名管理界面(图二),点击创建签名如图三,填写相关信息,根据图四,选择签名文件,进行打包。




找apk在哪里?
在模拟器根目录,脚本文件夹里查看

总结
根据以上流程打包签名后的apk就能在华为等手机上进行安装使用。
光看不敲是没用的
看后一定要去实践
一定要去敲代码
一定要去运行试错
这样才是有意义的学习
边栏推荐
- 网络层IP协议 ARP&ICMP&IGMP NAT
- Countdownlatch example
- Is it necessary to separate databases and tables for MySQL single table data of 5million?
- Hotspot Metaspace
- Financial test interview questions to help you get the offer
- 2024. maximum difficulty of the exam - sliding window
- JVM garbage collection
- 测试计划应该怎么写?一个思路教会你
- What are the software testing requirements analysis methods? Let's have a look
- CodeCraft-22 and Codeforces Round #795 (Div. 2) 题解
猜你喜欢

Node sample background setup

Es6-- common basic knowledge

JVM virtual machine

Notes on data mining in Tsinghua University (1)

Basic exercise letter graphics

电阻的作用有哪些?(超全)
Summary of APP test interview questions, which must be taken in the interview
What are the design principles of an automated test framework? I'll sum it up for you. Come and see
软件测试报告中常见的疏漏,给自己提个醒
How should the test plan be written? A thought teaches you
随机推荐
MySQL - Import / export operation
Leetcode689 wrong greedy thinking
(12) Interactive component selectable
测试计划应该怎么写?一个思路教会你
Leetcode 336 palindrome pair (palindrome string + hash)
Load the source code of 2D 3D virtual anchor in the web page (1: project introduction and source code)
Bash tutorial
SQL basic syntax II
Résoudre le problème de demander à l'élément d'être ouvert lorsque l'unit é est ouverte et que vous n'avez pas été ouvert auparavant (peut - être fermé anormalement auparavant)
Hotspot Metaspace
After receiving the picture, caigou was very happy and played with PDF. The submission format was flag{xxx}, and the decryption characters should be in lowercase
There must be something you want to know about software testing experience sharing
APP测试面试题汇总,面试必考一定要看
Do you know the meaning behind these questions?
(14) Inputfield logic analysis
MySQL安装
Basic exercise decomposing prime factors
Multi table operation instance
2022 极术通讯-安谋科技纷争尘埃落定,本土半导体产业基石更稳
consul 配置相关