01-16-2013 11:07 PM
1,060 ... 2829303132 ...
tools
  1. anthonycr's Avatar
    Ok, I failed to sign the apks after building them, and the system didn't like it. After signing the app I modified, it installed perfectly (:
    Now I can mod to my hearts content and not worry about those irritating .9.pngs
    Its really simple using apktool actually, although I'm sure the original source is much easier to understand since it contains comment lines.

    I'm still interested in the original source, where can I find that? Somewhere with git???

    Sent from my LG-VM670 using Tapatalk
    03-30-2012 08:10 AM
  2. EarthnFire78's Avatar
    You have to get sun java6 from a different source, I can't remember if I used lucid or multiverse or both:
    Code:
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    // or
    sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
    Using both those returned nothing, so I assume that have the right ones

    Code:
    mike@mike-Theatrelite:~$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    [sudo] password for mike: 
    mike@mike-Theatrelite:~$ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
    mike@mike-Theatrelite:~$ 
    03-30-2012 09:53 AM
  3. flapjack.fiasco's Avatar
    Ok, I failed to sign the apks after building them, and the system didn't like it. After signing the app I modified, it installed perfectly (:
    Now I can mod to my hearts content and not worry about those irritating .9.pngs
    Its really simple using apktool actually, although I'm sure the original source is much easier to understand since it contains comment lines.

    I'm still interested in the original source, where can I find that? Somewhere with git???

    Sent from my LG-VM670 using Tapatalk
    Start out with the OP of this thread. It walks you through step-by-step.

    Sent from my LG-VM670 using Tapatalk
    anthonycr likes this.
    03-30-2012 10:14 AM
  4. anthonycr's Avatar
    Start out with the OP of this thread. It walks you through step-by-step.

    Sent from my LG-VM670 using Tapatalk
    Right. Why didn't I look there first :banghead:

    Sent from my LG-VM670 using Tapatalk

    Edit: wait, but how can I get the source code without being in Linux, since all the pulling commands are Linux?
    03-30-2012 10:19 AM
  5. JerryScript's Avatar
    Using both those returned nothing, so I assume that have the right ones

    Code:
    mike@mike-Theatrelite:~$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    [sudo] password for mike: 
    mike@mike-Theatrelite:~$ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
    mike@mike-Theatrelite:~$ 
    Those commands shouldn't return anything unless there is an error. So now you run the original apt-get install commands, and you should get the proper java.
    03-30-2012 01:10 PM
  6. tdm's Avatar
    I'm trying to make a manifest converter for Leslie's ICS box so that folks can sync from the local mirror instead of having to each pull down their own data independently (at several GB per user, I'm sure). Problem is, the CM9 manifest.xml looks like this:

    Code:
      <remote  name="github"
               fetch=".."
               review="review.cyanogenmod.com" />
    Which corresponds to this change:

    Code:
    commit 89acec784fd50305cc55d05ecb3416fcd7c3eb0e
    Author: Koushik Dutta <koushd@gmail.com>
    Date:   Wed Feb 29 10:44:16 2012 -0800
    
        switch to whatever protocol people init the repo with
        
        Change-Id: If99f3f646a25918abeaccfaf29d63e6a73d6a827
    
    diff --git a/default.xml b/default.xml
    index 2a0ba15..6eebcc8 100644
    --- a/default.xml
    +++ b/default.xml
    @@ -5,7 +5,7 @@
                fetch="https://android.googlesource.com/" />
     
       <remote  name="github"
    -           fetch="http://github.com/"
    +           fetch=".."
                review="review.cyanogenmod.com" />
     
       <default revision="refs/heads/ics"
    Now the problem I'm having is, how the heck does the repo script translate ".." into "http://github.com/"? I'm thinking it must be relative to the default remote for the manifests:

    Code:
    icsbox:~/src/test$ cd .repo/manifests
    icsbox:~/src/test/.repo/manifests$ git remote -v
    origin	git://github.com/CyanogenMod/android.git (fetch)
    origin	git://github.com/CyanogenMod/android.git (push)
    icsbox:~/src/test/.repo/manifests$
    So, taking "git://github.com/CyanogenMod/android.git" and chopping off the project name and adding ".." yields "git://github.com/CyanogenMod/.." which is equivalent to "git://github.com/".

    Does that make sense, or have I had too much coffee?

    Regardless, can anyone point me to documentation for relative paths in repo manifests just to be sure?
    03-30-2012 01:29 PM
  7. tdm's Avatar
    CM has officially grown from a l33t project into a big, lumbering beast:

    Code:
    commit ab1991f33d9da9453bddf0b5f779c561603ba844
    Author: Steve Kondik <shade@chemlab.org>
    Date:   Thu Mar 29 15:27:14 2012 -0700
    
        cm: Kill this meme already.
        
         * Change -KANG to -UNOFFICIAL since too many people just don't get it.
        
        Change-Id: I1992c0dab85f54c23ed4553a3c649775ade55893
    03-30-2012 01:34 PM
  8. JerryScript's Avatar
    I'm trying to make a manifest converter for Leslie's ICS box so that folks can sync from the local mirror instead of having to each pull down their own data independently (at several GB per user, I'm sure). Problem is, the CM9 manifest.xml looks like this:

    Code:
      <remote  name="github"
               fetch=".."
               review="review.cyanogenmod.com" />
    Which corresponds to this change:

    Code:
    commit 89acec784fd50305cc55d05ecb3416fcd7c3eb0e
    Author: Koushik Dutta <koushd@gmail.com>
    Date:   Wed Feb 29 10:44:16 2012 -0800
    
        switch to whatever protocol people init the repo with
        
        Change-Id: If99f3f646a25918abeaccfaf29d63e6a73d6a827
    
    diff --git a/default.xml b/default.xml
    index 2a0ba15..6eebcc8 100644
    --- a/default.xml
    +++ b/default.xml
    @@ -5,7 +5,7 @@
                fetch="https://android.googlesource.com/" />
     
       <remote  name="github"
    -           fetch="http://github.com/"
    +           fetch=".."
                review="review.cyanogenmod.com" />
     
       <default revision="refs/heads/ics"
    Now the problem I'm having is, how the heck does the repo script translate ".." into "http://github.com/"? I'm thinking it must be relative to the default remote for the manifests:

    Code:
    icsbox:~/src/test$ cd .repo/manifests
    icsbox:~/src/test/.repo/manifests$ git remote -v
    origin	git://github.com/CyanogenMod/android.git (fetch)
    origin	git://github.com/CyanogenMod/android.git (push)
    icsbox:~/src/test/.repo/manifests$
    So, taking "git://github.com/CyanogenMod/android.git" and chopping off the project name and adding ".." yields "git://github.com/CyanogenMod/.." which is equivalent to "git://github.com/".

    Does that make sense, or have I had too much coffee?

    Regardless, can anyone point me to documentation for relative paths in repo manifests just to be sure?
    Looks like it defaults to what you use when you run init:
    Code:
    switch to whatever protocol people init the repo with
    03-30-2012 02:33 PM
  9. tdm's Avatar
    Looks like it defaults to what you use when you run init:
    Right. It does look that way. But if you read .repo/repo/docs/manifest-format.txt, you will note a lack of documentation on the specifics of the project fetch attribute. Are there any other docs around that explain the details better? I really don't want to go hunting through python code to find out because I am really not very literate in python (and don't care to be).
    03-30-2012 02:42 PM
  10. anthonycr's Avatar
    Question: I can't decompile non-deodexed apks right?

    Sent from my LG-VM670 using Tapatalk

    Edit: ignore this question. I was able to compile the apks.
    03-30-2012 04:35 PM
  11. tdm's Avatar
    I'm also trying to figure out how to get my build tree synced back in time (say, to N days ago). But I'm enough of a git noob that I can't figure it out. I have a script that parses manifest.xml and runs through all the directories but I don't know the command to sync the git tree.

    If you look in manifest.xml for CM9, for example, you will see the default revision is "refs/heads/ics". So let's take the first project entry, which is "build". It uses the default so...

    Code:
    $ cd build
    $ git checkout refs/heads/ics
    error: pathspec 'refs/heads/ics' did not match any file(s) known to git.
    $ git show-ref | grep ics
    569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/github/ics
    569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/m/ics
    So .. uhh .. where is "refs/heads/ics" and how do I sync to it?
    03-30-2012 06:50 PM
  12. EarthnFire78's Avatar
    error: Exited sync due to fetch errors
    03-30-2012 07:16 PM
  13. sellers86's Avatar
    error: Exited sync due to fetch errors
    Run repo sync -j1

    Sent from my LG-VM670 using Tapatalk 2 Beta-4
    03-30-2012 07:30 PM
  14. cowsquad's Avatar
    I would like to try this guide :

    Sent from my Droid using Tapatalk 2 Beta-4
    03-30-2012 09:01 PM
  15. something15525's Avatar
    Run repo sync -j1

    Sent from my LG-VM670 using Tapatalk 2 Beta-4
    I'm getting the same problem. Trying this now. Why is the regular command not working?

    Just a theory, I am at a different house with slower internet...could it be because the internet hear can't handle multiple threads trying to grab from sources at the same time?

    EDIT: It didn't work. Took longer to get the same error.
    03-30-2012 11:08 PM
  16. EarthnFire78's Avatar
    Run repo sync -j1

    Sent from my LG-VM670 using Tapatalk 2 Beta-4
    Tried and still get the same error.
    03-30-2012 11:30 PM
  17. sellers86's Avatar
    Tried and still get the same error.
    try repo sync -f -j1
    03-30-2012 11:34 PM
  18. cowsquad's Avatar
    I'd like to try this out.

    Sent from my Droid using Tapatalk 2 Beta-4
    03-30-2012 11:47 PM
  19. EarthnFire78's Avatar
    Okay so fare, so good. But question is this the "V" repo that Jerry posted about in the second post?
    03-31-2012 12:47 AM
  20. JerryScript's Avatar
    I'm also trying to figure out how to get my build tree synced back in time (say, to N days ago). But I'm enough of a git noob that I can't figure it out. I have a script that parses manifest.xml and runs through all the directories but I don't know the command to sync the git tree.

    If you look in manifest.xml for CM9, for example, you will see the default revision is "refs/heads/ics". So let's take the first project entry, which is "build". It uses the default so...

    Code:
    $ cd build
    $ git checkout refs/heads/ics
    error: pathspec 'refs/heads/ics' did not match any file(s) known to git.
    $ git show-ref | grep ics
    569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/github/ics
    569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/m/ics
    So .. uhh .. where is "refs/heads/ics" and how do I sync to it?
    I don't use the method often, but you can use git revert HEAD^^^ with the number of ^ equal to the number of commits you want to go back minus 1 (revert HEAD goes back one).
    Git Book - Undoing in Git - Reset, Checkout and Revert
    03-31-2012 12:59 AM
  21. tdm's Avatar
    I don't use the method often, but you can use git revert HEAD^^^ with the number of ^ equal to the number of commits you want to go back minus 1 (revert HEAD goes back one).
    Git Book - Undoing in Git - Reset, Checkout and Revert
    Thanks but I want a time based checkout. I know the syntax:

    Code:
    git checkout ...@{time}
    My issue is finding the branch/tag or whatever. :/
    03-31-2012 01:19 AM
  22. EarthnFire78's Avatar
    Think I know why I'm having problems; the wireless card disconnects after a while. Is there a better Linux driver for the Realtek Wireless? I'm running 64bit Linux-Mint if that matters.

    Only does this on Linux, in Windows the card works great.
    03-31-2012 01:21 AM
  23. JerryScript's Avatar
    Thanks but I want a time based checkout. I know the syntax:

    Code:
    git checkout ...@{time}
    My issue is finding the branch/tag or whatever. :/
    OIC, couldn't you grep git log?

    And what happens to commit history, merges, etc, if you checkout a previous date and then attempt to go forward with future merges?

    I'm going to have to do some reading...
    03-31-2012 01:41 AM
  24. jack454's Avatar
    Think I know why I'm having problems; the wireless card disconnects after a while. Is there a better Linux driver for the Realtek Wireless? I'm running 64bit Linux-Mint if that matters.

    Only does this on Linux, in Windows the card works great.
    Type lspci -v in terminal and post the output for your wireless lan controller. We need to know the chipset it's using and we might find a better driver..
    03-31-2012 08:52 AM
  25. flapjack.fiasco's Avatar
    I'd like to try this out.

    Sent from my Droid using Tapatalk 2 Beta-4
    Start off with the OP this thread. It walks you through step-by-step.

    Sent from my LG-VM670 using Tapatalk
    03-31-2012 09:29 AM
1,060 ... 2829303132 ...
LINK TO POST COPIED TO CLIPBOARD