Lineageos 22.1(Android 15)Launcer简单调整初始化配置

一、前言

Launcer的初始化配置主要在如下的xml文件夹下,默认读取的5x5
在这里插入图片描述
这里我们把device_profiles调整一下,然后新建一个default_workspace_my.xml作为我们自己的配置就行。

二、配置

注意Lineageos 的Launcer是在lineageos/packages/apps/Trebuchet这个目录下面,和原生aosp有点差别。
简单调整
device_profiles.xml,

 <grid-optionlauncher:name="5_by_5"launcher:numRows="5"launcher:numColumns="6"launcher:numFolderRows="4"launcher:numFolderColumns="4"launcher:numHotseatIcons="5"launcher:numExtendedHotseatIcons="6"launcher:dbFile="launcher.db"launcher:inlineNavButtonsEndSpacing="@dimen/taskbar_button_margin_split"launcher:defaultLayoutId="@xml/default_workspace_my"launcher:deviceCategory="phone|multi_display" ><display-optionlauncher:name="Large Phone"launcher:minWidthDps="406"launcher:minHeightDps="694"launcher:iconImageSize="56"launcher:iconTextSize="12.0"launcher:allAppsBorderSpace="16"launcher:allAppsCellHeight="104"launcher:canBeDefault="true" /><display-optionlauncher:name="Large Phone Split Display"launcher:minWidthDps="406"launcher:minHeightDps="694"launcher:iconImageSize="56"launcher:iconTextSize="12.0"launcher:allAppsBorderSpace="16"launcher:allAppsCellHeight="104"launcher:canBeDefault="true" /><display-optionlauncher:name="Shorter Stubby"launcher:minWidthDps="255"launcher:minHeightDps="400"launcher:iconImageSize="48"launcher:iconTextSize="12.0"launcher:allAppsBorderSpace="16"launcher:allAppsCellHeight="104"launcher:canBeDefault="true" /></grid-option>

就调整了两行代码

  launcher:numColumns="6"launcher:defaultLayoutId="@xml/default_workspace_my"

然后是 default_workspace_my.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source ProjectLicensed 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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.
--><favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"><!-- Hotseat (We use the screen as the position of the item in the hotseat) --><!-- Dialer, Messaging, Contacts, Browser, Camera --><resolvelauncher:container="-101"launcher:screen="0"launcher:x="0"launcher:y="0" ><favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" /><favorite launcher:uri="tel:123" /><favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" /></resolve><resolvelauncher:container="-101"launcher:screen="1"launcher:x="1"launcher:y="0" ><favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MESSAGING;end" /><favorite launcher:uri="sms:" /><favorite launcher:uri="smsto:" /><favorite launcher:uri="mms:" /><favorite launcher:uri="mmsto:" /></resolve><resolvelauncher:container="-101"launcher:screen="2"launcher:x="2"launcher:y="0" ><favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_CONTACTS;end" /></resolve><resolvelauncher:container="-101"launcher:screen="3"launcher:x="3"launcher:y="0" ><favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_BROWSER;end" /><favorite launcher:uri="http://www.example.com/" /></resolve><resolvelauncher:container="-101"launcher:screen="4"launcher:x="4"launcher:y="0" ><favorite launcher:uri="#Intent;action=android.media.action.STILL_IMAGE_CAMERA;end" /><favorite launcher:uri="#Intent;action=android.intent.action.CAMERA_BUTTON;end" /></resolve><!-- Screen 0 -->
<!--    <appwidget-->
<!--        launcher:packageName="com.google.android.googlequicksearchbox"-->
<!--        launcher:className="com.google.android.googlequicksearchbox.SearchWidgetProvider"-->
<!--        launcher:screen="0"-->
<!--        launcher:x="0"-->
<!--        launcher:y="0"-->
<!--        launcher:spanX="5"-->
<!--        launcher:spanY="1" />--><appwidgetlauncher:packageName="com.android.deskclock"launcher:className="com.android.alarmclock.DigitalAppWidgetProvider"launcher:screen="0"launcher:x="0"launcher:y="1"launcher:spanX="6"launcher:spanY="2" /><!-- Google Folder --><!-- Google, Gmail, Maps, YouTube, Drive, YouTube Music, Play Movies, Duo, Photos --><folderlauncher:title="@string/google_folder_title"launcher:screen="0"launcher:x="0"launcher:y="4"><favoritelauncher:packageName="com.google.android.googlequicksearchbox"launcher:className="com.google.android.googlequicksearchbox.SearchActivity"/><favoritelauncher:packageName="com.google.android.gm"launcher:className="com.google.android.gm.ConversationListActivityGmail"/><favoritelauncher:packageName="com.google.android.apps.maps"launcher:className="com.google.android.maps.MapsActivity"/><favoritelauncher:packageName="com.google.android.youtube"launcher:className="com.google.android.youtube.app.honeycomb.Shell$HomeActivity"/><favoritelauncher:packageName="com.google.android.apps.docs"launcher:className="com.google.android.apps.docs.app.NewMainProxyActivity"/><favoritelauncher:packageName="com.google.android.apps.youtube.music"launcher:className="com.google.android.apps.youtube.music.activities.MusicActivity"/><favoritelauncher:packageName="com.google.android.videos"launcher:className="com.google.android.youtube.videos.EntryPoint"/><favoritelauncher:packageName="com.google.android.apps.tachyon"launcher:className="com.google.android.apps.tachyon.MainActivity"/><favoritelauncher:packageName="com.google.android.apps.photos"launcher:className="com.google.android.apps.photos.home.HomeActivity"/></folder><favoritelauncher:screen="0"launcher:x="4"launcher:y="4"launcher:packageName="com.android.vending"launcher:className="com.android.vending.AssetBrowserActivity"/><!-- Screen 1 -->
<!--    <appwidget-->
<!--        launcher:packageName="org.lineageos.twelve"-->
<!--        launcher:className="org.lineageos.twelve.ui.widgets.NowPlayingAppWidgetProvider"-->
<!--        launcher:screen="1"-->
<!--        launcher:x="0"-->
<!--        launcher:y="0"-->
<!--        launcher:spanX="5"-->
<!--        launcher:spanY="1" />--><resolvelauncher:screen="1"launcher:x="0"launcher:y="-1" ><favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_EMAIL;end" /><favorite launcher:uri="mailto:" /></resolve><resolvelauncher:screen="1"launcher:x="1"launcher:y="-1" ><favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_GALLERY;end" /><favorite launcher:uri="#Intent;type=images/*;end" /></resolve><favoritelauncher:packageName="org.lineageos.twelve"launcher:className="org.lineageos.twelve.MainActivity"launcher:screen="1"launcher:x="2"launcher:y="-1" /><favoritelauncher:packageName="com.android.settings"launcher:className="com.android.settings.Settings"launcher:screen="1"launcher:x="3"launcher:y="-1" /></favorites>

这里也调整了几个地方,把时钟弄成了6x2,然后移除了第二屏的音乐widget。
最后我们编译一下

make -j13 TrebuchetQuickStep  

这里更新直接安装apk就行,但是因为Launcer只有第一次会读取xml并保存到数据库,所以要删除db

adb root;adb remount
adb shell rm /data/data/com.android.launcher3/databases/launcher.db
adb reboot

重启后第二屏幕的music没有了,然后列数也变成了6列。

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/22444.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

量子计算的基本运算:Hadamard 门、CNOT 门、Pauli 门详解

量子计算是现代计算科学的前沿领域,它与经典计算机在处理信息的方式上有着本质的区别。量子计算机利用量子比特(qubit)的叠加态和量子纠缠等特性来进行计算,从而在某些特定任务上超越传统计算机。量子计算的核心运算单元是量子门,它们通过作用于量子比特来操控量子状态。本…

Java 大视界 -- 国际竞争与合作:Java 大数据在全球市场的机遇与挑战(94)

&#x1f496;亲爱的朋友们&#xff0c;热烈欢迎来到 青云交的博客&#xff01;能与诸位在此相逢&#xff0c;我倍感荣幸。在这飞速更迭的时代&#xff0c;我们都渴望一方心灵净土&#xff0c;而 我的博客 正是这样温暖的所在。这里为你呈上趣味与实用兼具的知识&#xff0c;也…

游戏引擎学习第113天

仓库:https://gitee.com/mrxiao_com/2d_game_2 黑板&#xff1a;优化的基本过程 在游戏编程中&#xff0c;优化是一个非常重要的学习内容&#xff0c;尤其是想要成为专业开发者时。优化的核心是理解代码的执行速度&#xff0c;以及如何提升其性能。在这个阶段&#xff0c;已经…

教师教学技能大赛流程方案及细则

为了适应高等教育的改革和我校的生存发展&#xff0c;进一步提升教师教学技能和教育教学能力&#xff0c;促进教师专业发展&#xff0c;提高教师综合素质&#xff0c;加强我校教师队伍建设&#xff0c;提高教育教学质量&#xff0c;举办青年教师教学技能大赛&#xff0c;特制订…

QML MouseArea 鼠标事件详解

鼠标区域是一个不可见的项目&#xff0c;通常与可见项目一起使用&#xff0c;以便为该项目提供鼠标处理。通过有效地充当代理&#xff0c;鼠标处理逻辑可以包含在MouseArea项中。 有关MouseArea和按钮单击的信息是通过为其定义事件处理程序属性的信号提供的。最常用的是处理鼠…

系统思考—结构影响行为

“付费是对价值的认可&#xff0c;它是承诺的体现&#xff0c;是我们共同走向未来的信任。” — 吉姆柯林斯 在组织中&#xff0c;结构的影响几乎无处不在。它不仅定义了我们的流程、职能和角色&#xff0c;更在不知不觉中塑造了我们日常的行为和决策方式。每一次决策、每一个…

嵌入式标志位解决程序卡顿问题

在写程序实现多个功能时发现会因为延时时间长导致其他功能程序无法运行问题 例如在写闹钟程序时&#xff0c;如果闹钟响灯亮5秒&#xff0c;这五秒期间会导致led显示的时间停止更细&#xff0c;等五秒过后直接显示5秒后正确的时间。这个因为程序是顺序运行的&#xff0c;延时时…

BFS算法解决最短路径问题(典型算法思想)—— OJ例题算法解析思路

目录 一、1926. 迷宫中离入口最近的出口 - 力扣&#xff08;LeetCode&#xff09; 算法代码&#xff1a; 代码分析 各个部分的解释 注意事项 整体的含义 具体情况 使用 e[0] 和 e[1] 的优势 总结 示例代码中的用法 整体流程 示例 复杂度分析 总结 二、433. 最小基…

《Europe From Above》鸟瞰欧洲(意境欧洲)@ 第三季

目录 第1集 爱尔兰克罗克公园灰海豹保护团队防风石墙无线电望远镜水产凤凰公园农业惊艳瞬间 第2集 挪威第3集 克罗地亚第4集 葡萄牙第5集 冰岛第6集 瑞士制作与播出信息 第1集 爱尔兰 本集聚焦爱尔兰的自然与人文交融&#xff1a; 克罗克公园 首都都柏林的克罗克公园&#x…

cs106x-lecture14(Autumn 2017)-SPL实现

