yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] s.goten:
I had already thought. Tried and not works....

today i've reflashed my fw with odin (nfc switch with stock driver in lib/hw didn't works). using the fix file nfc switch works (also nfc payments).

before flashing i got FC on nfc payments. the only difference is that i used wanam xposed. now i don't have installed yet. maybe is really wanam that breaks nfc payments.

edit. installed now wanam xposed, nfc payment screen is still working :)
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] ladislav.heller:
Not 100% sure but for NFC payment you will need also a SIM which supports it.

For me it works! Just simple renamed kernel module file to lowercases and now I can turn on NFC! I can also read NFC data from my Visa Electron card using the S4 mini, so it really works!

Thanks guys for the suggestions, U are the greatest!
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] *boy*racer*:
I am currently talking to a kernel developer who is willing to help. I have just done a logcat and now in the process of making a dmesg so he can help troubleshoot.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] s.goten:
i have no way to try nfc payment so I don't know if works.

anyway, the good news is that i have no more FC when opening the nfc payments screen...:D
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] ladislav.heller:
I just renamed without restart and NFC worked!

But unfortunately after restart of device I have still the same issue: Can't turn on NFC. The file is renamed.

Any idea?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] mnezo:
Have you tried the files posted here?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] ladislav.heller:
OK, with the file attached in post #38 now it works:

1.) Right after replace

2.) After restart of phone

3.) After turn off and turn again on NFC

Thanks once again.

Note: I've read somewhere that there is a system property for Samsung NFC:

nfc.trace.mode=On

Maybe it helps for developers...
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] iPAQS4:
I have tryed but everytime i turn nfc off i have to change case to turn it on again. uppercase or lowercase it doesn't mather.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] svrutz:
New firmware

Has anyone tried to install the German version (DBT) I9195XXUBML4 that came out on jan/9 to see if it solves the problem?

Download Firmware > SamMobile or Samsung Updates

UPDATE:

I did the update to the new version and still the same thing, I'm thinking of taking on a service to see what they say about it ... :(
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] kaishg:
NFC works

Finally after hours and hours of trying different methods I finally have NFC working on the i9195. I used the stock UK FW I9195XXUBMJ7 and also works with the stock I9195XXUBML1 FW from EE network UK.

- Using Odin flashed the FW, Carried out a few wipes for good measure and then re-flashed FW I9195XXUBMJ7 from SamMobile.

- Still NFC will not toggle on.

- Using Odin flashed custom recovery (recovery-clockwork-6.0.4.5-serranoltexx)

- Installed the GT -i9195 Rootkit_v2

- installed KNOXDisablerFree_v1.0.1.apk and disabled the KNOX notifications etc. (will properly remove KNOX later)

- installed Root Explorer app

Using root explorer navigate to system>lib>hw, find the file ‘nfc_nci.msm8960.so’ give read write permission and renamed as others have mentioned with all lower case. Did not even reboot but the toggle for NFC stays on but after a reboot back to square one.

I tried using the S4mini_NFC_FIX_StockRom.zip before but no luck but combined with renaming and then using the S4mini_NFC_FIX_StockRom.zip it seems to be working fine now.

Restarted, Switched off the phone for a while and then back on, more reboots and it seems to be staying on.

Hope this way works for all. Good luck :fingers-crossed:

All the files needed can be found on this thread apart from the FW files. they are on www.sammobile.com

A big thank you to all on this thread.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] jimbob343:
NFC Not working

Ok just had same issue after ROM crash..

Had to recover using KIES.. All stock with KNOX 0x0

Flash I9195XXUBMJ7 using odin or kies (only one that will flash)

Flash recovery using recovery-clockwork-6.0.4.6-serranoltexx (odin)

root using S4Mini_RootKit_v2.zip (recovery)

mount /system (recovery goto mounts and storage > mount /system)

I used adb to rename the library file (mv /system/lib/hw/nfc_nci.MSM8960.so /system/lib/hw/nfc_nci.msm8960.so) #File explorer was read only

Deleted KNOX:

rm /system/app/KNOXAgent.apk

rm /system/app/KNOXStore.apk

rm /system/app/ContainerAgent.apk

Then installed nfc_fix and rebooted..

Thank to kaishg :) followed "vague" instructions..but still had trouble..got it working in the end so thank you...
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] PherChe:
works!!! just renamed it the file =)

Im happy and i did it in a GT-9195L

=)

Thanks!
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] alanbrunsdon:
I can confirm that the flashable zip also works on MIUI not just stock. Thanks very much guys :o
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] travisnj:
Same Issue

I have followed this thread and very grateful for creator of this thread.

I too, updated from 4.2.2 (NEE, PHN, ETC.) ... Complete wipe, install via ODIN, lost NFC..

Had to follow the thread...

1.) ODIN (STOCK)

2.) Install CWM

3.) Install Cust2

4.) Cust Kernel

5.) NFC zip

Fixed.

why will stock not work on NFC? Did CM11 write something to NFC FW? something is done on security certificates or something... I hope this is addressed.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] lionidas:
Using the file from the post #38 fixed the issue

UBML4 Vikinger
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] paalpet:
Hi

I have the same problem, and it's great that the solution has been found with this thread :)

Unfortunately I'm still a bit confused about what i HAVE to do to fix it... Can I still have everything stock (not rooted, no CWM) after the fix?

Right now I have the latest stock ROM (NEE) with NFC not working (due to previously using CM 10.2.1).

It would be great if someone could do a quick recap/summary for me on what to do to get everything back to stock with NFC working, and with links to the files I need (I have Odin, CWM and all the stock ROMs).

Best regards

Paal
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] vexorian:
How do you turn on NFC? Or does the DUOS variant not have it?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] paalpet:
Only the i9195 (LTE/4G-model) have NFC
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] drberto:
I have also unrooted my I9195 with the BML4 ROM,and then i lost the NFC function.Then i followed kaishg's instructions and NFC worked.But with rooted phone (even on stock ROM) i loose the screen mirroring function (it turns off before establishing connection with smart TV).If only i could find a solution replacing the nfc_nsi_MSM8960.so file with the one with lower case letters,without rooting the phone,then i could have NFC and Screen mirroring functions on...Any ideas or solutions?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] paalpet:
I would like to know the same thing, How can I go back to 100 % stock without root? (I don't care so much about the warranty flag as long as everything else is working 100%)

And what is the real reason for this problem? For the moment I'm back on CM 10.2.1, and the file is in lower case.. So is it Odin or the stock ROM-file that is causing the problem? :confused:
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] paalpet:
Thanks for the step-by-step guide. But have anyone tried flashing a stock ROM again after the fix to unroot it? Will this break NFC again or will I have a fully working unrooted phone again?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] junkyde:
it will break nfc again.. :(
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] XxM4tzexX:
A few month ago the flashable fix woked perfect for me. but now with the same file it wont work. I also tried different recoveries. I'm on cwm 6.0.4.6 now. On stock rom there is this feature which updates the security policies from samsung. could this have any effect on the not working nfc fix?

and how do I mount /system?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] XxM4tzexX:
I found out a working way for me: renaming the file from "...msm..." to "...MSM..." and vice versa. Apparently nfc works than just once and the next time it won't turn on. But it's a dirty fix for me.

Gesendet von meinem Nexus 10 mit Tapatalk
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] ticosambora:
The step by step from ideaman works 100% for me, my only question is... if a want return to stock firmware without root, the NFC function will be lost?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] XxM4tzexX:
Apparently yes with the jelly bean firmware.

But wait till kitkat firmware is released. Then everything will work again without root.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] drberto:
I confirm.I flashed 4.4.2 kitkat for Belgium black edition (although mine is normal edition France csc),it works fine and NFC also works fine!
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] *boy*racer*:
Hey. Just want to know if the KK update fixed the issue? I have moved on from the s4 mini and am curious. Thanks
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] marchrius:
I'm interested as well.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] arco68:
Updating to kitkat should fix it yes.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] MorphlinQc:
Updating to KitKat broke my NFC. Stuck with Knox Bootloader too. Installed CM11 anyway, works great but still no NFC and Knox prevents me to restore stock ROM.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] In-verse:
Hey guys i'm having problem with my NFC on my S4 Mini LTE. i bought my phone about 3 months ago and i'm pretty sure NFC was working correcly with stock rom but Touchwiz rom just hurts me for some reason so i flashed CM11 rightaway and i didn't even test the NFC at that time, Yesterday i wanted to try NFC if its working or not and i tried to send some pictures, contacts or share website via NFC but it didn't detected or anything showed on the screen. So i backed up my CM11 rom and installed Official stock rom and i saw NFC doesn't even turn on. Of course warranty turned to 0x1 but everything is official now, is it hardware issue or bug in the rom? i have no idea

i maybe made grammar mistake because english is not my mother language so please understand me :)
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] poomelva:
I habe no problems under KK stock rom with NFC. Works all fine
[Android Software/Hacking General [Developers Only]] Dark Wraith:
FAQs

>Why is it giving errors while compiling zImage for Xperia devices????

Answer : You need to add the various makefile and defconfig fixes for the toolchain to work properly

Please refer to this excellent thread by doomlord for various fixes

http://xdaforums.com/showthread.php?t=2447310

>TA partition and EFS partition backup doesn't work properly

Answer : Please remember to specify the memory block correctly. If you still get an error then please tell me the error so that i can check if the error is from the tool's end

>How to add a toolchain????

Answer : Add it under android_toolchains folder in your home directory

Open the tool and navigate to toolchain_selector script under scripts folder

Add the toolchain name and the correct path as given there in the following format

toolchain_name[the number after the last toolchain name]=

toolchain_path[the number after the last toolchain path] =

>How to clean your kernel or Cyanogenmod work directory?

Answer ; Navigate to the kernel or Cyanogenmod work directory and type in Terminal : make clean

I will incorporate this in the next release

>Download toolchains or update tool doesnt work

Answer : make sure you have the git package installed. You can install from the tool itself under GIT tools

>Libraries missing while compiling kernel or cyanogenmod build errors on 64 bit machine??

Answer : Download libraries from cyanogenmod import libraries option( I will incorporate this in the next release) and for 64 bit compile error type : BUILD_HOST_32bit=1(Fixed and added in update 1)

Bugs and Suggestions

Please let me know
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Changelogs

Update 2

>Added Xperia J in the build list of the tool

>Added Take kernel log in kernel options..Thanks [MENTION=5105831]ricky310711[/MENTION] for the commit

>Added dry run option for Sony

-Lets you test your kernel.elf/boot.img(In case the kernel doesnt boot up..just restart phone and try again)

Update 1

>Cm-11.0 branch added while initializing repo(thanks mithun shanoj for the commit)

>Added umkbootimg unpack method

>Added import libraries option

>Added BUILD_HOST_32BIT=1 for 64 bit machines
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Last one
[Android Software/Hacking General [Developers Only]] Dark Wraith:
No one tried??
[Android Software/Hacking General [Developers Only]] Dovidhalevi:
Maybe I am blind but where do I get the download?
[Android Software/Hacking General [Developers Only]] adityak74:
Download Link?

Dude where is the download link???
[Android Software/Hacking General [Developers Only]] rharshit:
I had always been waiting for a tool like this one. Great job :good:

---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------

To download, sync this repository

https://github.com/Smk1989/dark_multitool1.0

Thats it. navigate to the local repository and run run menu from terminal
[Android Software/Hacking General [Developers Only]] shree_tejas:
Well well well.:beer: cheers.
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Guys see the download tab on top of the thread.. I'll also add a download link if u want

Edit: Added a download link to the post
[Android Software/Hacking General [Developers Only]] Daniel_GT:
I'm sorry [MENTION=5130501]Dark Wraith[/MENTION], but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
welcome to the world of kitchen creators ;) goodjob!
[Android Software/Hacking General [Developers Only]] Dark Wraith:
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.

p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
actually i learnt alot by viewing the content of tools, viewing it in raw format and learning how things work.

it encouaged me to find a way to make a kitchen for windows users and noobs.

so i guess im the perfect example
[Android Software/Hacking General [Developers Only]] MJPollard:
You have every right to express your opinion, but that being said, your post makes you sound like a real elitist, one who's upset that his elevated place in the exclusive club is about to be disrupted by those "filthy ruffians" who didn't earn their developer's chops by clawing their way up from the gutter. In my opinion, anything that brings in more developers to the community is a good thing. Sure, there are going to be plenty who use this tool as a shortcut to doing any hard work, but there are going to be those who use it as a starting point to further their knowledge of ROM building and modifying. Everyone needs a place to start, after all, but implying they'll never be "one of the boys" without beating their head bloody against a desk isn't at all helpful. Dark Wraith should be commended for creating a tool that will help bring new blood into the community.
[Android Software/Hacking General [Developers Only]] Daniel_GT:
That's one side of the argument, if you re-read the first several pages of [MENTION=4308696]championswimmer[/MENTION]'s kernel kitchen thread you'll be reminded just how strongly some people feel about this... I'm not in either camp by the way.

My point is that xda is not what it was, if we continue to post toolkits here it will only dilute the pool of serious development further. You just have to dive into an official CM Dev thread (N4 is a good example) at any point and browse, say, 25 pages to see exactly what I'm talking about...

For every one person that takes your tool, pulls it to bits to figure out how it works and goes on to do their own original work and contribute back, I feel sure that there'd be many more that just go ahead without any real understanding of what they're doing, expecting you and I to bail them out when it goes wrong... I hope that's overly cynical but, ironically, from evidence I don't think that is.

Your toolkit might have a place, and again all credit to you for putting it together. Personally I believe it's more hand holding (even more so than ROM or kernel kitchen) which ultimately helps no one.
[Android Software/Hacking General [Developers Only]] Marsealdelo:
hey dude., i have a question

