yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II N7105 Android Development] Option58:
SELinux isn't blocking wifi on my e250s...

Could you switch back to enforcing and try this? https://www.androidfilehost.com/?fid=529152257862715638
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Well... Not all but most of devices are affected by this problem.

btw I'll try and see if it works.

(Oh, and I'm using my phone w/ RIL disabled. Just so you know...)
[Galaxy Note II N7105 Android Development] peter58ha:
Flash or dirty flash latest nightly?

Hello from Germany,

right now im running 14.1-20170310-unofficial-t0lte

How to flash or dirty flash the latest version?

Im still in trouble with the dialer. Every second time i have to reboot the phone. When trying to dial (manually or from phonebook ) the app hangs and does not connect. Cant finish the call w/o rebooting.

Thats the only problem. Even it the dialer app hangs, all other functions are available. Whatsapp, Internet, Mail, youtube...

What to do in this case?

Best regards

Peter
[Galaxy Note II N7105 Android Development] Option58:
Unfortunately you will have to wipe data before flashing official LineageOS...

Regarding dialer look at FAQ. I think poisonninja posted something for this.
[Galaxy Note II N7105 Android Development] peter58ha:
Thx Option58...

I just double check that and dialer is set to standard app :(

Think I have to wait until my old smartphone is back. I love to have a working backup ;)

will report next week and thx for your help!

Best regards

Peter
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Ok, and here's the result-

The file you gave me have same modem as mine...

Anyway, WiFi doesn't worked w/ Enforcing, and it worked when I changed it to Permissive.

Make sure you've flashed "t0lteskt" one, and you have neither GT-N7105 nor SHV-E250K.
[Galaxy Note II N7105 Android Development] Option58:
Thank you for testing and figuring out the culprit!

[MENTION=6299732]PoisonNinja[/MENTION]

---------- Post added at 18:11 ---------- Previous post was at 18:00 ----------

Yes I am 100% sure that I have E250S and flashed t0lteskt. My wifi works.

But I also live on the other side of the globe.

I am saying that because I didn't want to preset wifi region code to 'Korea' when making t0lteskt defconfig. Could it be because of that?
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Oh, werid then... o_O

and region code doesn't make any changes to this problem.
[Galaxy Note II N7105 Android Development] PoisonNinja:
Can you give me a logcat with the SELinux denials? You can grep for avc: denied
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Well, I uploaded pastebin link at original post... but not sure it will help.

and As I'll go to sleep now for tomorrow, I can't get another logcat now :(

---------- Post added at 05:58 PM ---------- Previous post was at 05:54 PM ----------

I just figured out that there's one line looks like an error for me at line 451 in posted logcat:

04-02 00:35:44.685 5927 5927 W macloader: type=1400 audit(0.0:20): avc: denied { search } for name="wifi" dev=mmcblk0p
[Galaxy Note II N7105 Android Development] andychan27:
I have just flashed to and from both RR (M) and Lineage (N) rom. Both of them show unknown network for my device. And no signal is detected. However, IMEI, baseband, etc., show quite normal in the 'About phone'. I have tried to flash the baseband as well as restore EFS but the situation is still the same. I wonder whether should I tried another baseband but I afraid this will break my phone. Any suggestions will be appreciated. Thank you so much.

N7105 - baseband ZHUFOA1
[Galaxy Note II N7105 Android Development] jedtan025:
mtp still crashes. music player crashes. and no wifi. e250s. and cant install root package.

i tried to set SELinux to permissive and it works. thanks to that guy
[Galaxy Note II N7105 Android Development] br54:
Any sgh t889 flashes?

Any problems?
[Galaxy Note II N7105 Android Development] NNoah:
google service framework keeps

Device - Note 2 SHV-E250S

Flashed successfully but this message blocked the progress:- "google service framework keeps stopping"

The steps I took -

•	Flash - twrp-3.1.0-0-t0lte.img ( TWRP)

•	factory reset, wipe Dalvik/ART Cache, cache, System, Data & Internal Storage

•	Install - lineage-14.1-20170331-nightly-t0lteskt-signed

•	Install - open_gapps-arm-7.1-mini-20170331

•	Install - Magisk-v11.6

•	Reboot

Need your kind help.
[Galaxy Note II N7105 Android Development] PoisonNinja:
OK, I think I've identified the issue. Can you flash this? https://www.androidfilehost.com/?fid=745425885120721076.

See if this solves the WiFi issue. Report back with the status please.
[Galaxy Note II N7105 Android Development] PoisonNinja:
The next time you reboot SELinux is going to be set back to enforcing. Can you get a logcat?

Logcat please. Also, try setting SELinux to permissive and see if that solves the issue.

I would try factory resetting (ONLY that. Don't wipe anything else), then flashing the ROM + Gapps + Magisk, and then immediately rebooting. Do NOT wipe cache again after flashing Gapps.
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Wow, It fixed that problem. Thanks! XD

Now It's able to use WiFi w/ SELinux state to Enforcing.

Can I upload that boot image to other community? There's a lot of people want to fix their WiFi...
[Galaxy Note II N7105 Android Development] PoisonNinja:
Great! I'll commit this so the next Lineage build includes the fix.
[Galaxy Note II N7105 Android Development] NNoah:
google service framework keeps

Thank you very much, running great. Now the only problem is sim do not want to accept pin number.
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Umm... I just discovered that vibration is not working anymore after flashing this. How can I solve it? :(
[Galaxy Note II N7105 Android Development] Option58:
The boot.img poisonninja gave you is for t0lte, you have t0lteskt. That's why vibration doesn't work for you.
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Oh... oh! I just saw an file name! Thanks for awaring that XD
[Galaxy Note II N7105 Android Development] PoisonNinja:
I gave you a t0lte kernel. What variant do you have?
[Galaxy Note II N7105 Android Development] X_TonyK_d:
I have SHV-E250S(T0LTESKT).

and this problem occurs only for T0LTESKT. GT-N7105(T0LTE) and SHV-E250K(T0LTEKTT) looks like ok.
[Galaxy Note II N7105 Android Development] PoisonNinja:
I'll build a new one when I get home
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Oh thanks! XD
[Galaxy Note II N7105 Android Development] jedtan025:
try to hard reset your phone after you install rom and gapps including internal storage. that should fix it

---------- Post added at 03:07 AM ---------- Previous post was at 03:05 AM ----------

im also waiting for this. :D e250s user here
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Wait, WiFi is net working again after reboot. I'll test some more.
[Galaxy Note II N7105 Android Development] PoisonNinja:
Please try this: https://www.androidfilehost.com/?fid=745425885120721165. This is built for t0lteskt, so vibration should be OK.
[Galaxy Note II N7105 Android Development] jedtan025:
ill try now. sir what about the mtp crashes? how do we fix this issue. how to flash this img?
[Galaxy Note II N7105 Android Development] PoisonNinja:
MTP crashes are not fixed. You can flash this in TWRP by selecting "Flash image..." and selecting the boot partition (not recovery)
[Galaxy Note II N7105 Android Development] jedtan025:
oh okay. hope it fixes soon. :D ok thanks
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Sorry [MENTION=6299732]PoisonNinja[/MENTION], it seems like your patch fixed nothing...

I think I forgot to change SELinux state when I did an first test ;-;

(but It seems like some people are solved w/ this patch)

Tell me if you need another log/data :)
[Galaxy Note II N7105 Android Development] PoisonNinja:
Moar logs plz.

On a serious note though, I'm confused why the different variants have different WiFi stuff.
[Galaxy Note II N7105 Android Development] X_TonyK_d:
I'll try to get full log when I come back home.

Oh, and I was able to use WiFi when I used LineageOS 14.1 20170220 build for T0LTE w/ WiDzard WiFi Fix for maruta.
[Galaxy Note II N7105 Android Development] PoisonNinja:
Can you link me the WiFi fix?

EDIT: nvm found it.
[Galaxy Note II N7105 Android Development] PoisonNinja:
So, I've traced it to https://github.com/LineageOS/android_hardware_samsung/blob/1bf77699eca3953bc4c4784e6ec94d1aab433fa1/macloader/macloader.c#L159. Widzard's fix bypasses the MAC address checking, but that's a hack. If you could find the MAC prefix for the card, that would be great!
[Galaxy Note II N7105 Android Development] X_TonyK_d:
So... Do you mean first 3 address of my MAC Address like "AA:BB:CC"?

If yes, then "60:21:C0".
[Galaxy Note II N7105 Android Development] PoisonNinja:
Great, thanks! I'm going to bed, I'll see if I can work on this tomorrow. I'll let you know if I need anything else or I have something for you to test. Thanks! :good:
[Galaxy Note II N7105 Android Development] jedtan025:
cant download images from google. it says cant download cos no sd card. sad

---------- Post added at 07:01 AM ---------- Previous post was at 06:38 AM ----------

nevermind. suddenly it works lol
[Galaxy Note II N7105 Android Development] Awais Bhatti:
'File corrupt' shown when i flashed skt signed build to my e250s
[Galaxy Note II N7105 Android Development] blh420:
Error 7

Hi. Thanks for your great work with this release!

I'm currently running 14.1-20170310-unofficial and would like to go to your official release. I'm also getting this error 7 thing while using the correct TWRP flasher. Anything else I need to do?

Blh
[Galaxy Note II N7105 Android Development] Option58:
Yeah, it's a problem that also existed on CM13. It will ask you for permission for an sd card and then deny it even if you allow. Next time when you close and open the app again it will allow automatically.

File is alright. Your download might be corrupt, please try to download again.

---------- Post added at 12:38 ---------- Previous post was at 12:16 ----------

You'll need to wipe data if coming to official from unofficial. LineageOS rules :/

Also if you have Korean variant please flash normal 't0lte' recovery for now.

---------- Post added at 12:47 ---------- Previous post was at 12:38 ----------

I am more confused why would it work only for some users, and for others not. Even though we have exactly the same variant..:confused:

I never needed that wifi fix, even earlier on CM13, CM12 etc.
[Galaxy Note II N7105 Android Development] X_TonyK_d:
I think Samsung provided WiFi module from various manufacturers...

---------- Post added at 11:55 AM ---------- Previous post was at 11:54 AM ----------

One weird fact: I just saw an person who can't use WiFi even his MAC Prefix is registered there.

So... what's the main problem? Macloader can't read/edit "/data/.cid.info"?
[Galaxy Note II N7105 Android Development] Option58:
Also I'm not sure whether this is linked to Korean devices...
[Galaxy Note II N7105 Android Development] X_TonyK_d:
[MENTION=6299732]PoisonNinja[/MENTION] Here's the full logcat from boot time. I tried to connect Wi-Fi named "iptime-jieun" twice w/ setting SELinux state to Enforcing: https://paste.ee/p/YNf8K

and, I think main part of this problem is here:

[B]62 [/B][COLOR="Red"]04-02 19:59:13.025 2766 2766 W macloader: type=1400 audit(0.0:10): avc: denied { search } for name="wifi" dev=mmcblk0p3 ino=28 scontext=u:r:macloader:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir[/COLOR]
[B]63 [/B][COLOR="Green"]04-02 19:59:13.046 2758 2758 I : installd firing up[/COLOR]
[B]64 [/B][COLOR="Red"]04-02 19:59:13.052 2766 2766 E macloader: Can't open /efs/wifi/.mac.info[/COLOR]
[B]65 [/B][COLOR="Red"]04-02 19:59:13.052 2766 2766 E macloader: Macloader error return code: -1[/COLOR]
[B]1450 [/B][COLOR="Red"]04-02 19:59:32.365 3684 3684 W macloader: type=1400 audit(0.0:12): avc: denied { search } for name="wifi" dev=mmcblk0p3 ino=28 scontext=u:r:macloader:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0[/COLOR]
[B]1451 [/B][COLOR="Green"]04-02 19:59:32.371 3605 3605 D WifiController: isAirplaneModeOn = false, isWifiEnabled = true, isScanningAvailable = false[/COLOR]
[B]1452 [/B][COLOR="Red"]04-02 19:59:32.372 3684 3684 E macloader: Can't open /efs/wifi/.mac.info[/COLOR]
[B]1453 [/B][COLOR="Red"]04-02 19:59:32.372 3684 3684 E macloader: Macloader error return code: -1[/COLOR]

and "/efs/wifi/.mac.info" file have my MAC Address to plain text. Just that. Nothing else...

and "/data/.cid.info" has:

00000000 6d 75 72 61 74 61 murata
[Galaxy Note II N7105 Android Development] PoisonNinja:
Can you post the output of running 'ls -Z' in /efs/wifi?
[Galaxy Note II N7105 Android Development] PoisonNinja:
It just happened that Korean devices contained a WiFi chip with a unknown MAC address. AFAIK the Note 2 has several different WiFI chips: Murata, Semcosh, and some others.
[Galaxy Note II N7105 Android Development] mura20:
I am running this ROM on my i317m and it was working fine.

However, since last night my SIM got relocked! I cannot use it anymore. Does anyone know how to fix this???

Thanks
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Here's the result!

t0lteskt:/ $ ls -Z /etc/wifi
u:object_r:system_file:s0 bcmdhd_apsta.bin_b2 u:object_r:system_file:s0 nvram_net.txt
u:object_r:system_file:s0 bcmdhd_mfg.bin_b2 u:object_r:system_file:s0 nvram_net.txt_murata
u:object_r:system_file:s0 bcmdhd_p2p.bin_b2 u:object_r:system_file:s0 nvram_net.txt_semcosh
u:object_r:system_file:s0 bcmdhd_sta.bin_b2 u:object_r:system_file:s0 p2p_supplicant_overlay.conf
u:object_r:system_file:s0 nvram_mfg.txt u:object_r:system_file:s0 wpa_supplicant.conf
u:object_r:system_file:s0 nvram_mfg.txt_murata u:object_r:system_file:s0 wpa_supplicant_overlay.conf
u:object_r:system_file:s0 nvram_mfg.txt_semcosh
t0lteskt:/ $
[Galaxy Note II N7105 Android Development] PoisonNinja:
/efs/wifi not /etc/wifi
[Galaxy Note II N7105 Android Development] dartmouthy:
i317m, 3/31 build

It's fresh, and it's working like a charm. I haven't had one reset of the modem since I installed it yesterday. Certainly the most responsive build yet. I love that it's official and we can update with deltas. If there is anything that needs testing, let me know. Thank you so much again, to the dev, for all your hard work! ??
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Oops sorry... XD

For that, Terminal and Root Explorer shows completely different result.

Terminal:

t0lteskt:/ # ls -Z /efs/wifi
t0lteskt:/ #

Root Explorer:
[Galaxy Note II N7105 Android Development] PoisonNinja:
Thanks, so it is being labeled correctly. Are you still getting the selinux denials on the boot.img I sent you?
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Yep. Still have to change SELinux state.
[Galaxy Note II N7105 Android Development] mura20:
Can anyone help? Thank you!
[Galaxy Note II N7105 Android Development] kozmo21:
This happened on CM13 also to a small number of people. Some it even happened to twice, so you aren't alone.

Just go to this thread and follow all the instructions and you will be up and going again.... https://xdaforums.com/showthread.php?t=2014982
[Galaxy Note II N7105 Android Development] NNoah:
Galaxy Note 2 SHV-E250S

After inserting PIN a message” SIM unlock successful” appears and after a little while requires reinserting PIN. In the setting – tried to set APN but – Does not save, message “Access point name settings are not available for this user” appears. My carrier has found the device. (lineage-14.1-20170331-nightly-t0lteskt)

Need again your kind help!
[Galaxy Note II N7105 Android Development] PoisonNinja:
I can't help you without logs.
[Galaxy Note II N7105 Android Development] PoisonNinja:
OK, can you try this? https://www.androidfilehost.com/?fid=457095661767150995. It's a full ROM, so you'll have to wipe if you're on official, and wipe again before returning to official.

I would advise you to take a nandroid backup in TWRP before flashing, flash this, and simply restore the TWRP backup if it didn't work.
[Galaxy Note II N7105 Android Development] jedtan025:
so i tried another rom [MENTION=6299732]PoisonNinja[/MENTION] and comeback to this rom. after that. wifi still broken even i install your patch. hmm i gonna try your suggestion to [MENTION=6773864]X_TonyK_d[/MENTION]
[Galaxy Note II N7105 Android Development] mura20:
Thank you for the link. I finally managed to unlock the phone again!
[Galaxy Note II N7105 Android Development] jedtan025:
this fix my issue on wifi . after installing this rom. and back to official. didnt need to patch the boot.img. hehe. now my only concern is how to get the default keyboard of samsung with row numbers cos i dont like the gboard that have number row because of the extra line that includes gsearch and settings. i cant remove that
[Galaxy Note II N7105 Android Development] chuachongchee:
Am using a Note 2 LT (N7105)

I tried to format the sdcard then did a install with Philz CWM Touch, then installed gapps. The phone was not able to boot, the moving eye thingy at boot, after quite a long while, the screen showed apps crashing and continue to crash over many apps. Tried the official March31 bulid..

Any advice?
[Galaxy Note II N7105 Android Development] PoisonNinja:
Usually wifi breaks after rebooting. Try rebooting and see if wifi still works. To clarify, you are on official again?
[Galaxy Note II N7105 Android Development] PoisonNinja:
First, use TWRP. CWM stopped being supported a long time ago. Second, you only need to factory reset, not wipe the sdcard. Please follow the first post instructions exactly as stated, don't add or remove steps. You will be fine then
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Sorry for late (I just back from the school). I'll try now.
[Galaxy Note II N7105 Android Development] chuachongchee:
will try when i am free if not over the weekend. Many thanks!
[Galaxy Note II N7105 Android Development] X_TonyK_d:
[MENTION=6299732]PoisonNinja[/MENTION] Sadly, WiFi still not working for same reason. Here's a logcat: https://paste.ee/p/ruT9Y
[Galaxy Note II N7105 Android Development] PoisonNinja:
I have no idea what's going on. I explicitly labeled /efs/wifi/.mac.info as a wifi_data_file, but the logcat claims that it's a unlabeled file. wut.

Can you wipe /system and factory reset and then flash the build I sent you?
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Oh, it works even I reboot once! Let's see if it keeps working :D

(Sorry PoisonNinja, I think Dualboot patcher was the main reason "this time" XD)
[Galaxy Note II N7105 Android Development] PoisonNinja:
On the new build I sent you?
[Galaxy Note II N7105 Android Development] X_TonyK_d:
Yep. 4/2/2017 build. (On previous build, WiFi doesn't work even w/o dualboot patcher.)
[Galaxy Note II N7105 Android Development] PoisonNinja:
:good: so my fix works. Please let me know next time if you are using something like Dualboot patcher, as it may cause unintended side effects (as you noticed this time).
[Galaxy Note II N7105 Android Development] hedgecore44:
I am frequently getting these errors on my AT&T Note 2 (t0lte) with the official 3/31 build:

- MTP Host has Stopped (has no effect; occurs when uninstalling an app and other random times accessing file system)

- .com.android.phone has stopped (has no effect; happens randomly?)

- Insert SIM Card (this one requires 1-5 restarts to fix. Not sure if it is software or hardware yet)

The first 2 errors do not seem to effect anything. Just a nuisance really. however, the SIM card error... Is anybody else getting this? I am starting to think it might be a hardware issue but want to check first to see if anybody else has the problem. I have tried everything physically with the SIM card (reinserted, cleaned contacts, inserted a piece of paper on top of SIM card) other than getting a new one and the error keeps coming back. It seems like it usually happens when I am downloading files or loading pages on larger websites... Anybody else getting any of these errors? Thanks
[Galaxy Note II N7105 Android Development] X_TonyK_d:
​

Okay. Sorry for noticed that side effect too late :(
[Galaxy Note II N7105 Android Development] whokn0ws:
lineage-14.1-20170331-nightly-t0lte-signed

[MENTION=6299732]PoisonNinja[/MENTION] tested&working, really great stuff (11pm - 7am - without Wifi - battery only 1% down)

got one random reboot @ 20:00pm

what about the in apps camera use, currently sending black video @ viber / whatsapp :(
[Galaxy Note II N7105 Android Development] agovinoveritas:
The MTP seems to be an error of all Nougat ROMS' across the board.

The phone one? Interesting, I have not gotten that one.

The SIM one is annoying although it happens less on the 3/31 build than it did on the previous ones. In fact, I NEVER gotten it pre-Mar-20th updates. It was until I flashed one of the experimental fixes and noticed that is when it started. At first I thought it was just the experimental, but then updates after it also had the SIM error. Wondered what exactly made them happen.
[Galaxy Note II N7105 Android Development] hedgecore44:
Thanks for the update. OK so I will not worry about the MTP error. Can just ignore that one anyway.. I am glad to hear the SIM issue is not just me. And you know what? Thats exactly when I started having the problem - after the 3/20 build. Strange.
[Galaxy Note II N7105 Android Development] peter58ha:
SIM code

hello...

Im still on 14.1-20170310-unofficial-lOlte..

After a reboot a new screen appears and I have to reenter the SIM code.. this happens ever 3-5 seconds and I cant get only w7o wlan.

Any ideas in this case?

Best regards

Peter
[Galaxy Note II N7105 Android Development] kozmo21:
Hi,

I see you are a new user, so I'll be nice :D . You need to learn to use the search function, and read a few pages in the thread before you ask questions. I answered this same question only 2 pages back. So, instead of just giving a link, I'll make you go back a couple pages to find my post. For future problems, use the "search thread" for you answer, and you can also do an advanced search to include a user etc. to help narrow down your results. If you do an advanced search and use my username, the answer will be in the 1st couple of hits... or you can just go back a couple of pages and find it. Just trying to help you find things yourself, so it won't clog up the thread, and you can get your answer faster than waiting for someone else to respond. I hope I didn't come off mean (not my intention), just trying to teach you to find things yourself. Good luck :highfive:

Btw, this isn't just directed at you, this is for all users :good:
[Galaxy Note II N7105 Android Development] rgib:
Is the OP using opensource ril libraries as I do with i9305 and n5120 ? (same exynos-qcom platform)
[Galaxy Note II N7105 Android Development] chironfr:
Sorry public address of my phone in mobile data is 100.x.x.x
[Galaxy Note II N7105 Android Development] Option58:
https://github.com/TheMuppets/proprietary_vendor_samsung/tree/cm-14.1/t0lte
[Galaxy Note II N7105 Android Development] chironfr:
MMS issue solved.

My phone provider is free mobile

I have 2 apn:

- Free Mobile (apn type: default, supl)

- Free mobile MMS (apn type : mms)

I've edited Free mobile so it is now: default,supl,mms

et voilà! It works now.