• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Révisionc00365909daf0b60dce345c9c6c46bbfffc73560 (tree)
l'heure2019-11-20 03:02:09
AuteurMichael Goffioul <michael.goffioul@linc...>
CommiterChih-Wei Huang

Message de Log

Fix native bridge wrapper

- Be more specific about houdini files to delete (avoid deleting

bundled system/etc/houdini*.sfs)

- Use PRODUCT_PROPERTY_OVERRIDES for ro.dalvik.vm.native.bridge to

correctly override value from build/make/target/product/runtime_libart.mk

- Use losetup/mount to mount the houdini sfs image, toybox's mount does

not seem to be able to mount -o loop... properly

v2: resolve conflict in nativebridge/bin/enable_nativebridge (cwhuang)

Change Summary

Modification

--- a/nativebridge/Android.mk
+++ b/nativebridge/Android.mk
@@ -20,7 +20,7 @@ LOCAL_SHARED_LIBRARIES := libcutils libdl liblog
2020 LOCAL_C_INCLUDES := system/core/libnativebridge/include
2121 LOCAL_MULTILIB := both
2222 LOCAL_POST_INSTALL_CMD := $(hide) \
23- rm -rf $(TARGET_OUT)/*/{arm*,*houdini*} {$(TARGET_OUT),$(PRODUCT_OUT)}/vendor/{*/arm*,*/*houdini*}; \
23+ rm -rf $(TARGET_OUT)/{bin,lib}/{arm*,*houdini*} {$(TARGET_OUT),$(PRODUCT_OUT)}/vendor/{bin,lib}/{arm*,*houdini*}; \
2424 mkdir -p $(TARGET_OUT)/{lib/arm,$(if $(filter true,$(TARGET_IS_64_BIT)),lib64/arm64)}; \
2525 touch $(TARGET_OUT)/lib/libhoudini.so $(if $(filter true,$(TARGET_IS_64_BIT)),$(TARGET_OUT)/lib64/libhoudini.so)
2626
--- a/nativebridge/bin/enable_nativebridge
+++ b/nativebridge/bin/enable_nativebridge
@@ -15,7 +15,8 @@ urls[5]=http://tinyurl.com/y6g6cx27
1515
1616 mount_sfs()
1717 {
18- mount -o 'context="u:object_r:system_file:s0"' $1 $2
18+ lodevice=`losetup -r -f -s $1`
19+ [ -n "$lodevice" ] && mount -o 'context="u:object_r:system_file:s0"' $lodevice $2
1920 }
2021
2122 if [ -z "$1" ]; then
--- a/nativebridge/nativebridge.mk
+++ b/nativebridge/nativebridge.mk
@@ -32,7 +32,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
3232 endif
3333
3434 ifneq ($(HOUDINI_PREINSTALL),intel)
35-PRODUCT_DEFAULT_PROPERTY_OVERRIDES := ro.dalvik.vm.native.bridge=libnb.so
35+PRODUCT_PROPERTY_OVERRIDES := ro.dalvik.vm.native.bridge=libnb.so
3636
3737 PRODUCT_PACKAGES := libnb
3838 endif