[One (M7) Android Development] Gelunox:
My phone reboots when my flashlight is on longer than 30 seconds?

Furthermore... it doesn't happen when I'm connected to usb. Tried Logcat over Wifi, but I'm not sure the output I got will be of any help (Pasted last few lines I got, colored accordingly to what android studio was showing)

[COLOR="Red"]01-22 00:43:05.801 533-604/system_process E/WifiStateMachine﹕ WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=7.22 rxSuccessRate=4.88 targetRoamBSSID=d8:5d:4c:ae:40:3c RSSI=-53
01-22 00:43:05.801 533-604/system_process E/WifiStateMachine﹕ WifiStateMachine starting scan for "Rubber Ducky"WPA_PSK with 2442[/COLOR]
01-22 00:43:05.804 760-760/? I/wpa_supplicant﹕ wlan0: CTRL-EVENT-SCAN-STARTED
[COLOR="red"]01-22 00:43:06.009 198-1756/? E/QC-NETMGR-LIB﹕ Received nl msg, recvmsg returned 56
01-22 00:43:06.009 198-530/? E/QC-NETMGR-LIB﹕ Processing RTM_NEWLINK
01-22 00:43:06.009 198-530/? E/QC-NETMGR-LIB﹕ Metainfo: Index=22 Family=0 Type=0x1 Change=[0x0] Flags=[0x11043]UP BROADCAST RUNNING MULTICAST LOWER_UP[/COLOR]
01-22 00:43:06.770 533-846/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:07.769 533-953/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:08.768 533-550/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:09.097 1842-7307/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ ===:48:3657:30.7:0
01-22 00:43:09.771 533-958/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:10.768 533-867/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:11.770 533-846/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:12.776 533-793/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:13.770 533-958/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:14.780 533-867/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:15.512 1729-1823/com.mobidia.android.mdm:remote W/MDM﹕ InstalledPackageMonitor - <--> getAppVersionForUid(0) failed to find matching entity
01-22 00:43:15.512 1729-1823/com.mobidia.android.mdm:remote W/MDM﹕ InstalledPackageMonitor - <--> getAppVersionForUid(0) failed to find matching entity
01-22 00:43:15.629 1729-1887/com.mobidia.android.mdm:remote W/Settings﹕ Setting mobile_data has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
01-22 00:43:15.647 533-533/system_process V/NotificationService﹕ pkg=com.mobidia.android.mdm canInterrupt=false intercept=true
01-22 00:43:15.768 533-953/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:16.768 533-793/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:17.779 533-958/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:18.707 533-562/system_process I/PowerManagerService﹕ Going to sleep due to screen timeout (uid 1000)...
01-22 00:43:18.710 533-562/system_process I/PowerManagerService﹕ Sleeping (uid 1000)...
01-22 00:43:18.825 533-562/system_process I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328
01-22 00:43:18.845 533-2852/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
[COLOR="red"]01-22 00:43:18.870 533-604/system_process E/native﹕ do suspend false[/COLOR]
01-22 00:43:18.920 927-7355/com.android.nfc D/NfcService﹕ Discovery configuration equal, not updating.
01-22 00:43:18.935 197-343/? D/PermissionCache﹕ checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (152 us)
01-22 00:43:18.952 533-712/system_process D/WifiService﹕ acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@3be4f3fd}
[COLOR="red"]01-22 00:43:18.985 533-604/system_process E/WifiStateMachine﹕ WifiStateMachine CMD_START_SCAN source 10022 txSuccessRate=9.51 rxSuccessRate=4.87 targetRoamBSSID=d8:5d:4c:ae:40:3c RSSI=-53[/COLOR]
01-22 00:43:18.988 760-760/? I/wpa_supplicant﹕ wlan0: CTRL-EVENT-SCAN-STARTED
01-22 00:43:18.991 946-1990/com.android.phone D/PhoneApp﹕ getPhone phoneId:0
01-22 00:43:18.994 946-4484/com.android.phone D/PhoneApp﹕ getPhone phoneId:0
01-22 00:43:18.995 2910-2910/nl.ns.android.activity D/MijnTrajectWidgetUpdateService﹕ onStartCommand, update mijn traject widget.
01-22 00:43:18.997 2910-2910/nl.ns.android.activity D/MijnTrajectWidgetUpdateService﹕ Screen is off
01-22 00:43:19.002 3903-3903/com.umoni.nocrash:umengService_v1 D/MessagePush﹕ screen_on
01-22 00:43:19.008 208-7367/? D/QC-QMI﹕ Getting maximum message length
01-22 00:43:19.009 208-7367/? D/QC-QMI﹕ Setting up transaction
01-22 00:43:19.009 208-7367/? D/QC-QMI﹕ Sending message
01-22 00:43:19.009 208-7367/? D/QC-QMI﹕ Releasing Transaction
[COLOR="red"]01-22 00:43:19.039 533-604/system_process E/native﹕ do suspend true[/COLOR]
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ =================================================
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Realtime: 579
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Uptime: 579
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ BatteryRealtime: 130
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ BatteryUptime: 130
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Battery Unplugged Start Level: 48
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Battery Level(current): 48
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Phone On Time: 0, Power: 0.0:0.0
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Screen On Time: 130, Power: 3446.6960000000004:3446.6960000000004
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Held Awake Time: 0, Power: 0.0:3550.7472000000002
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Bluetooth Time: 0, Power: 0
01-22 00:43:19.061 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Bluetooth Ping Count: 0, Power: 0.0:3550.7472000000002
01-22 00:43:19.129 208-1809/? D/QC-QMI﹕ Calling cooked async Callback
01-22 00:43:19.129 208-1809/? D/QC-QMI﹕ Inside qmi_client_decode_msg_async Callback
01-22 00:43:19.129 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Current retrieved from: /sys/class/power_supply/battery/batt_current_now: 902
01-22 00:43:19.133 946-970/com.android.phone D/PhoneApp﹕ getPhone phoneId:0
01-22 00:43:19.133 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Kernel Waklocks took 4 ms to collect...
01-22 00:43:19.133 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Radio Data Uptime & Bps (sec): 0 / 700000
01-22 00:43:19.133 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Avg Cost Per Byte: 6.577777777777778E-8
01-22 00:43:19.151 946-1990/com.android.phone D/PhoneApp﹕ getPhone phoneId:0
[COLOR="red"]01-22 00:43:19.163 1842-1842/com.gsamlabs.bbm E/ProcessCpuTracker﹕ Retrieving the UID for PID 6737 from the filestat didn't work - got a UID of: 0[/COLOR]
01-22 00:43:19.163 1842-1842/com.gsamlabs.bbm D/ProcessCpuTracker﹕ Resorted to slower method for retrieving the UID for PID 6737 got a UID of: 0
01-22 00:43:19.170 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ MyApp CPU: 160.0
01-22 00:43:19.170 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Data: Wifi / Mobile / Apps: 929335/0/821863
01-22 00:43:19.170 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Non-App Data: 107472
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Radio Data Power: 0.0:5026.231260321778
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Wifi Running: 130, Power: 130173:5286.238329591111
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ App Power: 1475.4840603217774:5286.238329591111
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Total Power: 5286.238329591111
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ My App Power %: 0.0
01-22 00:43:19.171 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Stat compared to time diff: 129
01-22 00:43:19.174 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Time spent handling screen off event: 3
01-22 00:43:19.174 1842-1842/com.gsamlabs.bbm D/com.gsamlabs.bbm.lib.NotifyingService﹕ Time spent handling screen off event (this / write / total): 114/3/114
01-22 00:43:19.181 2537-2537/eu.chainfire.opendelta D/OpenDelta﹕ screen state --> 0
01-22 00:43:19.181 2537-2537/eu.chainfire.opendelta I/OpenDelta﹕ Setting sleep detection alarm (exact) for 06:13
01-22 00:43:19.510 197-197/? D/SurfaceFlinger﹕ Set power mode=0, type=0 flinger=0xb6a62000
01-22 00:43:19.511 197-197/? D/qdhwcomposer﹕ hwc_blank: Blanking display: 0
01-22 00:43:19.516 533-560/system_process I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 472.965 x 473.475 dpi, appVsyncOff 0, presDeadline 17666667, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
01-22 00:43:19.517 533-533/system_process V/ActivityManager﹕ Display changed displayId=0
01-22 00:43:19.697 197-197/? D/qdhwcomposer﹕ hwc_blank: Done blanking display: 0
01-22 00:43:19.697 533-636/system_process D/SurfaceControl﹕ Excessive delay in setPowerMode(): 187ms
01-22 00:43:19.768 533-793/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:20.782 533-792/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:21.769 533-958/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
[COLOR="red"]01-22 00:43:22.338 198-1756/? E/QC-NETMGR-LIB﹕ Received nl msg, recvmsg returned 56
01-22 00:43:22.339 198-530/? E/QC-NETMGR-LIB﹕ Processing RTM_NEWLINK
01-22 00:43:22.339 198-530/? E/QC-NETMGR-LIB﹕ Metainfo: Index=22 Family=0 Type=0x1 Change=[0x0] Flags=[0x11043]UP BROADCAST RUNNING MULTICAST LOWER_UP[/COLOR]
01-22 00:43:22.771 533-2852/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
[COLOR="red"]01-22 00:43:22.788 533-552/system_process E/LocSvc_eng﹕ I/===> int loc_eng_inject_location(loc_eng_data_s_type&, double, double, float) line 729
01-22 00:43:22.788 533-552/system_process E/LocSvc_utils_q﹕ D/msg_q_snd: Sending message with handle = 0xA1A8D2E0
01-22 00:43:22.788 533-552/system_process E/LocSvc_utils_ll﹕ D/linked_list_add: Adding to list data_obj = 0xA1A8D2E0
01-22 00:43:22.788 533-552/system_process E/LocSvc_utils_q﹕ D/msg_q_snd: Finished Sending message with handle = 0xA1A8D2E0
01-22 00:43:22.795 533-889/system_process E/LocSvc_utils_ll﹕ D/linked_list_remove: Removing from list
01-22 00:43:22.795 533-889/system_process E/LocSvc_utils_q﹕ D/msg_q_rcv: Received message 0xA1A8D2E0 rv = 0
01-22 00:43:22.795 533-889/system_process E/LocSvc_eng﹕ D/void loc_eng_deferred_action_thread(void*):1415] received msg_id = LOC_ENG_MSG_INJECT_LOCATION context = 0xa2b0d200
01-22 00:43:22.795 533-889/system_process E/LocSvc_api_v02﹕ I/---> locClientSendReq line 2084 QMI_LOC_INJECT_POSITION_REQ_V02[/COLOR]
01-22 00:43:22.795 533-889/system_process D/QMI_FW﹕ QCCI: QMI_CCI_TX: cntl_flag - 00, txn_id - 0041, msg_id - 0039, msg_len - 0021
01-22 00:43:22.795 533-889/system_process D/QMI_FW﹕ QCCI: QMUXD: xport_send[1 -> 16]: 40 bytes on conn_id=9
01-22 00:43:22.836 1474-1647/com.google.process.location I/GCoreUlr﹕ Successfully inserted location
01-22 00:43:22.838 1474-1647/com.google.process.location I/GCoreUlr﹕ Not calling LocationReporter, hasMoved: false, elapsed millis: 436832, request: Stationary(3600000)
01-22 00:43:22.847 1474-1634/com.google.process.location I/art﹕ Explicit concurrent mark sweep GC freed 91910(4MB) AllocSpace objects, 0(0B) LOS objects, 40% free, 21MB/35MB, paused 854us total 64.575ms
01-22 00:43:22.856 533-1811/system_process D/QMI_FW﹕ QCCI: QMUXD: xport_rx[1 <- 16]: 14 bytes on conn_id: 9
01-22 00:43:22.856 533-1811/system_process D/QMI_FW﹕ QCCI: QMI_CCI_RX: cntl_flag - 02, txn_id - 0041, msg_id - 0039, msg_len - 0007
01-22 00:43:22.860 533-1811/system_process D/QMI_FW﹕ QCCI: QMUXD: xport_rx[1 <- 16]: 14 bytes on conn_id: 9
01-22 00:43:22.860 533-1811/system_process D/QMI_FW﹕ QCCI: QMI_CCI_RX: cntl_flag - 04, txn_id - 0000, msg_id - 0039, msg_len - 0007
[COLOR="red"]01-22 00:43:22.860 533-1811/system_process E/LocSvc_adapter﹕ I/<--- void globalRespCb(locClientHandleType, uint32_t, locClientRespIndUnionType, void*) line 115 QMI_LOC_INJECT_POSITION_REQ_V02
01-22 00:43:22.860 533-889/system_process E/LocSvc_api_v02﹕ D/loc_free_slot:298]: freeing slot 0
01-22 00:43:22.860 533-889/system_process E/LocSvc_eng﹕ D/void loc_eng_deferred_action_thread(void*):1402] 37 listening ...
01-22 00:43:22.860 533-889/system_process E/LocSvc_utils_q﹕ D/msg_q_rcv: Waiting on message[/COLOR]
01-22 00:43:22.867 533-793/system_process D/WifiService﹕ releaseWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@3be4f3fd}
[COLOR="red"]01-22 00:43:22.878 533-604/system_process E/native﹕ do suspend true[/COLOR]
01-22 00:43:23.768 533-3573/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:23.813 691-691/com.android.systemui D/PhoneStatusBar﹕ disable: < expand ICONS alerts SYSTEM_INFO back home recent clock search >
01-22 00:43:23.815 691-691/com.android.systemui W/Settings﹕ Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
01-22 00:43:23.876 691-691/com.android.systemui D/PhoneStatusBar﹕ disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT* clock SEARCH* >
01-22 00:43:24.768 533-975/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:25.768 533-550/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:26.768 533-953/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:27.769 533-1001/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:28.769 533-2852/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:29.772 533-792/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:30.770 533-3868/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:31.768 533-549/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:32.768 533-867/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:33.769 533-846/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:34.770 533-975/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output
01-22 00:43:35.769 533-712/system_process W/ActivityManager﹕ getTasks: caller 10057 does not hold GET_TASKS; limiting output