Monday, October 31, 2016

wi fi - ZTE Blade can't maintain a wifi connection


I have a ZTE Blade with Android 2.3.7 (CyanogenMod 7.1). Recently, when I try to connect to a wifi network (even one that worked before this problem started) it starts to connect, tries to autenticate, and then disconnects.


Here a part of the logcat



12-03 00:18:23.370: DEBUG/WifiStateTracker(191): Reset connections and stopping DHCP
12-03 00:18:23.530: INFO/wpa_supplicant(15251): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:23.530: INFO/wpa_supplicant(914): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:23.530: INFO/wpa_supplicant(914): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:23.530: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=3
12-03 00:18:23.540: INFO/wpa_supplicant(268): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:23.540: INFO/wpa_supplicant(268): Trying to associate with 38:22:9d:fc:6d:20 (SSID='FASTWEB-1-38229DFC6D20' freq=2412 MHz)
12-03 00:18:23.540: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=3
12-03 00:18:23.550: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:23.550: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0

12-03 00:18:23.560: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:23.560: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:23.560: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:23.560: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:23.560: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:23.560: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:23.700: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=4
12-03 00:18:23.700: INFO/wpa_supplicant(914): Associated with 94:44:52:ef:dd:7c
12-03 00:18:23.710: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=4
12-03 00:18:23.710: INFO/wpa_supplicant(15251): No network configuration found for the current AP

12-03 00:18:23.710: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0
12-03 00:18:23.710: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=4]
12-03 00:18:23.710: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:23.710: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=4
12-03 00:18:23.710: INFO/wpa_supplicant(268): Associated with 00:00:00:00:00:00
12-03 00:18:23.720: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:23.720: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0
12-03 00:18:23.720: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:23.720: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:23.720: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

12-03 00:18:23.720: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:23.720: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:23.720: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:23.820: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=2
12-03 00:18:23.820: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=2
12-03 00:18:24.380: DEBUG/WifiStateTracker(191): Disabling interface
12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> DISCONNECTED
12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> ASSOCIATED
12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATED ==> DISCONNECTED

12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:24.400: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> DISCONNECTED
12-03 00:18:24.500: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=2
12-03 00:18:24.500: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
12-03 00:18:24.520: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> SCANNING
12-03 00:18:26.000: INFO/wpa_supplicant(268): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:26.000: INFO/wpa_supplicant(268): Trying to associate with 38:22:9d:fc:6d:20 (SSID='FASTWEB-1-38229DFC6D20' freq=2412 MHz)
12-03 00:18:26.000: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=3
12-03 00:18:26.010: INFO/wpa_supplicant(914): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:26.010: INFO/wpa_supplicant(914): Trying to associate with 38:22:9d:fc:6d:20 (SSID='FASTWEB-1-38229DFC6D20' freq=2412 MHz)

12-03 00:18:26.010: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=3
12-03 00:18:26.020: INFO/wpa_supplicant(15251): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:26.030: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.030: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:26.030: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.030: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:26.039: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.039: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:26.039: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:26.049: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0

12-03 00:18:26.049: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:26.049: VERBOSE/WifiStateTracker(191): Changing supplicant state: SCANNING ==> DISCONNECTED
12-03 00:18:26.130: DEBUG/KeyguardViewMediator(191): wakeWhenReadyLocked(26)
12-03 00:18:26.130: INFO/power(191): *** set_screen_state 1
12-03 00:18:26.130: ERROR/Sensors(191): mSensors[1]->enable(4, 1)
12-03 00:18:26.160: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=4
12-03 00:18:26.160: INFO/wpa_supplicant(15251): No network configuration found for the current AP
12-03 00:18:26.160: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0
12-03 00:18:26.160: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=4
12-03 00:18:26.160: INFO/wpa_supplicant(914): Associated with 00:00:00:00:00:00

12-03 00:18:26.160: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=4
12-03 00:18:26.160: INFO/wpa_supplicant(268): Associated with 00:00:00:00:00:00
12-03 00:18:26.170: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=4]
12-03 00:18:26.170: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:26.170: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> ASSOCIATED
12-03 00:18:26.170: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATED ==> DISCONNECTED
12-03 00:18:26.180: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.180: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0
12-03 00:18:26.180: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.180: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=0

12-03 00:18:26.180: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:26.180: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:26.180: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:26.180: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:26.180: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:26.180: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> DISCONNECTED
12-03 00:18:26.180: ERROR/Sensors(191): mSensors[2]->enable(0, 1)
12-03 00:18:26.180: INFO/AKMD2(142): akmd2 : Compass Opened.
12-03 00:18:26.280: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=2
12-03 00:18:26.280: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=2

12-03 00:18:26.340: DEBUG/WifiService(191): ACTION_SCREEN_ON
12-03 00:18:26.480: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=2
12-03 00:18:26.480: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
12-03 00:18:26.480: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> SCANNING
12-03 00:18:26.570: DEBUG/SurfaceFlinger(191): Screen about to return, flinger = 0x95878
12-03 00:18:27.850: DEBUG/SettingsAppWidgetProvider(939): Widget is from a previous version... Let's update
12-03 00:18:27.850: DEBUG/SettingsAppWidgetProvider(939): No instances yet... Wait for at least one instance to exist before adding global settings
12-03 00:18:27.980: INFO/wpa_supplicant(15251): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:27.980: INFO/wpa_supplicant(15251): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:27.980: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=3

12-03 00:18:27.980: INFO/wpa_supplicant(914): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:27.980: INFO/wpa_supplicant(914): Trying to associate with 38:22:9d:fc:6d:20 (SSID='FASTWEB-1-38229DFC6D20' freq=2412 MHz)
12-03 00:18:27.980: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=3
12-03 00:18:27.980: VERBOSE/WifiMonitor(191): Event [Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)]
12-03 00:18:27.980: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
12-03 00:18:27.990: VERBOSE/WifiStateTracker(191): Changing supplicant state: SCANNING ==> ASSOCIATING
12-03 00:18:27.990: INFO/wpa_supplicant(268): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:27.990: INFO/wpa_supplicant(268): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:27.990: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=1 state=3
12-03 00:18:28.020: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

12-03 00:18:28.020: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:28.020: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:28.020: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:28.020: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:28.020: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:28.020: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:28.020: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=0
12-03 00:18:28.020: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=0]
12-03 00:18:28.030: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:28.030: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=0

12-03 00:18:28.030: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:28.030: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:28.030: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATING ==> DISCONNECTED
12-03 00:18:28.030: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:28.030: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:28.040: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=0
12-03 00:18:28.040: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=0]
12-03 00:18:28.050: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:28.050: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> DISCONNECTED
12-03 00:18:28.060: WARN/InputManagerService(191): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@407ae948

12-03 00:18:28.170: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=4
12-03 00:18:28.170: INFO/wpa_supplicant(268): Associated with 94:44:52:ef:dd:7c
12-03 00:18:28.170: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=4
12-03 00:18:28.170: INFO/wpa_supplicant(914): Associated with 94:44:52:ef:dd:7c
12-03 00:18:28.170: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=4
12-03 00:18:28.170: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=4]
12-03 00:18:28.170: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> ASSOCIATED
12-03 00:18:28.180: INFO/wpa_supplicant(15251): Associated with 94:44:52:ef:dd:7c
12-03 00:18:28.180: VERBOSE/WifiMonitor(191): Event [Associated with 94:44:52:ef:dd:7c]
12-03 00:18:28.200: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=5

