yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Timuu-kun:
Hi all,

My question is one that has been asked a few times around here, but never answered in a very satisfying way:

Is NFC card emulation possible for app development?

I've done days of research on this, and I have yet to encounter any decent summary thread explaining clearly the current state of affairs on this particular subject. Therefore, I'm starting this thread to gather all the information I've been able to find into one place and hopefully get some help filling in the gaps in my understanding of the subject.

What I think I know:

- NFC Card emulation can be done one of two ways:

1) In hardware, using the secure element.

This way seems like the hard way.

h t t p://nelenkov.blogspot.com/2012/08/android-secure-element-execution.html <-- This article talks about the process of accessing the secure element in great detail for ICS on the Galaxy Nexus.

The secure element can emulate Mifare Classic cards, JavaCard formatted cards, EMV credit cards, and ISO 14333A/B formatted cards in general. Google Wallet is the premiere example of an app that utilizes this emulation method. Access to the secure element is difficult, but possible.​

2) In software, using a virtual smartcard independent of the secure element

This is not a method built into standard Android ROMs, but has been supported in Cyanogenmod since version 9.1. Again, h t t p://nelenkov.blogspot.com/2012/10/emulating-pki-smart-card-with-cm91.html <-- this blog explains in detail. This method is only capable of emulating EMV cards. NFCProxy and SimplyTapp are the premiere examples of apps that utilize software card emulation​

What I've had trouble finding is API documentation and practical examples of any kind. Several people have claimed, as in threads like this: http://xdaforums.com/showthread.php?t=1706057&page=7 , that they have emulated MIFARE cards on their phone, but details are scarce.

What I'd like to know:

- Are there any APIs available for writing to the secure element, official or otherwise.

- Is there any way to perform raw reads and writes to/from the NFC module, (to replicate raw card information, for instance)

- What protocols are actually supported, both in secure element and software? For instance, what is the state of FeliCa emulation?

If anyone out there knows the answers to these questions, or can provide any further insight, please share it below.

Thanks!
[General Questions and Answers] JugglerLKR:
Hello!

As far as I can understand most of the people just want to do one simple thing:

Clone any type of nfc id card and use phone instead of it. They don't want to bother with standards, interfaces, etc.

Put card on the phone, "read" it. And later "play" it. If this is not possible there is no reason to discuss it further.
[General Questions and Answers] doug@simplytapp.com:
HCE tools

Hi guys, just want to do an update here. ST is releasing javacard tools for cloud based SE to be used starting out on CM, but hopefully soon in AOSP....we'll see.

We are releasing a few SDK's. there is no charge to use the SDK's or make your own cards at this time. just looking for experts on the board to use it and try out some of there own applications.

basically, the idea is simple. develop your own JavaCard / Global Platform application, or just recompile your original one from a hardware based SE using eclipse tools. then upload your applet to the cloud after you are done testing.

Then using OAuth consumer, you can consumer the applet from your CM application or any other payment type application for that matter. THe cloud SE gives you backend access to an HSM, but this is abstracted through GP/JavaCard.

To present to an NFC terminal, CM or other HCE based devices are required to pass the card APDU's through the phone to the handset.

we will continue to develop and support and update these tools going forward. at this point they are pretty sparse, but smart folks could get a jump on it without too much effort.

again, this is just away to extend the SE environment to those who can't afford to buy it from a telco. so we hope that people find lots of good ways to use the SE, cause it is available now to just about anyone who wants to learn and use it.

thx guys, there are tons of smart people who follow this forum. i'm amazed at how folks figure this sh** out on next to 0 docs...

oh yeah, see the developer section on simplytapp website, the wiki is starting and you can start playing with tools there. we need bug feedback too to build out help docs. we will try to fix bugs as quick as possible.

-doug
[General Questions and Answers] doug@simplytapp.com:
SE dev kit for HCE applications

ST is releasing a free development kit to build your own SE applications and host them off of the mobile device.

these apps can emulate existing cards like V/MC/AMEX/DIS cards or your own cards if you have a closed loop system.

please see simplytapp.com to get the stuff you need. release is end of october 25, 2013.

