Android 手动指定 NTP 服务器: 在 shell (如 adb shell) 中执行
#tips #android
我的每一台 LineageOS 手机都无法自动同步时间,今天查了一下,AOSP 默认使用的 NTP 服务器是
网络上有人提到 "settings global ntp_server" 这个设置项,但无论是 google 官方文档[2]还是
[1]: https://source.android.com/docs/core/connect/time/network-time-detection#servers
[2]: https://developer.android.com/reference/android/provider/Settings.Global
[3]: https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/java/android/provider/Settings.java;l=14449
settings put global ntp_server <server name>
<server name> 可用 pool.ntp.org, 具体格式见下文。#tips #android
我的每一台 LineageOS 手机都无法自动同步时间,今天查了一下,AOSP 默认使用的 NTP 服务器是
time.android.com [1],而它在中国无法正常连接 (狗粪网? #trash #china #gfw)。网络上有人提到 "settings global ntp_server" 这个设置项,但无论是 google 官方文档[2]还是
settings list global 指令中都看不到这个 ntp_server 条目。于是去 cs.android.com 搜索 settings.global.ntp_server, 终于找到了具体定义[3]:/**
* SNTP client config: The preferred NTP server. This setting overrides the static
* config.xml configuration when present and valid.
*
* <p>The legacy form is the NTP server name as a string.
* <p>Newer code should use the form: ntp://{server name}[:port] (the standard NTP port,
* 123, is used if not specified).
*
* <p>The settings value can consist of a pipe ("|") delimited list of server names or
* ntp:// URIs. When present, all server name / ntp:// URIs must be valid or the entire
* setting value will be ignored and Android's xml config will be used.
*
* <p>For example, the following examples are valid:
* <ul>
* <li>"time.android.com"</li>
* <li>"ntp://time.android.com"</li>
* <li>"ntp://time.android.com:123"</li>
* <li>"time.android.com|time.other"</li>
* <li>"ntp://time.android.com:123|ntp://time.other:123"</li>
* <li>"time.android.com|ntp://time.other:123"</li>
* </ul>
*
* @hide
*/
@Readable
public static final String NTP_SERVER = "ntp_server";
[1]: https://source.android.com/docs/core/connect/time/network-time-detection#servers
[2]: https://developer.android.com/reference/android/provider/Settings.Global
[3]: https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/java/android/provider/Settings.java;l=14449
微软给 rust 做的 crate
声称
又由于微软没给这两个 crate 写任何文档,仍然得去看 c++ 的 win32 文档,而
这就导致
#microsoft #rust
windows 比 windows-sys 难用多了……声称
windows 更 rust idiomatic, 实际上 api 仍然是一坨屎,毕竟 win32 的基础摆在那里,除非重做抽象否则不可能好到哪里去。又由于微软没给这两个 crate 写任何文档,仍然得去看 c++ 的 win32 文档,而
windows 由于微软在 "idiomatic" 上的失败尝试, api 与 c++ 的有些许出入。这就导致
windows 极其难用,需要先看 c++ 那边的文档,然后摸索微软 "idiomatic" 改动后到底怎么用。还不如直接用从 c++ api 忠实翻译的 windows-sys#microsoft #rust
👍1
const trait 终于要来了 😌
https://github.com/rust-lang/rust-project-goals/issues/106
Re-constification of libstd has commenced
https://github.com/rust-lang/rust-project-goals/issues/106
GitHub
rust-lang/rust-project-goals
Rust Project Goals tracker. Contribute to rust-lang/rust-project-goals development by creating an account on GitHub.
边界条件之场
小米 13 有官方 LineageOS 了!! https://wiki.lineageos.org/devices/fuxi/ #phone #xiaomi
👀 下一集得 2026?
https://www.youtube.com/watch?v=MCAdbUaMlAE
https://www.youtube.com/watch?v=MCAdbUaMlAE
YouTube
KNIGHTS OF GUINEVERE: PILOT
Knights of Guinevere is a psychological thriller that welcomes you to a planet-wide theme park in the clouds!… And the shadows below, where a broken Princess Android is two dreamers’ tickets to better lives, or the end of them. :3 💙
HELP US GREENLIGHT A FULL…
HELP US GREENLIGHT A FULL…
👀 the rust book 去年十月新加了一章介绍 async
https://github.com/rust-lang/book/pull/4037
https://github.com/rust-lang/book/pull/4037
GitHub
Chapter 17: Async and Await by chriskrycho · Pull Request #4037 · rust-lang/book
A working draft of a new chapter on async and await! If you have been invited to give comments, please do so! If you’re not someone we have actively invited, we kindly ask you to hold off: although...
audacity 要还技术债了 🤔
https://www.youtube.com/watch?v=QYM3TWf_G38
https://www.youtube.com/watch?v=QYM3TWf_G38
YouTube
How We're Redesigning Audacity For The Future
This video digs into the research and design that went into gradually transforming Audacity 3 - a free and open source audio editor and production app - and how we've built on that work to develop Audacity 4.
SUPPORT
Help me become a full-time creator so…
SUPPORT
Help me become a full-time creator so…
咦, kde 什么时候有第一方 global menu 了 👀
https://www.youtube.com/watch?v=prG9xFkvlNg
(ps: kde 文档真不错! + up 主识字! 😂)
https://www.youtube.com/watch?v=prG9xFkvlNg
(ps: kde 文档真不错! + up 主识字! 😂)
YouTube
I Tried Designing My FIRST Linux UI
Learn for Free on Brilliant: https://brilliant.org/Juxtopposed and get 20% off your annual Premium subscription!
---
In this video, I'm exploring my first Linux setup (EndeavourOS) while theming KDE Plasma 6. Hope you enjoy!
Get My Theme: https://githu…
---
In this video, I'm exploring my first Linux setup (EndeavourOS) while theming KDE Plasma 6. Hope you enjoy!
Get My Theme: https://githu…
给小米 13 升级了 los 23.0, 开机以后差点以为升级失败了……一眼看上去什么变化都没有,最想要的紧凑化控制中心也没有。要不是系统信息里明确写着 android 16, 根本看不出是 android 16 🫥
那些谷歌大肆宣传的新特性、新设计原来都在 QPR1 里,而 #trash #google 始终没有推送 QPR1 源码到 AOSP 😡
https://lineageos.org/Changelog-30/
那些谷歌大肆宣传的新特性、新设计原来都在 QPR1 里,而 #trash #google 始终没有推送 QPR1 源码到 AOSP 😡
https://lineageos.org/Changelog-30/
Lineage
Changelog 30 - Sleek Sixteen, Streamlined Suite, Future Flow
23 is prime
Forwarded from 维兰的存储间
布告栏上的贴纸
毕竟对我男朋友来讲,吐舌头的我也是十分可爱了。
「亲密关系」对精神状态差的人来说很有必要,特别是由自己选择的,可以完全托付的人
理论上家庭应该也有类似的功能,但是老中的家庭有几个能无话不说甚至给出建议呢,至少我就不可以
我没法和他们交流很复杂的东西,我觉得他们知道我还活着就可以了,平时日常打打招呼,就像游戏里的npc日常活动一样模式化
但是,我对于我能进入这种「亲密关系」里面不抱有希望,我的情感应该是缺失了某些东西,这些东西原本应该会在未成年时自然生长,在我的身上它并没有正常发育
理论上家庭应该也有类似的功能,但是老中的家庭有几个能无话不说甚至给出建议呢,至少我就不可以
我没法和他们交流很复杂的东西,我觉得他们知道我还活着就可以了,平时日常打打招呼,就像游戏里的npc日常活动一样模式化
但是,我对于我能进入这种「亲密关系」里面不抱有希望,我的情感应该是缺失了某些东西,这些东西原本应该会在未成年时自然生长,在我的身上它并没有正常发育