idb icon indicating copy to clipboard operation
idb copied to clipboard

idb file tool connect to device's root folder,not relative bundle folder

Open ma125125t opened this issue 3 years ago • 11 comments

Description

Try to ls,pull or push file within device,but always transfrom from or to device's root path,not bundle path,even with a --bundle-id param.

Reproduction

excute db file ls --bundle-id com.facebook.flipper /

result:

Downloads
Books
Photos
var
desktop
Recordings
Library
1
Radio
sonar
DCIM
general_storage
iTunes_Control
MediaAnalysis
PhotoData
PublicStaging
Purchases
AirFair

Additional Information

  • idb revision: 1.0.13
  • iPhone:iPhone8 Plus
  • iOS Version:14.0.1

ma125125t avatar Mar 30 '21 07:03 ma125125t

It looks like --bundle-id option has no effect in this command. All these commands return the same output:

  • idb file ls --bundle-id com.facebook.flipper /
  • idb file ls --bundle-id this.does.not.exist /
  • idb file ls /

Additional Information

  • idb revision: 1.0.13 (latest pip package)
  • iPhone: iPhone 6s Plus
  • iOS Version: 14.4.2

iqqmuT avatar Apr 01 '21 12:04 iqqmuT

When building idb from the current master branch, it works ok. So the real issue is that we don't get the latest version by brew & pip installs.

iqqmuT avatar Apr 03 '21 11:04 iqqmuT

I tested the new release version 1.1.2 but oddly it has this same issue. All these commands return still the same output:

  • idb file ls --bundle-id com.facebook.flipper /
  • idb file ls --bundle-id this.does.not.exist /
  • idb file ls /

iqqmuT avatar Apr 19 '21 11:04 iqqmuT

@iqqmuT The same issue.Do you have a way to start the idb_companion with the binary instead of launching it within Xcode?

ma125125t avatar May 12 '21 07:05 ma125125t

@FFFang Unfortunately I haven't figured it out.

iqqmuT avatar May 12 '21 08:05 iqqmuT

@iqqmuT OK.Still thank you for the workaround.

ma125125t avatar May 12 '21 08:05 ma125125t

@FFFang @iqqmuT you guys should take a look at https://github.com/facebook/idb/issues/671 if you haven't Also I think I explain how to launch from binary in my last comment there, TLDR; archive the build and distribute as built products then copy/paste to /urs/local/bin, do not forget to add frameworks to your /usr/local/Frameworks folder

I do have different outputs for the commands you guys listed. However I still have the flipper certificate issue https://github.com/facebook/flipper/issues/2113

EDIT: Solved my certificate issue, was related to another fix I tried to apply and forgot to clean. Now if I idb connect first, then I'm good with flipper

maxime-memtell avatar May 25 '21 09:05 maxime-memtell

This issue seems to be fixed in the release version 1.1.3.

iqqmuT avatar Jun 05 '21 11:06 iqqmuT

@iqqmuT, can you help me? i facing this problem, I already builded idb_companion from source, updated idb python client, and im using 0.125.0 version, the idb file command always returns the same response ignoring bundle-id

hlspablo avatar Aug 27 '22 14:08 hlspablo

@hlspablo

  • Can you make sure you are using the latest versions?
  • Which component has version 0.125.0?
  • If you are using self built idb_companion, make sure to brew uninstall idb-companion and clean and build again

iqqmuT avatar Aug 28 '22 08:08 iqqmuT

@iqqmuT Thanks for your time, the problem was pip cache that was installing an outdated version, and I had to change the idb path on Flipper since I used pip3.9. this pip caching behavior is very weird, since it doest warn about new versions.

hlspablo avatar Aug 28 '22 14:08 hlspablo