-doug
[General Questions and Answers] tnormann:
Will this work on CM Androids, or is there any chance that Google will open up API?
[General Questions and Answers] Vojtas.m:
Is there any chance to working NFC HCE on Nexus 4 (Android 4.4) outsite the US?
[General Questions and Answers] kennymccormic:
The HCE API is not restricted to any region, so you can already use it outside the US.
[General Questions and Answers] Vojtas.m:
I know, but Google Wallet is and I can't find any other application which can work with it.
[General Questions and Answers] JugglerLKR:
I've seen some post here [MENTION=243864]xda[/MENTION] that some users even with old SGS2 (nfc edition) use it to open doors and pay for transport. And claim is was android 2.3.x.

And now we are waiting for HCE, probably backported to 4.1-4.3. I don't undertand at all...
[General Questions and Answers] cryzies:
Any update to this with the latest release of KitKat and Lollipop with their HCE libraries? Interested in Mifare Ultralight emulating via HCE. The raw data is readable.
[General Questions and Answers] kennymccormic:
The Android HCE API permits emulation of ISO/IEC 7816-4 application structures only (i.e. applications that use APDUs over ISO/IEC 14443-4 and that are explicitly selected using a SELECT (by AID/DF name) APDU). So you cannot emulate MIFARE Ultralight (or any other tag type that does not speak APDUs).
[Android Apps and Games] ShibbyUK:
Hi all,

I've been developing my game for a couple of years now (you reallly can't underestimate how long these things take when done in your spare time!)

I've finally released it, so would be interested in the feedback of you knowledgeable bunch. The game is called Finger Shepherd and is a sheep herding game with 3D graphics. As you know, there's only so many devices I can test on myself so any bugs / issues / suggestions / feedback would be greatly appreciated.

The package is called "shibby.fingershepherd"; if someone else could post the URL for me I'd be grateful!

Mod Edit: Here you go

https://play.google.com/store/apps/details?id=shibby.fingershepherd

Some screenshots attached.

Thanks for any feedback you can provide!

Lewis (Shibby)
[Android Apps and Games] eza azami:
good game :) it's really fun
[Android Apps and Games] AnandMuralidhar:
Nice work! Love it!
[Android Apps and Games] noradoor:
This is quite interesting.

And I find that the sheep there are so lovable.:laugh:
[Android Apps and Games] ShibbyUK:
Thanks - much appreciated! :)

I've had a few comments that the difficulty is too high on some of the water levels. The drop-off rate through the online leaderboards seems to support this, so I'm planning to make a few tweaks...
[Android Apps and Games] ShibbyUK:
Finger Shepherd Updated

I have now published an update. Any more feedback, please let me know and I'll work to improve the game :)

Changelog:

Much needed tweaking of difficulty on a number of levels

Lighting bugfix

Tip display bugfix on smaller screens

Performance optimised on certain devices

You can now unlock one of the minigames by sharing on twitter

The new version is displayed as 1.0.2.

I'd appreciate it if any users here would have a go at enabling Gree and logging some scores to the leaderboards - this uses 3rd party code that could do with as much testing as possible ( much like my own code really ;) )
[Android Apps and Games] ciurkut:
When screen turns off after you win the game goes to pause menu from which you can only restart or go back to game youve already won. Otherwise very nice game :)
[Android Apps and Games] ShibbyUK:
Hi,

Just letting you know that the game has been updated again! Target times have been adjusted again based on user feedback. Also there is a brand new minigame called "The Maze" waiting for you to play :victory:
[Android Apps and Games] eli.r:
Very fun and nice idea ! I had my finger on the screen when it first started it took me by surprise :P

The game runs smooth and very well, I just noticed that you are allowing the user to change some stuff that as developers we use mostly to debug such as the FPS which in my opinion you can make it (even as a setting) disabled and invisible to the user. Much better UX in my opinion

Also, It worked well on a relatively low end device = ), didn't expect that as it is 3D

Again nice game and well done! Left you a comment on GP for support : )
[Android Apps and Games] Xunile:
Really nice game. Looks like all your time and effort paid off.
[Android Apps and Games] ShibbyUK:
Thanks folks, I'm chuffed you like the game :) The feedback is useful and I intend to keep up with the updates.

Thanks for the great review. I started the game (just checked) in April 2011, so it's designed to work on the devices that were popular back then at a minimum. :)

I'm glad you like it! I'm not totally convinced that it's paid off, however :( It's so difficult to get downloads - very few per day, and it's on its way down the rankings at the moment. Hard to see where new downloads will come from... It's incredibly competitive in the play store nowadays - might be a different story if I had released it 2 years ago.

Sorry, don't mean to sound too depressed about it! It's been a fun experience developing the game and I'm already thinking about the next one :)
[Android Apps and Games] aalexportnov:
good game :) it's really fun

but graphics makes my cry
[Optimus One, P500, V General] sahil1717:
Anyone trying to port miui v5?:confused:
[Optimus One, P500, V General] nomancoolboy:
It uses too much ram ...

P500 may not be able to run it properly
[Optimus One, P500, V General] sweetnsour:
My friend told me it's actually more ram efficient than MIUIv4.
[Optimus One, P500, V General] nomancoolboy:
Ohh yeah i used v4 ! In s3

But it was using 80% ram without opening any app !

Maybe it would be good
[Optimus One, P500, V General] zeratos:
seems like no one is developing anything anymore, there are no more new roms other than themed roms and abandoned projects :(
[Optimus One, P500, V General] nomancoolboy:
Yes man ...

I wish i could built somthing for our p500 ...

But that's impossible without a pc
[Optimus One, P500, V General] ayazm.140895:
I wish neko was here! He was the best themer and modder!
[Optimus One, P500, V General] stikmenow775:
I dont think so, because maybe he bought a new phone and her work...

But.. u

I really want to see a icysnap 1.7 with 9.2.2

Or

A jellysnap :P

Enviado desde mi LG-P500 usando Tapatalk 2
[Optimus One, P500, V General] aravindsagar:
I guess it is really time to move on to a new phone.. Held on to my P500 for so long only because of these forums.. Thinking of a Nexus 4...!
[Optimus One, P500, V General] jayc137:
Already moved on to Galaxy Grand but still think this has to be the best phone which is good @ Dev support if not the best ....
[Xperia Arc Q&A, Help & Troubleshooting] rema996:
I can't post in the development section so that's why I'm posting here. I just flashed Fusion 5.5 kernel on my arc S. It all went well, I used flashboot mod, like this

watch?v=Yxh14h7ennY

Same way. But I'm stuck at the fusion start logo, for like 10 min.

I waited, What should I do?
[Xperia Arc Q&A, Help & Troubleshooting] Attitude.SSJ:
On which rom were you on?Stock ics?
[Xperia Arc Q&A, Help & Troubleshooting] rema996:
I think it was 4.1.B.0.587 or 4.1.B.0.431

Also note: Screen flashes sometime on the boot screen.
[Xperia Arc Q&A, Help & Troubleshooting] Attitude.SSJ:
Fusion wont work with ics/gb...either flash a jb rom or flash a ics compatible kernel...
[Xperia Arc Q&A, Help & Troubleshooting] rema996:
Thank you very much.

What should I do now?

and what kernel do you suggest?

Thanks in advance.
[Xperia Arc Q&A, Help & Troubleshooting] Attitude.SSJ:
If you want to try out jellybean roms download it and install through cwm...or flash a ics kernel through fastboot...its your wish...
[Xperia Arc Q&A, Help & Troubleshooting] rema996:
I added super jellybean and now it's stuck there, it's just shying
[Xperia Arc Q&A, Help & Troubleshooting] morfys:
had almost the same problem, reflashing helped me.. it does take quite a lot of time for the first boot though.. :)
[HTC Sensation] rickyjune:
my phone no longer recognize my sim card or get a signal

i put it into my HTC HD2 and it works

and suggestion where i can get an replacement :confused:
[HTC Sensation] rzr86:
try this

boot to recovery

select wipe dalvik+cache

see how it goes
[HTC Sensation] ashkan-khatar:
Also fix permissions.

Spit out from an HTC Sensation XE, a revived device while was dying due to lack of support, with TeamVenom, and other astonishingly amazing developers' benignity...
[HTC Sensation] rickyjune:
unpacked my current ROM, found the phone apk and installed that, and it worked!!!!
[Nexus 7 General] Pavelol:
Hi guys.

Well recently i have seen alot of cool ways to wake the devices.

for example:

double tap screen.

the famous sweep to wake.

and probably there are more ways.

But sadly i didn't find any for our nexus.

i know it's kernel related and only a kernel dev could do it so it will be highly appreciated if someone manage to hack a wake up option. :fingers-crossed:
[Nexus 7 General] Lim Wee Huat:
This...

http://xdaforums.com/showthread.php?t=2227516
[Nexus 7 General] Pavelol:
Nice! i will check this out.
[Nexus 7 General] Lupin The Third:
A smart cover can do that. :)
[Nexus 7 General] Pavelol:
Well.... The app works good until deep sleep.

When the nexus at sleep for 15 min it's stop working
[Android Q&A, Help & Troubleshooting] insaf_mohd:
Hello Seniors,

I have some questions (basic newbie) if someone can clarify :confused:

1. Moving apps to SD card on rooted phones means - apps will be moved to Internal SD (USB Storage) or External SD card? Howto find the path?

2. If I move apps to SD card, will those be purged while I make wipe data+wipe cache+dalvik+Format System procedure to flash a new ROM? Or it'll remain in SD and catch up back when the new ROM is in?? Big confusion :eek:

3. What does a Nandroid backup normally take? Would it keep ROM+ Apps in System Partition or just the ROM?

Apologies if questions sound weir, but hope some can throw sense on it :o
[Android Q&A, Help & Troubleshooting] Syed.Zeshan:
1 - for phones having intetnal sd- apps will be moved to internal sd..

for phones without internal sd - apps will be moved to external sd..

2 - if you do flash a new rom, all apps irrespective of whether they are on internal storage or internal sd will get deleted.. you need titanium backup to backup and restore apps+ data..

3 - nandroid backup means backing up your rom+ apps.. the backup is stored in sd card.. if you restore the backup, all your current apps would disappear and everything present in the nandroid backup will reappear
[Android Q&A, Help & Troubleshooting] insaf_mohd:
Thanks for the answers Syed, clear to the hilt:)
[AT&T LG Optimus G] ripbabey:
I know i read this somewhere in the original sl jb rom but cant find it anymore. i was currently running the new jb rom modeled after the ota update with the lgpnst. I accidenlty ran my phone dead for the first time ever. i now can not get my phone to bootup, it will show my desktop for a brief second than bootoff animation than battery charge screen. i can still access download/recovery/bootloader menu's so i wiped everything, tried reflashing, got the optimizing screen, finished , bootoff animation, than charging screen, so than i flashed the original sl jb rom, same thing, than i flashed the noctorunal 2.0 , same thing, mind you these were all clean wipes in between, they are being flashed because the boot screens change, so i really need my phone, im a locksmith and on call 24/7 i know im dumb for messing with my phone when i need it to work, but i have had no problems till a ran it dead.
[AT&T LG Optimus G] ripbabey:
Sorry i figured it out, through all my attempts, i figured out what i needed to do, i had to charge my phone in recovery mode to 11% and than i rebooted to system and finally got it to load. It would not charge on the charge screen for some reason it might have though in dl mode or bootloader. I hope this helps someone in the future you probably dont need to wipe and reflash everything. but if you kill your phone, plug it in, hold power plus vol + once bootloader comes up hit vol- twice and press power button, this will bring up recovery, watch to make sure its showing + next to the battery percentage. this may not work for all, but it worked for me.
[MDA II, XDA II, 2060 General] icarusbop:
great - apparently in the last 10 mins my SD card has become corrupted, losing half of my files.....

Doeas anyone know how I format the thing to get it sorted out??

Thanks
[MDA II, XDA II, 2060 General] Rudegar:
pocket mechanics or storagetools should be able to format the card

if not

and a sdcard reader also cant

then people say that using xdatools to put a nbf on the card and entering the bootloader of the device and choosing format from there is also a way to format cards which dont want to be format'd
[MDA II, XDA II, 2060 General] icarusbop:
ta very much - i used storage tools
[Epic 4G Android Development] Effsi:
To make unjustified happy... (and add visibility to the rom)

Xylon AOSP

Download : 05.21.13 - 2.7.7

Standard gapps package is recommended. BaNkS gapps package is also a good choice.

For more information on the rom, please visit http://xylon.androidvenue.com or look at other xda xylon threads for pretty pictures and such.

This is -not- straight from source, there are many manual edits(additions, changes, removals) done after the rom is finished building before I upload it.

Thanks to the Xylon team for the sources.

Thanks to Chainfire for SuperSU

Rom source : Here

Kernel source : Here
[Epic 4G Android Development] nikon120:
The website doesn't really describe what features this rom contains. Any other source for this information?

Also, do we use regular JB GApps for this rom?
[Epic 4G Android Development] dps33:
I am guessing that it is for Epic Modem?

Can we use your swap file to change modem on this?

What Kernel for Nexus modem? Link please.
[Epic 4G Android Development] Effsi:
the other xylon threads around probably have a bit more information and images, added gapps info to op.

yes it's for the epic modem, I still have yet to migrate the builds to ns4g by default. best way to see if it works is to try it out. make a backup first.
[Epic 4G Android Development] xfilemanx:
Love your ROMs man.....thanx all the hard work :D
[Epic 4G Android Development] Unjustified Dev:
Lol

So your making threads now
[Epic 4G Android Development] kstephens98:
No Effsin way! Your very own thread!!
[Epic 4G Android Development] iamterence:
Just wanted to pop in and say thanks to Effsi, Unjust, Dynamic, xboxfanj, and anyone else I'm forgetting for keeping the OG Epic still alive and kicking. This community is utterly amazing with how many ROMs are popping up and the ROMs that are STILL being developed behind the scenes, along with the people who support others as much as they can. This phone should've been dead a long time ago, and yet we're all still here going strong. I like to check other phone sections to see what's going on with their developments, and those communities are either dead, or dying (like the NS4G forums). But not us! I use to be jealous that we didn't have much compared to other phones, but now, we have EVERYTHING. So once again, thank you everyone for keeping the dream alive.

<3
[Epic 4G Android Development] xfilemanx:
Is there a kill back app setting some where......I'm sure I'm blind and missing it, sooo could you could help out old blind guy?? :o
[Epic 4G Android Development] DynamicN:
Thank you Effsi. Gtalk me when you get a chance.

---------- Post added at 07:52 AM ---------- Previous post was at 07:44 AM ----------

If that option does exist in this rom it would most likely be under Developer Options.
[Epic 4G Android Development] Effsi:
Do I have you on gtalk? I don't remember who I got and who's who besides unjustified who stalks me daily :)

Update coming very soon, no new features really but much more optimized. Highly recommended to try it out when it happens and start clean :p
[Epic 4G Android Development] rawready:
quick snappy smooth...data faster as well...good on memory...issue i am having though is not being able to instal apps from market...market works no fcs...just wont download any app...can instal from file manager of course.
[Epic 4G Android Development] TexasLTE:
THX for latest release of uXylon , Effsi ...
[Epic 4G Android Development] iamterence:
Did the new uXylon boot for you? My SystemUI kept crashing upon startup :(
[Epic 4G Android Development] TexasLTE:
I haven't had time to flash it yet ...
[Epic 4G Android Development] dogonit:
+1 I experienced the same thing system ui crash. Downloaded twice and tried different gapps with same result. Any suggestions?

Sent from my SPH-D700
[Epic 4G Android Development] Effsi:
Ya that wasn't meant for you guys sorry... I was just trying to get the files to work from home and uploaded to there temporarily...

If you can figure out the systemui issue the build should be pretty badass. I'm using the parts I could in an older xylon build as a kangy update myself... probably upload it later but it'll be missing the badass framework uxylon has.
[Epic 4G Android Development] Effsi:
Hate to do two posts in a row but if any one has the uxylon upload with crashing systemui... if you could uploqad a logcat that'd be great
[Epic 4G Android Development] Maave:
I just installed this as my first Epic 4g ROM. It seems to run well. I switched to Zeam launcher for minimalism although I might switch back, Zeam doesn't black out the notifications bar when opening the app drawer. PIE is neat.

Overall cool ROM, thanks for putting it on the Epic
[Epic 4G Android Development] Effsi:
Thanks for the feedback. My fav rom :)
[Epic 4G Android Development] nikon120:
Latest ROM version from your goo.im account feedback.

Blue led charge light activates at 100%, instead of the CM 90% setting.

Power widget settings uses white on white text/background.

Messaging pop up notification setting isn't working and app crashes when text is received while screen on & option enabled.

Kernel memory management: Same page merging doesn't remain checked.

Quick toggles shows LTE instead of 4G or WiMax.

Using your zip dated 6-15-13, and BaNkS core gapps 7-22-13.
[Epic 4G Android Development] Effsi:
1) noticed that but I didn't change anything regarding that during compile and it hasn't caused any issues as it still let's me know its charging. no priority for solving this but glad it isn't just on my phone. wonder if its in all the builds or just the kangy past update or two?

2) upstream

3) upstream (could try swapping apk with one from slim or cm)

4) noticed that too. can you verify it is due to the rom and not the kernel? or confirm it's the kernel and not the rom? either one would be helpful

5) upstream