Git Product home page Git Product logo

Comments (8)

simpleton avatar simpleton commented on July 26, 2024

from tinkerpatch-sample.

jacpy avatar jacpy commented on July 26, 2024

开发预览已经打开了,切换到使用全量下发就OK了,返回200。但报如下错误:
java.security.SignatureException: Signature was not verified
at org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:378)
at com.tencent.tinker.loader.shareutil.ShareSecurityCheck.check(SourceFile:158)
at com.tencent.tinker.loader.shareutil.ShareSecurityCheck.verifyPatchMetaSignature(SourceFile:133)
at com.tinkerpatch.sdk.server.callback.TinkerPatchRequestCallback.onPatchUpgrade(SourceFile:196)
at com.tinkerpatch.sdk.server.a.a$1$1.a(SourceFile:1138)
at com.tinkerpatch.sdk.server.a.a$3.a(SourceFile:1248)
at com.tinkerpatch.sdk.server.c.a$1.a(SourceFile:1060)
at com.tinkerpatch.sdk.server.c.a$a.run(SourceFile:132)

然后我又把后台的补丁报删除,重新再创建一遍,使用开发预览,再新请求发现OK了,返回200,但是请求config还是404。

from tinkerpatch-sample.

jacpy avatar jacpy commented on July 26, 2024

后台我没有动,我现在又重复试了几次,点击REQUEST PATH按钮,发现请求OK,但是会报上面的java.security.SignatureException: Signature was not verified错误。一会儿之前试的还没有报这个错误,很无语。

from tinkerpatch-sample.

simpleton avatar simpleton commented on July 26, 2024

这块可能我文档没有交代清楚,我这里总结下,稍后更新文档。

后台的开发预览 只是针对补丁包的,只能安装了DebugTools并打开开关的同学拉去使用。
从你的log的url可以看出来是这个是全量的url,开发预览得url path中包含/dev的路径。

在线参数用于调整补丁下发的用户群,这里对开发预览是没有什么意义的。(这里log中也不应出现类似404的错误,我会立即做修复)。

你这里提出的SignatureException 是tinker本身校验补丁包抛出的错误,请保证patch包是基于手机上安装的apk生成的。

from tinkerpatch-sample.

jacpy avatar jacpy commented on July 26, 2024

DebugTools已经安装,并且已经打开了开关;后台也设置开发预览,但没有发现请求中包含有/dev路径。

将测试的Demo新旧两个版本都使用签名打包,再生成补丁包,手机上安装旧版本的Demo。然后在后台设置不管是使用开发预览还是全量下发,DebugTools的开关打开、关闭,都存上面的SignatureException错误。

from tinkerpatch-sample.

simpleton avatar simpleton commented on July 26, 2024

from tinkerpatch-sample.

jacpy avatar jacpy commented on July 26, 2024

每次我都是清除应用数据重新再来了,如果不清除数据,就不会有SignatureException这个错误。

还是没搞定,没看到效果,我只能先放弃。谢谢回复。

from tinkerpatch-sample.

simpleton avatar simpleton commented on July 26, 2024

@jacpy 如果不是开发预览,默认3小时才会拉去一次。。。

SignatureException是校验你baseApk和patch包签名不匹配而造成的。

from tinkerpatch-sample.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.