[APP] Nfc.apk active while Screen locked - RAZR i Themes and Apps

I've modded the policy of Nfc.apk, so that the Nfc service is active even when screen is locked. Now you don't have to unlock anymore if you press the phone against a tag.
Screen must be "on" for sure, as Nfc is never active when phone is in standby - it would never enter deep sleep then.
Flash in CWM, odexed or deodexed Jelly Bean, enjoy!
If you encounter problems, I attached the original Nfc.apk too, so you can roll back whenever you want.
Update: added a fixed version, some had problems with the other. It works on odexed and deodexed systems.

shaftenberg said:
I've modded the policy of Nfc.apk, so that the Nfc service is active even when screen is locked. Now you don't have to unlock anymore if you press the phone against a tag.
Screen must be "on" for sure, as Nfc is never active when phone is in standby - it would never enter deep sleep then.
Flash in CWM, odexed or deodexed Jelly Bean, enjoy!
If you encounter problems, I attached the original Nfc.apk too, so you can roll back whenever you want.
Click to expand...
Click to collapse
Hai shaftenberg, Sorry to ask you here, how should i create a cmw zip to enable init.d for my Omar 1.8 kernel in my stock JB GB rom ?
Thank in advance.

Wrong thread?
Maybe you want to ask Omar himself.

shaftenberg said:
I've modded the policy of Nfc.apk, so that the Nfc service is active even when screen is locked. Now you don't have to unlock anymore if you press the phone against a tag.
Click to expand...
Click to collapse
Nice.
I use NFC every day, and unlocking the screen does not bother me, but I remember thinking at the beginning it would be more useful if I did not have to unlock first. I am going to try it.

It did not work for me. The NFC option disappeared altogether
The stock NFC zip restored it without any problem.

arman68 said:
It did not work for me. The NFC option disappeared altogether
Click to expand...
Click to collapse
Do you mean the "option" in "Settings"?
I see no reason for that in my mod, as I changed 2 variables in smali only. Strange... Might it be that it depends on your ROM?
I am on Stock 4.1.2 and I know from others that it worked for them very well.

shaftenberg said:
Do you mean the "option" in "Settings"?
I see no reason for that in my mod, as I changed 2 variables in smali only. Strange... Might it be that it depends on your ROM?
I am on Stock 4.1.2 and I know from others that it worked for them very well.
Click to expand...
Click to collapse
I will try again, and if it still does not work, I will redo the mod and compile it myself. It could be something to do with the framework.

arman68 said:
I will try again, and if it still does not work, I will redo the mod and compile it myself. It could be something to do with the framework.
Click to expand...
Click to collapse
same not work
P.S write please what changes it is need to make and I will try it to make with the decompilled file

Seems only to be working on deodexed ROMs.
Shaftenberg are you sure, that this is also working on non-deodexed ROMs?
Tried with Omars ROM: works like a charm.
Tried on modified Stock-ROM: NFC option dissapears. :crying:

varalex said:
same not work
Click to expand...
Click to collapse
Which ROM?? What exactly does not work? Can't believe this...
I've changed two files:
-> smali/com/android/nfc/NfcService.smali
after line 2470 add: const/4 v0, 0x0
-> smali/com/android/nfc/NfcService$2.smali
after line 164 add: const/4 v10, 0x0
That's it...
fuxi222 said:
Shaftenberg are you sure, that this is also working on non-deodexed ROMs?
Click to expand...
Click to collapse
Yes, absolutely. Odex or Deodex, both work.
Maybe it's a signing problem, I'll try something and will tell you in a few hours, please stay tuned.

Updated OP, for those who have problems, install the fixed version and see, if it works, thanks!
The new version works very well for me.

shaftenberg said:
Updated OP, for those who have problems, install the fixed version and see, if it works, thanks!
The new version works very well for me.
Click to expand...
Click to collapse
Works now fine for me, also on InfiniROM :good:

Same here: working fine now.
What did you change to make it work?

I was so stupid and signed the app the first time.
What wonders is, that it worked for me and others... Really strange.