打卡cs106x(Autumn 2017)-lecture14 (以下皆使用SPL实现&#xff0c;非STL库&#xff0c;后续课程结束会使用STL实现) 1、min Write a function named min that accepts a pointer to a ListNode representing the front of a linked list. Your function should return the …

【HeadFirst系列之HeadFirstJava】第4天之理解对象的行为:方法操作实例变量

理解对象的行为&#xff1a;方法操作实例变量 在《Head First Java》的第四章节中&#xff0c;作者深入探讨了对象的行为&#xff0c;即方法如何操作实例变量。这一章节的核心思想是&#xff1a;对象的行为由其方法定义&#xff0c;而方法通过操作实例变量来实现这些行为。理解…

自注意力机制和CNN的区别

CNN&#xff1a;一种只能在固定感受野范围内进行关注的自注意力机制。​CNN是自注意力的简化版本。自注意力&#xff1a;具有可学习感受野的CNN。自注意力是CNN的复杂形态&#xff0c;是更灵活的CNN&#xff0c;经过某些设计就可以变为CNN。 越灵活、越大的模型&#xff0c;需要…

网络运维学习笔记 012网工初级(HCIA-Datacom与CCNA-EI)某机构新增:GRE隧道与EBGP实施

文章目录 GRE隧道&#xff08;通用路由封装&#xff0c;Generic Routing Encapsulation&#xff09;协议号47实验&#xff1a;思科&#xff1a;开始实施&#xff1a; 华为&#xff1a;开始实施&#xff1a; eBGP实施思科&#xff1a;华为&#xff1a; GRE隧道&#xff08;通用路…

Mac m1 连接公司内网

1、创建VPN 1、在系统偏好设置 2、选择网络 3、进行添加 2、添加设置 1、选择VPN 2、类型选择L2TP/IPSec 3、填写服务器IP和账号 4、点击认证设置-填写密码 。然后应用 3、进行特殊配置 网上说苹果系统的问题。 1、创建命令 sudo vim /etc/ppp/options 2、添加内容-主要别…

【多模态处理篇七】【DeepSeek传感器融合:IMU+视觉SLAM方案】

大家好,今天我们来聊聊一个非常酷的技术——DeepSeek传感器融合:IMU+视觉SLAM方案。这个技术在现代机器人、自动驾驶、AR/VR等领域都有广泛的应用。我们将从基础概念开始,逐步深入到核心原理和实现细节,力求让大家对这个技术有一个全面而深入的理解。 1. 什么是SLAM? 首…

医疗报销系统的设计与实现(代码+数据库+LW)

摘 要 传统信息的管理大部分依赖于管理人员的手工登记与管理&#xff0c;然而&#xff0c;随着近些年信息技术的迅猛发展&#xff0c;让许多比较老套的信息管理模式进行了更新迭代&#xff0c;报销单信息因为其管理内容繁杂&#xff0c;管理数量繁多导致手工进行处理不能满足…

LangChain 技术入门指南:探索语言模型的无限可能

在当今的技术领域&#xff0c;LangChain 正逐渐崭露头角&#xff0c;成为开发语言模型应用的强大工具。如果你渴望深入了解并掌握这一技术&#xff0c;那么就跟随本文一起开启 LangChain 的入门之旅吧&#xff01; (后续将持续输出关于LangChain的技术文章,有兴趣的同学可以关注…

windows服务器本地部署deepseek并训练

1.安装python3.10 下载地址 Index of python-local/3.10.9 安装64位windows版本 2.下载到LLaMA-Factory github地址&#xff1a; GitHub - hiyouga/LLaMA-Factory: Unified Efficient Fine-Tuning of 100 LLMs & VLMs (ACL 2024) 3. 修改pip镜像源 -- 将pip使用镜像源更…

孜然单授权系统V2.0PHP授权系统

孜然单授权V1.0系统&#xff0c;延续了2022年开发的孜然多应用授权系统V2.0 变更&#xff1a;多应用变单系统&#xff0c;去除没用的垃圾代码&#xff0c;从0开发&#xff0c;去除了一些没用的功能 完善了开发文档&#xff0c;之前那套是我写着玩的屎山代码&#xff0c;V1.0将展…

智慧校园系统在学生学习与生活中的应用

随着科技的快速发展&#xff0c;智慧校园系统逐渐成为现代教育不可或缺的一部分。它整合了先进的信息技术、物联网技术以及人工智能等&#xff0c;旨在构建一个全面、智能、个性化的学习与生活环境。对于学生而言&#xff0c;这一系统不仅能够极大地提高学习效率&#xff0c;还…