12-03 00:18:28.200: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=5
12-03 00:18:28.210: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=5
12-03 00:18:28.210: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=5]
12-03 00:18:28.210: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATED ==> FOUR_WAY_HANDSHAKE
12-03 00:18:28.230: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=5
12-03 00:18:28.240: WARN/wpa_supplicant(914): WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
12-03 00:18:28.240: WARN/wpa_supplicant(914): WPA: Invalid EAPOL-Key MIC - dropping packet
12-03 00:18:28.240: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=6
12-03 00:18:28.240: INFO/wpa_supplicant(268): WPA: Key negotiation completed with 94:44:52:ef:dd:7c [PTK=CCMP GTK=CCMP]
12-03 00:18:28.250: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=7

12-03 00:18:28.250: INFO/wpa_supplicant(268): CTRL-EVENT-CONNECTED - Connection to 94:44:52:ef:dd:7c completed (reauth) [id=0 id_str=]
12-03 00:18:28.250: WARN/wpa_supplicant(15251): WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
12-03 00:18:28.250: WARN/wpa_supplicant(15251): WPA: Invalid EAPOL-Key MIC - dropping packet
12-03 00:18:29.400: DEBUG/WifiStateTracker(191): Reset connections and stopping DHCP
12-03 00:18:30.410: DEBUG/WifiStateTracker(191): Disabling interface
12-03 00:18:30.630: DEBUG/dalvikvm(939): GC_CONCURRENT freed 611K, 50% free 3450K/6855K, external 1307K/1504K, paused 4ms+9ms
12-03 00:18:35.520: DEBUG/dalvikvm(1172): GC_EXPLICIT freed 9K, 49% free 2772K/5379K, external 477K/989K, paused 59ms
12-03 00:18:38.210: INFO/wpa_supplicant(914): Authentication with 94:44:52:ef:dd:7c timed out.
12-03 00:18:38.210: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=1 state=0
12-03 00:18:38.210: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=-1 state=2

12-03 00:18:38.210: INFO/wpa_supplicant(15251): Authentication with 94:44:52:ef:dd:7c timed out.
12-03 00:18:38.210: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=0
12-03 00:18:38.210: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=2
12-03 00:18:38.210: VERBOSE/WifiMonitor(191): Event [Authentication with 94:44:52:ef:dd:7c timed out.]
12-03 00:18:38.210: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=0]
12-03 00:18:38.210: VERBOSE/WifiStateTracker(191): Changing supplicant state: FOUR_WAY_HANDSHAKE ==> DISCONNECTED
12-03 00:18:38.220: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
12-03 00:18:38.220: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> SCANNING
12-03 00:18:38.280: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:38.280: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=-1 state=0

12-03 00:18:38.280: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:38.280: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:38.280: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:38.280: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=0
12-03 00:18:38.280: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:38.280: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=0]
12-03 00:18:38.290: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:38.300: VERBOSE/WifiStateTracker(191): Changing supplicant state: SCANNING ==> DISCONNECTED
12-03 00:18:38.380: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=2
12-03 00:18:39.870: INFO/wpa_supplicant(15251): CTRL-EVENT-SCAN-RESULTS Ready

12-03 00:18:39.870: INFO/wpa_supplicant(914): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:39.870: INFO/wpa_supplicant(914): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:39.870: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=-1 state=3
12-03 00:18:39.880: INFO/wpa_supplicant(268): CTRL-EVENT-SCAN-RESULTS Ready
12-03 00:18:39.880: INFO/wpa_supplicant(268): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:39.880: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=3
12-03 00:18:39.880: INFO/wpa_supplicant(15251): Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)
12-03 00:18:39.890: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=-1 state=3
12-03 00:18:39.910: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:39.910: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=0

12-03 00:18:39.910: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:39.910: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:39.920: VERBOSE/WifiMonitor(191): Event [Trying to associate with 94:44:52:ef:dd:7c (SSID='Lambratone' freq=2412 MHz)]
12-03 00:18:39.920: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
12-03 00:18:39.920: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> ASSOCIATING
12-03 00:18:39.930: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:39.930: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=0
12-03 00:18:39.930: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:39.930: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=0]
12-03 00:18:39.940: INFO/wpa_supplicant(268): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

12-03 00:18:39.940: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:39.940: INFO/wpa_supplicant(914): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:39.940: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=0
12-03 00:18:39.940: INFO/wpa_supplicant(15251): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12-03 00:18:39.940: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=0
12-03 00:18:39.940: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
12-03 00:18:39.940: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=0]
12-03 00:18:39.950: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED
12-03 00:18:39.950: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATING ==> DISCONNECTED
12-03 00:18:39.960: VERBOSE/WifiStateTracker(191): New network state is DISCONNECTED

12-03 00:18:39.960: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> DISCONNECTED
12-03 00:18:40.070: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=4
12-03 00:18:40.070: INFO/wpa_supplicant(15251): Associated with 94:44:52:ef:dd:7c
12-03 00:18:40.070: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=4
12-03 00:18:40.070: INFO/wpa_supplicant(914): Associated with 94:44:52:ef:dd:7c
12-03 00:18:40.070: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=4
12-03 00:18:40.070: INFO/wpa_supplicant(268): Associated with 94:44:52:ef:dd:7c
12-03 00:18:40.070: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=4]
12-03 00:18:40.070: VERBOSE/WifiMonitor(191): Event [Associated with 94:44:52:ef:dd:7c]
12-03 00:18:40.070: VERBOSE/WifiStateTracker(191): Changing supplicant state: DISCONNECTED ==> ASSOCIATED

12-03 00:18:40.090: INFO/wpa_supplicant(914): CTRL-EVENT-STATE-CHANGE id=0 state=5
12-03 00:18:40.100: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=5
12-03 00:18:40.100: INFO/wpa_supplicant(15251): CTRL-EVENT-STATE-CHANGE id=3 state=5
12-03 00:18:40.100: VERBOSE/WifiMonitor(191): Event [CTRL-EVENT-STATE-CHANGE id=3 state=5]
12-03 00:18:40.100: VERBOSE/WifiStateTracker(191): Changing supplicant state: ASSOCIATED ==> FOUR_WAY_HANDSHAKE
12-03 00:18:40.120: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=5
12-03 00:18:40.120: WARN/wpa_supplicant(914): WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
12-03 00:18:40.120: WARN/wpa_supplicant(914): WPA: Invalid EAPOL-Key MIC - dropping packet
12-03 00:18:40.120: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=6
12-03 00:18:40.120: INFO/wpa_supplicant(268): WPA: Key negotiation completed with 94:44:52:ef:dd:7c [PTK=CCMP GTK=CCMP]

12-03 00:18:40.120: WARN/wpa_supplicant(15251): WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
12-03 00:18:40.120: WARN/wpa_supplicant(15251): WPA: Invalid EAPOL-Key MIC - dropping packet
12-03 00:18:40.120: INFO/wpa_supplicant(268): CTRL-EVENT-STATE-CHANGE id=0 state=7
12-03 00:18:40.120: INFO/wpa_supplicant(268): CTRL-EVENT-CONNECTED - Connection to 94:44:52:ef:dd:7c completed (reauth) [id=0 id_str=]

How can I fix this? I can't refalsh the ROM since wifi doesn't work and my contacts aren't syncronized, and I don't want to lose the new contacts I added.



Answer



I would recommend installing installing "MyBackup Pro" from android market and backup everything to the SD card or internet, via 3g(or similar).


Then i would do a hard reset of the phone. I guess it would be something like: settings -> privacy -> factory data reset.


If this doesnt work, i would reinstall to a standard rom with the usb cable connected to a computer.



If it still doesnt work with a standard rom, there might be a hardware problem. If the standard rom works, you can try to install the newest version of CyanogenMod.


google account - Where exactly does Android get its contact suggestions from?


I have a phone right here (Evo 3D), it has no service (except my wifi) and I've only added an obligatory gmail account which has one contact.


