Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2009, 01:48 PM
wazowski
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 22
Rep Power: 0
wazowski is on a distinguished road
Default Cydia Package Help

Hi,

I have two questions. I hope someone can help me. Well, the first one.

I would like to know how can I access from an application installed via Cydia to another application path installed via Cydia too. Or, how can I install add on's to an app previoully installed. I mena, for example, I have made a dictionary app, and I have installed on my iPhone. And now I want to download a dicctionary Data Base to it. How can I access this DB from de dic app, or haw can I install it at the same path of the main app?

That was the first question. And the second one.

I would like to know too, if it's possible restart the iphone when the package is installed.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-13-2009, 02:19 AM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Ehy dude! Are you the one of iWep??
However I hope I have understood your question... If you are asking about replacing a .deb package (or just a part of it) through Cydia with another .deb package, the solution it's quite simple:
If you own the cydia repo of the second package, just change its control file: add a line like this one

Replaces: package1

In which package1 is the "Package Name" (ex: not Core Utilities but coreutils) of the first package... the one you wanna replace.
An example with more packages having parts that are going to be replaced:

Replaces: coreutils, curl, gnupg

In your case, the control file should be something like:

Package: newdictionary
Version: 1.0.0-0
Priority: Standard
Section: Dictionaries
Essential: no
Maintainer: wazowski <your@mail.com>
Replaces: newdictionary, dictionaryAPP
Architecture: iphoneos-arm
Description: A new dictionary for dictionaryAPP. It will replace the old one, if existing.
Name: New Dictionary for DictionaryAPP
Author: wazowski <your@mail.com>


but...you know how to make a deb for Cydia, don't you?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2009, 02:30 AM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Ah... I have iwepprerelease 1.0.3 on my iphone 3g 3.0.1.
Why a wep encrypted AP should appear "open" and not "WEP", when it's compatible with the app??
I mean.. both compatible and open. But it's an encrypted AP...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 10-13-2009, 10:44 AM
wazowski
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 22
Rep Power: 0
wazowski is on a distinguished road
Default

Quote:
Originally Posted by 111111 View Post
Ehy dude! Are you the one of iWep??
I think so

Quote:
Originally Posted by 111111 View Post
However I hope I have understood your question... If you are asking about replacing a .deb package (or just a part of it) through Cydia with another .deb package, the solution it's quite simple:
If you own the cydia repo of the second package, just change its control file: add a line like this one

Replaces: package1

In which package1 is the "Package Name" (ex: not Core Utilities but coreutils) of the first package... the one you wanna replace.
An example with more packages having parts that are going to be replaced:

Replaces: coreutils, curl, gnupg

In your case, the control file should be something like:

Package: newdictionary
Version: 1.0.0-0
Priority: Standard
Section: Dictionaries
Essential: no
Maintainer: wazowski <your@mail.com>
Replaces: newdictionary, dictionaryAPP
Architecture: iphoneos-arm
Description: A new dictionary for dictionaryAPP. It will replace the old one, if existing.
Name: New Dictionary for DictionaryAPP
Author: wazowski <your@mail.com>
I think I did not explain myself. But I dont know if this is gonna work. I was wondering how can I add new dictionaries to an existing application path.

For example, I have my app called MyApp. Installed in my iPhone by my Cydia repo. And now I want to add to MyApp 4 new files, called MyFile00, MyFile01, MyFile02 and MyFile03.

So what I have understood from your reply is I can replace existing files, but Can I add new ones?

Quote:
Originally Posted by 111111 View Post
but...you know how to make a deb for Cydia, don't you?
Yes, I think so too.

Quote:
Originally Posted by 111111 View Post
Ah... I have iwepprerelease 1.0.3 on my iphone 3g 3.0.1.
Why a wep encrypted AP should appear "open" and not "WEP", when it's compatible with the app??
I mean.. both compatible and open. But it's an encrypted AP...
I don't know. Can you send me a screenshot?

Waz.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 10-13-2009, 03:26 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

