rk3288-8.1-屏保修改-四选一改成二选一

本文介绍了如何将Android系统的屏保四选一功能修改为二选一,主要涉及的文件路径是packagesappsSettingssrccomandroidsettingsdreamWhenToDreamPreferenceController.java,通过编辑该文件的特定部分可以实现这一更改。
摘要由CSDN通过智能技术生成

屏保是四选一的功能,鉴于特殊需求,有的客户不想要四选一,要求改成开关给到

然后,以下修改

路径:

\packages\apps\Settings\src\com\android\settings\dream\WhenToDreamPreferenceController.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 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.
 */

package com.android.settings.dream;
import android.provider.Settings;

import android.content.Context;
import android.support.v7.preference.Preference;
import 
以下是一份针对RK3288-EVB-Android SDK的DTS文件修改示例,可以实现SD卡启动: ``` /dts-v1/; /plugin/; / { model = "Rockchip RK3288-EVB board"; compatible = "rockchip,rk3288-evb"; memory@60000000 { device_type = "memory"; reg = <0x60000000 0x40000000>; }; chosen { bootargs = "console=ttyS2,115200n8 root=/dev/mmcblk1p2 rw rootwait earlyprintk"; stdout-path = &amp;uart2; }; uart2: serial@11004000 { compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; reg = <0x11004000 0x1000>; interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; clocks = <&amp;uart2_clk>; clock-names = "uartclk"; status = "okay"; }; sdhci@11014000 { compatible = "rockchip,rk3288-dw-mshc"; reg = <0x11014000 0x1000>; interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; clocks = <&amp;cru SCLK_SDMMC>, <&amp;cru PCLK_SDMMC>; clock-names = "sdmmc", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&amp;sdmmc_clk &amp;sdmmc_cmd &amp;sdmmc_bus4 &amp;sdmmc_bus8 &amp;sdmmc_cd_n>; status = "okay"; mmc-slot@0 { reg = <0>; bus-width = <8>; cd-gpios = <&amp;gpio7 3 GPIO_ACTIVE_LOW>; non-removable; status = "okay"; }; }; &amp;dpu { status = "okay"; }; &amp;lcdc { status = "okay"; }; &amp;backlight { status = "okay"; }; &amp;act8846_reg { status = "okay"; }; &amp;i2c1 { status = "okay"; act8846: act8846@5b { compatible = "active-semi,act8846"; reg = <0x5b>; gpio-controller; #gpio-cells = <2>; interrupt-parent = <&amp;gpio2>; interrupts = <6 IRQ_TYPE_LEVEL_LOW>; status = "okay"; }; }; &amp;mmc { status = "okay"; }; &amp;mmc1 { status = "okay"; }; &amp;mmc2 { status = "okay"; }; &amp;mmc3 { status = "okay"; }; &amp;mmc4 { status = "okay"; }; &amp;sdmmc_clk { rockchip,pins = <RK_GPIO3 8 RK_FUNC_2 &amp;pcfg_pull_none>; }; &amp;sdmmc_cmd { rockchip,pins = <RK_GPIO3 9 RK_FUNC_2 &amp;pcfg_pull_none>; }; &amp;sdmmc_bus4 { rockchip,pins = <RK_GPIO3 10 RK_FUNC_2 &amp;pcfg_pull_none>; }; &amp;sdmmc_bus8 { rockchip,pins = <RK_GPIO3 11 RK_FUNC_2 &amp;pcfg_pull_none>; }; &amp;sdmmc_cd_n { rockchip,pins = <RK_GPIO7 3 RK_FUNC_GPIO &amp;pcfg_pull_up>; }; }; ``` 此外,你还需要在编译内核时加入SD卡启动相关的配置选项。具体方法可以参考RK3288-Android SDK的文档。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

旋风旋风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值