<!-- A product with no SD card == not removable. -->
    <bool name="config_externalStorageRemovable" product="nosdcard">false</bool>
    <!-- Configures whether the primary external storage device is
         removable.  For example, if external storage is on an SD card,
         it is removable; if it is built in to the device, it is not removable.
         The default product has external storage on an SD card, which is
         removable. -->
    <bool name="config_externalStorageRemovable" product="default">true</bool>product="nosdcard"
product="default"
这个值是在哪里设置的?

解决方案 »

  1.   

    在源码目录内frameworks\base\core\res\res\values\config.xml
      <integer name="config_radioScanningTimeout">0</integer> 
    - <!--  A product with no SD card == not removable. 
      --> 
      <bool name="config_externalStorageRemovable" product="nosdcard">false</bool> 
    - <!--  Configures whether the primary external storage device is
             removable.  For example, if external storage is on an SD card,
             it is removable; if it is built in to the device, it is not removable.
             The default product has external storage on an SD card, which is
             removable. 
      --> 
      <bool name="config_externalStorageRemovable" product="default">true</bool> 
      

  2.   

    首先谢谢你的关注,我是想要知道product的值是在哪里设置的,你给出的这个是对product的值读取然后做判断
      

  3.   

    找到方法了。
    在source/device/.../device.mk中
    product_characteristics=default
      

  4.   

    楼主请说明一下device.mk的全路径?我搜索了全部的device.mk,发现只有两个device.mk具有product_characteristics属性。
    1、device/samsung/tuna/device.mk 
    这个文件中原是:PRODUCT_CHARACTERISTICS := nosdcard。我把nosdcard改成default,没有效果。
    2、device/ti/panda/device.mk
    该文件里是:PRODUCT_CHARACTERISTICS := tablet,nosdcard。我感觉不是这儿,也没有试着修改这里尝试。
    楼主可否帮忙分析一下问题所在?
    另外:我这边的frameworks\base\core\res\res\values\config.xml文件中并没有config_externalStorageRemovable属性,是不是必须device.mk和config.xml均配置后才有效果?