这是indexloc提供的服务,不要输入任何密码
Skip to content

打包APK签名问题 #455

@chanwu1100

Description

@chanwu1100

作者您好,我在使用项目中遇到了如下问题,希望解惑一下:
我想获取设备唯一标识,IMEI无法获取,只能使用device.getAndroidId()。
但是在脚本中使用获得的,与打包APK之后获得的,不是一个。
百度搜了下发现是因为两个软件签名不一致,所以安卓系统返回的id也就不一样了,请问如何解决?
目前想法是打包的APK使用的签名与autojs6的APK的签名保持一致,就可以保持androidId不变,但是不知道如何实现,不确定是否需要修改源码。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Accepted 🌱 受理Maintainer may be busy resolving or fixing the labeled issuesDelayed ⌛ 延期Issues have been accepted but won't be settled in timeDoubt ❔ 疑惑Any doubts about this repositoryFeedback Awaited 🕒 等待反馈Waiting for the feedback from issue creater and issue will be closed if duration is over one monthProposal 💡 方案Issue creater's own proposal which may be really helpful

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions