什么是非SDK接口 [英] what is a non-SDK interface

查看:107
本文介绍了什么是非SDK接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索新的Android P功能后,我遇到了非SDK接口限制.我的问题是,

After searching new Android P features, I came across the non-SDK interfaces restriction. and my question is,

什么是非SDK接口或SDK接口?它们之间有什么区别?特别是让非SDK变得更好.适用于Android的流行SDK和非SDK接口的示例.

What is a non-SDK interface or an SDK interface? What is the difference between them? specially that makes non-SDK once better. Examples of popular SDK and non-SDK interfaces available for android.

P.S.我遇到了区分SDK和API接口的抽象答案,但没有解决我的问题:/

P.S. I came across abstract answers differentiating between SDK and API interfaces but it didn't fulfill my questions :/

推荐答案

引用文档:

通常来说,SDK接口是在Android框架封装索引中找到的接口.

并非框架中的所有内容都出现在文档中.在运行时

Not everything in the framework appears in the documentation. Classes, methods, fields, and such marked with @hide in the source code are available at runtime but are not part of the SDK and do not appear in the documentation. These items can only be accessed by unconventional means, such as reflection.

这就是Android P 开始禁止.

That is what Android P is starting to ban.

多年来,我一直建议开发人员不要访问这些东西,因为它们不可靠.由于基于Android版本或设备制造商/ROM modder的调整而导致的更改,因此任何Android设备都可能没有隐藏的内容.现在,Google至少在某些情况下将更坚定地执行该建议.

For years, I have been advising developers not to access such things, because they are unreliable. Any Android device may not have the hidden stuff, due to changes based on the Android version or device manufacturer/ROM modder tweaks. Now, Google is going to enforce this advice more firmly, at least in some cases.

特别使非SDK变得更好

specially that makes non-SDK once better

它们不是更好"的.但是,由于某种原因(例如,尚未解决API),他们可能会提供对SDK中不可用的某些功能的访问权限.

They are not "better". However, they may offer access to certain features that are not available in the SDK, for one reason or another (e.g., API is not settled yet).

这篇关于什么是非SDK接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