1、Android7.1禁用锁屏功能
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -2488,7 +2488,7 @@ class DatabaseHelper extends SQLiteOpenHelper {
loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_SCREEN_READER_URL,
R.string.def_accessibility_screen_reader_url);
- if (SystemProperties.getBoolean("ro.lockscreen.disable.default", false) == true) {
+ if (SystemProperties.getBoolean("ro.lockscreen.disable.default", true) == true) {
loadSetting(stmt, Settings.System.LOCKSCREEN_DISABLED, "1");
} else {
loadBooleanSetting(stmt, Settings.System.LOCKSCREEN_DISABLED,
2、Android7.1插入Usb设备启动应用时默认授权
--- a/packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java
@@ -109,9 +109,15 @@ public class UsbPermissionActivity extends AlertActivity
mClearDefaultHint = (TextView)ap.mView.findViewById(
com.android.internal.R.id.clearDefaultHint);
mClearDefaultHint.setVisibility(View.GONE);
-
- setupAlert();
-
+
+ //zeni modi usb Dialogs
+ if(mPackageName.startsWith("com.hoppen.wax.test.testcamera")){
+ mPermissionGranted = true;
+ finish();
+ }
+ else {
+ setupAlert();
+ }
}
3、Android桌面显示图标大小(显示密度)底部虚拟按键
修改device/rockchip/rk3368/rk3368H_64/system.prop中ro.sf.lcd_density=200
build.prop中加入qemu.hw.mainkeys=1 可以去掉底部虚拟按键
4、插上HDMI电视大概率不显示画面
--- a/drivers/clk/rockchip/clk-rk3368.c
+++ b/drivers/clk/rockchip/clk-rk3368.c
@@ -96,6 +96,25 @@ static struct rockchip_pll_rate_table rk3368_pll_rates[] = {
{ /* sentinel */ },
};
+static struct rockchip_pll_rate_table rk3368_npll_rates[] = {
+ RK3066_PLL_RATE_NB(594000000, 1, 99, 4, 32),
+ RK3066_PLL_RATE_NB(585000000, 6, 585, 4, 32),
+ RK3066_PLL_RATE_NB(432000000, 3, 216, 4, 32),
+ RK3066_PLL_RATE_NB(426000000, 3, 213, 4, 32),
+ RK3066_PLL_RATE_NB(400000000, 1, 100, 6, 32),
+ RK3066_PLL_RATE_NB(342000000, 3, 171, 4, 32),
+ RK3066_PLL_RATE_NB(297000000, 2, 198, 8, 16),
+ RK3066_PLL_RATE_NB(270000000, 1, 135, 12, 32),
+ RK3066_PLL_RATE_NB(260000000, 1, 130, 12, 32),
+ RK3066_PLL_RATE_NB(148500000, 1, 99, 16, 32),
+ RK3066_PLL_RATE_NB(146250000, 6, 585, 16, 32),
+ RK3066_PLL_RATE_NB(108000000, 1, 54, 12, 32),
+ RK3066_PLL_RATE_NB(106500000, 4, 213, 12, 32),
+ RK3066_PLL_RATE_NB(85500000, 4, 171, 12, 32),
+ RK3066_PLL_RATE_NB(74250000, 4, 198, 16, 32),
+};
+
+
PNAME(mux_pll_p) = { "xin24m", "xin32k" };
PNAME(mux_armclkb_p) = { "apllb_core", "gpllb_core" };
PNAME(mux_armclkl_p) = { "aplll_core", "gplll_core" };
@@ -148,7 +167,7 @@ static struct rockchip_pll_clock rk3368_pll_clks[] __initdata = {
[gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3368_PLL_CON(16),
RK3368_PLL_CON(19), 8, 4, ROCKCHIP_PLL_SYNC_RATE, rk3368_pll_rates),
[npll] = PLL(pll_rk3066, PLL_NPLL, "npll", mux_pll_p, 0, RK3368_PLL_CON(20),
- RK3368_PLL_CON(23), 8, 5, 0, rk3368_pll_rates),
+ RK3368_PLL_CON(23), 8, 5, 0, rk3368_npll_rates),
};
static struct clk_div_table div_ddrphy_t[] = {
5、rk3399 Uboot中关机充电(基本上是由于io口不受控引起,使能io口、给电基本上就可以了)
diff --git a/.config b/.config
index 7f3cc81..20ecf57 100644
--- a/.config
+++ b/.config
@@ -1029,8 +1029,7 @@ CONFIG_POWER_FG_CW201X=y
#
# IO Domain Support
#
-# CONFIG_IO_DOMAIN is not set
+CONFIG_IO_DOMAIN=y
+CONFIG_ROCKCHIP_IO_DOMAIN=y
CONFIG_DM_PMIC=y
CONFIG_PMIC_CHILDREN=y
CONFIG_SPL_PMIC_CHILDREN=y
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 870309d..832fccf
--- a/drivers/power/pmic/rk8xx.c
+++ b/drivers/power/pmic/rk8xx.c
@@ -412,7 +412,8 @@ static int rk8xx_probe(struct udevice *dev)
uint8_t on_source = 0, off_source = 0;
uint8_t power_en0, power_en1, power_en2, power_en3;
uint8_t value;
-
+ pmic_reg_write(dev, REG_LDO_EN, 173);//使能LDO组电压以使能gpio2
+ printf("REG_LDO_EN==lxx==0x%x\n",pmic_reg_read(dev, REG_LDO_EN) );
/* read Chip variant */
if (device_is_compatible(dev, "rockchip,rk817") ||
device_is_compatible(dev, "rockchip,rk809")) {
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
index 71f5f1f..dbd7082
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -115,7 +115,8 @@ int arch_cpu_init(void)
/* Set perilp_nsp QOS priority to 3 for USB 3.0 */
writel(QOS_PRIORITY_LEVEL(3, 3), NIU_PERILP_NSP_ADDR);
-
+ writel(0xffff0300, PMU_GRF_SOC_CON0);//使能gpio1
+ printf("==lxx==%d\n",readl(0xff320180));
return 0;
}
6、默认系统语言为中文
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index 7efe57e..9f9b509 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -72,4 +72,9 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
fi
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
+persist.sys.language=zh
+persist.sys.country=CN
+ro.product.locale.language=zh
+ro.product.locale.region=CN
+
echo "# end build properties"
7、linux全屏显示(去掉上边栏)
weston-3.0.0/clients/desktop-shell.c中做如下修改:永久修改可在“0020-compositor-drm-Support-controlling-output-dynamicall.patch”中加入一下补丁
@ -1363,9 +1382,9 @ parse_panel_position(struct desktop *desktop, struct weston_config_section *s) {
char *position;
- desktop->want_panel = 1;
+ desktop->want_panel = 0;
- weston_config_section_get_string(s, "panel-position", &position, "top");
+ weston_config_section_get_string(s, "panel-position", &position, "none");
if (strcmp(position, "top") == 0) {
desktop->panel_position = WESTON_DESKTOP_SHELL_PANEL_POSITION_TOP;
} else if (strcmp(position, "bottom") == 0) {
8、去掉应添加gslx680.c触摸驱动导致桌面出现鼠标图标
libinput-1.8.2/src/evdev.c中做如下修改:
diff --git a/evdev.c b/evdev.c
index ea0ed7a..9121264 100755
--- a/evdev.c
+++ b/evdev.c
@@ -2652,8 +2652,7 @@ evdev_configure_device(struct evdev_device *device)
return dispatch;
}
- if (udev_tags & EVDEV_UDEV_TAG_MOUSE ||
- udev_tags & EVDEV_UDEV_TAG_POINTINGSTICK) {
+ if (udev_tags & EVDEV_UDEV_TAG_POINTINGSTICK) {
evdev_tag_external_mouse(device, device->udev_device);
evdev_tag_trackpoint(device, device->udev_device);
device->dpi = evdev_read_dpi_prop(device);
9、linux开机播放音频不出声:etc/init.d/S50launcher中播放音频前加play指令
printf "Starting launcher: "
export LC_ALL='zh_CN.utf8'
export QT_QPA_PLATFORM=wayland
export WESTON_DRM_MIRROR=1
export WESTON_DRM_KEEP_RATIO=1
export QT_GSTREAMER_WINDOW_VIDEOSINK=waylandsink
mkdir -p /tmp/.xdg && chmod 0700 /tmp/.xdg
export XDG_RUNTIME_DIR=/tmp/.xdg
weston --tty=2 --idle-time=0&
play
sleep 1
/usr/bin/PionpresueTM_ICP &
#/usr/bin/QLauncher &
10、默认打开WiFi
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
index e9bcf2a..aef448d 100755
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml