Superdistribution - Sending App from Phone to Phone via Bluetooth

Login to reply to this topic.
Fri, 2005-07-15 11:37
Joined: 2005-03-06
Forum posts: 183
Hi,

I know you can get solutions to do this from Openbit and others however I would like to come up with my own solution.

When you install a SIS file, the original file is changed just to provide uninstall details, but I would like to have a "SEND" option in my application to allow users to send the application to their friends via Bluetooth.

I seen in another thread that one chap said he wrote a class to rebuild the original SIS file , but this seems a little messy (and not so easy) and perhaps as mentioned in that thread, there might be issues with DRM once the components are installed to the phone.

Does anyone have any solutions or ideas on how to best achieve superdistribution?

I do have a solution but again its not ideal, although, less messy than reconstructing the original SIS.

Basically I was thinking to send the SIS file twice from the application (but with different names) and when you install on the target (and auto Run) the first copy (from your inbox) it will search your mail directory recursively looking for the other SIS file, then copy it accross to your current install path so that it can then be subsequently sent on twice to the next user and so on, and so on. However the original SIS file (which will be download) will need to contain a copy of itself within the main SIS - the only effect being ,it will be twice the size it needs to be.

Does anyone see any issues with this strategy?

Would there be any DRM issues with just copying the original SIS file?

Regards,
Isseyp

Fri, 2005-07-15 13:48
Joined: 2005-06-09
Forum posts: 174
Re: Superdistribution - Sending App from Phone to Phone via Blue
SIS files are in the closed content list (on handsets that support it, I think that's rougly s60 2nd ed. and later), which means you can't send them to other phones.

Fri, 2005-07-15 16:28
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue

Thanks for the info, but you can send them if you rename them or leave off the ".SIS" extension I beleive.
Well, I dont have any issues on the 6600 or 7650 which are both Series 60 2nd Eds.

Anyway, I have implemented the above sceme and it seems to work fine, but any other ideas or feedback is most welcome.

Regards,
Isseyp
Sat, 2005-07-16 15:17
Forum Nokia Champion
Joined: 2003-06-10
Forum posts: 727
Re: Superdistribution - Sending App from Phone to Phone via Blue
Quote from: isseyp
Well, I dont have any issues on the 6600 or 7650 which are both Series 60 2nd Eds.
The 7650 is Series 60 0.9 ("1st Edition"). On the 6600 this restriction appeared in a firmware update; yours probably has the original version and not an updated one.
Sat, 2005-07-16 18:35
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
thats great, so what are you saying? that I cant send SIS files on other phones using OBEX even if they are renamed to something else?

Regards,
Isseyp
Mon, 2005-07-18 10:07
Joined: 2005-06-09
Forum posts: 174
Re: Superdistribution - Sending App from Phone to Phone via Blue
It seems that all it takes is to rename it (tested on the 3230).  However, this doesn't seem to be a very good solution, for several reasons:

1. There's no guarantee that it'll work the same on other phones (or the same phone, after a firmware upgrade).
2. A Sis file that isn't called x.sis might not be treated as a Sis file by the receiving phone (or the person using the phone).

Mon, 2005-07-18 18:25
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
yeah, maybe,.
but anyway, would this work on a 3650?

CObexFileObject* iFileObject;
iFileObject->InitFromFileL(_L("E:\\Test")));  //its  a SIS file with no extension
iFileObject-> SetNameL(_L("Test.SIS")); 
iClient->Put(*iFileObject, iStatus);
SetActive();

Or once you reanme it with the  SetNameL does the Put fail?

Regards,
Isseyp
Tue, 2005-07-19 04:19
Joined: 2003-04-01
Forum posts: 142
Re: Superdistribution - Sending App from Phone to Phone via Blue
basically, you could do the superdistribution very easily, at least with two small assumptions. that is, in case you can assume that the SIS file is installed from the inbox, and you would have extra space on the target to accommodate the original sis file after installation (you would propably need to check this out while copying).

Anyway, you just need to do an exe that is run waited on your sis, note that your exe is copied to the target folder before it is run, so with its name you could figure out, which drive the installation is made to., then you just copy the sis file, rename the ending to sis_ and, you'll be able to send it through BT using CSendAppUi class.

Then of course you should make an another exe that is run during the installation, which would wait untill installation is finalized, that would go and check if the install folder has the file with sis_ ending, and change it to sis, so it could be uninstalled normally. aybe you should also have this checking on your app, just to make sure.

Anyway, you'll have couple of small problems there still, for example, that the sis file is open while you should be copying it. Anyway it is 100 % doable, thou can not give you the excat implementation, which took me around 4 hours to make and get working on 6600 & 6680.

yucca
Tue, 2005-07-19 19:48
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
Yuccu,

thats wonderful, however could you please explain it a little more clearly. I cant work out exactly what your method is.

Regards,
Isseyp
Wed, 2005-07-20 04:06
Joined: 2003-04-01
Forum posts: 142
Re: Superdistribution - Sending App from Phone to Phone via Blue
basically the idea in simple just, to find the sis file from inbox, copy it over to the projects folder (where the app file is) and then just use that file to send the application over to other phones. simply and easy, also works. Just try it out.

yucca
Thu, 2005-07-21 10:27
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
yucca,

I'm still not following ur method.
Could you please detail the steps involved so I can give it a try.

Step 1. ....
Step 2 .....

Regards,
Isseyp
Thu, 2005-07-21 11:15
Joined: 2003-04-01
Forum posts: 142
Re: Superdistribution - Sending App from Phone to Phone via Blue

1. locate the sis file that is currently being installed from the inbox
2. Copy the sis file into the same location that is is being installed to.
3. Use that sis file to send the application to the other phones. (using CSendAppUI for example)
Thu, 2005-07-21 18:27
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
Quote from: yucca

1. locate the sis file that is currently being installed from the inbox
2. Copy the sis file into the same location that is is being installed to.
3. Use that sis file to send the application to the other phones. (using CSendAppUI for example)

How do you locate the SIS file that is currently being installed? What does this locating and when?

Regards,
Isseyp
Fri, 2005-07-22 11:11
Joined: 2003-04-01
Forum posts: 142
Re: Superdistribution - Sending App from Phone to Phone via Blue
as I said before, you need to make two assumptions with this method, and the first was that the application is installed from inbox. This is to save time in searching.

yucca
Fri, 2005-07-22 14:35
Joined: 2005-03-06
Forum posts: 183
Re: Superdistribution - Sending App from Phone to Phone via Blue
ic
Mon, 2005-08-01 08:31
Joined: 2005-06-09
Forum posts: 174
Re: Superdistribution - Sending App from Phone to Phone via Blue
Yes, you'd need a small program to find the .sis and save it somewhere.  You can run programs during installation, check the documentation for the .pkg format.

  • Login to reply to this topic.