No Facebook, no Google+, no Twitter, etc.



Yet I got a "matched contact suggestion" notification. What is that? Where did it come from?


My main phone (TMO G2) with all of the services never gets these things and I'm not familiar with that at all.


Insight appreciated.




logging - How can I get a LogCat?





Possible Duplicate:
How can I view and examine the Android log?



Sometimes I get asked for a LogCat.


What is this?
What is it supposed to do?
How can I get it?




Sunday, October 30, 2016

htc desire - Phone LED only flashes for a few minutes after receiving a notification


My HTC Desire is set up to flash its LED lamp whenever I receive an email, SMS etc.


Only problem is that (without touching the phone) the LED stops flashing after 5 minutes or so. So if a message comes in while I'm not near my phone and I don't come back for more than 5 minutes, I have to turn on the screen to discover the message.


I've searched through everything, but there seems to be no setting for this.



Am I missing something, or is this by design? Is there an app for this problem?



Answer



Must be by design. Flashing the LED infinitely would drain the battery (even if only slightly). I don't see anything in Settings regarding lengthening the amount of time the LED will flash; you can only specify what things cause LED notification.


After some searching it looks like the "Missed Reminder" app allows for a lot of notification customization - LED interval, color, etc. Not sure how to link an app so just search for it in the market. Sounds promising. Hope it helps.


samsung nexus s - How do I Switch off NFC?


My Nexus S alerts me when it is close to my Oyster season ticket. It says New Tag Collected. Unknown tag type.


Can I stop it doing this.



Answer



According to the Gingerbread User Guide, under Settings -> Wireless & networks, you should have an NFC option that you can remove the tick from to turn this on or off.


Saturday, October 29, 2016

5.0 lollipop - How to Delete a Contact's "Mark as Default" selection


In the stock Contacts app one can Mark as default one of the contact's numbers. I don't want to select another number as default, I don't want any of the contact's numbers to be default.


How can I delete this "mark as default" selection?


I have a Samsung Galaxy S5 running Lollipop 5.0.



Answer



All you have to do is the following:



  1. Open the contact


  2. There will be a check mark indicating the default number: Press and hold on that number

  3. A box will appear. Select Remove Default (this may also be Clear default)


You can also mark a number as default by pressing down on the phone number and selecting Mark as Default


rom flashing - Can I flash Android on device with overwritten mmcblk0?


Can Android device with fully overwritten /dev/mmcblk0 (without /dev/mmcblk0p* partitions) be still flashed using fastboot? Is it true that overwriting /dev/mmcblk0 does not remove /dev/mmcblk0boot* partitions?



Answer



/dev/mmcblk0 is whole MMC storage chip which includes GUID partition table (GPT) and all partitions. On Android devices some of these eMMC partitions hold bootloaders (like sbl, aboot on Qualcomm devices) which have hard-coded paths in SoC firmware. Fully overwriting (erasing) such partitions means the SoC won't be able to boot device. Since fastboot and other service modes like odin are hosted by bootloaders, so those won't be available and the device is considered hard-bricked.


Exceptions are if the device does have BIOS/OpenBIOS/UEFI/ACPI support and is able to discover hardware without DTB and boot initially without depending on bootloaders.

Or if there is a way to re-create partitions and re-write bootloaders (see MTK example in edit section below). Something at even lower level which can communicate directly to SoC e.g. JTAG protocol can be possibly used to bring device back to life. However that requires special hardware and software and sometimes desoldering/resoldering or even chipping off flash chip. Still after recovering the device that way, you will have to restore device-specific partitions e.g. the one which contains IMEI.


/dev/mmcblk0boot* naming convention is usually used to represent boot area partitions from internal MMC on Linux while /dev/mmcblk0p* represents user area partitions or partitions on external SD card. Android init enumerates eMMC partitions as /dev/block/mmcblk0p* and external SD card partitions as /dev/block/mmcblk1p* (as far as I have seen). But the nomenclature may differ for different vendors. Whatever the case is, overwriting a whole flash memory raw block device would erase all partitions on that.




EDIT:


I just realized you are talking about eMMCs used with development boards, not on Android phones. Latter is somewhat different, it can have 50+ partitions on recent devices. Many of those are vendor-specific closed source signed binary blobs. But the eMMCs used with Linux have a few partitions (not more than 8 per block device by default).


If that's the case, /dev/mmcblk0boot* are most probably separate block devices as per eMMC v4.41 standard. So those might have not been erased with user area partitions. Boot partitions are also write-protected by default (1, 2), while Android devices mostly use user area for booting (though vendors can go other way) which is easily erasable. eMMC v4.41 also defines RPMB partition which is also a separate block device (in fact not a block device and not a partition) and shouldn't be deletable.




On an Android device with Qualcomm SoC (MSM8953) and Samsung eMMC (RX1BMB) and without boot area partitions:


~# mmc extcsd read /dev/block/mmcblk0
Extended CSD rev 1.8 (MMC 5.1)

...
Boot configuration bytes [PARTITION_CONFIG: 0x38]
User Area Enabled for boot
No access to boot partition
...
RPMB Size [RPMB_SIZE_MULT]: 0x20

Another device with MediaTek SoC (MT8127) and Hynix eMMC (H8G1e) does have two boot area partitions and an RPMB. It reports "Boot Partition 1 enabled", so mmcblk0boot0 contains first stage bootloader (preloader or SPL) while actual UBOOT is on user area (mmcblk0p4). mmcblk0boot1 contains device specific information available through idme print like MAC address, serial number, unlock code etc. However another SoC (MSM8610) with same eMMC reports "User area is enabled for boot". So this seems to be a vendor-specific thing.




Again, since fastboot is implemented in U-Boot, it won't be available after erasing mmcblk0. On MTK devices, though, Preloader Download Mode (SP Flash Tool) or the even earlier EDL mode ("On-chip boot ROM for factory flash programming") should still work (if implemented). EDL mode on some MTK (Meta Mode) and Qcom (QDL/9008 mode; implemented in PBL/BootROM) devices requires shortening test points on motherboard (3, 4).



Otherwise the only way to flash partitions is by directly communicating with SoC. i.MX SoCs, for instance, provide SDP protocol over USB or UART which can be used to load U-Boot and use fastboot.


NOTE: Don't confuse Android's fastboot with eMMC Fast Boot.




RELATED:



security - Alarm is working even when the phone is powered off


I just discovered that if I set the alarm clock and then power off the phone (by holding the power button and then selecting "Power Off") the alarm will still go off when the time comes.


Is this expected behavior? It makes me feel like "power off" doesn't actually power off the phone.


I have a Huawei Y530-U051 running android 4.3.




Friday, October 28, 2016

Can I trigger a media scan via the command line?


Is it possible to trigger the media scanner to update its DB via the command line?


I have an SSH server installed on my Android device and I copy files to/from over the same link. It would be great if I could also trigger a re-scan for the media scanner.


I am aware that there are applications on the market to do this via the UI but this is not what I want.


Any help fully appreciated.




Answer



The SSH server doesn't set all the necessary environment variables so it is easier to use a shell script.


#!/system/bin/sh

export ANDROID_ASSETS=/system/app
export ANDROID_CACHE=/cache
export ANDROID_DATA=/data
export ASEC_MOUNTPOINT=/mnt/asec
export ANDROID_ROOT=/system
export BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar

export EXTERNAL_STORAGE=/mnt/sdcard
export LD_LIBRARY_PATH=/vendor/lib:/system/lib

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard

When successful:


# rescan-media
Broadcasting: Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///mnt/sdcard }
Broadcast completed: result=0


This works on Cyanogenmod 9.1. Depending on your system the environment may be slightly different.


