Skip to content

Instantly share code, notes, and snippets.

@wuhx
Created February 25, 2016 06:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wuhx/bfd814bba5f2523449f1 to your computer and use it in GitHub Desktop.
Save wuhx/bfd814bba5f2523449f1 to your computer and use it in GitHub Desktop.
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=MMB29U
ro.build.display.id=MMB29U
ro.build.version.incremental=2495654
ro.build.version.sdk=23
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=6.0.1
ro.build.version.security_patch=2016-02-01
ro.build.version.base_os=
ro.build.date=Thu Dec 17 22:14:03 UTC 2015
ro.build.date.utc=1450390443
ro.build.type=user
ro.build.user=android-build
ro.build.host=wpee5.hot.corp.google.com
ro.build.tags=release-keys
ro.build.flavor=fugu-user
ro.product.model=Nexus Player
ro.product.brand=google
ro.product.name=fugu
ro.product.device=fugu
ro.product.board=fugu
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=x86
ro.product.cpu.abi2=armeabi-v7a
ro.product.cpu.abilist=x86,armeabi-v7a,armeabi
ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.manufacturer=Asus
ro.product.locale=en-US
ro.wifi.channels=
ro.board.platform=moorefield
# ro.build.product is obsolete; use ro.product.device
ro.build.product=fugu
# Do not try to parse description, fingerprint, or thumbprint
ro.build.description=fugu-user 6.0.1 MMB29U 2495654 release-keys
ro.build.fingerprint=google/fugu/fugu:6.0.1/MMB29U/2495654:user/release-keys
ro.build.characteristics=nosdcard,tv
# end build properties
#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.dalvik.vm.isa.arm=x86
ro.enable.native.bridge.exec=1
ro.vold.wipe_on_crypt_fail=1
ro.nrdp.modelgroup=NEXUSPLAYERFUGU
drm.service.enabled=true
ro.com.widevine.cachesize=16777216
media.stagefright.cache-params=10240/20480/15
media.aac_51_output_enabled=true
dalvik.vm.implicit_checks=none
ro.sf.lcd_density=320
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=128m
dalvik.vm.heapsize=174m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.hdmi.device_type=4
persist.sys.media.avsync=true
ro.com.android.wifi-watchlist=GoogleGuest
ro.error.receiver.system.apps=com.google.android.gms
persist.sys.dalvik.vm.lib.2=libart
dalvik.vm.isa.x86.variant=silvermont
dalvik.vm.isa.x86.features=default
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.build.expect.bootloader=FUGU-02.11
ro.expect.recovery_id=0x9374ecb4b3ca278b452d3f4084dacb43322e1af9000000000000000000000000
@wuhx
Copy link
Author

wuhx commented Feb 25, 2016

fugu-ramdisk/default.prop

ADDITIONAL_DEFAULT_PROPERTIES

ro.opengles.version=196609
ro.hwui.drop_shadow_cache_size=4.0
ro.hwui.gradient_cache_size=0.8
ro.hwui.layer_cache_size=32.0
ro.hwui.path_cache_size=24.0
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=512
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.texture_cache_size=48.0
persist.intel.isv.vpp=1
persist.intel.isv.frc=1
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
ro.adb.secure=1
ro.dalvik.vm.native.bridge=libhoudini.so
ro.zygote=zygote32
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
debug.atrace.tags.enableflags=0

BOOTIMAGE_BUILD_PROPERTIES

ro.bootimage.build.date=Thu Dec 17 22:16:55 UTC 2015
ro.bootimage.build.date.utc=1450390615
ro.bootimage.build.fingerprint=google/fugu/fugu:6.0.1/MMB29U/2495654:user/release-keys
persist.sys.usb.config=none

@wuhx
Copy link
Author

wuhx commented Feb 25, 2016

init.fugu.rc

Enable native bridge for target executables

on early-init
mount binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc

on property:ro.enable.native.bridge.exec=1
copy /system/etc/binfmt_misc/arm_exe /proc/sys/fs/binfmt_misc/register
copy /system/etc/binfmt_misc/arm_dyn /proc/sys/fs/binfmt_misc/register

@wuhx
Copy link
Author

wuhx commented Feb 25, 2016

/system/etc/binfmt_misc/arm_exe
:arm_exe:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28::/system/bin/houdini:P

/system/etc/binfmt_misc/arm_dyn
:arm_dyn:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x28::/system/bin/houdini:P

@wuhx
Copy link
Author

wuhx commented Feb 25, 2016

02-25 15:03:07.511 2569 2569 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
02-25 15:03:07.533 2359 2370 D DefContainer: Copying /data/local/tmp/weixin638android680.apk to base.apk
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.NFC in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.GET_ACCOUNTS in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.WRITE_EXTERNAL_STORAGE in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.CAMERA in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.CAMERA in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.NFC in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:07.818 1512 1542 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.ACCESS_NETWORK_STATE in package: com.tencent.mm at: Binary XML file line #614
02-25 15:03:09.050 1512 1542 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl592378449.tmp/base.apk pkg=com.tencent.mm isa=x86 vmSafeMode=false debuggable=false oatDir = /data/app/vmdl592378449.tmp/oat
02-25 15:03:09.060 2578 2578 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
02-25 15:03:09.060 2578 2578 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2) for the command line:
02-25 15:03:09.060 2578 2578 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl592378449.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=8
02-25 15:03:09.060 2578 2578 I dex2oat : Starting dex2oat.
02-25 15:03:09.060 2578 2578 E cutils-trace: Error opening trace file: Permission denied (13)
02-25 15:03:12.384 2578 2580 W dex2oat : No verified method for method calling String.: java.lang.String java.io.ByteArrayOutputStream.toString(java.lang.String)
02-25 15:03:13.147 1512 2306 D NetworkMonitor/NetworkAgentInfo [MOBILE (UMTS) - 101]: Probably not a portal: exception java.net.SocketTimeoutException: failed to connect to connectivitycheck.gstatic.com/216.58.221.78 (port 80) after 10000ms
02-25 15:03:13.147 1512 1566 D ConnectivityService: NetworkAgentInfo [MOBILE (UMTS) - 101] validation failed
02-25 15:03:13.789 2578 2578 W dex2oat : No verified method for method calling String.: java.lang.String android.text.SpannableStringBuilder.toString()
02-25 15:03:14.305 2578 2580 I dex2oat : Method exceeds compiler instruction limit: 20134 in void com.tencent.mm.sdk.platformtools.ak.()
02-25 15:03:14.305 2578 2580 I dex2oat : Method exceeds compiler instruction limit: 20134 in void com.tencent.mm.sdk.platformtools.ak.()
02-25 15:03:23.400 2578 2578 I dex2oat : dex2oat took 14.340s (threads: 2) arena alloc=20MB java alloc=14MB native alloc=75MB free=5MB
02-25 15:03:23.575 1512 1542 W PackageManager: Package com.tencent.mm desires unavailable shared library com.google.android.maps; ignoring!
02-25 15:03:23.575 1512 1542 W PackageManager: Package com.tencent.mm desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-25 15:03:23.597 1512 1542 W PackageManager: Unknown permission com.tencent.mm.plugin.permission.SEND in package com.tencent.mm
02-25 15:03:23.597 1512 1542 W PackageManager: Unknown permission com.huawei.authentication.HW_ACCESS_AUTH_SERVICE in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission com.android.launcher.permission.READ_SETTINGS in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission com.tencent.mm.location.permission.SEND_VIEW in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission com.huawei.android.launcher.permission.CHANGE_BADGE in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission android.permission.WRITE_APP_BADGE in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission com.android.vending.BILLING in package com.tencent.mm
02-25 15:03:23.600 1512 1542 W PackageManager: Unknown permission com.google.android.c2dm.permission.RECEIVE in package com.tencent.mm
02-25 15:03:23.619 1512 1542 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
02-25 15:03:23.619 1512 1542 I art : Starting a blocking GC Explicit
02-25 15:03:23.659 1512 1542 I art : Explicit concurrent mark sweep GC freed 90363(4MB) AllocSpace objects, 12(920KB) LOS objects, 33% free, 5MB/8MB, paused 865us total 39.944ms
02-25 15:03:23.669 1512 1556 I InputReader: Reconfiguring input devices. changes=0x00000010
02-25 15:03:23.672 2569 2569 I art : System.exit called, status: 0
02-25 15:03:23.672 2569 2569 I AndroidRuntime: VM exiting with result code 0.
02-25 15:03:23.686 1838 1838 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
02-25 15:03:23.689 1838 1838 D CarrierServiceBindHelper: mHandler: 3
02-25 15:03:23.689 1838 1838 D CarrierConfigLoader: mHandler: 9 phoneId: 0
02-25 15:03:23.740 1512 1525 W VoiceInteractionManagerService: no available voice recognition services found for user 0
02-25 15:04:11.990 1512 1620 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.tencent.mm/.ui.LauncherUI (has extras)} from uid 10007 on display 0
02-25 15:04:12.046 2586 2586 D houdini : [2586] Initialize library(version: 6.0.0_y.48180 RELEASE)... successfully.
02-25 15:04:12.048 1512 1524 I ActivityManager: Start proc 2586:com.tencent.mm/u0a55 for activity com.tencent.mm/.ui.LauncherUI
02-25 15:04:13.700 2586 2586 D houdini : [2586] Added shared library /data/app/com.tencent.mm-1/lib/arm/libstlport_shared.so for ClassLoader by Native Bridge.
02-25 15:04:13.703 2586 2586 E ActivityThread: Failed to find provider info for com.tencent.mm.coolassist.debugprovider
02-25 15:04:13.784 2586 2586 F libc : Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 2586 (com.tencent.mm)
02-25 15:04:13.893 1222 1222 I SELinux : SELinux: Loaded file_contexts contexts from /file_contexts.
02-25 15:04:13.894 1222 1222 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-25 15:04:13.894 1222 1222 F DEBUG : Build fingerprint: 'Android/sdk_phone_x86/generic_x86:6.0/MASTER/2524533:userdebug/test-keys'
02-25 15:04:13.894 1222 1222 F DEBUG : Revision: '0'
02-25 15:04:13.894 1222 1222 F DEBUG : ABI: 'x86'
02-25 15:04:13.895 1222 1222 F DEBUG : pid: 2586, tid: 2586, name: com.tencent.mm >>> com.tencent.mm <<<
02-25 15:04:13.895 1222 1222 F DEBUG : signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
02-25 15:04:13.884 1222 1222 I debuggerd: type=1400 audit(0.0:14): avc: denied { read } for name="libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
02-25 15:04:13.913 1222 1222 F DEBUG : eax 10000000 ebx b10d1ff4 ecx b10d5508 edx 100001e0
02-25 15:04:13.913 1222 1222 F DEBUG : esi 041617a0 edi b131f940
02-25 15:04:13.913 1222 1222 F DEBUG : xcs 00000073 xds 0000007b xes 0000007b xfs 00000007 xss 0000007b
02-25 15:04:13.913 1222 1222 F DEBUG : eip b0f13dd1 ebp 10000000 esp 10011f20 flags 00210282
02-25 15:04:13.914 1222 1222 F DEBUG :
02-25 15:04:13.914 1222 1222 F DEBUG : backtrace:
02-25 15:04:13.915 1222 1222 F DEBUG : #00 pc 00219dd1 /system/lib/libhoudini.so
02-25 15:04:13.915 1222 1222 F DEBUG : #01 pc 0000003f [anon:Mem_0x10002002]
02-25 15:04:13.884 1222 1222 I debuggerd: type=1400 audit(0.0:15): avc: denied { open } for path="/system/lib/libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
02-25 15:04:13.884 1222 1222 I debuggerd: type=1400 audit(0.0:16): avc: denied { getattr } for path="/system/lib/libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
02-25 15:04:14.157 1222 1222 F DEBUG :
02-25 15:04:14.157 1222 1222 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00
02-25 15:04:14.157 1222 1222 E DEBUG : AM write failed: Broken pipe
02-25 15:04:14.158 1512 1529 I BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
02-25 15:04:14.177 1512 2612 W ActivityManager: Force finishing activity com.tencent.mm/.ui.LauncherUI
02-25 15:04:14.185 1512 2612 E JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 104)
02-25 15:04:14.185 1512 2612 W ActivityManager: Exception thrown during pause
02-25 15:04:14.185 1512 2612 W ActivityManager: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
02-25 15:04:14.185 1512 2612 W ActivityManager: at android.os.BinderProxy.transactNative(Native Method)
02-25 15:04:14.185 1512 2612 W ActivityManager: at android.os.BinderProxy.transact(Binder.java:503)
02-25 15:04:14.185 1512 2612 W ActivityManager: at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
02-25 15:04:14.185 1512 2612 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
02-25 15:04:14.198 1230 1230 I Zygote : Process 2586 exited due to signal (11)
02-25 15:04:14.207 1512 2097 I ActivityManager: Process com.tencent.mm (pid 2586) has died
02-25 15:04:14.327 1512 2125 I OpenGLRenderer: Initialized EGL, version 1.4
02-25 15:04:14.367 1512 2125 W EGL_emulation: eglSurfaceAttrib not implemented
02-25 15:04:14.367 1512 2125 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9db631e0, error=EGL_SUCCESS
02-25 15:04:16.530 1512 2125 E Surface : getSlotFromBufferLocked: unknown buffer: 0xaf2f4a30
02-25 15:04:16.532 1512 2125 D OpenGLRenderer: endAllStagingAnimators on 0xa1133c80 (RippleDrawable) with handle 0xa10ed2f0
02-25 15:04:16.543 1512 2094 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@62f695 attribute=null, token = android.os.BinderProxy@85ffca1
02-25 15:04:16.746 1512 1531 W AppOps : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
02-25 15:05:21.266 1512 2306 D NetworkMonitor/NetworkAgentInfo [MOBILE (UMTS) - 101]: Checking http://connectivitycheck.gstatic.com/generate_204 on epc.tmobile.com, connectivitycheck.gstatic.com=216.58.221.78
02-25 15:05:31.280 1512 2306 D NetworkMonitor/NetworkAgentInfo [MOBILE (UMTS) - 101]: Probably not a portal: exception java.net.SocketTimeoutException: failed to connect to connectivitycheck.gstatic.com/216.58.221.78 (port 80) after 10000ms
02-25 15:05:31.280 1512 1566 D ConnectivityService: NetworkAgentInfo [MOBILE (UMTS) - 101] validation failed

@wuhx
Copy link
Author

wuhx commented Feb 25, 2016

dmesg

[ 366.310145] type=1400 audit(1456383853.884:14): avc: denied { read } for pid=1222 comm="debuggerd" name="libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
[ 366.330000] type=1400 audit(1456383853.884:15): avc: denied { open } for pid=1222 comm="debuggerd" path="/system/lib/libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
[ 366.350642] type=1400 audit(1456383853.884:16): avc: denied { getattr } for pid=1222 comm="debuggerd" path="/system/lib/libhoudini.so" dev="vda" ino=1603 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
[ 366.571014] traps: com.tencent.mm[2586] general protection ip:b0f13dd1 sp:10011f20 error:30 in libhoudini.so[b0cfa000+3b4000]
[ 366.595172] binder: 2586: binder_alloc_buf, no vma
[ 366.596682] binder: 1512:2612 transaction failed 29201, size 104-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment