[android-developers] How to display log?

2011-07-04 Thread Alberto González
Hi,

I have a Google Nexus S. Using this guide:
http://forum.androidcentral.com/t-mobile-nexus-s-rooting-roms-hacks/48675-how-compile-nexus-s-kernel-source.html

When I compile kernel I added some LOGD to cpp files. But when I do
adb logcat I don't see it in console.

I'm triying to enable smart card feature of Google Nexus S modifying
this sources:
http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/dec4843abd73d9e9?lnk=gstq=secure+element+diff%27s#dec4843abd73d9e9

I think that when I re-compile kernel, the process doesnt clean old
code and shows me the old code.

Any ideas?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to display log?

2011-07-04 Thread Alberto González
Thanks!

I posted it a few minutes ago in porting and platform!



On Jul 4, 2:46 pm, TreKing treking...@gmail.com wrote:
 2011/7/4 Alberto González doctorg...@gmail.com

  I think that when I re-compile kernel, the process doesnt clean old
  code and shows me the old code.

  Any ideas?

 Post to a more relevant group - like porting or platform - if you're
 compiling the kernel.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: NFC Secure Element

2011-06-02 Thread Alberto González
Have anyone read this?

2.3.4. adds hidden classes for secure element and related:
http://gibraltarsf.com/blog/?p=247

On Jun 2, 2:55 pm, Jorn Cruijsen jorncruij...@gmail.com wrote:
 Hey Michael,

 Oh, it seems I failed terribly.. That's the value I thought to receive when
 the device is in peer-to-peer mode. I confused the two.

 Thanks for the clarification.

 --
 Met vriendelijke groet, | Best regards,
 Jorn Cruijsen
 jorncruij...@gmail.com
 (+31) (0)6 272 492 91







 On Thu, Jun 2, 2011 at 1:15 PM, Michael Roland mi.rol...@gmail.com wrote:
  Hallo JMC,

   Are you guys sure it's a MIFARE 4k card it's emulating?

  Yes, I'm very sure it is emulating a MIFARE Classic 4K card and an APDU
  based smart card (depending on the protocol activation level).

   When I put the device in emulation mode and read its ATR, I'm getting:
   3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 00 00 00 00 00 6B

  Decoding this PC/SC ATR gives this:
  3B ... Contactless card
   8F ... Number of historical bytes: 0xF (15)
   80
   01
     80 ... Category indicator: A status indicator may be present
            in an optional COMPACT-TLV data object.
     4F ... Application identifier Presence indicator
     0C ... Length of application identifier: 0x0C (12)
       Application identifier:
         A0 00 00 03 06 ... RID: PC/SC Working Group
         03 ... Byte for Standard: ISO 14443 A, part 3
         00 00 ... Bytes for Card Name: not in standard
         00 00 00 00 ... RFU (Shall be set to zero)
   6B ... Checksum

  This is a typical ATR if the card emulation mode is not activated. I
  receive that ATR if I put the phone in peer-to-peer communication mode
  (which is the default if card emulation is disabled).

   While I'm actually expecting:
   3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00 00 00 00 69

  With the phone you would not normally receive such an ATR for the card
  emulation mode either. Usually a contactless smart card reader (like the
  Omnikey 5321) activates the contactless smart card up to its highest
  supported protocol layer. For the SmartMX, this means that ISO 14443-4
  protocol layer is activated for APDU based communication with the
  JavaCard. Thus, the ATR generated by the smart card reader would reflect
  the properties of the APDU-based JavaCard and not those of the MIFARE 4K
  area. This is the value I recieve when card emulation is on:
   3B 8A 80 01 00 31 C1 73 C8 40 00 00 90 00 90

  Best regards,
  Michael

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Making SmartCard feature available in Google Nexus S

2011-05-03 Thread Alberto González
Hi,

I'm back to ask a little questions about nfc.

I have a NFC tag reader and Google Nexus S. I want to create an app
for Google Nexus S that emulates a nfc tag.

1) Where I could find example code in java? Because there isn't no
info about this.

I think it could be similar to:
-Creating the nfc tag to emulate (give him a value)
-Activating emulation of nfc tag
-Wait for a NFC tag reader signal (NFC tag reader sends a message
telling to the phone, msg received?)
-Desactivating emulation of nfc tag

My NFC reader is CPR40.30-USB (More info:
http://www.toptunniste.fi/topshop/product_details.php?p=264c=76).

2) Should I create new functions to use it and create a new SDK? Did
you know any tutorial to modify SDK and create other functions? Or
should I create it in NDK using native code?

3) The steps to enable Google Nexus S Smart Card functionality will
be:

-Unlock the boot loader
-Root Google Nexus S
-Create the modified rom (with the diff you posted in
http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/dec4843abd73d9e9%3Flnk%3Dgst%26q%3Dsecure%2Belement%2Bdiff%2527s%23dec4843abd73d9e9
).
-Load the new rom.
-Install the app

4) Do you know when all nfc funcionality will be available in the
official SDK?


Thanks!


On 26 abr, 17:22, nemik ne...@nemik.net wrote:
 Alberto,

 A while back I posted my diff's to the Android source code to get this
 working 
 here:http://groups.google.com/group/android-developers/browse_thread/threa...

 I was able to get the SmartMX secure element to be exposed in both
 wired mode and visible to other NFC readers. Other than that though,
 I'm not sure much else can be done to the SE such as loading
 applications to it because it is locked down and you need the secret
 keys to write to those parts of its memory. I'm pretty sure only
 Google and NXP know what those keys are.

 I did not make my changes to the Cyanogen source though; but rather
 the plain Android source base. After unlocking the bootloader on the
 Nexus S and loading my version of the OS, NFC emulation mode was
 working.

 On Apr 26, 5:51 am, Alberto González doctorg...@gmail.com wrote:







  Hi all,

  I undestand that smartcard feature is not available for developers.

  I readed in this website that is possible to available 
  it:http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovere...

  The clues that I get to make it available is:
  Download the source (actually from CyanogenMod 7 to have the full
  build environment for the new Nexus S), make the appropriate changes
  to the code, recompile everything and put it back into the phone and
  it works — Nexus S supportscardemulation and SWP!

  Also I need to root it... I know..

  The question is: are there anybody who could provide more info about
  this?

  Thanks in advantage

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Making SmartCard feature available in Google Nexus S

2011-04-27 Thread Alberto González
Thanks memik, I'll take a look at it =)



On 26 abr, 17:22, nemik ne...@nemik.net wrote:
 Alberto,

 A while back I posted my diff's to the Android source code to get this
 working 
 here:http://groups.google.com/group/android-developers/browse_thread/threa...

 I was able to get the SmartMX secure element to be exposed in both
 wired mode and visible to other NFC readers. Other than that though,
 I'm not sure much else can be done to the SE such as loading
 applications to it because it is locked down and you need the secret
 keys to write to those parts of its memory. I'm pretty sure only
 Google and NXP know what those keys are.

 I did not make my changes to the Cyanogen source though; but rather
 the plain Android source base. After unlocking the bootloader on the
 Nexus S and loading my version of the OS, NFC emulation mode was
 working.

 On Apr 26, 5:51 am, Alberto González doctorg...@gmail.com wrote:







  Hi all,

  I undestand that smartcard feature is not available for developers.

  I readed in this website that is possible to available 
  it:http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovere...

  The clues that I get to make it available is:
  Download the source (actually from CyanogenMod 7 to have the full
  build environment for the new Nexus S), make the appropriate changes
  to the code, recompile everything and put it back into the phone and
  it works — Nexus S supports card emulation and SWP!

  Also I need to root it... I know..

  The question is: are there anybody who could provide more info about
  this?

  Thanks in advantage

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Making SmartCard feature available in Google Nexus S

2011-04-26 Thread Alberto González
Hi all,

I undestand that smartcard feature is not available for developers.

I readed in this website that is possible to available it:
http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovered-the-hidden-nfc-potential-of-the-google-nexus-s-and-the-nokia-c7/

The clues that I get to make it available is:
Download the source (actually from CyanogenMod 7 to have the full
build environment for the new Nexus S), make the appropriate changes
to the code, recompile everything and put it back into the phone and
it works — Nexus S supports card emulation and SWP!

Also I need to root it... I know..

The question is: are there anybody who could provide more info about
this?

Thanks in advantage

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en