Nexus 5: Route APDU to SIM

I am currently building Android 4.4. with seek-for-android to get UICC support on my Nexus 5.

So far, no success. I have applied all the fixes mentioned here and here . But sim1 Reader says there is no protected item (only built-in protected item reader returns true on .isSecureElemenPresend()

)

My question is, did anyone manage to activate SWP on the Nexus5 to successfully route APDUS to the SIM, and if so, how?

Edit: I found this comment, but it didn't help either.

+3


source to share


1 answer


Finally, I found the root of the problem, and with it the solution!

Alltho Google offers a package of supposedly all vendor-specific libraries , containing a list of makefiles contains several (17) libraries that are not included in the package.

To add these libraries to your source folder, you will need another hammer device with proprietary firmware or a system.img ROM file.

you can get libraries from device like this:

adb pull system/app/OmaDmclient.apk
adb pull system/etc/DxHDCP.cfg
adb pull system/vendor/bin/vss_init
adb pull system/vendor/firmware/discretix/dxhdcp2.b00
adb pull system/vendor/firmware/discretix/dxhdcp2.b01
adb pull system/vendor/firmware/discretix/dxhdcp2.b02
adb pull system/vendor/firmware/discretix/dxhdcp2.b03
adb pull system/vendor/firmware/discretix/dxhdcp2.mdt
adb pull system/vendor/lib/libDxHdcp.so
adb pull system/vendor/lib/libvdmengine.so
adb pull system/vendor/lib/libvdmfumo.so
adb pull system/vendor/lib/libvss_common_core.so
adb pull system/vendor/lib/libvss_common_idl.so
adb pull system/vendor/lib/libvss_common_iface.so
adb pull system/vendor/lib/libvss_nv_core.so
adb pull system/vendor/lib/libvss_nv_idl.so
adb pull system/vendor/lib/libvss_nv_iface.so

      



if you are using system.img file then mount the image and copy it there.

Now that we have the missing libraries, we need to put them in the vendor directory: vendor/lge/hammerhead/proprietary

and add them to the makefilevendor/lge/hammerhead/device-partial.mk

like this:

vendor/lge/hammerhead/proprietary/libvss_nv_iface.so:system/vendor/lib/libvss_nv_iface.so:lge \
vendor/lge/hammerhead/proprietary/libvss_nv_idl.so:system/vendor/lib/libvss_nv_idl.so:lge \
vendor/lge/hammerhead/proprietary/libvss_nv_core.so:system/vendor/lib/libvss_nv_core.so:lge \
vendor/lge/hammerhead/proprietary/libvss_common_iface.so:system/vendor/lib/libvss_common_iface.so:lge \
vendor/lge/hammerhead/proprietary/libvss_common_idl.so:system/vendor/lib/libvss_common_idl.so:lge \
vendor/lge/hammerhead/proprietary/libvss_common_core.so:system/vendor/lib/libvss_common_core.so:lge \
vendor/lge/hammerhead/proprietary/libvdmfumo.so:system/vendor/lib/libvdmfumo.so:lge \
vendor/lge/hammerhead/proprietary/libvdmengine.so:system/vendor/lib/libvdmengine.so:lge \
vendor/lge/hammerhead/proprietary/libDxHdcp.so:system/vendor/lib/libDxHdcp.so:lge \

      

now recompile, run the image and everything should work.

+1


source







All Articles