Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    A133 安卓10 文件不能立即保存

    其它全志芯片讨论区
    3
    4
    2808
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      szwellchip LV 4 last edited by

      大家好。发现A133+android10,上传文件或app数据,保存成功,但是在10s内断电(可能也更久),数据会有丢失。但是,如果是reset系统,那文件就会保存。
      1:通过adb push一个文件到Download中,可以在机器上看到这个文件了,但是断电,这个文件就会不存在了。
      2:我们的app会要记录一些关键数据,但是发现,如果断电,记录的数据就会丢失很多。
      请问大家,是否有方法来,在我需要的时候就立即保存?

      WhycanService 1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 8 @szwellchip last edited by

        @szwellchip adb是异步保存的,不能立即断电,可以查看adb的规格

        1 Reply Last reply Reply Quote Share 0
        • S
          szwellchip LV 4 last edited by

          感谢回复。
          但是我们发现,apk实时生成的数据保存,也会有问题:就是突然断电,数据不会保存。大约是3-5分钟的数据没有了。
          之前的安卓系统,比如6,就没有这个问题。估计是为了延长flash的寿命。如果要解决,要看哪部分的代码?

          whycan 1 Reply Last reply Reply Quote Share 0
          • whycan
            whycan晕哥 LV 9 @szwellchip last edited by

            @szwellchip
            在shell执行 sync 之后再重启,看看是否正常。

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策