[Miscellaneous Android Development] hackwerk:
[MENTION=1376601]cyclon1978[/MENTION]:

I have a Xiaomi now (see sig) so I want to prepare the E380 for a friend. I formatted everything (internal/external) and wiped etc and resetted. Then I flashed your MyROM 4.0.037 and then flashed your flipped screen kernel (20151111?). It is GREAT (better respons, VERY fast and way better touch accuracy than I had before with the flipped screen!).

Only thing is, it is still clean (booted, fresh, nothing changed/installed), and it reboots every couple few minutes :'(

No SIM in it, no apps, no Google account added. Only changes after first boot; WiFi has connection, and I use an SD-card (formatted and set as main storage location).

Edit 01: I am doing NOTHING after a boot, it is just laying around, plugged in to a charger or USB>PC. Another thing I did btw is update SuperSU to 2.56b.

Edit 02: As it SEEMS, it only happens (every X minutes) when plugged in to a charger/USB-PC?!

Edit 03: Yes it is :( Now NOT charging/USB I immediately reached an uptime of 3+ hours. After just plugging it in again, it reboots after a few minutes of sitting.

Edit 04: Other sites suggest problems with the (too large/too small) SD, or problems with the kernel "set at boot" option or scaling (better is On Demand).

Edit 05: It also occasionally happens (less) when not plugged in. :/ See Edit 06

Edit 06: It seems to happen a few minutes after waking up my phone and unlocking the screen (and then not doing anything, just letting it go to sleep again). Why?!

Can you help? Doing anything wrong?? Is there a newer ZIP???

What do you need to assess my problem (if you have time)?

Hahahaha [MENTION=1376601]cyclon1978[/MENTION] I just reread all last posts, and NOW just see that all of my above problemsare already known and universal.

I cannot flash your newest fixed kernel like Tim, because I need the kernel with inverted screen as you know. Can you please post the newest kernel, including flip for me?? Thanks!!

PS. My kmsg is almost the same as Timmahs when just crashed/rebooted (while charging);

ram console header, hw_status: 5, fiq step 17.

bin log 200.

(0)[88:wdtk-0][<c006d204>] (worker_thread+0x0/0x3a8) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.787361] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.787373] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:cd59bebc

[ 2883.787393] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.787402] (0)[88:wdtk-0]Backtrace:

[ 2883.787425] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.787450] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c006d44c>] (worker_thread+0x248/0x3a8)

[ 2883.787475] (0)[88:wdtk-0][<c006d204>] (worker_thread+0x0/0x3a8) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.787497] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.787509] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:cd59bebc

[ 2883.787529] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.787537] (0)[88:wdtk-0]Backtrace:

[ 2883.787561] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.787586] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c006d44c>] (worker_thread+0x248/0x3a8)

[ 2883.787610] (0)[88:wdtk-0][<c006d204>] (worker_thread+0x0/0x3a8) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.787633] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.787645] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:df3b9ebc

[ 2883.787665] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.787673] (0)[88:wdtk-0]Backtrace:

[ 2883.787697] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.787722] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c006d44c>] (worker_thread+0x248/0x3a8)

[ 2883.787747] (0)[88:wdtk-0][<c006d204>] (worker_thread+0x0/0x3a8) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.787769] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.787781] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:ce80debc

[ 2883.787802] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.787810] (0)[88:wdtk-0]Backtrace:

[ 2883.787833] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.787857] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c0142aec>] (bdi_writeback_thread+0x210/0x24c)

[ 2883.787880] (0)[88:wdtk-0][<c01428dc>] (bdi_writeback_thread+0x0/0x24c) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.787903] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.787915] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:df91ff0c

[ 2883.787935] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.787943] (0)[88:wdtk-0]Backtrace:

[ 2883.787967] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.787990] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c0142aec>] (bdi_writeback_thread+0x210/0x24c)

[ 2883.788014] (0)[88:wdtk-0][<c01428dc>] (bdi_writeback_thread+0x0/0x24c) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.788037] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.788049] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:df91ff0c

[ 2883.788068] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788077] (0)[88:wdtk-0]Backtrace:

[ 2883.788100] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.788123] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c0142aec>] (bdi_writeback_thread+0x210/0x24c)

[ 2883.788147] (0)[88:wdtk-0][<c01428dc>] (bdi_writeback_thread+0x0/0x24c) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.788170] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.788182] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:df91ff0c

[ 2883.788202] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788210] (0)[88:wdtk-0]Backtrace:

