01-16-2013 11:07 PM
1,060 ... 2728293031 ...
tools
  1. cammykool's Avatar
    check your PMs
    03-27-2012 08:24 PM
  2. anthonycr's Avatar
    OK this isn't about building a rom necessarily... but... how do I work with .9.pngs. Ive gotten them edited and fixed in draw9patch, but they need to be recompiled I guess...? All I know is just editing and using draw9patch didn't work, so am I supposed to recompile them in eclipse?

    ...a lot of stupid hard work just so I can freaking theme my phone perfectly

    Sent via the Postal Service
    03-27-2012 09:27 PM
  3. pbailey212's Avatar
    Got you covered. LOL
    You guys are too good to me lol

    Sent from my GT-P1000 using Tapatalk
    cammykool and jack454 like this.
    03-27-2012 09:28 PM
  4. cammykool's Avatar
    both of you are geniuses!

    it is syncing the repo npow now to ask jerry about adding/removing apps and editing files
    03-27-2012 09:30 PM
  5. JerryScript's Avatar
    OK this isn't about building a rom necessarily... but... how do I work with .9.pngs. Ive gotten them edited and fixed in draw9patch, but they need to be recompiled I guess...? All I know is just editing and using draw9patch didn't work, so am I supposed to recompile them in eclipse?

    ...a lot of stupid hard work just so I can freaking theme my phone perfectly

    Sent via the Postal Service
    The easiest way to deal with .9 pngs is to add them to some app's res folder, then run a build of at least that app, then look in out/target/product/intermediates/APP_NAME/res/WHEREEVER_YOU_PUT_IT
    anthonycr likes this.
    03-27-2012 11:49 PM
  6. anthonycr's Avatar
    The easiest way to deal with .9 pngs is to add them to some app's res folder, then run a build of at least that app, then look in out/target/product/intermediates/APP_NAME/res/WHEREEVER_YOU_PUT_IT
    Phewf....

    Android sdk installed... check
    Android platforms set up... check
    Adb set up.... check
    Java jdk set up... check
    Eclipse installed... barely but check
    ADT plugins... after two hours of trying to figure it out... check

    Well looks like I'm ready to start compiling .9.pngs
    I think I'll try coding an app while I'm at it, if I can remember my Java from last years summer course... I think I'm becoming addicted slowly but surely to hacking: when you log onto my desktop, its littered with android related files and over twenty zips of roms.

    Sent via the Postal Service
    03-28-2012 05:23 PM
  7. jack454's Avatar
    Ok so I've synced and built iho from source and everything seemed to go well but once the ROM boots on my phone everything works but I get no signal at all. Switch back to backside and everything is normal again... I did do the new radio update. Anyone else have this issue?

    Sent from my LG-VM670 using Tapatalk
    Did you find an answer to this? I'm still having the problem.
    03-28-2012 06:35 PM
  8. tdm's Avatar
    Did you find an answer to this? I'm still having the problem.
    I think blarf will have this fixed soon. The problem is that the system properties aren't being set properly after the recent code rearranging.
    jack454 likes this.
    03-28-2012 06:52 PM
  9. anthonycr's Avatar
    So why don't ICS apks decompile properly... I tried decompiling some and you get a lot of errors.

    Sent via the Postal Service
    03-28-2012 08:52 PM
  10. tdm's Avatar
    So why don't ICS apks decompile properly... I tried decompiling some and you get a lot of errors.

    Sent via the Postal Service
    You are decompiling the java class files?
    03-28-2012 09:32 PM
  11. anthonycr's Avatar
    You are decompiling the java class files?
    I was using apktool, and when I decompile an GB apk, it decompiles perfectly spitting all the smali files into the folder. When I tried decompiling Trebuchet launcher, it couldn't decompile the smali stuff so basically it didn't compile. I'm running this on windows 7 so I'm not expecting this to be as good as Linux but I was just wondering.

    Sent via the Postal Service
    03-28-2012 09:39 PM
  12. flapjack.fiasco's Avatar
    I am no expert, and this won't help you, it's just an observation. I would think that decompiling wouldn't ve an issue in Windows, because the difference (that matters here) between it and Linux is a case sensitive file system. I could see problems with compiling related to that, but not decompiling. Of course I could be wrong, and that doesn't seem to the issue you're dealing with any how.

    So maybe you just need to try your hand at building, that way you can work with all the files in their natural habitat so to speak.

    Sent from my LG-VM670 using Tapatalk
    03-28-2012 09:49 PM
  13. JerryScript's Avatar
    Hmm, does ICS require a new decompiler?
    03-28-2012 09:52 PM
  14. rukin5197's Avatar
    Hmm, does ICS require a new decompiler?
    Yes. The newest apktool doesn't support ICS apks either. It's a real pain when I try.

    If you're on windows, try this: [HOW TO] Compile/Decompile ICS Apk easily|100% working - xda-developers

    I use it when I'm on Windows.
    03-28-2012 09:53 PM
  15. tdm's Avatar
    Hmmm .. I'm wondering what is different about ICS. It should be the same java bytecodes. Decompiling an APK must involve something more....
    03-28-2012 10:20 PM
  16. rukin5197's Avatar
    Hmmm .. I'm wondering what is different about ICS. It should be the same java bytecodes. Decompiling an APK must involve something more....
    If it means anything decompiling definitely won't work without the newest aapt from the sdk.

    Sent from my Amazon Kindle Fire using Tapatalk
    03-28-2012 10:49 PM
  17. rukin5197's Avatar
    Thank you sir i think I'm just about ready to start hacking
    So this is where it all started...
    03-29-2012 03:16 PM
  18. anthonycr's Avatar
    Ok, so I've been decompiling and recompiling apks for a few hours and I've run into some problems:

    First off here's what I have - android sdk installed, platform for 2.2 installed.

    And have all the paths right so I can execute almost anything from terminal.

    Now... I was modifying the gingerbread launcher and I have problems.

    First I installed the framework-res.apk from one of jerrys roms
    apktool if C:\Users\Anthony\Desktop\workspace\framework-res.apk

    Then decompile
    apktool d C:\………\workspace\Launcher2.apk

    Then I editted what I wanted to.
    Then recompile
    apktool b C\………\Launcher2

    Nothing goes wrong with building. It compiles cleanly and there's the apk sitting in the \dist folder. But when I go to put it on my phone running backside, it doesn't work at all. Its as if the Launcher no longer exists... all I did to the code was change a few pngs and changed one xml so I'm assuming I've done something wrong.

    I may be doing other things wrong, but is the reason its not working because I only have the 2.2 platform installed but I was de- and re- compiling 2.3 apks??? I would have thought it would give me an error. I'm stumped but now addicted to building apps

    Sent from my VM670 using Tapatalk
    03-29-2012 11:56 PM
  19. JerryScript's Avatar
    You might want to ask in the xda threads about apktool and apkmanager. Hacking a precompiled binary is quite different from building from source, so I'm sure they have more expertise in the matter.
    03-30-2012 12:21 AM
  20. tdm's Avatar
    Maybe someone can help me understand... We have sources so why decompile apks? Why not just build them like you want to start with?
    03-30-2012 12:21 AM
  21. rukin5197's Avatar
    Maybe someone can help me understand... We have sources so why decompile apks? Why not just build them like you want to start with?
    I'm sure it's much easier for people to open up a terminal and type in a short command rather than learn git and have to build apks over git. It's sure easier for us, but easier for them at the same time.
    03-30-2012 12:35 AM
  22. JerryScript's Avatar
    Well personally, I hate looking through smali files that give you few clues as to what the function calls are or how they interact. Too much of a guessing game for me.

    With source code, there's no guessing game, and usually comments to help you understand what is happening and why.
    03-30-2012 12:53 AM
  23. EarthnFire78's Avatar
    Trying to set everything up and I get this.

    Code:
    mike@mike-Theatrelite:~$ sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
    [sudo] password for mike: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    I have Java JDK6 and Android-SDK.
    03-30-2012 02:24 AM
  24. JerryScript'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"
    03-30-2012 04:07 AM
  25. anthonycr's Avatar
    Well personally, I hate looking through smali files that give you few clues as to what the function calls are or how they interact. Too much of a guessing game for me.

    With source code, there's no guessing game, and usually comments to help you understand what is happening and why.
    As gannon said, its easy to type one command to get it to recompile and another to get it to compile. I began learning programming last year and so doing the de and re compiling is pretty simple since I sorta want to see the source change a couple things and build.

    Also I'm on windows 7 and I have no idea what git is or where to find the source code for the apps I was modifying. Apktool seemed pretty straight forward since it takes all the files in the given folder and compiles them into an apk.

    If I can't get this tool to work and xda doesnt yield anything, where exactly would I start to build apps from source... I've followed googles directions on their development pages.

    Sent from my VM670 using Tapatalk
    03-30-2012 06:38 AM
1,060 ... 2728293031 ...
LINK TO POST COPIED TO CLIPBOARD