Comments (4)
登陆问题解决了。现在的问题时为什么要设计成写到文件里,感觉有点麻烦啊...
from douya.
把怎么解决的方法给大家分享一下吧,是要反编译旧版的apk得到apikey和secret么?
from douya.
作者不直接给出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.
一开始时最直接的当然是写在代码里,但是后来发现已经不能申请 API Key 了,所以要想打包 APK 必须做成设置。
然后如果是应用内设置,需要进入主界面才能调整,但进入主界面前一般都会要求有一个选定的已经登录的账户,如果取消这个入口的检查对整个应用的流程影响较大,所以必须要用其他方式。
从文件读取是最直接和简单的解决方案,有些 Hacky,但是几十行也就解决了,之后若有机会获得 API Key,也不用太大变更。
另外感谢你的几个回复。我会保留一个 Issue 开启。
from douya.
Related Issues (20)
- 缺少部分关键类,下载了两次还是同样情况,麻烦告知下 HOT 1
- 手机版网页链接无法识别
- Feature Request: 使用正则表达式屏蔽特定广播 HOT 3
- Remove 140 character limit when sending broadcast
- 怎么在模拟器上调试? HOT 1
- 有个文件名太长,给电脑使用带来麻烦 HOT 3
- emui安卓9报该应用感染病毒 HOT 5
- Include BlobEmoji
- 登录后无法看到内容 HOT 1
- Api签名加密算法的问题 HOT 3
- 关于API签名验证的问题 HOT 1
- 不再更新release了吗 HOT 1
- F-Droid HOT 2
- 升级到 Glide 4.2+
- 发广播界面发送时未禁用底部按钮 HOT 1
- 账号锁定 HOT 1
- 标记游戏页面缺少平台
- 书页面缺少详细的作者和译者信息
- Android Studio 3.0 打开出错 HOT 1
- 代码没有注释,实在没看懂frodo.douban.com的请求是怎么计算_sig参数的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from douya.