[ 2883.788233] (0)[88:wdtk-0][<c075d9b0>] (__schedule+0x0/0x558) from [<c075df40>] (schedule+0x38/0x78)

[ 2883.788258] (0)[88:wdtk-0][<c075df08>] (schedule+0x0/0x78) from [<c006d44c>] (worker_thread+0x248/0x3a8)

[ 2883.788283] (0)[88:wdtk-0][<c006d204>] (worker_thread+0x0/0x3a8) from [<c0071f30>] (kthread+0x98/0x9c)

[ 2883.788306] (0)[88:wdtk-0][<c0071e98>] (kthread+0x0/0x9c) from [<c00573a8>] (do_exit+0x0/0x7ac)

[ 2883.788318] (0)[88:wdtk-0] r6:c00573a8 r5:c0071e98 r4:df2a3ebc

[ 2883.788338] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788348] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788359] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788369] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.788382] (0)[88:wdtk-0]delayed log buf overflow, size:520

[ 2883.792989] (0)[0:swapper/0][printk_delayed:start]

[ 2883.793010] (0)[0:swapper/0][Hang_Detect] putmethod.latin found:927.,RT[2883783314858]

[ 2883.793016] (0)[0:swapper/0][Hang_Detect] rocess.location found:940.,RT[2883783457474]

[ 2883.793023] (0)[0:swapper/0][Hang_Detect] m.android.phone found:955.,RT[2883783600012]

[ 2883.793029] (0)[0:swapper/0][Hang_Detect] ek.voicecommand found:967.,RT[2883783742628]

[ 2883.793035] (0)[0:swapper/0][Hang_Detect] iatek.bluetooth found:977.,RT[2883783884935]

[ 2883.793042] (0)[0:swapper/0][Hang_Detect] droid.launcher3 found:993.,RT[2883784027166]

[ 2883.793048] (0)[0:swapper/0][Hang_Detect] e.process.gapps found:1038.,RT[2883784169397]

[ 2883.793054] (0)[0:swapper/0][Hang_Detect] logwrapper found:1069.,RT[2883784311935]

[ 2883.793060] (0)[0:swapper/0][Hang_Detect] dhcpcd found:1070.,RT[288378

[ 2883.793080] (0)[0:swapper/0][printk_delayed:done]

[ 2885.765931] (0)[1:init]init: starting 'agpsd'

[ 2885.772508] (0)[1:init]init: process 'agpsd', pid 2801 exited

[ 2885.772526] (0)[1:init]init: process 'agpsd' killing any children in process group

[ 2890.704147] (0)[58:bat_thread_kthr][Power/Battery] [FGADC] 1,3708,0,313,4125,83,85,70,2007,2020,-156,0,0,1000,4289,1000,30,15,3904,95,103

[ 2890.744274] (0)[58:bat_thread_kthr][Power/Battery] [tbat_workaround] 407,392,1,369,43

[ 2890.758411] (0)[58:bat_thread_kthr][TestMode] Disable Safty Timer : no UI display

[ 2890.760805] (0)[58:bat_thread_kthr][Power/Battery] status_2nd = 3, capacity_2nd = 50, present_2nd = 0

[ 2890.773287] (0)[1:init]init: starting 'agpsd'

[ 2890.779674] (0)[1:init]init: process 'agpsd', pid 2802 exited

[ 2890.779692] (0)[1:init]init: process 'agpsd' killing any children in process group

cpu 0 preempt=1, softirq=0, hardirq=0

cpu 0 r0->r10 fp ip sp lr pc cpsr orig_r0

00000000 00000000 80000001 f0204000 00000000 c0a6daec f0008000 c0a6db20 00000003 c09fa000 00000000 c09fbf1c c09fbf08 c09fbf08 c003f9e4 c003f9ec 60030093 20030013

cpu 0 stack [c09fbf08 c09fbf88]

00000000 00000001 c09fbf44 c09fbf20 c003f7a4 c003f9d4 c003f744 c0766958 00000000 c0766958 c09fa038 c07672c8 c09fbf64 c09fbf48 c003f7f4 c003f750 c003f7c0 c0a626c8 c09fa000 c0a184c4 c09fbf74 c09fbf68 c000f614 c003f7cc c09fbf9c c09fbf78 c000f980 c000f5fc 00000002 00000000 c09fa000 c09f3da4

cpu 0 backtrace : c003f9e4, c003f7a4, c003f7f4, c000f614, c000f980, c07500c8, c09c1900,

kick=0x00000001,check=0x0000ffff

Qwdt at [ 2893.767750] ¾ÀN