Tuesday, 27 October 2015

Adding device specific files to the Recovery (TWRP)



I've successfully ported TWRP Recovery in the OmniRom 5.1 Tree to my Intel based Trekstor Xintron i 7.0 Tablet. To support access to the encrypted data partition of the tablet I need to integrate several proprietary binaries into the recovery, e.g,
/lib/hw/keystore.coho.so
should be included in the recovery image. I also need to specify additional libraries as dependency, e.g keystore.coho.so links to libc++ which is not included in the recovery by default.

I can copy single files using the PRODUCT_COPY_FILES var, but how can I specify additional dependencies? I tried "TARGET_RECOVERY_DEVICE_MODULES = external/libcxx/Android.mk" and the library is indeed built during "make recoveryimage" but it is not copied to out/target/product/coho/recovery/root/sbin/ like all the the other libraries.

Can you point me to a tutorial or example device code? I'd appreciate any suggestions.

xblax



No comments:

Post a Comment