当前位置: 首页 > 软件库 > 手机/移动开发 > >

android-hidden-api

授权协议 Apache-2.0 License
开发语言 Java
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 吴城
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Android Hidden APIs

Android Hidden APIs are classes, methods and resources that Google hides from you because of stability reason.These features are hidden because they may be changed on next API version.

The internal APIs are located in package com.android.internal and available in the framework.jar,while the hidden APIs are located in the android.jar file with @hide javadoc attribute.Now you know the difference. But I will refer to both as hidden APIs.

This repo contains custom android.jar which you can use to develop your app.However, if you urgently need to create your own android.jar, I also share you the Krabby Pattysecret recipe here: Create Your Own Android Hidden APIs.

Use Custom android.jar

  1. Download custom android.jar from Google Drive.
  2. Go to <SDK location>/platforms/.
  3. Copy, paste and replace the downloaded hidden API file into this directory, e.g. android-30/android.jar.
  4. Change compileSdkVersion and targetSdkVersion to 30 (for example).
  5. Finally, rebuild your project.

Note: Higher compileSdkVersion and targetSdkVersion will be better.

Resources Helper

If you plan to use only Android internal resources rather than internal classes or methods, do:

dependencies {
    implementation 'com.anggrayudi:android-hidden-api:30.0'
}

Here's some example of accessing internal resources:

String accept = InternalAccessor.getString("accept");
float sbar_height = InternalAccessor.getDimension("status_bar_height");
int notif_color = InternalAccessor.getColor("config_defaultNotificationColor");

Contributing

If you have your own custom android.jar and want to add it toGoogle Drive,please create an issue. I will upload it.

License

Copyright 2015-2020 Anggrayudi Hardiannicko A.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 相关资料
  • 以下示例描述如何使用Spring Web MVC框架在表单中使用隐藏字段。 首先,让我们使用一个可用的Eclipse IDE,并考虑以下步骤,使用Spring Web Framework开发基于动态表单的Web应用程序。 步 描述 1 在Spring MVC - Hello World章节中解释,在com.wenjiangs包下创建一个名为HelloWeb的项目。 2 在com.wenjiangs

  • 实现可以隐藏的面板。这个面板一般位于窗口的下方。起初只是一个箭头按钮,当用户点击箭头按钮是,面板会向上缓慢滑动出来。 [Code4App.com]

  • 一个简单的显示和隐藏Tab内容区的选项卡菜单。

  • 主要内容:Java15隐藏类的目标Java 15 引入了其他类字节码不能直接使用的隐藏类。这些隐藏类旨在供在运行时生成类并使用反射使用它们的框架使用。 隐藏类被定义为基于 Nest 的访问控制上下文的成员,它可以被卸载而与其他类无关。 该提案 JEP 371 旨在通过提供标准 API 来定义不可发现且生命周期有限的隐藏类,从而改进 JVM 上的所有语言。JDK 框架或外部框架可以动态生成类,从而可以生成隐藏类。 JVM 语言在很大

  • E.5. The hidden tag Renders an HTML 'input' tag with type 'hidden' using the bound value. 表 E.4. Attributes Attribute Required? Runtime Expression? Description id false true HTML Standard Attribute pa

  • 本文向大家介绍visibility=hidden, opacity=0,display:none的区别?相关面试题,主要包含被问及visibility=hidden, opacity=0,display:none的区别?时的应答技巧和注意事项,需要的朋友参考一下 参考回答: opacity=0,该元素隐藏起来了,但不会改变页面布局,并且,如果该元素已经绑定一些事件,如click事件,那么点击该区域