shaftenberg said:
I was so stupid and signed the app the first time.
What wonders is, that it worked for me and others... Really strange.
Click to expand...
Click to collapse
i'm using omar's rom and so far it doesn't work for me. if i install it nfc settings get removed. anny idea?

mercurio. said:
i'm using omar's rom and so far it doesn't work for me. if i install it nfc settings get removed. anny idea?
Click to expand...
Click to collapse
Did you install my "fixed"-Version or the old one, which isn't online anymore?
If so, install the fixed one. If you did that already, please ask Omar, because Nfc.apk is stock out of the box, nothing changed but only two variables. On stock ROM it works flawlessly.

shaftenberg said:
Did you install my "fixed"-Version or the old one, which isn't online anymore?
If so, install the fixed one. If you did that already, please ask Omar, because Nfc.apk is stock out of the box, nothing changed but only two variables. On stock ROM it works flawlessly.
Click to expand...
Click to collapse
thanks for the reply. i installed the fixed version but it doesn't work. i'll ask omar.

Damn it doesn't work for me neither
I use an EU JB homemade fastboot from here:
http://forum.xda-developers.com/showthread.php?t=1936512
No kernel mod, only a boot mod for SDcard swap
As the other, NFC disappear from settings if I install the modded NFC app.
I tried to copy the nfc.apk on systme\app\
But as soon as I try to enable NFC it Force close, an the phone became totally unusable

Le_Poilu said:
Damn it doesn't work for me neither
I use an EU JB homemade fastboot from here:
http://forum.xda-developers.com/showthread.php?t=1936512
No kernel mod, only a boot mod for SDcard swap
As the other, NFC disappear from settings if I install the modded NFC app.
I tried to copy the nfc.apk on systme\app\
But as soon as I try to enable NFC it Force close, an the phone became totally unusable
Click to expand...
Click to collapse
re- and deinstalled it some more times and somehow it started working. no idea why, but it works now.

I'll give it a new shot but I already re- and deinstalled the app few times ... strange
EDIT: this is silly.. I retry today and now it work ! ... sometimes android is a kind of magic

Related

NFC issues

i had NFC working on stock rooted, then flashed cm10 and it still worked, i switched to jellywiz and wanted to go back to cm10 and reset google wallet just to make sure it was reset and now when i go into my nfc settings, it's grayed out, anyone have any ideas on what to do? i tried enabling nfc before flashing back to cm10 like another thread had suggested and it didn't work
Check this thread out. I posted a file that may help
http://forum.xda-developers.com/showthread.php?p=31673562
Also, someone said if you flash a touchwiz rom and enable nfc, then factory reset, you can then flash aosp and nfc will work.
maniac2k said:
Check this thread out. I posted a file that may help
http://forum.xda-developers.com/showthread.php?p=31673562
Also, someone said if you flash a touchwiz rom and enable nfc, then factory reset, you can then flash aosp and nfc will work.
Click to expand...
Click to collapse
edit: ok soooooo yeah idk wtf is going on, but i checked my devices on the google wallet website and it shows that my device has been disabled, i go into google wallet after using the hack to get it working (used the d2spr hack and not a modified apk hack) and it tells me that my keys aren't released.....i'm confused as wtf is going on haha
edit 2: ok so apparently the wallet hacks that i had been using didn't have the right libs in it for nfc, i used the 10/10 hack that came out today and it worked......fml why does this have to happen after i post my problem just hours prior? haha
thanks for offering your help though maniac, its much appreciated bro

[APP MOD] INVERTED Exchanged Security Bypass (No Pin) 4.2.x

Here is the most up to date Inverted Exchange Security Bypass Email modded apk out there. This allows you to use your corporate email without using a security pin. It is also the only 4.2.2 that is also inverted.
I was looking for this, and couldn't find one compiled for easy use, so just put it together for those flashers that couldn't/didn't want to put it together.
This was tested on CM 10.1 and AOKP JB. It should work on any AOSP JB ROM. Please let me know if it works for you. If you have a non AOSP rom, then delete your current email and exchange apks (backup) then flash this.
I need to thank teamBaked over at Rootz for the inverted email 4.2.2 (http://rootzwiki.com/topic/29460-in...ate-4-5-googlesearchnow2410-googlemusic45914/), and rustamabd for the hacked libs and script file (http://forum.xda-developers.com/showthread.php?t=1117452)
Flash in recovery, I am not responsible for blah blah blah
it fails flashing on twrp. can't use it.
jtwlbz said:
it fails flashing on twrp. can't use it.
Click to expand...
Click to collapse
Zip updated!!!
Works for me! Thanks.
Samsung Galaxy SII running SlimBean 5.5
Will it work on a stock ROM ?
_imac_ said:
Will it work on a stock ROM ?
Click to expand...
Click to collapse
Without knowing the phone + android version, hard to tell. Chances are it won't.
polobunny said:
Without knowing the phone + android version, hard to tell. Chances are it won't.
Click to expand...
Click to collapse
Nexus 4
4.2.2 Stock
_imac_ said:
Nexus 4
4.2.2 Stock
Click to expand...
Click to collapse
It's AOSP built (no carrier customization) so it might work.
Make sure to do a nandroid backup before hand, in case something goes awry.
polobunny said:
It's AOSP built (no carrier customization) so it might work.
Make sure to do a nandroid backup before hand, in case something goes awry.
Click to expand...
Click to collapse
You beat me to all the answers and suggestions. Thanks for your help.
_imac_ said:
Nexus 4
4.2.2 Stock
Click to expand...
Click to collapse
This is built on AOSP (CM10.1 to be exact), so it might work with a nexus. You will still need root and custom recovery, unless you plan to push the apks directly.
Let us know if it works.
Not working for me, not sure if I am missing a step?
Removed exchange accounts
Rebooted into recovery
Wiped both caches
Installed the zip from the sd card
Rebooted
When the phone comes back up it says Android has Updated and optimizes its apps. When I setup the exchange account it asks me for permission which I grant then I get dumped into the lock screen settings and the only two choices are PIN and passcode. Also doesn't look inverted. What am I screwin up?
Running Wicked v3 (4.2.2) on a rooted Galaxy S4
shatteredeagle said:
Not working for me, not sure if I am missing a step?
Removed exchange accounts
Rebooted into recovery
Wiped both caches
Installed the zip from the sd card
Rebooted
When the phone comes back up it says Android has Updated and optimizes its apps. When I setup the exchange account it asks me for permission which I grant then I get dumped into the lock screen settings and the only two choices are PIN and passcode. Also doesn't look inverted. What am I screwin up?
Running Wicked v3 (4.2.2) on a rooted Galaxy S4
Click to expand...
Click to collapse
Is Wicked a touchwiz based ROM?
If so, you will need to try removing the email built in to the ROM.
sugons account
Cobjones said:
Is Wicked a touchwiz based ROM?
If so, you will need to try removing the email built in to the ROM.
Click to expand...
Click to collapse
That did it! Use Titanium Backup to backup, then uninstall Email and Exchange Settings then installed the zip worked perfectly! Thanks much!
shatteredeagle said:
That did it! Use Titanium Backup to backup, then uninstall Email and Exchange Settings then installed the zip worked perfectly! Thanks much!
Click to expand...
Click to collapse
Good deal!
So far working perfectly on HTC One with 4.2.2 Sense 5.0.
I just froze the stock email app with Titanium, flashed in recovery, removed PIN number from previous setup, then setup new exchange email with this app. It does everything normally except asking for a PIN.
Syn Ack said:
So far working perfectly on HTC One with 4.2.2 Sense 5.0.
I just froze the stock email app with Titanium, flashed in recovery, removed PIN number from previous setup, then setup new exchange email with this app. It does everything normally except asking for a PIN.
Click to expand...
Click to collapse
Thanks for the update.
Working like charm..!
Cobjones said:
Here is the most up to date Inverted Exchange Security Bypass Email modded apk out there. This allows you to use your corporate email without using a security pin. It is also the only 4.2.2 that is also inverted.
I was looking for this, and couldn't find one compiled for easy use, so just put it together for those flashers that couldn't/didn't want to put it together.
This was tested on CM 10.1 and AOKP JB. It should work on any AOSP JB ROM. Please let me know if it works for you.
I need to thank teamBaked over at Rootz for the inverted email 4.2.2 (http://rootzwiki.com/topic/29460-in...ate-4-5-googlesearchnow2410-googlemusic45914/), and rustamabd for the hacked libs and script file (http://forum.xda-developers.com/showthread.php?t=1117452)
Flash in recovery, I am not responsible for blah blah blah
EDIT: UPDATED ZIP, should work!!!
Click to expand...
Click to collapse
Working Perfect in my Galaxy SL CM10.1
Can we have something which not inverted(white background) if that does not require much of work.
matrixzone said:
Can we have something which not inverted(white background) if that does not require much of work.
Click to expand...
Click to collapse
Here you go. Someone already has it done. I would have created a new one, but didn't see the need.
http://rootzwiki.com/topic/29015-app-mod-exchange-security-bypass-no-pin-android-42x41x/
exactly the thing I'm looking for! Thanks so much, it worked like a charm.
SG3 - Illusion v2.1
Doesn't work on my T-Mobile note 2 running cm10.1
I disabled the email app & then flashed the attached zip through TWRP. The app doesn't show up in my drawer

[Q] Wifi doesn't turn on

Hi people, when i try to turn Wifi on, i press the button on fast options, but it don't turn on, and when i go to settings, wifi stays different from the other ON/OFF selectors. If i reboot the phone, it starts working, but a while after that it does the same.
What ROM, Kernel are you using?
What about from the quick tiles? Can you activate wifi from there?
Try using stock theme.
zephiK said:
What ROM, Kernel are you using?
What about from the quick tiles? Can you activate wifi from there?
Try using stock theme.
Click to expand...
Click to collapse
Stock ROM and Stock kernel
In quick tiles doesn't work also, i tryed stock theme and happens the same
vitordiogo94 said:
Stock ROM and Stock kernel
In quick tiles doesn't work also, i tryed stock theme and happens the same
Click to expand...
Click to collapse
You've maked an restore with Titanium Backup or with an another app ?
Info4Geek said:
You've maked an restore with Titanium Backup or with an another app ?
Click to expand...
Click to collapse
Nothing, but if i don't find a the solution i will restore it
vitordiogo94 said:
Nothing, but if i don't find a the solution i will restore it
Click to expand...
Click to collapse
Yes, you need to make a clean install (wipe data/factory reset in recovery)
Info4Geek said:
Yes, you need to make a clean install (wipe data/factory reset in recovery)
Click to expand...
Click to collapse
I'll try stock rom before reboot the phone, let's see if it works
vitordiogo94 said:
I'll try stock rom before reboot the phone, let's see if it works
Click to expand...
Click to collapse
Oh, it's not the stock ROM actually ?
What ROM you use ?
vitordiogo94 said:
I'll try stock rom before reboot the phone, let's see if it works
Click to expand...
Click to collapse
Is that a Android L theme you are running? go back to the stock them and give it a try and let me know
playya said:
Is that a Android L theme you are running? go back to the stock them and give it a try and let me know
Click to expand...
Click to collapse
Yeah, i'm doing that, until now it's all ok, i'll wait a bit more, those L themes are really nice, but in almost all of them have bugs with wifi, let's see
I've tryed with Stock theme, but it happens the same think..
vitordiogo94 said:
I've tryed with Stock theme, but it happens the same think..
Click to expand...
Click to collapse
Can you check if your 12 digit MAC address is available?
Lebnen1 said:
Can you check if your 12 digit MAC address is available?
Click to expand...
Click to collapse
yes, mac address is available
It seems that the problems is because of the Snapdragon app, Battery Guru, on the settings it disables Wifi, and i unnistall it, and now it seems to work perfectly
vitordiogo94 said:
It seems that the problems is because of the Snapdragon app, Battery Guru, on the settings it disables Wifi, and i unnistall it, and now it seems to work perfectly
Click to expand...
Click to collapse
Probably a setting in there to disable WiFi, but honestly you don't need Snapdragon Battery Guru. The OnePlus battery is amazing as it is, just stick to basic battery conservative tips such as eliminating wakelocks from occurring to ensure your phone deep sleeps.
zephiK said:
Probably a setting in there to disable WiFi, but honestly you don't need Snapdragon Battery Guru. The OnePlus battery is amazing as it is, just stick to basic battery conservative tips such as eliminating wakelocks from occurring to ensure your phone deep sleeps.
Click to expand...
Click to collapse
Yeah it desables WiFi in case of inactivity, i just instaled because some people tryed it and said it was nice, but doesn't change anything in OnePlus. Now is working well, let's see if it don't returns to the same.
vitordiogo94 said:
I've tryed with Stock theme, but it happens the same think..
Click to expand...
Click to collapse
https://forums.oneplus.net/threads/wifi-turning-on.74415/#post-7120663
Please try to turn off wifi optimization on built-in settings
(settings/ wifi/ advanced/wifi optimization => untick=off)
Been using it this way for the last 2.5 days with no wifi issue to date yet.
3days now no WiFi issue.
I don't have MAC address.. wifi hardware damage?

[Q] Any Working NFC ROM?

Does anyone know if there is a rom with working NFC? Ive tried alot of them and cant find one. CM11 seems to be the culprit. Any suggestions from experience?
Need it for my wallet app.
im on cm11 and have been since day 1, cm10 before that. i use nfc everyday. works perfectly. maybe its your rom? try redownloading the rom and correct gapps? might help
h4x0rj3ff said:
im on cm11 and have been since day 1, cm10 before that. i use nfc everyday. works perfectly. maybe its your rom? try redownloading the rom and correct gapps? might help
Click to expand...
Click to collapse
Ive tried differnt roms with 2 different batteries and nothing works... They are both factory batts. How can i diagnose the issue?
if you flash back to stock or a stock rom does it work? if not maybe its something deaper (not sure what tho) have you tryed a FULL wipe before flash? if im having problems sometimes ill wipe like 3 times (i doubt its necessary but it makes me feel good and usually works) try that and maybe someone else here might have abetter idea whats going on. what gapps are you using? are you making sure the md5 checksums or sha-1 values mach up on the rom and the gapps? what recovery are you using?
h4x0rj3ff said:
if you flash back to stock or a stock rom does it work? if not maybe its something deaper (not sure what tho) have you tryed a FULL wipe before flash? if im having problems sometimes ill wipe like 3 times (i doubt its necessary but it makes me feel good and usually works) try that and maybe someone else here might have abetter idea whats going on. what gapps are you using? are you making sure the md5 checksums or sha-1 values mach up on the rom and the gapps? what recovery are you using?
Click to expand...
Click to collapse
I do the 3 wipe when i load a rom. I have not gone to stock yet...
I do check the MD5. Kinda at a loss here. The NFC check app sees is and says its working. IDK...
Ill check with a factory image.
just make sure you flash a stock 4.1.2 rom and not a 4.3 + rom or youll be stuck with a locked bootloader! noone needs one of those!
h4x0rj3ff said:
just make sure you flash a stock 4.1.2 rom and not a 4.3 + rom or youll be stuck with a locked bootloader! noone needs one of those!
Click to expand...
Click to collapse
Well... I seem to have it working... I forgot that my computer has NFC... SO i tested a file trans and it worked.
The issue started today when i attempted to use my google wallet at 2 seperate locations. Neither worked for me. I just flashed a new rom after i got home so hopefully that does it.
Dave
Well it appears that my NFC works but not google wallet. Do you have any suggestions for that?
Dave
davidjmorin said:
Well it appears that my NFC works but not google wallet. Do you have any suggestions for that?
Dave
Click to expand...
Click to collapse
Google wallet not working is thanks to verizon. For some it may work but for most it doesn't work
From my CM11 S3
ShapesBlue said:
Google wallet not working is thanks to verizon. For some it may work but for most it doesn't work
From my CM11 S3
Click to expand...
Click to collapse
No workaround for this huh? Another rom or anyhing?
davidjmorin said:
No workaround for this huh? Another rom or anyhing?
Click to expand...
Click to collapse
Not that I'm aware of no
From my CM11 S3

[ROM] SM-G925P Stock Base [OE2]

Download Link
Kernel included: Stock Samsung 3.10.61-4349716
Install using TWRP nothing has been done to it yet other than root and zipalign.
This is fully functional rom for the OE2 release. OE2 does not fix the RAM leak so far just dropped calls fix and added more bloat.
I will be working on debranding this rom as well but for now here is a 100% stock base.
Thanks @amoamare. Your hard work is appreciated brother!
amoamare said:
Download Link
Install using TWRP nothing has been done to it yet other than root and zipalign.
This is fully functional rom for the OE2 release. OE2 does not fix the RAM leak so far just dropped calls fix and added more bloat.
I will be working on debranding this rom as well but for now here is a 100% stock base.
Click to expand...
Click to collapse
Lol, the problem is that we cant seem to deodex a rom and get data. I have already made an odex version, how do we deodex this and still have data...
ram9200 said:
Lol, the problem is that we cant seem to deodex a rom and get data. I have already made an odex version, how do we deodex this and still have data...
Click to expand...
Click to collapse
Is that because you guys are stripping stuff from the rom. Apps/services etc ?
amoamare said:
Is that because you guys are stripping stuff from the rom. Apps/services etc ?
Click to expand...
Click to collapse
Nope left it 100 percent. Ocf and 0e2. No go. If a rom is deodexed data does not work on these phones. No baseband. Assume it is cdma related
Ok, I just got done with deodexing right now and i'm going to wipe and install. Ill post the results and the ZIP if its working.
amoamare said:
Ok, I just got done with deodexing right now and i'm going to wipe and install. Ill post the results and the ZIP if its working.
Click to expand...
Click to collapse
How did it go?
Had some permission issues on the apks after deodexing, then had to cook dinner and stuff. I have about 30 mins now so i'm rebuilding it with corrected permissions. Not sure why it lost them the first time around.
Seems like the fingerprint sensor stopped working
Can anyone advise how this is running on a dirty flash?
stacksptdtdm said:
Seems like the fingerprint sensor stopped working
Click to expand...
Click to collapse
You did a clean wipe or dirty? What do you mean by fingerprint stopped?
SantinoInc said:
You did a clean wipe or dirty? What do you mean by fingerprint stopped?
Click to expand...
Click to collapse
I've clean flashed all roms on our threads and it fc's during setup on all
We should copy all related files to fingerprint on our current working Fingerprint APK and overwrite the one from these roms. Question is where is the fingerprint app data stored?
SantinoInc said:
We should copy all related files to fingerprint on our current working Fingerprint APK and overwrite the one from these roms. Question is where is the fingerprint app data stored?
Click to expand...
Click to collapse
Priv app I haven't tried mine but I have tried some replacements from lbxmobbin
Is that the sole location for everything fingerprint related? I would try your current working Fingerprint APK and see if that works. Maybe I'll try that myself when I have a chance
SantinoInc said:
Is that the sole location for everything fingerprint related? I would try your current working Fingerprint APK and see if that works. Maybe I'll try that myself when I have a chance
Click to expand...
Click to collapse
Yea I may give it a try later
I dirty flashed this on top of my stock rooted and the fingerprint issue is a real PITA! I even tried overwriting the priv-app folder but that didn't help. I'm not even able to go into security settings to change the lock screen. it keeps FC on me
I just flashed the the custom kernel and my fingerprint... started working again
Yea I hear that's the fix
Hey guys. here's native call recording if anyone wants it. Just push to system/csc and set perms to rw-r-r.
https://www.androidfilehost.com/?fid=23991606952602413

Categories

Resources