Note: In later versions of Cyanogenmod / Android the SD card may be mounted at /storage/sdcard0. Make sure you know where your card is mounted or this will never work. Diskinfo may help here.


Thanks to Dan Hulme for pushing me in the right direction.


References:


http://developer.android.com/reference/android/content/Intent.html
http://forum.xda-developers.com/showthread.php?t=1752749
http://intwoplacesatonce.com/
http://kennystechtalk.blogspot.co.uk/2013/08/start-android-media-scanner-from.html


Is there a good USB debugging toggle widget for Android?


Can you suggest me a widget for toggling usb debugging mode for Android? Or could you code it and upload to market, please?


(I need it because of HTC Desire and HD's init process consuming 100% cpu bug. When toggled, it resets to 0)



Answer



Here installer for easy installation or widget only for manual installation






Prerequisites:



  1. You must be rooted

  2. You must be able to write to /system/app/ folder. USB Debugging is a "Secure" setting, so this widget must be installed as a system apps. It will not work if you install to the standard install location even in rooted device.



Easy Instruction (Recommended)




  1. Nico have written an easy-to-use installer to automate installation to /system/app/; download it here and run the installer app.

  2. Add the widget to your home screen like regular widget.



Manual installation


If the easy instruction doesn't work, try the manual installation:



  1. Download ADBWidget.apk and save it to your computer


  2. Copy ADBWidget.apk to /system/app





    • Method 1 -- Using Android Debug Bridge (ADB)



      1. Remount /system/app to read-write (see Additional Instructions section below)

      2. adb push ADBWidget-x.x.apk /system/app/ADBWidget.apk (replace x.x with the appropriate version number)

      3. Remount /system/app to read-only





    • Method 2 -- Using Recovery's update.zip (have not been tested yet)



    • Method 3 -- Using Root Explorer (have not been tested yet)




  3. Add ADBWidget to your home screen






Upgrade Instruction


If you're upgrading from a previous version, you do not need to do all of the above again. You can simply install an update on regular application directory by using regular installation methods (e.g. opening the apk from a file explorer). As long as there is a previous version of the widget in the /system/app directory with the same signing key (i.e. my key, if you used the apk download above), Android will give the updated version in /data/app the same permission.




Click on the widget to toggle USB debugging. Blue USB icon means that USB debugging is inactive, red USB icon means that USB debugging is enabled.




Since the widget is installed to /system/app, you cannot remove it using standard application uninstaller. So, simply delete the .apk from /system/app.


su
remount /system as read write

rm /system/app/ADBWidget.apk
remount /system as read only




Remounting /system/ as read-write



  1. Open "Terminal Emulator" or "adb shell"

  2. Get root permission, type su


  3. Get the device name, type mount | grep /system


  4. You should see something similar to:


    /dev/ on /system type rfs (ro,codepage=utf8,vfat,fcache(blks)=128,xattr,check=no)




  5. Take note of the , and type: mount -o remount,rw /dev/ /system






Remounting /system/ as read-only



  1. Step 1, 2, 3, 4 same as above

  2. type: mount -o remount,ro /dev/ /system





  • Sometimes the widget froze and do not responds to clicks. If this happens, removing and re-adding the Widget usually will fix the problem.






  • Don't complain about the ugly default icon and widget button, but if you can send me a better icon/widget image, I'd be happy to add it. Now we have an icon, thanks to @Jay.

  • Do not trust strangers that asks you to install an application to /system/app

  • Tested on Samsung Spica i5700 SpicagenMod Froyo.


rooting - How do I root my Huawei S7-961wd aka PLDT Telpad QS?


I couldn't find any one-click (no PC needed) rooting solution for my PLDT Telpad QS.




Thursday, October 27, 2016

Disable screen turn-off during phone call



I know this might be a possible duplicate question but I haven't found an answer yet.


phone>call settings>proximity sensor is not available in my version of android.


Is there another way to disable the screen turning off when i dial or receive a phone call?


Is there an app i can install that does it?



Regarding the duplicate question: This question is different because i'm targeting android 4.x and beyond and because I want to disable the proximity sensor completely, it's broken on this device but even if it did work, I would like to override it somehow, preferably without having to install an app with ads etc.




samsung galaxy note - Prevent switching keyboard layout when pressing Shift+Space on an external keyboard



When I use a Galaxy Note together with an Apple Wireless Keyboard, pressing Shift+Space switches keyboard layout. This is really annoying. Is it possible to disable it?



Answer



Russian Keyboard is a free app that allows you to choose different layouts (languages) for the hardware keyboard and the combination for switching between them (Alt+Shift, Alt+Space or Shift+Space).


Works perfectly on my Samsung with Android 4.4 KitKat.


Note that selected layouts and the switching combination works as long as the app is selected as a current input method.


How to remove apps from "all downloaded" in Play Store


In the new Android Market/Play Store (3.5.15) they have now got a list of "all downloaded" apps.


I have had an android phone for a good 2/3 years now and the list is huge, plus sightly more questionable apps which should have been lost in the ether of the internet have now been dredged back up to haunt me.


Can I remove apps from here?


Thanks



Answer



No, it's not possible. The android market is plagued with issues like this one.


As of version 3.9.16 you can finally now remove applications from the "all" tab in the my apps list. You can even select several apps at once by long pressing one, then selecting the others.
These apps are removed from the Website too.


Source: Android Police



How to create a shortcut to a text file



I have a text file somewhere on the SD card.


How can I create a shortcut to this file on the "desktop" to open it immediately?


(HTC Wildfire)



Answer



Linda File Manager allows you to do that. Just long press the file and select Create Shortcut. A shortcut icon shall appear on your Home screen


As a side note, it is also a nice file manager.


There might be tons of other options, though.


Wednesday, October 26, 2016

6.0 marshmallow - Google Play store asks to uninstall apps on sd card to free up space for new installations


My phone internal storage has very less free space (about 450 MB), which is why I cannot install any new app, or update existing apps.


When I go to play store and click on any app to update, it asks me to uninstall apps to free space. However, the list also has apps that are completely on the sd card. When I click on the check box adjacent to an app that is on sd card, play store says that the required space has been freed.


But how is this possible? Apps on sd card should not take any space on internal storage other than cache. On the other hand, updates are always installed on internal storage. So, how can an app on SD card free up space on internal storage?


For example, consider the following app which is on SD card:


enter image description here


I want to update an app, which requires 46MB storage space:


enter image description here



When I tick the check box adjacent to it, play store says that space has been created for update to get installed:


enter image description here


How is this possible?



Answer



See App Install Location for what could be the reason



When your application is installed on the external storage:


The .apk file is saved on the external storage, but all private user data, databases, optimized .dex files, and extracted native code are saved on the internal device memory.



(Emphasis Supplied)



headphones - Can an Android phone be used as a Bluetooth headset/speakers?


Is there a way to make an Android phone (HTC Desire HD) act as Bluetooth speakers or headset?


I'd like to use the phone as wireless headphones whilst watching a movie on a computer (running Ubuntu).



Answer



As of right now the bluetooth API only supports pairing with the android device as the master. https://stackoverflow.com/questions/4474697/use-android-device-as-a-headset-for-another-device


Tuesday, October 25, 2016

instant messaging - Still visible after I deleted my WhatsApp account



I've deleted my WhatsApp account according to the official instructions.


Unfortunately I'm still visible to my friends and they can still send me messages. But with a deleted account that shouldn't be the case — at least in my opinion.


I've already contacted WhatsApp's support but to no avail. Until now I haven't gotten a response.


Do you know what I could do about this issue? Have you already experienced such a problem yourself?



Answer



PS: I've just talked to some of my friends and on their phone I disappeared from their Favourites list automatically without manually refreshing.




I've just received the following answer from WhatsApp's support team:



Hi there,



Thanks for confirming your account to be deleted within the WhatsApp settings. Your phone number has been deactivated and it is scheduled to be deleted within 30 days. Therefore, please have your contacts refresh their Favorites List so that you no longer appear as a WhatsApp user.


If you have any other questions or concerns, please feel free to contact us. We would be happy to help!



Sad that my friends have to refresh their Favourites list manually for me to be deleted. Especially when exactly this is described by WhatsApp's FAQ to be done seemingly automatically when you delete your account:



Deleting your account will do the following:
[…]
Delete you from your friends' WhatsApp Favorites lists.
[…]




rom flashing - Can you install a generic ROM on any device?



I am relatively new to rooting and stuff. I have just rooted my android tablet. It's a Chinese tablet, not much about it is available on the internet.


Can I install ROM for another device on my tablet? I saw many videos on YouTube showing "How to install any ROM on any Android device". Does 'any' here mean that I can install, let's say, a Nexus ROM on my tablet?


Is there some generic ROM which can be installed on all androids? If so, can I install this generic ROM and then upgrade to a ROM of another device?


If no, is there a way to do so? (If not, then how do manufacturers put their ROM for the first time?)



Answer



You won't be able to install a ROM from a different device, unless it is ported to your device - there are write-ups on the XDA forums on this. There isn't any generic ROM for all devices. Each device has its own chipset and hardware, that has its own firmware (software) design for it. In order for there to be a generic ROM, it would have to have the software and drivers for every device out on the market. The size of the ROM would be so large it wouldn't fit on most devices, let alone have room for anything else. Manufactures flash the ROM to their devices. From there we the can unlock the boot loaders, flash a custom recovery, install kernels and flash a custom ROM designed/made/ported for our device.


Check out this link and search for your device. http://forum.xda-developers.com/. There are other forums on the internet, but you can search Google for them.


internal sd - How do I refresh/rescan the SD memory in Android 4.4 KitKat


I received the official OTA KitKat update for my Nexus 4 last week and since then I have been unable to rescan the SD card. I have tried a number of different apps for this task but all of them crash when being opened. A bit of research shows a handful of users with the same issue.


These are the apps I've tried:




  • Rescan Media (Aditya Talpade)

  • Rescan SD Card! (sTOOPIDfiG)

  • Rescan SD Media Card (RADEFFFACTORY)

  • SDrescan (Benjamin Rosseaux) my old standby on Jelly Bean


Each app crashes when launched. Is anyone able to refresh their SD memory on KitKat?



Answer



It won't work to detect deleted files, but I just put an app up on the Play Store that will work on new and updated files: https://play.google.com/store/apps/details?id=com.gmail.jerickson314.sdscanner


It uses a workaround inspired by Dan Hulme's answer: by using the API that is only for a specific file, but manually generating a recursive list of files on the card. This requires only the read permission on the SD card, not root, and has the nice side effect of allowing a reliable progress indicator.


Monday, October 24, 2016

Unable to install Google Play Services to save Clash of Clans village


I play Clash of Clans and I have a village which I do not want to lose.


I am attempting to save the village to Google Play Services but I am not able to install Play Services as it says that it is not compatible with other apps. How can I save my village without services, or how can I install Google Play Services?


My device is Maxx AX5 with Android 4.0.4 and kernel version 3.0.13.




root access - How to disable hidden trackers, in google play store applications


So most applications, on google play have hidden trackers, analytics they don't tell you about. This site lets you search any app shows trackers. The article explains what i'm talking about.


Example: https://reports.exodus-privacy.eu.org/reports/37324/


Article : https://theintercept.com/2017/11/24/...-android-apps/


Article : https://www.wired.com/story/android-users-to-avoid-malware-ditch-googles-app-store/


The second article explains Fdroid is partly a solution as those apps there don't have these trackers. One other not a full solution is uninstalling the app removes the tracker.


Certain apps on google play store either open source or proprietary don't include trackers as far as exodus-privacy.eu.org analysis is aware of, it's possible there's some there unaware of as they state.


Applications without trackers could later receive trackers through application updates. The other option is researching the extent of the specific trackers used in certain applications and what there been used for.


I want to know how it's possible to disable these trackers, analytics so there not active in the background "while" using these apps.



I saw XPrivacyLua xposed module can disable certain analytics.


Appreciate all advice.




Sunday, October 23, 2016

4.2 jelly bean - How do I make my Linux PC mount my Android 4.2.2 phone using MTP?


I have just purchased a new TCL (S950) Idol x phone and I'm figuring out some issue to make it visible on my system.


This phone uses Android 4.2.2 and I guess this is the cause of the issue: my previous phone with android 4.1 was correctly displayed in nautilus/dolphin ( using mtpfs )


Now I have tried to install mtp-tools but nothing has changed.



lsusb gives me that list (T & A Mobile Phones should be my phone )


Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 1bbb:0168 T & A Mobile Phones
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1bcf:2b80 Sunplus Innovation Technology Inc.
Bus 002 Device 003: ID 8086:0189 Intel Corp.


dmesg gives me this output:


[15780.855333] usb 3-2: new high-speed USB device number 2 using xhci_hcd
[15780.874336] usb 3-2: New USB device found, idVendor=1bbb, idProduct=0168
[15780.874348] usb 3-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[15780.874354] usb 3-2: Product: TCL S950
[15780.874359] usb 3-2: Manufacturer: TCT
[15780.874364] usb 3-2: SerialNumber: FESKMRSOYLW8RKSK

Any idea what could be wrong here ?



UPDATE: I have added the following rules to udev (/etc/udev/rules.d/11-android.rules ) and now at least adb shell works fine:


## TLC
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bbb", ATTRS{idProduct}==”0167″, MODE="0777", OWNER="fra"

( change OWNER user name with yours )



Answer



As suggested by @Logos this works (take care of using sudo):


sudo mtpfs -o allow_other /media/MTPdevice

However mtpfs is very unstable on this phone so I tried go-mtpfs and I found out it works better. You can install go-mtpfs using the info provided in their site



The command to mount the phone is very similar (change the bin path according to yours) :


sudo /usr/lib/go/bin/go-mtpfs /media/MTPdevice/

Automount
Once you are able to mount the device with the above command you can make the phone automount: You only have to add a couple of rules to udev.


You will need those info:



  • ID_MODEL (mine is TCL_S950 )

  • ID_MODEL_ID ( mine is 0167 )

  • Installation path of go-mtpfs ( mine is /usr/lib/go/bin/go-mtpfs )



You can find those info running this command in a terminaludevadm monitor --environment --udev and plug/unplug your phone.


Now you can create/edit an udev rules /etc/udev/rules.d/99-android.rules and add these lines (change ID_MODEL and ID_MODEL_ID with yours):


 # Mount  
ENV{ID_MODEL}=="TCL_S950", ENV{ID_MODEL_ID}=="0167", ACTION=="add", RUN+="/usr/bin/sudo -b /usr/lib/go/bin/go-mtpfs -allow-other=true /media/MTPdevice"
# Umount
ENV{ID_MODEL}=="TCL_S950", ENV{ID_MODEL_ID}=="0167", ACTION=="remove", RUN+="/bin/umount /media/MTPdevice"

At this point everything should work, check this thread for more details: source


remote access - Fully control Android phone from another Android phone over the Internet



Before I write my own app, I want to know if there is an app to fully control one Android phone from another Android phone (over the Internet)?


I need this so that I can remotely start apps, install apps and control apps for a remote Android phone (un/rooted) without requesting permissions. An app to basically do remote screen sharing with full privileges given.


I have used TeamViewer and AirDroid, but I don't like these as the remote device needs to allow permissions.


The usecase is simple: I am giving my mother (not so tech savy), who lives in another country, an Android phone (assuming it will have Internet connectivity over Wi-Fi). I want to be able to fully control her phone from my Android phone (from another country).




security - how to add a custom lock for the recovery and/or bootloader?



Unlocking the bootloader and/or the recovery is very popular discussion across many devices. But doing so exposes a very obvious and inevitable issue with security!


An unlocked recovery means that no matter how secure you make your android lock screen, someone can easily reset phone to restore the phone to a fully functional (and lockless/insecure) state and the worst part, they don't have to erase your data(meaning they can access all your personal files and folders)!


It is almost hilarious! In fact if the phone supports insertion of external SD cards, you can even flash your own software into the phone and maybe bypass the lock screen without wiping any data.


For example: One possible loophole is using the 'Tasker' app which has a feature that can temporarily disable the keyguard. And the best part is that Tasker can be flashed using the recovery!


So is there any method by which I could add a security measure that prevents complete access to my recovery and/or boot loader that will make my phone less insecure?!


Expected answer: Method by which a custom pin/password must be entered before entering the bootloader/recovery. So that my bootloader/recovery is still technically unlocked but simply requires authentication to use (this also ensures that conventional unlocking methods won't work as the phone is not really locked!). This also means that one does not have to lose root access to ensure security!



Answer



Even if it would be doable, consider a few things making it extremely unlikely:



  1. in that early stage, the touchscreen is not yet initialized – so how would you input your PIN/password/pattern to unlock the bootloader before firing up the custom recovery?


  2. another risk introduced this way: if you break your display, you are effectively knocked-out: even if the problem described above could be worked around, that work-around would be rendered useless at this place.


True, there are things like touch-based custom recoveries. So technically, that would be the place to make it possible: Once the recovery is initialized, it could ask for a code to unlock before offering its real services. This might even include a "fallback mode" for a broken screen using e.g. shake-patterns (accelerometer-based) or NFC (if applyable). But that's nothing we can solve here at this site: you will have to contact the resp. developers for this ( and/or , to name two examples).


cyanogenmod - How to set bash as default shell?


When I adb into a device with Cyanogenmod, I'm presented with a nice bash shell, color prompt, and bashrc. I don't see a symlink from /system/xbin/bash to /system/bin/sh. How do they set the default shell to bash instead of sh? I looked through rc files, but didn't find anything. I'd like to do the same on my Android build, which isn't Cyanogenmod.


Update


After re-installing from scratch with CM7, I'm taken to sh instead of bash. Now the question is how to set bash as default.




Saturday, October 22, 2016

So what does Cyanogen Inc shutting down mean for CyanogenMod and similar ROMs?


So Cyanogen Inc (cyngn), known for their support for their support for CyanogenMod and their efforts to integrate Cyanogen OS into devices such as the OnePlus One, Alcatel POP Mirage, and several other devices. Cyanogen Inc just recently announced that they are shutting down their services.


What does this mean for CyanogenMod, Cyanogen OS, and the devices which originally shipped with Cyanogen OS? Will they no longer receive OTA updates?



Answer



CM's own blog is unreachable now, but XDA-Developers already summed it up and clarified some important bits:



  • All monetary and infrastructural support for CyanogenMod from Cyanogen Inc. will cease. -> CyanogenMod will no longer receive nightly builds after December 31st... unless the team finds another host to build nightlies.

  • CyanogenMod will rebrand as LineageOS.

  • The CyanogenMod team will not continue official development on the CyanogenMod project, but the work will continue in LineageOS.



Since it's clear that Cyngn is going in a new direction, Cyanogen OS will almost certainly have no future - it's not community-driven in the first place. CyanogenMod, on the other hand, will live a bit longer, until Lineage truly dawns (or fails).


UPDATE Dec 29, 2016: The GitHub repo and Gerrit code review platform of LineageOS are online, and I have personally verified that codes are fully buildable, and previous CM users can seamlessly transition to current builds. Also, from what the Gerrit shows, the team is now working on renaming all CM elements to Lineage/LineageOS, amongst the usual bug fixes and improvements.


UPDATE Jan 13, 2017: Rebadging is almost complete: LineageOS 14.1 now has a redesigned setup wizard with no CyanogenMod presence. LineageOS 13 remains mostly untouched, since Marshmallow is near deprecation. The download site itself is also accessible, though building has yet to begin.


UPDATE Jan 18, 2017: LineageOS now has its own bootanimation, thus rebadging can be deemed as completed.


UPDATE Jan 23, 2017: All systems operational, and first official builds have rolled out!


security - Trojan & Malware removal


I have a Samsung Grand neo I9060, in which I recently downloaded an app from the web only for it to install malware and trojan in it. Each time the data connection is on or I'm connected to a wi-fi pop-up ads frequently appear which is pretty disguting. Efforts to uninstall this malware via apps from play store have all been futile. The device is not rooted. Kindly assist if you can, please.




samsung galaxy note 10.1 - Which version of VLC is right for an Exynos tablet?


VLC has two versions listed for ARM,



  • Android (ARMv7-A)


  • Android (ARMv8-A)


I'd rather not install with the PlayStore. Both of these versions when downloaded say "Can't open file" when I click then in the File Manager.


For comparison, I also download F-Droid clicking it open up a prompt for me to install with the option INSTALL and CANCEL. I am using a Samsung SM-P600 UD.



Answer




The version needed with -ARMv7.apk. After downloading that, you have to install it. This may be more difficult than need be because VLC currently has the content-type on the response set wrong, you can read more about that here:



You may open the file downloaded from the Download Manager nor through the browser -- see the link above


Friday, October 21, 2016

vnc - Remote login into the phone from a PC



Possible Duplicate:
Any VNC solutions for an unrooted device?



Is it possible to remotely control an Android phone from a PC. Is there a program similar to VNC server that runs on the phone, with the client displaying phone's UI on the PC?


When I'm at my desk, it would be much easier to manage the phone (read/type SMS, install apps etc.) from the PC instead of poking the tiny touchscreen.


Searching brings many solutions in the other direction (VNC server on PC, VNC client on phone).



Answer



Yes, but your phone needs to be rooted: Droid VNC



With an unrooted phone and other apps you can do certain things like access the SD card, send SMS messages and manage apps, but to gain total control of the device it needs to be rooted.


See my related inquiries here and here.


google play store - Is there a way to see the top apps across all categories?


Is there a way to see some stats about the top apps in the Android Market across all categories?


The Google Play Store gives me some top paid and free apps per category. How do I get the overall stats?




Thursday, October 20, 2016

google play store - insufficient storage even with marshmallow sd card formatted for internal space and plenty of space


When I try to install an app from the Play Store I am getting the "insufficient storage" message but I have 20 GB free on my SD card that is formatted for internal storage. I am using a Moto G 2nd generation. Why can't I install new apps?




"MTP USB Device" driver error (screenshot) when connecting my Galaxy S to my PC in Kies mode -- How can I resolve this problem?


alt text


I always got this error when trying to connect my Galaxy S to my PC in Kies mode. I can connect it as "Mass storage" with no problem. But I need to connect with Kies mode to get 2.2 (froyo), but I always get this error. What is this error and how can I correct it?


I have Windows 7, Galaxy S 2.1, and kies already uploaded to the latest version. If this is of help, the PC tries to install "MTP USB Device" for a while (around 3-5 minutes) and during this time the phone shows a display that says "Initialising blah blah, press home to exit".


How to fix this? Or if this is possible, is there another way to upgrade to 2.2?



Answer





  1. Go to Samsung Kies software, on top left of the window, click the menu > Driver recovery.

  2. Let it reinstall drivers

  3. After driver installation finished, go to your phone, Settings> Application > Development, tick USB debugging mode.

  4. Under USB debugging mode connect your phone to the PC with USB.

  5. It installs correctly!

  6. Disconnect from PC

  7. Untick USB debugging mode

  8. Connect again


and it works!



Wednesday, October 19, 2016

networking - How to connect to Android through SSH over 3G/4G public IP?


I am having an Android device and I want to connect in via 3G/4G and I am getting connection refused.


Any ideas how to do that?




Tuesday, October 18, 2016

applications - Can anybody tell me exactly what this shell command does? ADB [Ice Box]


So I have been looking alot into how I can save some battery life on my S8+ (Not that it is bad in any means) and so I've been trying and looking at a lot of different apps. Among these are Greenify, Island, Tasker+Package disabler and Ice Box. And especially Ice Box has cought my eye.



But there is something about, how Ice Box is setup that I don't understand? If your device is not rooted (which mine isn't) you'll need to run the following in ADB to make it work: adb shell dpm set-device-owner com.catchingnow.icebox/.receiver.DPMReceiver


I don't know a lot about shell commands but as far as I understand this will set the App as device admin/owner (is there a differense?)? But this command for some reason also require you to remove all account when run, otherwise it wont work.. - BUT Apps like Island also require device admin? But that can be set right on the device without ADB?


What is the difference and what exactly does that shell command do?



Answer



Google has noted here:



A device owner is a specialized type of device administrator that has the additional ability to create and remove secondary users and to configure global settings on the device. [It can be used] to take fine-grain control of the configuration, security, and apps on managed devices. A device can have only one active device owner at a time.



(Emphasis mine)


So now you know why all other accounts have to be removed for Ice Box but not for other apps. You can add those accounts later, after making that app a device owner.



Also, if memory serves correct, once you set an app as a device owner I don't think you can remove that app. You would have to factory reset the device or use root access to wipe it out.


tasker - Save and hide notifications and then show them later


Is there any way I could hide notifications from certain apps entire, but then have them appear later at some specific time or event? Essentially, I'd like to contextually delay notifications intentionally.



I know there are plenty of apps that can log notifications, or even roll them up into a single notification. Theses are very close to what I want, except I don't want the notifications to be intercepted at all times, and I don't even want to see that notifications have been blocked until some predetermined time or I check on them myself.


I'm pretty sure I'd have to hack together a solution, maybe using Tasker to prevent some of these apps from working and hiding the notifications from these notification loggers.


I'm on a stock, unrooted Galaxy S8 (Android 7.0).




shell - How do I view/mount nandroid file on device?


From Android's terminal, I tried to mount a nandroid img:


losetup -f

gives "/dev/loop0".


However, when I try losetup /dev/loop0 /sdcard/nandroid/... data.img it says no such directory. Same thing when I try to mount the file.


According to this it should be doable, but it seems there must be some trick to mounting it in Android? https://en.wikipedia.org/wiki/Loop_device




os - Can I use dual boot in my Android mobile phone?


I want to know is there any boot loader modifying tool for android so that I can use my cell as dual boot. Like Symbian- Android, Android - Windows Mobile, Android - Java, Android - Bada.


Is it possible.




Where can I find stock or custom ROMs for my Android device?


There are several reasons to be looking for a ROM:



  • Upgrading or downgrading your stock ROM

  • Looking for firmware from a different region/language

  • Flashing a custom ROM for different features, removing bloat, etc.


But where can one find ROMs in the first place? What sites are likely to have the ROM I need?



This question is intended to be canonical; please add to the wiki answer instead of posting separate answers.


See also: How do I update Android on my device?



Answer




While they don't usually host ROMs directly(exceptions include Samsung), you may find that they have software useful for upgrading stock ROMs, such as Samsung's tool Kies. If you want to upgrade and stay stock then you should try official methods first.



Google hosts update packages for the flagship Nexus and Pixel devices at


https://android.clients.google.com/packages

You can't browse that link directly, but web search is your friend here. Search for that link plus the code name of the device and the version you want; for example, searching android.clients.google.com/packages crespo ics results in a lot of pages with [this link][n1] -- the OTA Ice Cream Sandwich update for the T-Mobile Nexus S. Links for various "factory images" for Nexus devices can be found here.




Probably the first place you should look after trying the official route is the XDA Developers' forums. Stock ROMs are usually posted in the General sub-forum for your device, and custom ROMs in the Android Development sub-forum for your device. No guarantees.


They don't have dedicated subforums for all devices, so if you have a less-popular device you should use the site search instead of the subforum search.



You may or may not want to check RootzWiki before XDA Forums above. Developers tend to move from forum to forum and RootzWiki provides devices for the best developers so a lot have jumped on board.


They have sections for many devices and for those that don't there is a General section. The forums tend to be divided into 3 sections per device (not always): General, Development (ROMS and such) and Themes.



Many developers publish their custom ROMs in ROM Manager and even provide OTA-style updates through it. Naturally, these ROMs can be easily flashed through ROM Manager / ClockWorkMod Recovery as well.



This site often has ROMs for more obscure devices, as well as the popular ones.




This site provides a long list (about 800 pages) for all kind of devices, including Android, Blackberry, Symbian, and more. It misses a filtering mechanism, unfortunately...



Grouped by vendor, then device. Seems to be quite up-to-date and quite complete -- for sure one of the best resources.



Similar to Android Forums.



This site posts stock Samsung ROMs from all over. It does require you to sign up.



When in doubt, do a web search. Make use of quotes (e.g., "vibrant" "stock 2.2.1") in order to narrow the results and find what you need.




A collection of shipped ROMs. Contains ROMs for 40-odd devices.



Translated from a popular Chinese ROM, MIUI is a highly customized version of Android with a large base of customization and theme options and a strong iOS aesthetic. Available for many devices and in Froyo (2.2), Gingerbread (2.3), Ice Cream Sandwich (4.0), Jelly Bean (4.3) options.



Android Open Kang Project (AOKP) is just like Cyanogen Mod (CM) a Android Open Source Project (AOSP) based ROM. AOKP focuses on providing extensible settings with the disadvantage that less devices are supported in comparison with CM.



If you have a Samsung device and you want to unleash the potential of your device then this is the place to go for information, tutorials, files, firmware and many surprises! Many top devs in the industry and talented people frequent and maintain many useful threads on this forum based site.



Another popular Android forum, similar to XDA and RootzWiki.




Similar to CyanogenMod, OmniROM is a committed open-source project that provides ROMs for a variety of devices.



Similar to OmniROM, Replicant is a committed open-source project that provides ROMs for several devices (mostly Samsung). It is a fully free Android distribution (with a marked aversion to binary blobs), putting the emphasis on freedom and privacy/security.



Lineage OS is the successor to CyanogenMod(in the sense that the numbering scheme matches only). It allows for customization of the buttons at the bottom of the screen and for root access.



Flashtool provides inbuilt tool - "XperiaFirm" that lets you download the stock firmware for Xperia devices. Using flashtool you can even install the downloaded firmware onto your Xperia device.


Monday, October 17, 2016

mp3 - Music transfer and playlists


Is there an app that will allow you to make playlists with your music (on your computer) and then transfer those playlists, and the associated MP3 files, over to the phone?


I'd prefer not to have to "Sync" stuff because of all the headaches that syncing carries with it, but I just don't see anything in the market that has this functionality.



Answer



As a further answer I forgot there is Media Monkey which just has basic USB copy which will do what you want - let you make a playlist and just copy it to your phone.



thumbnails - Android: huge thumbdata4 file in DCIM folder


I have recently noticed a huge (>3.5GB) file in the DCIM/.thumbnails folder. I have tried deleting it, but the next time I open the Camera app it rebuilds the file (and locks up the phone, sometimes displaying a "media scanning in progress" message, in the process.)


The total file size of all the (approximately 2,000) photos displayed in the Gallery is around 500MB. There are in addition around 35,000 images in folders which contain .nomedia files to instruct Android to ignore the media therein. The total file size of these is around 1.5GB. The Gallery app is correctly ignoring these images, but I wonder whether the Camera app is misbehaving and actually processing them.


I think this problem has emerged since the ICS upgrade ... either when the phone (Samsung Galaxy Note) was first updated from Gingerbread or at some later date.


Any ideas, please?




Sunday, October 16, 2016

Can I use a Motorola Atrix without a SIM card?


My company purchased an Atrix for app development and would like to use it without a SIM card. Unfortunately, on boot it is not possible to get past the "No SIM card. Emergency calls only" screen. Is it possible to use the Motorola Atrix without a SIM card?


Edit: Is it also possible to skip or bypass the MotoBlur registration screen?



Answer



You can bypass the SIM card requirement by playing with the boot options:



  1. Load Boot menu by holding the Volume Down button while starting the phone.

  2. Press the Volume Down button until the option "Boot Android (NO BP)" appears at the top of the screen.

  3. Press the Volume Up button to select this option.

  4. On load, the phone will bypass the No SIM card screen



Next, you can either register for a MotoBlur account or skip it by entering the following keys into the virtual keyboard (press and hold the Menu key to bring up the keyboard):



  • ?123

  • ALT

  • ABC

  • e

  • ?123

  • ALT

  • ABC


  • e

  • b

  • l

  • u

  • r

  • o

  • f

  • f


Luckily, this process only needs to be performed once. It looks like the phone remembers this boot option for next time :) Thanks to XDA for the MotoBlur bypass steps!