If you want to ADD new dictionaries the Replaces label is NOT needed. But if you wanna REPLACE also an old dictionary, you're likely to get an error so you have to add Replaces: MyApp
Well... I suggest you to add the Replaces label in every package:

For a new dictionary --------> Replaces: newdictionary
To replace and old one -----> Replaces: newdictionary, MyApp

This because if you reinstall the newdictionary, you will replace newdictionary, so you need to specify it, or Cydia will stop the process.

Hope this helps... You may want to take a look to my Packages file: http://theworm.altervista.org/cydia/Packages
You will see that the major part of the packages, replaces itself. But.. take a look at com.theworm.30libraries package!


For my problem.. I've done a screenshot: http://theworm.altervista.org/IMG_0101.PNG. The AP Sitecom456DDC is wep encrypted but it is shown as "open". This happens with all APs wep encrypted that are compatible with your app.

However I'm happy to see that it finds compatible APs here in Italy too!

Last edited by 111111; 10-13-2009 at 04:06 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 10-13-2009, 10:28 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Really strange... i have an AP, wep encrypted

iWep Lite 3.0 says it's not compatible and wep encrypted
iWep Pro says it's compatible and it's open (not encrypted)

Why? Did you add support for other bssids in iWep Pro?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 10-14-2009, 10:16 AM
wazowski
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 22
Rep Power: 0
wazowski is on a distinguished road
Default

Quote:
Originally Posted by 111111 View Post
Really strange... i have an AP, wep encrypted

iWep Lite 3.0 says it's not compatible and wep encrypted
iWep Pro says it's compatible and it's open (not encrypted)

Why? Did you add support for other bssids in iWep Pro?
Ok. Don't worry. It's possible I have miss something. You can see this pictures to compare what I think the app was doing and what is happening to you:

http://3.bp.blogspot.com/_l2cVhAKs3f...00-h/photo.jpg

http://farm4.static.flickr.com/3428/...b29a0cafc3.jpg

http://farm3.static.flickr.com/2646/...16c4a0f885.jpg

I'm gonna release a new version with the posibility of save networks to file, so when it's ready, you could send me the info I need to check.

Thank you for the control files support of Cydia. I did it other way.

Waz.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 10-14-2009, 03:33 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Ok, I'll wait for the new version then.
Can you tell how did you managed to solve your problems with packages?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 10-15-2009, 02:43 PM
wazowski
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 22
Rep Power: 0
wazowski is on a distinguished road
Default

Quote:
Originally Posted by 111111 View Post
Can you tell how did you managed to solve your problems with packages?
I have just made new packages installation. I have installed dictionaries at /var/mobile/Documets and then the app read the dictionary fromm that path.

The most dificult thing was add Depends: line on control file. So, control file was:

...
Depends: MyApp
...

So when a dictionary is selected to install, this line prevents the application is previously installed.

I think it works in the same way Replace: command does.

Waz.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 10-15-2009, 03:01 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Well..
Replace: is used to tell what packages are going to be overwritten
Depends: is used to tell what packages are needed to be installed to install your package.


And can you tell me why there are 2 packages of dictionaries in Cydia? STDic2004 and STDic2005?
Should I install both of them? STDic2005 is just an upgrade? And if it is an upgrade, couldn't you just change the old package (content, version.... and name if you want)?

Last edited by 111111; 10-15-2009 at 03:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[2.0]Installer/Cydia, working 2.0 apps and repositories Dhalilahma Free Toolchain Software 137 10-11-2009 08:00 AM
help plz i have erorr burtbot PwnageTool 0 09-30-2009 09:13 AM
Making a Cydia App Package nycdude777 iPhone Developer Exchange 11 03-11-2009 05:31 PM
is firmware a package in Cydia? YYZiPhoneGuy PwnageTool 3 09-07-2008 09:13 AM
Cydia and custom package support MrIron PwnageTool 1 04-17-2008 09:29 PM



All times are GMT +2. The time now is 06:20 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105