高通平台修改默认日期

android\vendor\qcom\proprietary\time-services

time_daemon_qmi.c

static int genoff_post_init(time_genoff_ptr time_genoff)
{
int rc;


if (time_genoff->init_func != NULL) {
rc = time_genoff->init_func();
if (rc) {
TIME_LOGE("Daemon:%s:Init func failed\n", __func__);
return -EINVAL;
}
}


if (time_genoff->per_storage_spec.initialized == 1) {
/* Read from the generic offset */
rc = time_persistent_memory_opr(

time_genoff->per_storage_spec.f_name,
TIME_READ_MEMORY, &(time_genoff->generic_offset));
if (rc) {
TIME_LOGD("Daemon:%s:Error in accessing storage\n",
__func__);
/* Modify by , 2015-1-1 start */
if (time_genoff->subsys_base == ATS_RTC) {
time_genoff->generic_offset = ((int64_t) 16436) * 24 * 60 * 60 * 1000;
time_persistent_memory_opr(time_genoff->per_storage_spec.f_name, TIME_WRITE_MEMORY, &time_genoff->generic_offset);
} else {
time_genoff->generic_offset = 0;
}

/* Modify by ,  end */


}
}


time_genoff->initialized = 1;


return 0;
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值