Saturday, October 15, 2016

wi fi - Why is not all traffic captured from my device when routing through proxy?


I have followed the guide here: Configure Fiddler for Android / Google Nexus 7 in order to redirect outgoing traffic from my Android device to go through Fiddler acting as a proxy on my desktop machine on my local network.


While using the browser on my Android device I can see requests logged in Fiddler for the websites I am visiting, which verifies that I have set up the proxy correctly.


However, when using certain apps I can see no requests being logged, even though information in the app is being actively updated over the network.



I have ensured that mobile data is turned off.


The following question is related: Android apps not working with HTTP proxy but in their case the apps are not able to connect to the internet and are showing errors. In my case the app I am using is able to retrieve information over the network with no problems, but I cannot see the requests being made in Fiddler.


I want to be able to analyze the requests sent between an app on my phone which controls a wireless thermostat connected to my LAN via wifi.




2.3 gingerbread - Install apps to sd card by default



How can I do this? I'm using a Samsung Galaxy Ace



I've tried this method http://forum.xda-developers.com/showthread.php?t=1278349 I confirmed that it was indeed set to 2. But it wouldnt work.


Then I rooted my phone, installed an app with which I could modify the default installation path, but it also wouldnt work.


What can I do?




Friday, October 14, 2016

applications - Is it possible to have multiple instances of the same app (logged in to different accounts)?


