zoukankan      html  css  js  c++  java
  • android4.4的两个bug

     

    Android4.4做了大量的改动。但也造成了非常多新的问题。

    工作中碰到了几个比較有趣的bug。这两个bug在nexus 5上也有。

    记录一下。以资纪念


    1.Android4.4在解析jpg的时候使用的库不支持多线程,造成拷贝大量jpg文件的时候出错. 

    step to reproduce:

    a. Connect PC & DUT via USB cable.

    b. Settings -> Storage, check with MTP mode.

    c.copy jpg files to the device.Total size is about 100M.

    Actual result :Sometimes, the copy will fail.

    解决方法:解析的jpeg head的库须要支持多线程,好像是jhead那个库


    2.Android4.4 GMS Camera有问题。4.4GMS camera应用拍照以后jpg文件的实际大小和mtp database中的大小不一致,导致预览的时候可能出问题,解决预览的问题又会导致上面这个问题

    step to reproduce:

    a. Connect PC & DUT via USB cable.

    b. Settings -> Storage, check with MTP mode.

    c. Open DUT folder on PC, then try to open a camera captured picture file.

    d. Also test with PTP mode.

    Actual result : It takes long time to load picture file or sometimes it failed to load picture file

    解决方法:不使用GMS的camera,或者等google解决。或者改动MTP的代码,但可能会带来性能问题


    3.VPN mtu的问题

    有的站点通过公司VPN连接不上,如baidu或cnn连不上。查下来的原因是device上的mtu设的值有问题


  • 相关阅读:
    python爬虫之趟雷
    python附录-builtins.py模块str类源码(含str官方文档链接)
    python-基础学习篇(一)
    pycharm和webstorm永久激活方法
    计算机网络基础概述
    计算机基础
    B/S和C/S架构简单理解
    认识HTML中文本、图片、链接标签和路径
    结对开发
    全国疫情可视化地图 (一)
  • 原文地址:https://www.cnblogs.com/lytwajue/p/7099370.html
Copyright © 2011-2022 走看看