Code Monkey home page Code Monkey logo

Comments (4)

gaoyl87 avatar gaoyl87 commented on September 17, 2024

登陆问题解决了。现在的问题时为什么要设计成写到文件里,感觉有点麻烦啊...

from douya.

supengchao avatar supengchao commented on September 17, 2024

把怎么解决的方法给大家分享一下吧,是要反编译旧版的apk得到apikey和secret么?

from douya.

gaoyl87 avatar gaoyl87 commented on September 17, 2024

作者不直接给出key和secret肯定是有原因的,而且作者给出方法了。我详细做下说明。
https://apkpure.com/豆瓣/com.douban.frodo?version=3.0.1&grep=OkVolley.getInstance().init
先去这个网站下载旧版本的apk,我下的是3.0.1的。
然后反编译找到com.douban.frodo.toolbox.RequestManager类,搜索init()方法。
然后在Environment.getExternalStorageDirectory()这个路径下创建Douya文件夹,再分别创建API_KEY和API_SECRET两个文件,分别把找到的值写进去就好了。

from douya.

zhanghai avatar zhanghai commented on September 17, 2024

一开始时最直接的当然是写在代码里,但是后来发现已经不能申请 API Key 了,所以要想打包 APK 必须做成设置。

然后如果是应用内设置,需要进入主界面才能调整,但进入主界面前一般都会要求有一个选定的已经登录的账户,如果取消这个入口的检查对整个应用的流程影响较大,所以必须要用其他方式。

从文件读取是最直接和简单的解决方案,有些 Hacky,但是几十行也就解决了,之后若有机会获得 API Key,也不用太大变更。


另外感谢你的几个回复。我会保留一个 Issue 开启。

from douya.

Related Issues (20)

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.