Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands fail because of printf #25

Open
amo13 opened this issue Mar 13, 2022 · 4 comments
Open

Commands fail because of printf #25

amo13 opened this issue Mar 13, 2022 · 4 comments

Comments

@amo13
Copy link
Owner

amo13 commented Mar 13, 2022

*errors.errorString: ADB command shell getprop gave an unexpected error: stdout: [dalvik.vm.appimageformat]: [lz4]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.heapgrowthlimit]: [192m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [512m]
[dalvik.vm.heapstartsize]: [16m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.image-dex2oat-filter]: [verify-at-runtime]
[dalvik.vm.isa.arm.features]: [default]
[dalvik.vm.isa.arm.variant]: [cortex-a9]
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[dalvik.vm.usejitprofiles]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.hwui.render_dirty_regions]: [false]
[init.svc.adbd]: [running]
[init.svc.recovery]: [running]
[init.svc.set_permissive]: [stopped]
[init.svc.ueventd]: [running]
[keyguard.no_require_sim]: [true]
[media.sf.extractor-plugin]: [libffmpeg_extractor.so]
[media.sf.omx-plugin]: [libffmpeg_omx.so]
[mtp.crash_check]: [0]
[net.bt.name]: [Android]
[net.change]: [net.bt.name]
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.dun.override]: [0]
[persist.sys.usb.config]: [adb]
[pm.dexopt.ab-ota]: [speed-profile]
[pm.dexopt.bg-dexopt]: [speed-profile]
[pm.dexopt.boot]: [verify-at-runtime]
[pm.dexopt.core-app]: [speed]
[pm.dexopt.first-boot]: [verify-at-runtime]
[pm.dexopt.forced-dexopt]: [speed]
[pm.dexopt.install]: [interpret-only]
[pm.dexopt.nsys-library]: [speed]
[pm.dexopt.shared-apk]: [speed]
[rild.libpath]: [/system/lib/libsec-ril.so]
[ro.allow.mock.location]: [1]
[ro.baseband]: [unknown]
[ro.board.platform]: [exynos4]
[ro.boot.boot_salescode]: []
[ro.boot.bootloader]: [N5100XXDNL5]
[ro.boot.debug_level]: [0x4f4c]
[ro.boot.emmc_checksum]: [3]
[ro.boot.hardware]: [smdk4x12]
[ro.boot.odin_download]: [1]
[ro.boot.sec_atd.tty]: [/dev/ttySAC2]
[ro.boot.selinux]: [enforcing]
[ro.boot.serialno]: [32040e9201f51157]
[ro.boot.warranty_bit]: [1]
[ro.bootimage.build.date.utc]: [1646419320]
[ro.bootimage.build.date]: [Fri Mar 4 18:42:00 UTC 2022]
[ro.bootloader]: [N5100XXDNL5]
[ro.bootmode]: [unknown]
[ro.bq.gpu_to_cpu_unsupported]: [1]
[ro.build.characteristics]: [tablet]
[ro.build.date.utc]: [1646419320]
[ro.build.date]: [Fri Mar  4 18:42:00 UTC 2022]
[ro.build.description]: [kona3gxx-user 4.4.4 KTU84P N5100ZTCNL6 release-keys]
[ro.build.display.id]: [lineage_n5100-eng 7.1.2 NJH47F 7e997fe152 test-keys]
[ro.build.fingerprint]: [samsung/kona3gxx/kona3g:4.4.4/KTU84P/N5100ZTCNL6:user/release-keys]
[ro.build.flavor]: [lineage_n5100-eng]
[ro.build.host]: [d79d4e64ea58]
[ro.build.id]: [NJH47F]
[ro.build.product]: [GT-N5100]
[ro.build.selinux]: [1]
[ro.build.tags]: [test-keys]
[ro.build.type]: [eng]
[ro.build.user]: []
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [7e997fe152]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [7.1.2]
[ro.build.version.sdk]: [25]
[ro.build.version.security_patch]: [2021-06-05]
[ro.carrier]: [unknown]
[ro.cm.build.version.plat.rev]: [0]
[ro.cm.build.version.plat.sdk]: [7]
[ro.cm.build.version]: [14.1]
[ro.cm.device]: [n5100]
[ro.cm.display.version]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.cm.hardware.cabc]: [/sys/class/mdnie/mdnie/cabc]
[ro.cm.releasetype]: [UNOFFICIAL]
[ro.cm.version]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.cmlegal.url]: [https://lineageos.org/legal]
[ro.com.google.clientidbase]: [android-google]
[ro.config.alarm_alert]: [Hassium.ogg]
[ro.config.notification_sound]: [Argon.ogg]
[ro.config.ringtone]: [Orion.ogg]
[ro.dalvik.vm.native.bridge]: [0]
[ro.debuggable]: [1]
[ro.device.cache_dir]: [/data/cache]
[ro.egl.destroy_after_detach]: [true]
[ro.hardware]: [smdk4x12]
[ro.hdcp2.rx]: [tz]
[ro.kernel.android.checkjni]: [1]
[ro.lcd_min_brightness]: [20]
[ro.modversion]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.opengles.version]: [131072]
[ro.product.board]: [smdk4x12]
[ro.product.brand]: [samsung]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.cpu.abilist]: [armeabi-v7a,armeabi]
[ro.product.device]: [GT-N5100]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [samsung]
[ro.product.model]: [GT-N5100]
[ro.product.name]: [GT-N5100]
[ro.recovery_id]: [0x84f795cc5a28293d81cf68dde8d9e5d8a57adba4000000000000000000000000]
[ro.revision]: [0]
[ro.secure]: [0]
[ro.serialno]: [32040e9201f51157]
[ro.sf.hwrotation]: [270]
[ro.sf.lcd_density]: [213]
[ro.storage_manager.enabled]: [true]
[ro.telephony.ril_class]: [SamsungExynos4RIL]
[ro.twrp.boot]: [1]
[ro.twrp.sar]: [true]
[ro.twrp.version]: [3.6.1_9-0]
[ro.wifi.channels]: []
[ro.zygote.disable_gl_preload]: [1]
[ro.zygote]: [zygote32]
[service.adb.root]: [1]
[sys.usb.config]: [mtp,adb]
[sys.usb.ffs.mtp.ready]: [0]
[twrp.action_complete]: [0]
[twrp.crash_counter]: [0]
[wifi.interface]: [wlan0]
[wifi.supplicant_scan_interval]: [15]
; stderr: /bin/sh: 1: printf: missing format character

  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 63, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 237, in GetPropMap
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 316, in SerialNumber
...
(4 additional frame(s) were not displayed)
@amo13
Copy link
Owner Author

amo13 commented Mar 13, 2022

Seems to be linked because of the printf missing format character note:

*errors.errorString: ADB command shell twrp version gave an unexpected error: stdout: TWRP openrecoveryscript command line tool, TWRP version 3.6.1_9-0

; stderr: /bin/sh: 1: printf: missing format character

  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 63, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/twrp/twrp.go", line 19, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/twrp/twrp.go", line 40, in VersionConnected
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 258, in (*Device).ReadMissingProps
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 90, in (*Device).changeDetected
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 46, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver

@amo13 amo13 changed the title ADB error reading getprop Commands fail because of printf Mar 13, 2022
@amo13
Copy link
Owner Author

amo13 commented Mar 13, 2022

One more:

*errors.errorString: ADB command reboot download gave an unexpected error: stdout: ; stderr: /bin/sh: 1: printf: missing format character

  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 63, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 203, in Reboot
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 125, in (*Device).Reboot
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 154, in (*Device).HandleStateRequest
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 65, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver

@amo13
Copy link
Owner Author

amo13 commented Mar 13, 2022

*errors.errorString: ADB command pull /tmp/recovery.log log/ gave an unexpected error: stdout: /tmp/recovery.log: 1 file pulled, 0 skipped. 2.4 MB/s (20915 bytes in 0.008s)
; stderr: /bin/sh: 1: printf: missing format character

  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 63, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 469, in Pull
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/twrp/twrp.go", line 405, in getLog
...
(7 additional frame(s) were not displayed)

@amo13
Copy link
Owner Author

amo13 commented Mar 13, 2022

And many more...

But all apparently from the same device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant