Samsung S3 NFC data protocols when emulating card - Java for Android App Development

I am having a problems with emulating FeliCa tag with ACS122U in combination with S3.
I am emulating a Type-3 NDEF tag, phone NFC service successfully reads the NDEF Message from the emulated card,
starts my own application, and finally, when inside of "onNewIntent" handling for the ACTION_NDEF_DISCOVERED intent,
I see that the tag has following tech listed:
android.nfc.tech.NfcF,
android.nfc.tech.Ndef,
I get the NfcF tech, check if tag is still connected, and call transcieve() to invoke a POLLING command on the tag,
what happens is, I get DeadObjectException, and transcieve call fails.
Here is the stack trace
What can I try to make the transcieve work?
06-13 21:00:47.558: I/System.out(16727): NDEF discovered in onNewIntent, enabling foreground dispatch
06-13 21:00:47.563: I/System.out(16727): android.nfc.tech.NfcF
06-13 21:00:47.568: I/System.out(16727): android.nfc.tech.Ndef
06-13 21:00:48.128: E/NFC(16727): NFC service dead
06-13 21:00:48.128: E/NFC(16727): android.os.DeadObjectException
06-13 21:00:48.128: E/NFC(16727): at android.os.BinderProxy.transact(Native Method)
06-13 21:00:48.128: E/NFC(16727): at android.nfc.INfcTag$Stub$Proxy.transceive(INfcTag.java:405)
06-13 21:00:48.128: E/NFC(16727): at android.nfc.tech.BasicTagTechnology.transceive(BasicTagTechnology.java:146)
06-13 21:00:48.128: E/NFC(16727): at android.nfc.tech.NfcF.transceive(NfcF.java:119)
06-13 21:00:48.128: E/NFC(16727): at com.MyApp.MainActivity.onNewIntent(MainActivity.java:244)
06-13 21:00:48.128: E/NFC(16727): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1157)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2193)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread.performNewIntents(ActivityThread.java:2206)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2215)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread.access$1400(ActivityThread.java:140)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298)
06-13 21:00:48.128: E/NFC(16727): at android.os.Handler.dispatchMessage(Handler.java:99)
06-13 21:00:48.128: E/NFC(16727): at android.os.Looper.loop(Looper.java:137)
06-13 21:00:48.128: E/NFC(16727): at android.app.ActivityThread.main(ActivityThread.java:4898)
06-13 21:00:48.128: E/NFC(16727): at java.lang.reflect.Method.invokeNative(Native Method)
06-13 21:00:48.128: E/NFC(16727): at java.lang.reflect.Method.invoke(Method.java:511)
06-13 21:00:48.128: E/NFC(16727): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
06-13 21:00:48.128: E/NFC(16727): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
06-13 21:00:48.128: E/NFC(16727): at dalvik.system.NativeStart.main(Native Method)

Related

Facebook for HTC Sense

So I had to replace my Aria today, and now the HTC Sense Facebook will not log in for some reason, is there another way to Sync FB with your contacts?
Sent from my HTC Liberty using XDA App
This program has not worked right since i got the phone on June 20th. My main problem is that once it syncs once the contact pictures don't reliably update automatically if someone changes their picture. my work around is to remove the acct from "accounts and sync" and re-add it.
today i did this and now it won't connect so it's not working at all! I'm not very happy with this app which is sad because i love the htc software in general!
russell1997 said:
This program has not worked right since i got the phone on June 20th. My main problem is that once it syncs once the contact pictures don't reliably update automatically if someone changes their picture. my work around is to remove the acct from "accounts and sync" and re-add it.
today i did this and now it won't connect so it's not working at all! I'm not very happy with this app which is sad because i love the htc software in general!
Click to expand...
Click to collapse
I did the same thing and after re-adding my account to Facebook for HTC Sense, all my fb contacts are gone…
Seems like a lot of other users are facing the same problem:
h t t p : / / community.htc.com/na/htc-forums/android/f/94/t/4807.aspx?PageIndex=2
Used adb logcat and this is the output I got:
D/SocialNetwork-UserSyncTask( 2191): Start sync friends
D/SocialNetwork-UserSyncTask( 2191): <FB_ID#> start get friends
D/SocialNetwork-SimpleFacebookInterface( 2191): GZIP encoded stream
D/dalvikvm( 2191): GC freed 42307 objects / 3318392 bytes in 99ms
D/dalvikvm( 2191): GC freed 247 objects / 322640 bytes in 75ms
D/dalvikvm( 2191): GC freed 32 objects / 281368 bytes in 70ms
I/dalvikvm-heap( 2191): Grow heap (frag case) to 5.179MB for 629990-byte allocation
D/dalvikvm( 2191): GC freed 0 objects / 0 bytes in 84ms
D/dalvikvm( 2191): GC freed 3144 objects / 563808 bytes in 75ms
D/dalvikvm( 2191): GC freed 8487 objects / 380056 bytes in 101ms
D/dalvikvm( 2191): GC freed 9903 objects / 449160 bytes in 102ms
D/SocialNetwork-UserSyncTask( 2191): com.htc.socialnetwork.SocialNetworkException errorCode: 2000
**Retries sync friends 4 times**
D/SocialNetwork-UserSyncTask( 2191): Retry: 3
V/SocialNetworkSyncManager( 2191): MSG_TASK_FINISH(LOCK): facebook , syncType:1 , time: 2010-07-23 19:46:15
D/SocialNetworkSyncManager( 2191): normal MSG_TASK_FINISH no pendingSubTasks facebook , syncType: 1 , time: 2010-07-23 19:46:15
V/SocialUpdate( 2191): onFinish: facebook , syncType: 1 , hasPendingSync: false , complete: false , time: 2010-07-23 19:46:15
D/HtcContactsProvider2( 154): onReceive service facebook
D/HtcContactsProvider2( 154): onReceive syncResult SYNC_FAIL
D/FacebookUserActivity( 2297): SocialNetworkClient.SYNC_FINISH, result = SYNC_FAIL, SerName = facebook, SyncType = 1.0
I/NotificationService( 83): enqueueToast pkg=com.htc.socialnetwork.facebook [email protected] duration=0
D/Sensors ( 83): close_akm, fd=147
One of my friends just got an Aria today because he liked mine. He can't get his FB syncd either.
Its a widespread issue and from what I read over on the HTC forums, an HTC specific one.
I've had my Aria for about a week now and have not been able to sync a single contact with my facebook list. If I go to my contact list and click on facebook, it shows 0 contacts and refreshing does nothing. I set it to sync in the settings but the only picture that it pulled was my own. I hope they fix this soon and make a better facebook app for Android. That was one of my favorite things about my Blackberry.
Looks like it's back up and running.
h t t p : / / community.htc.com/na/htc-forums/android/f/94/t/4807.aspx?PageIndex=10
Works now, but looks like it's synching only 100 contacts...
Sent from my HTC Aria using XDA App
I've got an Aria in Virginia Beach and its still not working for me. I tried removing and re-adding it in "Accounts&Sync"...still getting a connection error. This sucks.
yes, it's definitely working.
maybe you should log out from android app, delete facebook for htc sense account, delete data for both facebook apps in app manager then relogin + readd fb account. Sync & refresh in people's facebook directory tab.
@wizja - I just tried everything you said to do, I even logged into facebook on my PC and deleted the HTC app so it would re-add it by itself, but when I go to "People" and hit refresh it waits about 2 minutes and then gives me a "connection error".
For those that are seeing this work, are you also getting the 100 contact limit?
Ki77erB said:
@wizja - I just tried everything you said to do, I even logged into facebook on my PC and deleted the HTC app so it would re-add it by itself, but when I go to "People" and hit refresh it waits about 2 minutes and then gives me a "connection error".
Click to expand...
Click to collapse
For the first time sync was ok, then I've tried second time and it gave me connection error but after phone reset it synced once again... so maybe you're just expecting some temporary problem?
Woke up this morning and all my facebook contacts are there. Looks like its fixed on my end now.
Works for me too!
Now, I'm interested to see if picture updates are more reliable than they were before.
Sorry to keep pushing, but are you seeing all of your contacts? Mine won't sync over 100.
Sent from my HTC Aria using XDA App
Mine pulled 111. I guess those are the only friends I have that provided their phone numbers to facebook.
guido.rosso said:
Sorry to keep pushing, but are you seeing all of your contacts? Mine won't sync over 100.
Sent from my HTC Aria using XDA App
Click to expand...
Click to collapse
Yes I got all 201 of mine
All my fb contacts were back this morning! Hope everyone's has cleared up too.
Sent from my HTC Liberty using XDA App
pcruz said:
All my fb contacts were back this morning! Hope everyone's has cleared up too.
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Experienced the same thing here.
Sent from my HTC Aria

[Q] Help troubleshooting an application crashing (JuiceDefender)

I have an application called JuiceDefender which runs for a while, but then I'll unlock my phone and notice the service isn't running.
I looked through the logs and I see the following error occurring:
12-28 07:27:23.200 W/ActivityManager(559): Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1425)
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1379)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:692)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:891)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.c(SourceFile:2330)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2294)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2125)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.eh.handleMessage(SourceFile:3884)
12-28 07:27:23.210 W/System.err(18616): at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 07:27:23.210 W/System.err(18616): at android.os.Looper.loop(Looper.java:137)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.run(SourceFile:5118)
I'm running on a Nexus 4, CyanogenMod 10.1 (JellyBro 12/27), and I have SuperSU installed for root access.
Anyone have any ideas what I can check out based on that stack trace above?
dmorand said:
I have an application called JuiceDefender which runs for a while, but then I'll unlock my phone and notice the service isn't running.
I looked through the logs and I see the following error occurring:
12-28 07:27:23.200 W/ActivityManager(559): Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1425)
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1379)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:692)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:891)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.c(SourceFile:2330)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2294)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2125)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.eh.handleMessage(SourceFile:3884)
12-28 07:27:23.210 W/System.err(18616): at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 07:27:23.210 W/System.err(18616): at android.os.Looper.loop(Looper.java:137)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.run(SourceFile:5118)
I'm running on a Nexus 4, CyanogenMod 10.1 (JellyBro 12/27), and I have SuperSU installed for root access.
Anyone have any ideas what I can check out based on that stack trace above?
Click to expand...
Click to collapse
Just to add to this. This app was working fine when I was running as Stock. I'm thinking this is probably being caused from CM, but not exactly sure.
bump
Is there a particular reason you're using juice defender? In my experience, it doesn't really provide much benefit.
I like how it shuts down the mobile data when my screen is off so I can try and squeeze out more battery life.
dmorand said:
I like how it shuts down the mobile data when my screen is off so I can try and squeeze out more battery life.
Click to expand...
Click to collapse
What's the point in that? No syncing of Gmails, etc.
No point in using a smartphone if you're going to be doing that. Look for battery maximization elsewhere such as optimizing wakelocks (ensure no wakelocks), phone is deep sleeping, google maps latitude off (huge... on by default), turn google now cards off that you dont use, sync interval higher (set it higher... not every 10mins), etc.
+1 to not benefiting. I find any memory or battery app to be very useless and is more of a gimmick.
How do I change the sync interval?
dmorand said:
How do I change the sync interval?
Click to expand...
Click to collapse
that specific app's settings menu
e.g. facebook, tweet,etc
While many "battery savers" appear gimmicky, Juicedefender is (IMHO) one that actually works and works well. I've used it for a long long time on Gingerbread-based phones and it does help to extend battery life as you can control how often you want your device to turn on data when the screen is off. (For example, my phone turns on data every 15 minutes, syncs everything, then turns data off, but keeps data active when the screen is on.
Anyway, is there an answer to the original question? I'm running into the same issue on my Nexus 7, whereas JD still works great on my CM7 phone ROM.
Try with the "Fix Permission" app.
It works to me.
Not a huge fan of the "why have a smartphone if you aren't going to sync blah blah" argument. It's my phone and I am really not bothered by manual syncing. Facebook wants to sync? That's weird because unless I intend to use the app when I turn on the screen why bother letting it poll to sync? Same with Twitter or other syncing apps such as RSS. If I'm not going to use it then it can wait until I am to sync. Running an app that shuts off data when the screen is off does no harm to anyone, so I fail to understand why everyone is so against it. If a user wants to shut off data when the screen is off, who gives a ****? It's their phone. The argument that "why have extra services running to save battery?" Is also not the greatest because the battery an app like AutoData or similar data toggling apps use is miniscule compared to how much battery syncing over 3G uses.
TL;DR let people do what they want with their phone. After all, it is theirs.
Sent from my Nexus 4 using Tapatalk 2

Strange Google services drain. (Data posted)

Hey there xda fellows. I recently solved a battery drain issue on my nexus 4. Running Franco r150. AOKP milestone 1.
Here is the information
GSam Labs - Battery Monitor - Export Data
Google Services
Jun 9, 2013 12:46:18 PM
Usage Details
CPU Usage:13m 42s
CPU Usage (Background Only):13m 38s
Keep Awake:3h 7m 10s
Number of Wake Locks:531
Number of times waking device:63
Accelerometer:1s
App UID:10045
Wakelock Detail
NlpCollectorWakeLock3h 5m 16s(4)
GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint1m 21s(15)
NetworkLocationLocator13.4s(64)
Checkin Service7.0s(76)
GTALK_CONN4.6s(131)
Icing1.9s(18)
NlpWakeLock1.6s(13)
*sync*_subscribedfeeds_Account {[email protected], type=com.google}1.3s(3)
Event Log Service0.8s(9)
Checkin Handoff0.7s(82)
AlarmManager0.6s(62)
*sync*_com.android.contacts_Account {[email protected], type=com.google}0.4s(1)
GOOGLE_C2DM0.3s(8)
*sync*_com.android.browser_Account {[email protected], type=com.google}0.1s(1)
GTALK_IDLE_ALARM0.1s(30)
Event Log Handoff0.1s(9)
GCM_LIB0.0s(2)
NetworkLocationCallbackRunner0.0s(2)
*sync*_com.google.android.gms.plus.action_Account {[email protected], type=com.google}0.0s(1)
Included Packages
Google Services Framework
Google Account Manager
Google Bookmarks Sync
Included Processes
com.google.android.location
com.google.android.gsf
com.google.process.gapps
com.google.android.gms.ui
com.google.android.gsf.login
com.google.process.location
*wakelock*
com.google.android.gms
Anyone got any ideas?
Thanks in advanced guys.
Sent from my Nexus 4, running AOKP 4.2.2 M1
Sent from my Nexus 4 using xda app-developers app
I have the same issue but with my Note 2 it really sucks.
Sent from my SGH-T889 using Tapatalk 4 Beta
By the way... do you mind if the whole world knows your main email address now?
(far as the google services drain, I have it sometimes, kinda sucks, but seems to go away with time)
PS: I notice the drain the most when I have Google+ Installed.
NlpCollectorWakeLock
Highest for me too!

Verizon Note 4 Frozen App List

Hello, I found another great use for my S-pen, copying the list of apps I have frozen with Titanium Backup. I'm sure the are others that are safe to freeze and I will update this list if others post additional apps, but these are the ones I have safely frozen.
Code:
AllShare FileShare Service 2.1
Audible 1.5.7
Beaming Service 1.1.2
BlurbCheckout 1.0 (Build 204)
Briefing 1.0.0
Bubbles 1.0
Caller Name ID 2.27.0 2014-08-11 [email protected]
ChocoEUKor 0.11.56913.118627
Clock 1.0
Clock (digital easy) 1.0.73981.14926
Clock (digital) 1.0.68078.138841
Cloud >13.6.4.35
CoolEUKor 0.11.56913.118628
DSMLawmo 1.0
DT Ignite 1.6.909
Dual Clock (digital) 1.0
Enterprise VPN Services 1.3
EpsonPrintService 1.0.0
FamilyBase Companion 4.5.1
Flipboard 3.0.2
Google Play Books 3.2.61
Google Play Newsstand 3.3.1
Google+ 4.7.1.79583515
Hangouts 2.4.78234730
Health Service 2.0.0.003
Help 1.0.0
HP Print Service Plugin 2.14-1.10c.61
IMDb 5.1.0.105100310
Internet 2.0.341100600.89011
Isis Wallet 2.02.00-build.12.2
KLMS Agent 2.4.361
KNOX 2.2.0
Launcher 1.0
Live weather 1.0
Market Feedback Agent 4.4.4-1227136
Message+ 4.3.32
Messages 4.4.4-N910VOYU1ANI1 (SMS/MMS PREFS)
Mobile tracker 1.0.67631.138416
My InfoZone 2.2.17
My interests 1.0
My Places 1.0
My Verizon Mobile 10.0.708
Nearby devices 2.1
Nearby Service 2.1
Nfc Service 4.4.4-N910VOYU1ANI1
NFL Mobile 9.1.1
Pay with PayPal 1.0.0.0
PEN.UP 1.5.6
Phase beam 1.0
Photo Screensavers 4.4.4-N910VOYU1ANI1
Private Mode Service 1.0
Retail Demo Mode 201407021049
RoseEUKor 0.11.56913.118629
S Finder 2.500
S Health 3.5.0.0123
Samsung Calendar SyncAdapter 1.5.77598.154304
Samsung Cloud Data Relay 3.05007.63672.129697
Samsung Cloud Quota 1.5.14
Samsung GALAXY Apps Widget 1.00.065
Samsung GALAXY Apps Widget 1.00.041
Samsung Memo SyncAdapter 4.2.77598.154310
Samsung Print Service Plugin 2.00.141113
Samsung Push Service 1.3.0.2
Samsung SBrowser SyncAdapter 1.5.77598.154300
Samsung Syncadapters 5.6.1.74891.150063
Setup Wizard 1.0
Slacker Radio 5.0.1072
Swype 1.7.9.30068
TalkBack 3.5.2
TouchWiz easy home 1.0
TouchWiz home 1.0
Travel wallpaper 1.0.43429.97355
Verizon Location Agent 0.0.2.409
Verizon Login 3.1.19
Verizon Support & Protection 2.1.1
Voice Mail 3.0.6.10_r4
VZ Navigator 9.0.7.55
Good info, thanks for posting this.
Sent from my SM-N910V using XDA Free mobile app
that's a lot

Google Service Scam

https://twitter.com/i/web/status/1478404055651082247
#GoogleScam
#GoogleHarassment
#IrresponsibleGoogle
#Harassment
#Scam

Categories

Resources