Android 系统源码
milugcs
这个作者很懒,什么都没留下…
展开
-
android 10 系统源码 清除锁屏密码,必须进入系统桌面
android 10 系统源码 清除锁屏密码,必须进入系统桌面。原创 2022-10-07 14:50:16 · 722 阅读 · 0 评论 -
android 10 源码 保存系统锁屏密码
/frameworks/base/services/core/java/com/android/server/locksettings/LockSettingsService.java@@ -164,7 +164,7 @@ import javax.crypto.spec.GCMParameterSpec; public class LockSettingsService extends ILockSettings.Stub { private static final String TAG原创 2022-10-07 14:49:53 · 270 阅读 · 0 评论 -
android 10 系统源码 SystemUI 隐藏锁屏界面设置
android 10 系统源码 SystemUI 隐藏锁屏界面设置。原创 2022-10-07 14:46:54 · 558 阅读 · 0 评论 -
android 10 源码 修改开机状态下,长按power 10s自动重启
android 10 源码 修改开机状态下,长按power 10s自动重启。原创 2022-10-07 14:45:26 · 562 阅读 · 1 评论 -
android 10 framework 动态禁用双击power拍照功能、power+音量减按键截图功能
android 10 framework 动态禁用双击power拍照功能、power+音量减按键截图功能。原创 2022-10-07 14:44:32 · 358 阅读 · 0 评论 -
android 10 系统源码 framework 默认所有强制竖屏应用(SCREEN_ORIENTATION_PORTRAIT)横屏显示
frameworks/base/core/java/android/content/pm/PackageParser.java@@ -169,6 +169,8 @@ public class PackageParser { private static final boolean MULTI_PACKAGE_APK_ENABLED = Build.IS_DEBUGGABLE && SystemProperties.getBoolean(PROPERTY_原创 2022-04-22 19:15:18 · 2508 阅读 · 0 评论 -
android 10 framework 默认虚拟导航栏(navigationBar)一直在底部显示
/frameworks/base/core/res/res/values/config.xml<!-- Controls whether the nav bar can move from the bottom to the side in landscape. Only applies if the device display is not square. --><bool name="config_navBarCanMove">false</bool>原创 2022-02-24 19:09:59 · 603 阅读 · 0 评论 -
android 10 系统源码 开发者模式,过渡动画缩放代码设置流程
packages/apps/Settings/src/com/android/settings/development/TransitionAnimationScalePreferenceController.javaprivate void writeAnimationScaleOption(Object newValue) { try { float scale = newValue != null ? Float.parseFloat(newValue.to原创 2022-02-24 19:09:07 · 1086 阅读 · 0 评论 -
android 10 系统源码 SystemUI 长按Power,弹窗代码
frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * e原创 2021-12-04 14:39:25 · 1231 阅读 · 0 评论 -
android 10 系统源码 充电指示灯设置流程
frameworks/base/services/core/java/com/android/server/BatteryService.java /** * Synchronize on BatteryService. */ public void updateLightsLocked() { final int level = mHealthInfo.batteryLevel; final int s原创 2021-11-26 19:29:37 · 980 阅读 · 0 评论 -
android 10系统源码 xr2 固定wifi mac地址
device/qcom/wlan/kona/WCNSS_qcom_cfg_qca6390.ini@@ -13,6 +13,10 @@ InfraUapsdViSrvIntv=0 InfraUapsdBeSrvIntv=0 InfraUapsdBkSrvIntv=0 +read_mac_addr_from_mac_file=1+ # Flag to allow STA send AddTspec even when ACM is Off gAddTSWhenACMIsOff=1 设备us原创 2021-11-18 12:25:05 · 902 阅读 · 0 评论 -
android 10 系统源码 persist分区存储数据,并在system_server中对数据进行读写操作,过滤selinux对权限限制
Persist 分区恢复出厂设置不会被清除掉1.新建文件存储目录hs_data /device/qcom/common/rootdir/etc/init.qcom.rc@@ -157,6 +157,8 @@ on boot mkdir /mnt/vendor/persist/secnvm 0770 system system mkdir /mnt/vendor/persist/iar_db 0770 system system mkdir /mnt/vendor/spun原创 2021-11-13 11:27:14 · 4947 阅读 · 1 评论 -
android 10 系统源码 配置按键唤醒屏幕
frameworks/base/core/java/android/view/KeyEvent.java /** @hide */ public static final boolean isWakeKey(int keyCode) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: case KeyEvent.KEYCODE_MENU: case KeyEven原创 2021-11-08 20:46:04 · 2275 阅读 · 1 评论 -
Android 10 系统源码 锁屏状态下,设备接收蓝牙传送消息,屏幕未亮屏
frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java@@ -163,6 +163,7 @@ import android.os.IDeviceIdleController; import android.os.IInterface; import android.os.Looper; import android.os.Message;+import a原创 2021-11-08 20:38:08 · 638 阅读 · 0 评论 -
android 10 系统源码 配置hall开关或者开盖合盖屏幕亮灭屏控制
frameworks/base/core/res/res/values/config.xml@@ -907,12 +907,12 @@ <!-- Indicate whether closing the lid causes the lockscreen to appear. The default is false. -->- <bool name="config_lidControlsScreenLock">true</bool原创 2021-11-04 20:25:13 · 1052 阅读 · 0 评论 -
android 10 系统源码 (屏幕物理竖屏)默认开机动画横屏显示
1.frameworks/base/cmds/bootanimation/BootAnimation.cpp@@ -278,13 +278,18 @@ status_t BootAnimation::readyToRun() { status_t status = SurfaceComposerClient::getDisplayInfo(mDisplayToken, &dinfo); if (status) return -1;+ int ori原创 2021-11-04 20:11:17 · 1741 阅读 · 0 评论 -
android 10 系统源码 framework添加自定义物理按键流程
/frameworks/base/core/java/android/view/KeyEvent.javapublic static final int KEYCODE_PROFILE_SWITCH = 288;// 定义添加物理按键public static final int KEYCODE_PTT = 289;public static final int KEYCODE_SOS = 290;public static final int KEYCODE_HANDS_FREE = 291原创 2021-10-30 14:31:58 · 801 阅读 · 0 评论 -
android 10 系统源码 SystemUI 插入耳机,状态栏不显示耳机图标
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconController.java@@ -78,7 +78,7 @@ public interface StatusBarIconController { public static ArraySet<String> getIconBlacklist(String blackListStr) {原创 2021-10-30 14:07:18 · 497 阅读 · 0 评论 -
android 10系统源码 连接wifi,配置使用设备 mac 地址
vendor/qcom/proprietary/resource-overlay/common/Frameworks/res/values/config.xml<!-- Indicates that connected MAC randomization is supported on this device --><bool translatable="false" name="config_wifi_connected_mac_randomization_supported"&g原创 2021-10-30 14:01:36 · 953 阅读 · 0 评论 -
Android 10 系统源码 修改设备联网后,系统时间概率性没有自动更新
--- a/frameworks/base/core/java/android/util/NtpTrustedTime.java+++ b/frameworks/base/core/java/android/util/NtpTrustedTime.java@@ -57,6 +57,9 @@ public class NtpTrustedTime implements TrustedTime { private static int mNtpRetries = 0; private s原创 2021-10-27 16:57:38 · 516 阅读 · 0 评论