Results 1 to 10 of 10
Discuss Cydia Package Help at the iPhone Developer Exchange - Hackint0sh.org; Hi, I have two questions. I hope someone can help me. Well, the first one. ...
  1. #1
    Rookie Array

    Join Date
    Jan 2008
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.



  2. #2
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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?

  3. #3
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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...

  4. #4
    Rookie Array

    Join Date
    Jan 2008
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  5. #5
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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.


  6. #6
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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?

  7. #7
    Rookie Array

    Join Date
    Jan 2008
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  8. #8
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    Default

    Ok, I'll wait for the new version then.
    Can you tell how did you managed to solve your problems with packages?

  9. #9
    Rookie Array

    Join Date
    Jan 2008
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  10. #10
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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.


 

 

Similar Threads

  1. Making a Cydia App Package
    By nycdude777 in forum iPhone Developer Exchange
    Replies: 11
    Last Post: 03-11-2009, 04:31 PM
  2. is firmware a package in Cydia?
    By YYZiPhoneGuy in forum PwnageTool
    Replies: 3
    Last Post: 09-07-2008, 09:13 AM
  3. [Package Managers] Cydia vs. Installer 4?
    By koudelka in forum Free Toolchain Software (Cydia App's)
    Replies: 16
    Last Post: 08-15-2008, 12:11 AM
  4. [Dev,Cydia and 2.0] Install package for app?
    By Rikk in forum Free Toolchain Software (Cydia App's)
    Replies: 4
    Last Post: 07-24-2008, 04:33 PM
  5. Replies: 2
    Last Post: 03-23-2008, 07:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:51 PM.
twitter, follow us!