Re: Hacking BitPim to delete locked files

"Brian Blakley" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <000b01c58884$b9539390$6701fe0a@tcswks003>
Thanks for the reply Joe.  I do intend to start writing test files to the
phone while changing that constant in some logical way, to see if I can put
a "locked" file onto the phone.

Regarding the "unknown1" field, forgive my ignorance - I do see it listed
several places where it appears to be used during a "write" operation, but
(at least if I'm reading the variable names correctly), it looks like this
particular data (listfileresponse) is a map of the data that comes back from
the phone after a listfilerequest - shouldn't that be data that was just
read *from* the phone?

PACKET listfileresponse:
    * responseheader header
    4 UINT entrynumber
    4 UNKNOWN unknown1  "probably the file attributes"
    4 UINT date
    4 UINT size
    4 UNKNOWN unknown2
    * com_brew.SPURIOUSZERO spuriouszero  "on some models there is a zero
here"
    1 UINT dirnamelen "which portion of the filename is the directory,
including the last /"
    * STRING {'terminator': None, 'pascal': True} filename

as opposed to this block of code:

PACKET writefilerequest:
    * requestheader {'command': 0x05} +header
    1 UINT {'value': 0} +blockcounter
    1 BOOL {'value': self.filesize>0x100} +*thereismore
    1 UINT {'constant': 1} +unknown1
    4 UINT filesize
    4 UINT {'constant': 0x000100ff} +unknown2 "probably file attributes"
    * STRING {'terminator': 0, 'pascal': True} filename
    2 UINT {'value': len(self.data)} +*datalen
    * DATA data

which obviously is being written *to* the phone and contains the constants.

If the "listfileresponse" section isn't the map of what comes back from the
phone when doing a directory listing, could you point me to that code?

Thanks!  Sorry again for any incorrect assumptions on my part.

----- Original Message -----
From: "Joe Pham" <[email protected]>
To: <[email protected]>
Sent: Thursday, July 14, 2005 12:54 AM
Subject: Re: [BitPim-devel] Re: Hacking BitPim to delete locked files


>
> >the "unknown1" piece of data (4 bytes) which is speculated to be the
> >file attributes.  I'd like to include that value in the Filesystem
> >tab display so I can see if known locked files have a different value
> >than others.
>
> You got a good idea but you're going down the wrong path.  That fields is
part of an output message that BitPim sends to the phone, and is set to a
constant right now.  What you might want to try is to figure out what that
field means and what happens when its value varies.
>
> -Joe Pham



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.