如何在Jellybean设备上启用USB系列? -- 4.1-jelly-bean 领域 和 usb-tethering 领域 android 相关 的问题

How do I enable USB tethering on a JellyBean device?


5
vote

问题

中文

JellyBean是否支持USB系绳?

是否有一种方法编译jb源,因此始终启用USB系绳? 我想通过操作系统拥有支持,而不是依赖于应用程序。

英文原文

Does JellyBean support USB tether?

Is there a way compile the JB source so USB tether is always enabled? I would like to have the support through the OS and not depend on an App.

     

回答列表

6
 
vote

是。

在IC上,可以在

中找到设置

Settings -> Wireless & Networks -> More.. -> Tethering & portable hotspot -> USB tethering

我认为它应该在果冻豆上的同一个地方。请注意,您需要一个带有蜂窝数据芯片的设备进行此功能。没有(例如,Nexus 7)的设备不会显示此选项。

USB保育支持加入2.2(Froyo)释放

 

Yes.

On ICS the setting can be found at

Settings -> Wireless & Networks -> More.. -> Tethering & portable hotspot -> USB tethering

I think it should be at the same place on Jelly Bean. Note that you need a device with a cellular data chip for this feature. Devices without (e.g. the Nexus 7) won't show this option.

USB tethering support was added with the 2.2 (Froyo) release

 
 
         
         
2
 
vote
vote
最佳答案
 

我成功地用果冻bean在nexus 7上工作了。

修改设备/华硕/ gouper /覆盖/框架/基础/核心/ res / res / value / config.xml是以下内容:

  <?xml version="1.0" encoding="utf-8"?> <!-- /* ** Copyright 2009, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** **     http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ -->  <!-- These resources are around just to allow their values to be customized      for different hardware and product builds. --> <resources>     <!-- Flag indicating whether we should enable the automatic brightness in Settings.      config_hardware_automatic_brightness_available is not set, so we will use software implementation -->     <bool name="config_automatic_brightness_available">true</bool>      <!-- There is no charging LED. -->     <bool name="config_unplugTurnsOnScreen">true</bool>      <!-- Our amoled doesn't animate well. -->     <bool name="config_animateScreenLights">false</bool>      <!-- disable menu hard key on Crespo in non-pattern lockscreen -->     <bool name="config_disableMenuKeyInLockScreen">true</bool>      <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.      The N entries of this array define N + 1 zones as follows:       Zone 0:        0 <= LUX < array[0]      Zone 1:        array[0] <= LUX < array[1]      ...      Zone N:        array[N - 1] <= LUX < array[N]      Zone N + 1:    array[N] <= LUX < infinity       Must be overridden in platform specific overlays -->     <integer-array name="config_autoBrightnessLevels">     <item>7</item>     <item>94</item>     <item>208</item>     <item>458</item>     <item>2223</item>     </integer-array>      <!-- Array of output values for LCD backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.     -->     <integer-array name="config_autoBrightnessLcdBacklightValues">     <item>10</item>     <item>35</item>     <item>55</item>     <item>70</item>     <item>70</item>     <item>250</item>     </integer-array>      <!-- Array of output values for button backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.     -->     <integer-array name="config_autoBrightnessButtonBacklightValues">     <item>255</item>     <item>255</item>     <item>255</item>     <item>0</item>     <item>0</item>     <item>0</item>     </integer-array>      <!-- Array of output values for keyboard backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.      Crespo has no keyboard so all values are zero.     -->     <integer-array name="config_autoBrightnessKeyboardBacklightValues">     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     </integer-array>      <!-- Minimum screen brightness allowed by the power manager. -->     <integer name="config_screenBrightnessDim">10</integer>      <!-- Component name of the default wallpaper. This will be ImageWallpaper if not       specified -->     <string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>      <integer name="config_deskDockKeepsScreenOn">0</integer>     <integer name="config_carDockKeepsScreenOn">1</integer>      <!-- Default color for notification LED is white -->     <color name="config_defaultNotificationColor">#ffffffff</color>      <!-- Default blink frequency for notification LED is 9 seconds. -->     <integer name="config_defaultNotificationLedOff">9000</integer>      <!-- Package name providing network location support. -->     <string name="config_networkLocationProviderPackageName" translatable="false">com.google.android.location</string>      <!-- Package name providing geocoder API support. -->     <string name="config_geocodeProviderPackageName" translatable="false">com.google.android.location</string>      <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.      Please don't copy them, copy anything else. -->      <!-- This string array should be overridden by the device to present a list of network      attributes.  This is used by the connectivity manager to decide which networks can coexist      based on the hardware -->     <!-- An Array of "[Connection name],[ConnectivityManager connection type],      [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet]  -->     <!-- the 5th element "resore-time" indicates the number of milliseconds to delay      before automatically restore the default connection.  Set -1 if the connection      does not require auto-restore. -->     <!-- the 6th element indicates boot-time dependency-met value. -->     <string-array translatable="false" name="networkAttributes">     <item>"wifi,1,1,1,-1,true"</item>     <item>"mobile,0,0,0,-1,true"</item>     <item>"mobile_mms,2,0,2,60000,true"</item>     <item>"mobile_supl,3,0,2,60000,true"</item>     <item>"mobile_dun,4,0,4,60000,true"</item>     <item>"mobile_hipri,5,0,3,60000,true"</item>     <item>"bluetooth,7,7,0,-1,true"</item>     </string-array>      <!-- This string array should be overridden by the device to present a list of radio      attributes.  This is used by the connectivity manager to decide which networks can coexist      based on the hardware -->     <!-- An Array of "[ConnectivityManager connectionType],                   [# simultaneous connection types]"  -->     <string-array translatable="false" name="radioAttributes">     <item>"1,1"</item>     <item>"0,1"</item>     <item>"7,1"</item>     </string-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      USB interfaces.  If the device doesn't want to support tething over USB this should      be empty.  An example would be "usb.*" -->     <string-array translatable="false" name="config_tether_usb_regexs">     <item>"rndis0"</item>     </string-array>      <!-- Array of allowable ConnectivityManager network types for tethering -->     <!-- Common options are [1, 4] for wifi and dun or [0,1,5,7] for -->     <!-- mobile, wifi, hipri and bluetooth -->     <integer-array translatable="false" name="config_tether_upstream_types">     <item>0</item>     <item>1</item>     <item>5</item>     <item>7</item>     </integer-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      Wifi interfaces.  If the device doesn't want to support tethering over Wifi this      should be empty.  An example would be "softap.*" -->     <string-array translatable="false" name="config_tether_wifi_regexs">     <item>"wlan0"</item>     </string-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      bluetooth interfaces.  If the device doesn't want to support tethering over bluetooth this      should be empty. -->     <string-array translatable="false" name="config_tether_bluetooth_regexs">     <item>"bnep\d"</item>     </string-array>      <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->     <integer-array name="config_keyboardTapVibePattern">     <item>30</item>     </integer-array>      <!-- Vibrator pattern for feedback about booting with safe mode disabled -->     <integer-array name="config_safeModeDisabledVibePattern">     <item>1</item>     </integer-array>      <!-- crespo doesn't handle this blur effect very quickly. -->     <bool name="config_sf_slowBlur">true</bool>       <!-- Boolean indicating if restoring network selection should be skipped -->     <!-- The restoring is handled by modem if it is true -->     <bool translatable="false" name="skip_restoring_network_selection">true</bool>      <!-- Specifies the amount of time to disable virtual keys after the screen is touched      in order to filter out accidental virtual key presses due to swiping gestures      or taps near the edge of the display.  May be 0 to disable the feature.      It is recommended that this value be no more than 250 ms.      This feature should be disabled for most devices. -->     <integer name="config_virtualKeyQuietTimeMillis">250</integer>      <!-- Boolean indicating if current platform supports bluetooth wide band      speech -->     <bool name="config_bluetooth_wide_band_speech">false</bool>      <bool name="config_ui_enableFadingMarquee">false</bool>      <!-- The attenuation in dB applied to the sound effects played      through AudioManager.playSoundEffect() when no volume is specified. -->     <integer name="config_soundEffectVolumeDb">-12</integer>  <string-array name="config_usbHostBlacklist">      <item>/dev/bus/usb/001</item>      </string-array>  <bool name="config_showNavigationBar">true</bool>  </resources>   

修改输出/目标/产品/ grouper / root / init.usb.rc是以下内容:

  # Copyright (C) 2012 The Android Open Source Project # # USB configuration common for all android devices #  on post-fs-data     chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file     chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file     chown system system /sys/class/android_usb/android0/f_rndis/ethaddr     chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr  # Used to disable USB when switching states on property:sys.usb.config=none     stop adbd     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/bDeviceClass 0     setprop sys.usb.state ${sys.usb.config}  # adb only USB configuration # This should only be used during device bringup # and as a fallback if the USB manager fails to set a standard configuration on property:sys.usb.config=adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct D002     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # USB accessory configuration on property:sys.usb.config=accessory     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d00     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # USB accessory configuration, with adb on property:sys.usb.config=accessory,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d01     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # audio accessory configuration on property:sys.usb.config=audio_source     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d02     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # audio accessory configuration, with adb on property:sys.usb.config=audio_source,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d03     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # USB and audio accessory configuration on property:sys.usb.config=accessory,audio_source     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d04     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # USB and audio accessory configuration, with adb on property:sys.usb.config=accessory,audio_source,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d05     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # Used to set USB configuration at boot and to switch the configuration # when changing the default configuration on property:persist.sys.usb.config=*     setprop sys.usb.config ${persist.sys.usb.config}  on property:sys.usb.config=rndis     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 4e23     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/bDeviceClass 224     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  on property:sys.usb.config=rndis,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 4e24     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/bDeviceClass 224     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}   

并使用启用了RNDIS的修改后的Tegra内核。

请参考这个xda post

 

I successfully got native USB tethering working on the Nexus 7 with Jelly Bean.

Modify the device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml to be the following:

<?xml version="1.0" encoding="utf-8"?> <!-- /* ** Copyright 2009, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** **     http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ -->  <!-- These resources are around just to allow their values to be customized      for different hardware and product builds. --> <resources>     <!-- Flag indicating whether we should enable the automatic brightness in Settings.      config_hardware_automatic_brightness_available is not set, so we will use software implementation -->     <bool name="config_automatic_brightness_available">true</bool>      <!-- There is no charging LED. -->     <bool name="config_unplugTurnsOnScreen">true</bool>      <!-- Our amoled doesn't animate well. -->     <bool name="config_animateScreenLights">false</bool>      <!-- disable menu hard key on Crespo in non-pattern lockscreen -->     <bool name="config_disableMenuKeyInLockScreen">true</bool>      <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.      The N entries of this array define N + 1 zones as follows:       Zone 0:        0 <= LUX < array[0]      Zone 1:        array[0] <= LUX < array[1]      ...      Zone N:        array[N - 1] <= LUX < array[N]      Zone N + 1:    array[N] <= LUX < infinity       Must be overridden in platform specific overlays -->     <integer-array name="config_autoBrightnessLevels">     <item>7</item>     <item>94</item>     <item>208</item>     <item>458</item>     <item>2223</item>     </integer-array>      <!-- Array of output values for LCD backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.     -->     <integer-array name="config_autoBrightnessLcdBacklightValues">     <item>10</item>     <item>35</item>     <item>55</item>     <item>70</item>     <item>70</item>     <item>250</item>     </integer-array>      <!-- Array of output values for button backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.     -->     <integer-array name="config_autoBrightnessButtonBacklightValues">     <item>255</item>     <item>255</item>     <item>255</item>     <item>0</item>     <item>0</item>     <item>0</item>     </integer-array>      <!-- Array of output values for keyboard backlight corresponding to the LUX values      in the config_autoBrightnessLevels array.  This array should have size one greater      than the size of the config_autoBrightnessLevels array.      Crespo has no keyboard so all values are zero.     -->     <integer-array name="config_autoBrightnessKeyboardBacklightValues">     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     <item>0</item>     </integer-array>      <!-- Minimum screen brightness allowed by the power manager. -->     <integer name="config_screenBrightnessDim">10</integer>      <!-- Component name of the default wallpaper. This will be ImageWallpaper if not       specified -->     <string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>      <integer name="config_deskDockKeepsScreenOn">0</integer>     <integer name="config_carDockKeepsScreenOn">1</integer>      <!-- Default color for notification LED is white -->     <color name="config_defaultNotificationColor">#ffffffff</color>      <!-- Default blink frequency for notification LED is 9 seconds. -->     <integer name="config_defaultNotificationLedOff">9000</integer>      <!-- Package name providing network location support. -->     <string name="config_networkLocationProviderPackageName" translatable="false">com.google.android.location</string>      <!-- Package name providing geocoder API support. -->     <string name="config_geocodeProviderPackageName" translatable="false">com.google.android.location</string>      <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.      Please don't copy them, copy anything else. -->      <!-- This string array should be overridden by the device to present a list of network      attributes.  This is used by the connectivity manager to decide which networks can coexist      based on the hardware -->     <!-- An Array of "[Connection name],[ConnectivityManager connection type],      [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet]  -->     <!-- the 5th element "resore-time" indicates the number of milliseconds to delay      before automatically restore the default connection.  Set -1 if the connection      does not require auto-restore. -->     <!-- the 6th element indicates boot-time dependency-met value. -->     <string-array translatable="false" name="networkAttributes">     <item>"wifi,1,1,1,-1,true"</item>     <item>"mobile,0,0,0,-1,true"</item>     <item>"mobile_mms,2,0,2,60000,true"</item>     <item>"mobile_supl,3,0,2,60000,true"</item>     <item>"mobile_dun,4,0,4,60000,true"</item>     <item>"mobile_hipri,5,0,3,60000,true"</item>     <item>"bluetooth,7,7,0,-1,true"</item>     </string-array>      <!-- This string array should be overridden by the device to present a list of radio      attributes.  This is used by the connectivity manager to decide which networks can coexist      based on the hardware -->     <!-- An Array of "[ConnectivityManager connectionType],                   [# simultaneous connection types]"  -->     <string-array translatable="false" name="radioAttributes">     <item>"1,1"</item>     <item>"0,1"</item>     <item>"7,1"</item>     </string-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      USB interfaces.  If the device doesn't want to support tething over USB this should      be empty.  An example would be "usb.*" -->     <string-array translatable="false" name="config_tether_usb_regexs">     <item>"rndis0"</item>     </string-array>      <!-- Array of allowable ConnectivityManager network types for tethering -->     <!-- Common options are [1, 4] for wifi and dun or [0,1,5,7] for -->     <!-- mobile, wifi, hipri and bluetooth -->     <integer-array translatable="false" name="config_tether_upstream_types">     <item>0</item>     <item>1</item>     <item>5</item>     <item>7</item>     </integer-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      Wifi interfaces.  If the device doesn't want to support tethering over Wifi this      should be empty.  An example would be "softap.*" -->     <string-array translatable="false" name="config_tether_wifi_regexs">     <item>"wlan0"</item>     </string-array>      <!-- List of regexpressions describing the interface (if any) that represent tetherable      bluetooth interfaces.  If the device doesn't want to support tethering over bluetooth this      should be empty. -->     <string-array translatable="false" name="config_tether_bluetooth_regexs">     <item>"bnep\\d"</item>     </string-array>      <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->     <integer-array name="config_keyboardTapVibePattern">     <item>30</item>     </integer-array>      <!-- Vibrator pattern for feedback about booting with safe mode disabled -->     <integer-array name="config_safeModeDisabledVibePattern">     <item>1</item>     </integer-array>      <!-- crespo doesn't handle this blur effect very quickly. -->     <bool name="config_sf_slowBlur">true</bool>       <!-- Boolean indicating if restoring network selection should be skipped -->     <!-- The restoring is handled by modem if it is true -->     <bool translatable="false" name="skip_restoring_network_selection">true</bool>      <!-- Specifies the amount of time to disable virtual keys after the screen is touched      in order to filter out accidental virtual key presses due to swiping gestures      or taps near the edge of the display.  May be 0 to disable the feature.      It is recommended that this value be no more than 250 ms.      This feature should be disabled for most devices. -->     <integer name="config_virtualKeyQuietTimeMillis">250</integer>      <!-- Boolean indicating if current platform supports bluetooth wide band      speech -->     <bool name="config_bluetooth_wide_band_speech">false</bool>      <bool name="config_ui_enableFadingMarquee">false</bool>      <!-- The attenuation in dB applied to the sound effects played      through AudioManager.playSoundEffect() when no volume is specified. -->     <integer name="config_soundEffectVolumeDb">-12</integer>  <string-array name="config_usbHostBlacklist">      <item>/dev/bus/usb/001</item>      </string-array>  <bool name="config_showNavigationBar">true</bool>  </resources> 

Modify out/target/product/grouper/root/init.usb.rc to be the following:

# Copyright (C) 2012 The Android Open Source Project # # USB configuration common for all android devices #  on post-fs-data     chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file     chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file     chown system system /sys/class/android_usb/android0/f_rndis/ethaddr     chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr  # Used to disable USB when switching states on property:sys.usb.config=none     stop adbd     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/bDeviceClass 0     setprop sys.usb.state ${sys.usb.config}  # adb only USB configuration # This should only be used during device bringup # and as a fallback if the USB manager fails to set a standard configuration on property:sys.usb.config=adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct D002     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # USB accessory configuration on property:sys.usb.config=accessory     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d00     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # USB accessory configuration, with adb on property:sys.usb.config=accessory,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d01     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # audio accessory configuration on property:sys.usb.config=audio_source     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d02     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # audio accessory configuration, with adb on property:sys.usb.config=audio_source,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d03     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # USB and audio accessory configuration on property:sys.usb.config=accessory,audio_source     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d04     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  # USB and audio accessory configuration, with adb on property:sys.usb.config=accessory,audio_source,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 2d05     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config}  # Used to set USB configuration at boot and to switch the configuration # when changing the default configuration on property:persist.sys.usb.config=*     setprop sys.usb.config ${persist.sys.usb.config}  on property:sys.usb.config=rndis     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 4e23     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/bDeviceClass 224     write /sys/class/android_usb/android0/enable 1     setprop sys.usb.state ${sys.usb.config}  on property:sys.usb.config=rndis,adb     write /sys/class/android_usb/android0/enable 0     write /sys/class/android_usb/android0/idVendor 18d1     write /sys/class/android_usb/android0/idProduct 4e24     write /sys/class/android_usb/android0/functions ${sys.usb.config}     write /sys/class/android_usb/android0/bDeviceClass 224     write /sys/class/android_usb/android0/enable 1     start adbd     setprop sys.usb.state ${sys.usb.config} 

And use a modified tegra kernel that has RNDIS enabled.

Please reference this XDA post

 
 
 
 

相关问题

6  如何在不丢失数据的情况下安装氰  ( How to install cyanogen without losing data ) 
我现在一直在我的三星Galaxy S3上使用IC,但我无法以多种原因更新果冻豆。 我决定切换到Cyanogen mod,有没有办法移动到染色体而不丢失任何应用程序数据? ...

4  无法知道收到SIM SMS  ( Not able to know to which sim sms was received ) 
简短描述: 我在双SIM精选的电话中使用了JellyBean。我正在使用Go SMS软件也使用了标准消息。我发现它很明显,没有知道收到SIM的这种功能。 详细问题: 我正在使用在Jellybean中运行的XOLO A1000双SIM单击。我正在使用两个SIM卡,一个是Aircel,另一个是Airtel,在印度是两...

1  在屏幕为电源打开时,正在运行的应用程序关闭  ( Running app is shut down when screen powers on ) 
我最近将Samsung S3(T-Mobile)更新为Android 4.1的OTA更新。自更新以来,手机屏幕向下电(​​手动或计时器)后,重新打开屏幕关闭运行应用程序。我不知道这是否是带有Android 4.1的一些新的默认行为,或者如果这是T-Mobile自定义("功能" )或错误(带有Android或T-Mob...

3  彩信和限制背景数据  ( Mms and restricting background data ) 
使用GT-I9300,JB 4.1.2。 我似乎无法找到"限制背景数据" 如何工作(启用移动数据)的详细信息。 是什么被认为是"背景" 数据? 例如,如果我发送MMS和手机睡觉,请发送彩信吗?如果我发送彩信并按主页按钮,请发送彩信吗? 是否需要将消息应用程序全部打开,以便发送?如果我正在查看上述应用程序的设置吗? 我...

1  在没有WiFi的情况下播放商店没有下载应用程序  ( Play store not downloading app without wifi ) 
我刚买了三星Galaxy Grand手机,包括Android果冻豆。我正在尝试使用我的移动数据下载一些应用程序。但是,它没有下载应用程序,而我未连接到Wi-Fi网络。它在没有任何问题的情况下下载应用程序时下载应用程序。 任何人都可以建议我,在没有Wi-Fi网络的情况下将我的设置限制了我? ...

3  从华硕EEE PAD变压器TF300T中的硬件键盘更改语言  ( Changing language from hardware keyboard in asus eee pad transformer tf300t ) 
今天我已经将我的华硕EEE PAD变压器TF300T 更新为Android 4.1,非常失望。在Android 4.0上,我在俄罗斯华硕键盘中使用了Ctrl +空间在英语和俄语之间切换输入语言,现在它不起作用!刚弹出通知,语言已更改,但语言留下俄语。我试图使用其他语言,但所有这些语言都这样做。重新启动设备无帮助。 ...

10  成功下载应用程序100%但是之后不会安装  ( Successfully download app 100 but wont install after that ) 
我有一个rooted移动设备(运行Android 4.4)。每当我从 google play store下载或更新任何应用程序时,它将显示下载栏并达到100% - 但在此之后不会安装。 我已经使用WiFi下载了,有足够的空间。此外,我已经更新了 google播放服务但不是 google play商店。我已经尝试了所有...

1  解密三星S2文件?  ( Decrypt samsung s2 files ) 
我的三星S2刚刚用加密的SD卡才死了,我发现kies没有备份内存。手机被修复但现在我无法读取SD上的文件。 任何设法恢复加密文件的人? ...

7  应用程序下载错误(919)  ( Application downloading error 919 ) 
我在我的Android手机中遇到了Google播放的问题。 当我从播放商店下载新的应用程序时,它会完成100%,然后向我展示一个错误: (unknown Error code during application install:''919'') ...

10  果冻豆语音搜索不谈论  ( Jelly bean voice search not talking back ) 
我最近将手机升级到Android 4.1.1,我已经尝试了新的语音搜索。 它主要是正确的回答我的问题,但我没有得到它来谈谈。 我检查了以下设置:设置 - &gt;语音和gt;语音输出。它始终设置。 还有其他人有这个问题吗?关于如何解决它的任何想法? ...

1  除了whatsapp之外,为什么我不能使用wifi?  ( Why i cant use wifi for anything except whatsapp ) 
我不能使用WiFi进行任何用于我的三星Galaxy S3 Mini的WhatsApp。 我已经打开了手机上的wifi。但除了whatsapp,我什么也做不了。我无法通过WiFi浏览,无法打开播放商店。但是当我使用移动数据(通过我的互联网提供商)我可以做任何事情,除了我无法浏览播放商店。 当我通过我的电脑使用WiFi...

5  果冻bean imap,无法打开与服务器的连接  ( Jelly bean imap couldnt open connection to server ) 
好吧,终于得到了我的nexus 7.设置所有基础知识并击中一个非常大的障碍,电子邮件帐户设置为IMAP根本无法正常工作。 只是为了澄清,我绝对确定我所输入的所有细节是100%正确,我的双重,三倍,四倍 - 依次检查它们。它们与我的iPhone上使用的设置完全相同,在我的Mac上的mail.app和我的笔记本电脑上的雷...

8  WiFi错误:“无法连接到网络”  ( Wifi error failed to connect to network ) 
间歇性地,当我尝试连接到WiFi网络时,我将以下错误消息作为Toa​​st消息: 无法连接到网络 在尝试连接时立即弹出消息,因此显然它没有尝试和失败。我没有找到日志中的任何错误。受影响的网络是我以前连接的那些没有变化的设置。 如何弄清楚问题是什么? 我有一个rooted galaxy nexus运行Andro...

9  如何在没有root访问权限的情况下访问我的Nexus 7上的Android日志文件?  ( How can i access android log files on my nexus 7 without root access ) 
因为 Alogcat 现在软豆长与果冻bean 一起工作,如何在我的设备上访问系统日志文件而没有根目录或将其附加到计算机? i 使用 adb logcat 从我的电脑上验证,这是罚款,所以我知道已经记录了大量消息。 使用 logcat 从 Android终端仿真器在我的Nexus 7上显示几乎没有输出,而 adb ...

0  可以在手机上过多的短信会导致问题?  ( Can excessive text messages stored on phone cause issues ) 
太多存储在我的手机上的短信阻止我接收新消息? 最近我有多个人发短信给我,但我还没有收到消息。我在线检查了我的Cell帐户上的消息登录,并列出了传入的消息,但他们从未在我的设备上展示。 我用T-Mobile Tech支持谈了;他说,我的手机上有太多的消息(5000+),并且我存储在我的设备上的短信越多,传入消息损坏的可...




© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有


Licensed under cc by-sa 3.0 with attribution required.