简体   繁体   English

当我在Android中使用ADB时,如何获取恢复出厂设置的日期?

[英]How can i get date for factory reset when i did using ADB in android?

I am looking to get the date for factory reset for attached android devices. 我正在寻找连接的android设备恢复出厂设置的日期。 Actually i have to check it from my java code using ADB command.How can i get it if possible? 实际上我必须使用ADB命令从Java代码中进行检查。

Thank you in advance!!! 先感谢您!!!

This information is very vendor specific, and in general should NOT be available. 此信息是特定于供应商的,通常不应使用。

During factory reset (also known as master clear, master reset, hard reset) everything on device is reset to original factory state, such that nothing, not a single file or setting from previous device user remains. 在出厂重置(也称为主清除,主重置,硬重置)期间,设备上的所有内容均重置为原始出厂状态,这样就不会留下任何东西,除了以前的设备用户没有单个文件或设置。

This is designed such that you can sell your device after hard reset and not worry about any of your settings or pictures to be available to new owner. 这样设计的目的是,您可以在硬重置后出售设备,而不必担心新所有者可以使用任何设置或图片。 Or, you might want to return your device back to manufacturer, but be sure that none of your personal data is exposed. 或者,您可能希望将设备退还给制造商,但请确保所有个人数据都不会泄露。

Obviously, with this in mind, it should be clear that all device user partitions will be reformatted, often with secure erase option (it is typically available on eMMC devices). 显然,考虑到这一点,应该清楚所有设备用户分区​​将被重新格式化,通常使用安全擦除选项(通常在eMMC设备上可用)。

The only hope to get time of last hard reset would be if vendor-implemented hard reset routine had stored this timestamp somewhere in the configuration partition(s) at the time of hard reset. 获得上一次硬重置时间的唯一希望是,如果厂商实施的硬重置例程在硬重置时将该时间戳存储在配置分区中的某个位置。 But, I don't think that many vendors (if any) are actually bothering to do it. 但是,我认为许多供应商(如果有的话)实际上都不愿意这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM