[prev in list] [next in list] [prev in thread] [next in thread]
List: bitpim-user
Subject: [BitPim-user] libusb on macintosh
From: তন্ময় ভ
Date: 2009-08-25 1:03:46
Message-ID: 4A933872.9000004 () mindspring ! com
[Download RAW message or body]
I seem to need the following patch for usb to work on my mac.
(libusb_wrap.c is taking the path name till the last \0 in the
FILENAME_MAX length buffer, what seems to be needed is till the first \0
in the same buffer).
With this, I have now figured out how to package the stuff so that I can
build my own BitPim dmg that works. So, if someone desperately needs a
package that works for LG Dare or over usb on a mac, and is trusting
enough to use my hacked version of BitPim, so that I can crash your
machine or take them over :-), you are free to contact me.
I also have a bitpim cli extension to allow r/o access to the phone fs
using avfs/extfs (which uses fusefs) for people who want it: I do not
like r/w access, and have not implemented it, but that is an easy
extension. These work on mac/linux: I do not think there is a windows
fuse implementation yet.
Now, can someone help me with solving the following problems:
1) port=auto is not working in cli mode
2) file dates inside mmc1 are wrong on LG Dare: it provides time with
the Jan 6 1980 epoch which bitpim is interpreting as unix time. I can
of course fix that, by adding the epoch in the python code, but I need
to know when to add: which phones and which dirs; currently I have a
fuse implementation that shifts times.
3) Macintosh cli mode having as current directory somewhere inside the
Applications directory and stripping starting / from local path names
(why?) Currently I use enough ..'s to get a relative path to the root.
4) How do I start the Macintosh application with the equivalent of a
-d command line argument?
Thanks
Tanmoy
dhcp100:bitpim tanmoy$ svn diff src/native/usb/usb.py
Index: src/native/usb/usb.py
===================================================================
--- src/native/usb/usb.py (revision 4759)
+++ src/native/usb/usb.py (working copy)
@@ -81,7 +81,7 @@
return self.dev.bInterfaceNumber
def name(self):
- return self.dev.filename
+ return self.dev.filename.split('\0',1)[0]
def vendor(self):
return self.dev.descriptor.idVendor
--
http://tanmoy.tripod.com/ gpg key: http://tanmoy.tripod.com/tanmoy.asc
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
BitPim-user mailing list BitPim-user@lists.sourceforge.net
Unsubscribe or change options at
https://lists.sourceforge.net/lists/listinfo/bitpim-user
There are several hundred people on this list. Please be
courteous, on topic and follow the instructions before posting
http://www.bitpim.org/help/support.htm
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic