yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II N7105 Android Development] t0lte_n7105_user:
mdm_hsic_pm0 wakelock cause battery draining

mdm_hsic_pm0 wakelock cause battery draining (only screen off will get infinity wakelock loop)

(situation: battery ~60% in UTC+8 3:00am to battery 8% in UTC+8 11:00am, I had closed all apps in multi-tasking panel before I turn the screen off to Zzz)

The problem/bug will occur when I change network from 3G(H+), 4G(LTE) to 2G(EDGE) for battery saving & lesser phone radiation in home

Before, I was used stock rom(version N7105ZHUFOA1) and I using this lineageos rom from 20170407 to now.

When changing mobile network in stock rom, I will switch on and off the airplane mode, this wakelock will gone.

When using this rom, I had perform this action with switch off the data toggle, but the problem doesn't away from me.

(Neither the modem version is N7105ZHUFOA1 or N7105ZHSFQB1(newest))

Hence, I need to always reboot to solve the problem temporary

Some guessing to this problem:

- The airplane mode doesn't "really" turn the modem-related process/module off ?

- The APN(cmhk) has different MCC & MNC: EDGE/LTE(MCC & MNC=45412), H+(MCC & MNC=45413)

- When I get into lift and get out, this problem will occur too(maybe some module get infinity loop for searching weak signal?)

- From the logcat attached, I think the rom cannot obtain modem info? but after reboot, everything got normal again

My own user-configuration related to system to this rom:

- Modified ro.debuggable=1 to ro.debuggable=0 in default.prop from boot.img using Android Image Kitchen to play Puzzle & Dragon(Japan) which has root-detection

- Added ro.ril.fast.dormancy.rule=0 to build.prop in /system to get prevent this problem occur(since stock rom is working)

- Added echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq, (cpu0-4) to 90userinit in /etc/init.d to limit CPU from 1600MHz to 1200MHz for battery saving and cooler tempature

Information/Background for my phone:

- Device: GT-N7105, t0lte

- Build Date: lineage-14.1-20170428-nightly-t0lte-signed.zip

- Kernel Build Date: 2017 Apr 28

- Logcat when the issue occurs: attached in attachment part (sorry, I just got android studio logcat, does it useful?)

[Attachment]

Android studio logcat simple screen capture:

imgur.com/HZd9XBD

Some relative problem screen dumping (since I forgot to capture and reboot my phone...)

upload.lsforum.net/users/public/t31674Screensh1-55t122.png