Is it possible to have multiple instances of the same app (logged in to different accounts)?


Example: I want Instagram A logged in to Account A (personal), and Instagram B logged in to Account B (business). Both apps are on the same phone; I don't want to log-in and log-out just use use a different accounts.



Answer



Titanium Backup PRO (and only the paid (Pro) version allows this) - FYI ROOT REQUIRED - does allow Profiles, but not the running of multiple insntances of the same app, with the exception of Winamp (but Winamp has Always been written to do that, no matter the platform)


system - Where are UID for each application stored?


When installing an application, Android gives it an unique UID, which file(s) is used to keep track of used UIDs and to whom they belong? I want to forcibly change application UID to ensure they are the same on different device.


I've already checked with /data/system/packages.xml. But while that contains application permissions by package name, didn't see any UID there.


If it depends on Android version, for each versions superior or equal to 4.4.4 and source to documentation to figure it out myself for future versions.



Answer



You have already missed the correct answer.
The UIDs are stored right in /data/system/packages.xml, although an easier-to-interpret version with less information is available at packages.list.
Here's an example line of what's inside (scroll to the right)


jackpal.androidterm" codePath="/data/app/jackpal.androidterm-1" nativeLibraryPath="/data/app/jackpal.androidterm-1/lib" primaryCpuAbi="armeabi" flags="572996" ft="1592b6fa088" it="153d4948841" ut="158ed133c1f" version="71" userId="10001">


You see, there's a userId XML Attribute. This is exactly the UID you are asking for.
Furthermore, userId may be replaced by sharedUserId if an app shares its UID with another. Like (also scroll to right)


sharedUserId="1001">

Of course you don't want to go through that terribly long packages.xml, so you might want to take a look at packages.list, like


jackpal.androidterm 10001 0 /data/data/jackpal.androidterm default 3003,1028,1015

Very straight, isn't it? The 2nd field delimited with space is exactly the UID and it's the same as the one in packages.xml. Do not modify packages.list. All unmatching records in packages.list will be corrected from packages.xml.


Also, it's possible to change UID of an installed app if it does not have a shared UID. Simply edit packages.xml and reboot, then the new UID will have effect immediately. Old data will be erased for the changed app. If you want to keep data, apply chown recursively on the app's data directory in /data/data. If an app's old data gets erased by mismatching UID, related information will show up at /data/system/uiderrors.txt. Like this:


1970/01/01 00:00: Package jackpal.androidterm uid has changed from 0 to 10001, old data erased.

Tested on Android from 4 through 5. I guess this is applicable from Gingerbread to Nougat.


Thursday, October 13, 2016

Turn on USB debugging using command-line


I have a Samsung Galaxy S2 and a PC running Debian 8. How can I turn on USB debugging using command-line on my PC without touching the phone?