* (my device doesn't support CM) can i use this tool for building CM for my device?

Thanksssss
[Android Software/Hacking General [Developers Only]] Cuzz1369:
Good stuff
[Android Software/Hacking General [Developers Only]] Dark Wraith:
no bro..its not about support. Cm11 can run on ur device and you can build for it provided that you have the kernel source of your device available..For officially supported devices you will have the kernel source in cyanogenmod repository. For a device with no kernel source you cannot build cyanogenmod. What you are talking about is cyanogenmod porting to an unsupported device. Take a look around in cyanogenmod's wiki. I might add porting options in the tool in future but atm you can build only for offcially supported devices
[Android Software/Hacking General [Developers Only]] Marsealdelo:
Thanks, that's very helps me
[Android Software/Hacking General [Developers Only]] Dark Wraith:
You can create a Java program using notepad but people still use eclipse isnt it? Point is eclipse makes it simpler to start bringing in more people to java development. People who want to learn will learn it anyways. People who dont wanna learn will use it as a shortcut. People who feel they can make the tool better will push commits to the source code making the tool better. It all matters on your willingness to learn and the tool is a start to help you get into development
[Android Software/Hacking General [Developers Only]] casseer15:
nice work bro

could you please work on kernels for htc devices too.

thanks.

---------- Post added at 08:52 PM ---------- Previous post was at 08:48 PM ----------

nice work bro

could you please work on kernels for htc devices too.

thanks.
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Yeah i will add build utilities for both Samsung and HTC but i need to study a bit on their build methods. Will add soon(i hope)
[Android Software/Hacking General [Developers Only]] Buda1996:
can anyone port to windovs
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Even if someone ports it..kernel utilities will not work as you need linux to compile the kernel or cyanogenmod. Best bet is to use virtualbox. Works like a charm

Well said
[Android Software/Hacking General [Developers Only]] kevinrus123:
Hi , building by source etc is not working on cygwin , on distros it runs such perfect.

Thanks for what you are doing , you brought me back to rom developing from source :)
[Android Software/Hacking General [Developers Only]] Dark Wraith:
:)..Np..other utilities are running on cygwin right? Will add that info in OP
[Android Software/Hacking General [Developers Only]] Linux guy:
Well this is great. I'm not too keen on using ubuntu so this is nice. ^ ^

---------- Post added at 05:55 PM ---------- Previous post was at 05:24 PM ----------

Philosophy aside, would I be able to use a different source besides Cyanogenmod? Or would it be too much trouble?
[Android Software/Hacking General [Developers Only]] dsulliii:
I hope you can forgive my elation and my totally unuseful post, but.... WOW!

THANKS!

:D

-- David
[Android Software/Hacking General [Developers Only]] umer936:
Thanks for the tool!

So I really wanted to attempt to get this working using Cygwin. I've edited around the source code and I've actually been able to install some of the packages required (for building from source). Basically, I've gotten it to where I can install all the packages one at a time as long as I can find a mirror. However, finding mirrors is proving to be much harder than expected, so I may just give up and boot into my Arch or Ubuntu partition. :silly:

If people could help me find mirrors for: git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev

it would be awesome and I'll be able to provide a guide on installing this amazing tool in Cygwin!

Thanks again to the OP for this tool, now I gotta get back to work on changing the source to work with Cygwin!
[Android Software/Hacking General [Developers Only]] Dark Wraith:
You can use any other linux based distro...Umm...atm i have only included building cyanogenmod, But now that you say it..i'll try to include building a ROM from other sources in my next release. Though you can still use some utilities from cyanogenmod to build from a different source...

np..hope you like it...:)
[Android Software/Hacking General [Developers Only]] middaylantern:
Place boot.img in the input folder of the tool

Press Enter to continue

/home/username/Downloads/dark_multitool1.0/scripts/kernel_menu: line 67: cd: /home/username/dark_multitool1.0/input: No such file or directory

/home/username/Downloads/dark_multitool1.0/scripts/kernel_menu: line 68: unpack-bootimg.pl: command not found

rm: cannot remove ‘*.img’: No such file or directory

mv: cannot stat ‘/home/username/dark_multitool1.0/input/*’: No such file or directory

Done..please find your extracted zImage and ramdisk in the output folder of the tool(press enter)
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Did you place the boot.IMG you want to unpack in the input folder??if u dont see an input folder then create an input and output folder in the tool folder and place boot.IMG in the input folder

btw dont flash the boot.img. Try this:

fastboot boot boot.img

This acts as a dry run. if it boots up then you can think about flashing
[Android Software/Hacking General [Developers Only]] Dark Wraith:
Well i am not an expert in cygwin but i know that compiling kernel or a rom requires specific modules exclusively available in linux.. But it would be great if you could make all other utilities to work...:)...like unpacking boot image and all those stuff. Just lemme know if you create a guide..I'd be more than happy to put up a link to ur guide about installing it on cygwin