logcat_20170430.txt from Android studio logcat (I don't know whether I could capture the bug msg or not...)

pastebin.com/sHs8EJfr

Sorry for my poor english and too many words : (

Also sorry for the Attachment link, I am new user and cannot posting the link.

msg: To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!
[Galaxy Note II N7105 Android Development] nldasha:
My Note 2 was originally bought in Singapore. It has since run CM variants, N7015T and Optus and now Lineage. For me the only bug or thing that is not working is the automatic time zone which looks to be a general bug in Lineage Rooms. Android Pay does not work with NFC presumably because Host Card Emulation is not present or working. overall it is very stable
[Galaxy Note II N7105 Android Development] viewer2008:
Thank you nldasha for answering part 1 of my question :good:
[Galaxy Note II N7105 Android Development] giabao574:
First, i'm on stock 4.4.2 . I flash twrp 2.4.6 and i download twrp 3.10 from this thread and flash it. After that, i download lineage 14.1 and gapps pico . I reboot into recovery, i wipe cache davik system data and i install this rom, gapps . When it had finished,i reboot my phone and it bootloop on lineage logo :( :crying: . I think i forgot to root my phone before flash new rom. Is that a problem ?
[Galaxy Note II N7105 Android Development] Frugence:
Root the phone is optional. Try to flash latest gapps
[Galaxy Note II N7105 Android Development] t0lte_n7105_user:
Although I'm using t0lte, n7105, I think my experience may help you.

For my situation on first time flashing this rom, it get alright to the setup wizard screen.

After that, for some reason, I revert to my NANDbackup on stock rom.

The problem happened similar like you, I had wipe cache+dalvik+system+data for the stock rom.

Second time, I got "com.phone has stopped" exception(error) loop on the setup wizard, when I click 'OK' and it appears again infinity time -> this cause me to try again wipe&reinstall this rom

Third time, I had wipe cache+dalvik+system+data for the stock rom, the "com.phone has stopped" exception loop appears again....(becuase the 1st time success experience, I get to try 4th time)

Fourth time, I had wipe again. This time like your situation, bootloop for 15min and I know the exception must appear again but the lineageos logo covered the exception message box.

Then, I wipe it one more time and flash again. The exception has gone(luckly) and success using this rom very stable for about a month. (except some modem-related bug on the previous reply)

Conclusion & Recommendation for you:

- Wipe cache+dalvik+system+data, flash lineageos, then flash gapps, then try to wipe cache+dalvik again(optional)............ for more TRY.

(If getting bootloop, Max waiting 10-15min is enough to tell you - it is really looping)

- Provide logcat information to this thread.
[Galaxy Note II N7105 Android Development] rhaneyjr:
I'd avoid wiping dalvik and cache after gapps are flashed. That was a problem for me. Flash rom. Flash gapps and themed gapps if you choose and just reboot
[Galaxy Note II N7105 Android Development] rfrazier:
To add to the cacophony, I did the following.

1. Full system nandroid backup.

2. Wipe data, system and caches.

3. Install lineageos, gapps and magisk all in one go with zip queuing, with the "reboot after install" checked after (and only after) adding the last, magisk, to the zip queue.

4. Profit.

Everything I use is working well, including 4G, Wifi (2 and 5GHz bands), audio (headphone jack and bluetooth audio --- I don't know about using the microphone on a bluetooth headset), profiles, ....

It does seem to me (very impressionistically) that the battery drains rather quickly when idling without being connected to wifi. Battery life is very good when idling connected to wifi.

Best wishes,

Bob

PS N7105/t0lte.

RLF
[Galaxy Note II N7105 Android Development] PoisonNinja:
I would not wipe cache/dalvik after flashing Lineage and Gapps, since I have received reports that this causes bootloops.

You can try disabling the WiFi scanning.
[Galaxy Note II N7105 Android Development] rhaneyjr:
I've found GPS in high accuracy is the biggest battery drain.
[Galaxy Note II N7105 Android Development] t0lte_n7105_user:
- Could you suggest me some solution to avoid battery draining from the mdm_hsic_pm0 wakelock bug detailed in reply #927 ?

- Also, could you teach me how to set ro.debuggable=0 in the LineagOS source code for me to build my own unofficial rom?

Thank you!
[Galaxy Note II N7105 Android Development] murti52:
mdm_hsic_pm0 is related to WiFi i think.. coz disabling wifi overnight and seeing the wakelocks.. that wakelock doesn't appear.
[Galaxy Note II N7105 Android Development] peter_58_ha:
second try, not sure if PoisonNinja got the logcat..

Quote:

Originally Posted by PoisonNinja

Try these steps in order:

Flash the modem again

If this fixes it, great. If it doesn't, continue below:

Wipe EVERYTHING (including /system) in TWRP

Flash the stock ROM from Odin

If this still doesn't fix it, send me a logcat.

here is the link to the logcat file:

https://www.sendspace.com/file/vxloyb
[Galaxy Note II N7105 Android Development] PoisonNinja:
mdm_hsic_pm0 is related to the radio, IIRC.

ro.debuggable is set by the Lineage build process when built in the default userdebug configuration. You can try building a user build, although I'm not sure if that target even exists in the build system.

Thank you.
[Galaxy Note II N7105 Android Development] drarkanex:
PoisonNinja, thank you for taking your time out on this build for the note 2. You deserve appreciation.
[Galaxy Note II N7105 Android Development] qwebnm2000:
Just installed on my e250s and everything working fine. Thank u so much

Update

Send imagine via Facebook messenger not working :( someone too ?
[Galaxy Note II N7105 Android Development] Option58:
Yep. Known bug. Remove the app from recents and start it again. It will only deny the first time.
[Galaxy Note II N7105 Android Development] qwebnm2000:
Yah it working :)
[Galaxy Note II N7105 Android Development] MartiniGM:
This is so weird.. a short while back I could flash LIneageOS Nougat+GApps Nougat+iSu kernal patch (before I learned this was not necessary for Nougat) and installed iSu apk and everything worked flawless. I was able to hide PoGo and everything was o'joy.

When I try to do this again now with totally cleared phone+LineageOS 20170428+latest Gapps the iSu app goes all "sour" (even if I flash iSu kernal patch or not). I used to get asked about allowing iSu root access, but that doesn't happen anymore and iSu claims it doesn't recognize the "cm-su" installed.
[Galaxy Note II N7105 Android Development] PoisonNinja:
What is iSu? Why not use Magisk? Magisk has Magisk Hide which allows SafetyNet and other checks to pass.
[Galaxy Note II N7105 Android Development] Indomastone:
unlock SIM issue

I flash the 04/14 version to fix the problem of 100% CPU in adroid.system, check!

but now, I have the eternal unlock sim or not working calls, flash the last 04/28 and nothing.

flash some other modems with no lucky.

every flash I do wipes of cache and dalvik

please, dont tell me that I have to flash stock via odin and re-flash the last rom and reconfig all things again...

does not have other way?

Tip for users with 100% cpu issue: get the device control app (on play store) and set governor to powersave and minimun frequency to 300 or 400, now you can use your phone and your battery survive for 1 day at least.
[Galaxy Note II N7105 Android Development] stoyyy:
Battery

It drains too fast. Im not using wifi, Im just using the data connection because my wifi is not working anymore (hardware issue).
[Galaxy Note II N7105 Android Development] rhaneyjr:
Set GPS to battery saving. GPS will suck your battery dry especially with no wifi connection
[Galaxy Note II N7105 Android Development] omgmyfriend:
Will OTA update work ? Cause i don't wanna wipe for next update :3
[Galaxy Note II N7105 Android Development] Option58:
OTA doesn't work. But you don't need to wipe. Just flash new zip over the old one.
[Galaxy Note II N7105 Android Development] :
Thread cleaned up a bit.

Please make appropriate feature requests with relevant attitude.
[Galaxy Note II N7105 Android Development] omgmyfriend:
Ferformance is so good but batery life is not ok, drain so fast. Someone too ?
[Galaxy Note II N7105 Android Development] MartiniGM:
This is iSu. :)
[Galaxy Note II N7105 Android Development] Indomastone:
Please... I need help to get my fone working back.

I cant solve with the *#197328640# solution, because I cant find a 4.1.1 ROM to download.

in fact, I cant finish download any rom for this device in sammobile...

So, I dont have a way to flash a stock ROM via odin too.

:crying:
[Galaxy Note II N7105 Android Development] robjg63:
Why 4.1.1 ? - the last version of Android for the phone was 4.4.2 - you would be better to go with that.

Sammobile has images https://www.sammobile.com/firmwares/galaxy-note-/GT-N7105/

Are you saying the links dont work?

Also a bunch of files here https://samsung-firmware.org/model/GT-N7105/

If you google "4.4.2 GT-N7105 firmware" there are a lot of links - some are bound to work.
[Galaxy Note II N7105 Android Development] Indomastone:
the solution using a code in dialer to acess the "service mode" only work in 4.1.1. I already try with 4.1.2 (flashed with TWRP) and did not work

all roms in sammobile I get network error, after an hour downloading, more or less

now I finally get a ROM from stockroms.net, after spend several hours searching and finding broken links, expired files, very suspicious websites, russian, chinese and arabic pages.

lets odin this brick! :fingers-crossed:

Ah, my device is T889.

Edit:

As I imagine, after flash with odin, the problem persists (network unlock screen)

But, now I have the desired 4.1.1 and the procedure with dial code works!

here we go to flash lineage again!

Edit 2:

ROM 04/28 installed and working!

no CPU issues

no SIM issues
[Galaxy Note II N7105 Android Development] peter_58_ha:
any news about the SIM problem?

Quote:

Originally Posted by peter_58_ha

Quote:

Originally Posted by PoisonNinja

Try these steps in order:

Flash the modem again

If this fixes it, great. If it doesn't, continue below:

Wipe EVERYTHING (including /system) in TWRP

Flash the stock ROM from Odin

If this still doesn't fix it, send me a logcat.

here is the link to the logcat file:

https://www.sendspace.com/file/vxloyb

Thank you.

Thank you and best regards

Peter
[Galaxy Note II N7105 Android Development] omgmyfriend:
New 5/5 update :3

May i need to flash gapp again when flash new update without wipe ?
[Galaxy Note II N7105 Android Development] Option58:
No, you just flash normally.
[Galaxy Note II N7105 Android Development] br54:
I have the same issues with my t889

I went back to 6.0.1 no problems.

I don't think tfailbles phones like nougat

Let me know if you can make it a week with no problems.
[Galaxy Note II N7105 Android Development] t0lte_n7105_user:
I am very glad to see the changelog of t0lte.

Thank you filiprrs(Option58 icon), PoisonNinja

I am very happy when I see the 'smdk4412: Deal with "mdm_hsic_pm0" wakelock' showing on the changelog of t0lte.

Yes, I was using psndna88 his 'AGNi kernel' when I using stock rom 4.4.2 before.

I hope the "mdm_hsic_pm0" wakelock will be disappear for my life :good:

Thank you again and sorry again for my poor English....

----------------------------------------------------------------------------

One more question, I got a random reboot when I charging using usb port of my computer and I switched off my phone for about 15-30min (seems to be usb)

Only one time and this random reboot doesn't affect me in my daily life, would you interested to investigate on it?

You said provide last_kmsg, I did it, but.....

- As I mentioned before I need to play some game so I couldn't root my phone. Hence, I just dump my last_kmsg using

cat /proc/last_kmsg > /sdcard/Download/kernel.txt

, without

su

command, is it usable for you?

- Also, I see there are many sensitive information about my phone, can I filter it away like for example: androidboot.serialno=0123456789 -> androidboot.serialno=xxxxxxxxxxx ?

Thank you.
[Galaxy Note II N7105 Android Development] PoisonNinja:
Thank [MENTION=4315222]Option58[/MENTION], he did most of the work.

The last_kmsg is usable. If you're worried about privacy, the only thing you can do is manually go through cleaning out that. However, the only sensitive thing is the serial number, which doesn't matter. Phone logs and other stuff don't show up in kernel messages.
[Galaxy Note II N7105 Android Development] Option58:
Actually it was the AGNi kernel developer to point us the fix. I just merged it in LineageOS kernel. :)
[Galaxy Note II N7105 Android Development] psndna88:
? ? :laugh: i love when bugs r killed

EDIT: Can u show me the diff... i dont remember n m curious to see
[Galaxy Note II N7105 Android Development] kozmo21:
Here you go, and thanks for the help...

https://github.com/LineageOS/androi...mmit/349a3e91e76d17e67ef6213e1f6712e700695631
[Galaxy Note II N7105 Android Development] muffi3n:
Is the problem with the sim card error already resolved?
[Galaxy Note II N7105 Android Development] t0lte_n7105_user:
last_kmsg (I dont know whether I can capture the reboot-related line or not)

https://pastebin.com/xBBEHE4t
[Galaxy Note II N7105 Android Development] :
Thank you for your hard work!

I have noticed a few other bugs I would like to report.

Device: E250K

Build date and kernel build date: (latest as of this posting)

Apps occasionally crash. Logcat: https://pastebin.com/raw/SSvwYwec

Occasionally after listening to audio on headphones, when I unplug headphones, audio stops, and can't come back until reboot (not in other apps or in phone sounds). Logcat: https://pastebin.com/raw/KMmczkd3.

Occasionally, when moving from wifi to data, the data simply won't connect. Sometimes you can turn data on and off. Sometimes reset phone. Logcat: https://pastebin.com/raw/k5ZdrCmz

Sorry for the incomplete bug report, but will update this posting.

Thanks again!
[Galaxy Note II N7105 Android Development] omgmyfriend:
Does this rom support f2fs ?
[Galaxy Note II N7105 Android Development] Option58:
It actually does. But my personal opinion is not to mess with it as the f2fs implementation is old and can cause instability and crashes.
[MENTION=6299732]PoisonNinja[/MENTION] however is running f2fs on his note 2.
[Galaxy Note II N7105 Android Development] omgmyfriend:
Actually i can't format /data as f2fs using twrp 3.0.2 on e250s ??? still ext4
[Galaxy Note II N7105 Android Development] shaikjaved_786:
BRO I M GETTING ERROR IN TWRP ( mY pHONE IS nOTE 2 e250k ( FAILED TO MOUNT'/EFS'( OPERATION NOT SUPPORTED ON TRANSPORT ENDPOINT) PLEASE HELP ME
[Galaxy Note II N7105 Android Development] peter_58_ha:
not solved... :(

im waiting for a solution too..

Seems to be not so easy to fix it.

Even ODIN to 4.4.2. stock rom does not help (in my case)

I think we will have to wait...

Best regards

Peter
[Galaxy Note II N7105 Android Development] muffi3n:
you report that rom was problems with sim card and mooke 7.1 too

RR unoffial dont have that problem
[Galaxy Note II N7105 Android Development] xBkKx:
[MENTION=6299732]PoisonNinja[/MENTION] I randomly lost my service again and tried to capture a log. Eventually my phone acquired a signal again at 13:35 hoping something useful is in this.

https://pastebin.com/wtHNuAX6
[Galaxy Note II N7105 Android Development] br54:
It will.. For a few times

I'm on mm ATM .. Can't use 7.x.x due to these problems.

When I finally was able to downgrade to re unlock my phone.. It persisted

Once I was unlocked.. I flashed an awesome mm .. It still dropped.. So I done a full wipe.. Reflashed mm and Vila... 0 Radio/sim problems.

Screen shot has all my current phone info.

I did really enjoy and miss being able to nougat :(

Edit... I think once I booted.. Factory reset once more then reboot.

Once before on my n7000 days I remember twrp had a wipe or a flash glitch that was giving "dirty" wipes/flashes

No saying this here.. But I feel that it persisted to mm from left over 7.x.x

Just my opinion.
[Galaxy Note II N7105 Android Development] PoisonNinja:
Has anyone managed to capture a logcat of the first boot when the SIM card is locked?
[Galaxy Note II N7105 Android Development] omgmyfriend:
New 12/5 update . Seem like nothing new :3
[Galaxy Note II N7105 Android Development] nldasha:
https://www.lineageoslog.com/14.1/t0lte
[Galaxy Note II N7105 Android Development] ziketor:
my shv e250s on lineage 7.1.2 does not detect simcard after flashing it.
[Galaxy Note II N7105 Android Development] silvertag:
I tried bluetooth this morning and there is no sound issue, so yes wired headphones on i317m (Rogers-CAN) is the only one problematic.

Here's a log when switching from speaker to wired.
[Galaxy Note II N7105 Android Development] lalit1:
Thanks, Magisk worked fine for me.
[Galaxy Note II N7105 Android Development] rhaneyjr:
ROM is working well. Substratum works. Magisk is great for root. When ever Any app tries to access ext. SD card the phone reboots. Have given all permissions possible.
[Galaxy Note II N7105 Android Development] kozmo21:
Pretty sure the reboots are from Substratum. This ROM doesn't include support for OMS, that's why it shows "legacy" in Substratum. Haven't had a reboot or any other weird things since removing it. I'm a HUGE fan of theme stuff, but until this gets support, or Lineage has their own theme engine, probably going to have to stick to stock :( I'd much rather have a problem free ROM, than one with problems and themed. Hopefully we can have both soon.

Could be just the theme you are using? Maybe try a different one and see if you have the same results? Or not install the SystemUI part, think I saw that used to cause problems. ... If not, try removing and see if the reboots are gone.
[Galaxy Note II N7105 Android Development] PoisonNinja:
New build up. Hopefully data isn't broken...

EDIT: I just tested sensors. They all work. Proximity sensor for calls is reenabled.
[Galaxy Note II N7105 Android Development] kozmo21:
Data still works :svetius:

Just keeps getting better all the time. Great work!

Btw, just a heads up... If you do a dirty flash, just wipe cache and dalvic, you don't need to flash GApps again, just the ROM and Magisk if you need root.
[Galaxy Note II N7105 Android Development] lalit1:
Sensor working fine, data is also working fine
[Galaxy Note II N7105 Android Development] br54:
And I just got marshmallow flashed and set up... And now a nougat ROM seems fully functional.. Probably flash tomorrow.
[Galaxy Note II N7105 Android Development] gilsan:
hello guys, awesome work. Is it usable for daily activities?
[Galaxy Note II N7105 Android Development] lalit1:
Yes its working good so far, using from two days, yet to discover all things
[Galaxy Note II N7105 Android Development] De_A:
rom is very good. Have used the previous version for 3 days without errors (only an MTP error).

- Headphones wired work

- tethering (bluetooth/Wifi/WIred) doesn't seem to work

But it's much better than I thought on this device (I just found a 2nd hand one, so have no reference)

installing the newest version now...
[Galaxy Note II N7105 Android Development] gilsan:
Can you make and receive calls?
[Galaxy Note II N7105 Android Development] kozmo21:
Read the OP. He lists everything working/not working. That list is there so people don't ask these questions! The only thing that isn't working yet is doze. If the sensors we have on this device work with it now, I'm sure he will implement it soon, or whenever he gets time. It's easily a DD as it is now, doze will be a bonus.
[Galaxy Note II N7105 Android Development] lalit1:
Yes, working perfect
[Galaxy Note II N7105 Android Development] Option58:
Thank you! You are awesomeeeee!

Wifi for E250S fixed.
[Galaxy Note II N7105 Android Development] gilsan:
Thanks a lot, you dev rocks.
[Galaxy Note II N7105 Android Development] HATe410:
This is very exciting. I'm speechles. I've been using this phone for 5yrs. Watching others "upgrade" or mishandle their property throughout this time has been a real eye opener.

I truly appreciate your work.

You have saved me money.

Was watching Note 4s on the used market, observing the price drop to $189, then RISE to a current $210+.

Then i admired the One Plus 3T for $439.

is there a way to support your project(s)?
[Galaxy Note II N7105 Android Development] lalit1:
Anyone able to use SD card ? I am not able to use SD card.
[Galaxy Note II N7105 Android Development] silvertag:
No issue here. Can transfer or view files from SD card.
[Galaxy Note II N7105 Android Development] kozmo21:
Install Magisk. Open Magisk > settings > Superuser > Superuser Access... check "Apps and ADB"
[Galaxy Note II N7105 Android Development] omgmyfriend:
You need reboot device one time affter first boot for Ril working :3
[Galaxy Note II N7105 Android Development] peter_58_ha:
logcat...

Seems like logcat startes *after* the Error. I Just tried with ADB, same result.. :(
[Galaxy Note II N7105 Android Development] yarinas5:
I've installed the rom....but after some issues with my note n7105 i deleted the rom switched to other....and now i have installed the rom

but the system is not starting up....i am waiting near to hour...while it supose to take between 5-15 min....what should i do?
[Galaxy Note II N7105 Android Development] omgmyfriend:
Did you wipe cache after flash this rom ? You shouldn't do it.