您现在的位置是:首页 > 电脑 > 

如何将假时间提供给Android应用程序?(How to feed fake time to an android app?)

2025-07-29 13:04:31
如何将假时间提供给Android应用程序?(How to feed fake time to an android app?) 我想知道,我可以为某个应用程序提供虚假时间吗? 例如,如果我有X应用程序,我可以创建一个Y应用程序,以确保当X应用程序检查时间时,它将收到当前时间加上一定数量吗? 干杯 I'd like to know, can I feed f
如何将假时间提供给Android应用程序?(How to feed fake time to an android app?)

我想知道,我可以为某个应用程序提供虚假时间吗? 例如,如果我有X应用程序,我可以创建一个Y应用程序,以确保当X应用程序检查时间时,它将收到当前时间加上一定数量吗?

干杯

I'd like to know, can I feed fake time to a certain app? If I have the X app for example, can I create a Y app, that ensures that when the X app checks the time, it will receive the current time plus certain amount?

Cheers

最满意答案

您无法正常操作系统时钟。

在root设备上,您可以尝试使用SystemClock.setCurrentTimeMillis ,但这对所有应用程序都是全局的。

You can't manipulate system clock normally.

On a rooted device you could try with SystemClock.setCurrentTimeMillis, but that's global for all applicati.

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/diannao/653993.html

相关标签:无
上传时间: 2023-07-28 12:45:29
留言与评论(共有 7 条评论)
本站网友 宝宝不吃奶粉
5分钟前 发表
can I create a Y app
本站网友 青岛搬迁公司
19分钟前 发表
but that's global for all applicati.
本站网友 河马生鲜
29分钟前 发表
但这对所有应用程序都是全局的
本站网友 商务活动
12分钟前 发表
在root设备上
本站网友 溶血性黄疸
17分钟前 发表
You can't manipulate system clock normally. On a rooted device you could try with SystemClock.setCurrentTimeMillis
本站网友 重庆复地复城国际
20分钟前 发表
that ensures that when the X app checks the time