top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Android: Do anyone know how to disable usb OTG programmatically. Is it possible without root?

+1 vote
1,153 views
Android: Do anyone know how to disable usb OTG programmatically. Is it possible without root?
posted Apr 11, 2015 by Bob Wise

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Yes, We can disable usb by adding this to your build.prop file: rp.usb_host = 0

But I am not sure without root its possiblr or not?

answer Apr 11, 2015 by Amit Kumar Pandey
Similar Questions
0 votes

What is this used for anyone know. There is more.

20170210 11:12:40.160 [D][MessagingYWA] : [thread:8009]logGCMSupportEvent: ifSupport is true
20170210 11:12:41.407 [I][NetworkHelper] : [thread:8021]networkAvailable() - active network type : WIFI
20170210 11:12:42.335 [I][GCMSubImpl] : [thread:8021]GCM registration ID: APA91bFcqfMaHtEJj_s9GZRg8leLcWjAOoq_JY67kkZ_Dqg1f20Y_qOoIkwmReTXGOa8J0_NGjiQRrMlBuAoQVuF9qajZGRG0RBGJBZnDHqxCFdQHeh2CSM
20170210 11:12:42.353 [D][RTSubImpl] : [thread:8021]start to doSubscription()
20170210 11:12:42.354 [D][SubscriptionManagerDAO] : [thread:8021]loadSubscriptionPreferences(), initial load
20170210 11:12:42.357 [D][SubscriptionManagerDAO] : [thread:8021]handlePreferenceUpgrade(), need to upgrade preference version
20170210 11:12:42.444 [D][SubscriptionManager] : [thread:8021]checkChannelIdChange(), channel id in use is APA91bFcqfMaHtEJj_s9GZRg8leLcWjAOoq_JY67kkZ_Dqg1f20Y_qOoIkwmReTXGOa8J0_NGjiQRrMlBuAoQVuF9qajZGRG0RBGJBZnDHqxCFdQHeh2CSM
20170210 11:12:42.549 [D][SubscriptionManager] : [thread:8021]checkChannelIdChange(), no channel id in storage
20170210 11:12:42.550 [D][SubscriptionManager] : [thread:8021]syncSubscriptions(), sync status is FIRST_SYNC_NEEDED
20170210 11:12:42.552 [I][NetworkHelper] : [thread:8021]networkAvailable() - active network type : WIFI
20170210 11:12:42.554 [D][RTSubImpl] : [thread:8021]list subscriptions YQL is select * from onepush.subscriptions where producer_id="onepush" and producer_key="com.tumblr" and channel_type="gcm" and channel_id="APA91bFcqfMaHtEJj_s9GZRg8leLcWjAOoq_JY67kkZ_Dqg1f20Y_qOoIkwmReTXGOa8J0_NGjiQRrMlBuAoQVuF9qajZGRG0RBGJBZnDHqxCFdQHeh2CSM" and app_id="com.tumblr" and target_type="topic"
20170210 11:12:42.569 [D][RTSubImpl] : [thread:8021]try sending http request 1 time(s)
20170210 11:12:42.971 [D][SSLHttpClient] : [thread:8021]execute(HttpUriRequest) : enter, url=https://onepush.query.yahoo.com/v1/public/yql?env=prod&format=json
20170210 11:12:43.493 [D][SSLHttpClient] :
+2 votes

I want to read network IP address from network connections, So whenever network is changing i want to get intimate network changed, so that i can read new network IP address.

+3 votes

I need to change the Wifi channel programmatically (Of course, I will enable the Wifi to function as Hotsopt first).
Is there any API/Driver in the source code that I can use?

+2 votes

I wonder if it is possible to get the logcat output along with timestamp?
If so, how can i get it?

...