Answer



If the question is simply "using the command-line"


Let it be simple (root possibly[1] required):


settings put global development_settings_enabled 1
settings put global adb_enabled 1

And then you need to



echo "mtp,adb" > /data/property/persist.sys.usb.config

If you want to do this without touching your phone


Then I'm feeling interesting because you won't gain access to command line via PC before enabling ADB, so it's impossible to enable this prior to touching your phone.




1. Actually you only need either 'system' or 'shell' privilege, but 'system' is impossible to access without rooting and 'shell' is granted only if you're already logging in via adb, where it makes no sense to enable adb while it's already active.


4.0 ice cream sandwich - How to root Alcatel OT-997D?


I currently have an Alcatel OT-997D which has the MTK6577 chipset and runs ICS 4.04. I've looked mostly through threads at xda-devs and I've tried various root methods including: "root many android" - I get "mount access denied", "ICS/JB Universal root" - When trying to update in stock recovery the file fails verification, "MTK Droid root" - Reboots phone and backup/restore prompts appear but no results.


Does anyone know any other "universal" rooting methods or ones specific to my device?




Wednesday, October 12, 2016

How can I use Google Play without storing any Google account information on my phone?


I am using HTC Wildfire handset, but I think following question applies to all Android-based handsets.



My Google Account has been added under


Settings
-> Accounts & Sync
--> Google (under Manage Accounts)

When I click on "Google", I get following options


Sync Contacts
Sync GMail
Sync Calendar


In Accounts & Sync option, I have turned off (unchecked following options)


Background Data
Auto sync

NOTE: I have turned off Background Data, and Auto Sync before adding my Google Account.


I want to get apps and games from Market, but I don't want to sync any of my Google Account data with my phone i.e., there should not be any traces of my Google Account in my phone.


How can I do it?



Answer



Beyond what you've already done, you can't. The Market requires you to have your Google Account added to your phone, and this naturally stores data such as your email address even if you don't sync email.


samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...