A little help theming apps...please :)

Discussion in 'Android Hacks and Help' started by gszeman, May 18, 2010.

  1. gszeman
    Offline

    gszeman Member

    Joined:
    Apr 8, 2010
    Messages:
    506
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Novi, MI
    Ratings:
    +0
    Ok, here is what I understand (using lookout.apk as an example):

    01) Right click on com.lookout.apk and open with 7zip
    02) Navigate to res/drawable-hdpi
    03) Right click the .png files and select 'edit' (the edit option points them to Paint.net)
    04) Edit the .png files and save (not sure if this matters, but when I close Paint.net I get a msg saying that the *.png has been changed, would you like to update the archive...if I click yes, it puts an 'a' in the attributes column...if I click cancel it does not save the changes I made)
    05) Close the archive and open autosign.bat (stericsons auto-sign)
    06) Choose 'manually sign'
    07) type in c;\AndroidSDK\tools\com.lookout.apk and I get the following:
    Code:
    [COLOR=Black]**************
    Signing File!
    **************
    
    Exception in thread "main" java.lang.NoClassDefFoundError: testsign
    Caused by: java.lang.ClassNotFoundException: testsign
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: testsign.  Program will exit.
    
    File signed successfully if no Errors above.[/COLOR]


    Even though there were errors, I tried to push to phone.

    From there, the apk will not install...I get the "Application not Installed" notice.

    As I am very new to this, I am sure I am doing several things wrong...so I come to you for some help :)

    ps. I also tried just replacing the .apk in /data/app/ and restarting phone, but it didn't like that either...go figure :p

    I also am not sure how to edit .9.png files, is there a different way to edit those?

    Any help would be appreciated!

    Thanks,
    Glenn

     
  2. gszeman
    Offline

    gszeman Member

    Joined:
    Apr 8, 2010
    Messages:
    506
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Novi, MI
    Ratings:
    +0
    [sarcasm]Awesome...thanks for all of the replies.[/sarcasm]

    Sent from my Droid using Tapatalk
     
  3. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Birmingham AL
    Ratings:
    +0
    The reason your signapk thing didn't work is because it couldn't find the testsign.class file so that it could run it. Without that signature it would kill the apk look into making the apksigning work before anything else...

    The technical questions are spread out between 3 forums its hard to keep up with
     
  4. gszeman
    Offline

    gszeman Member

    Joined:
    Apr 8, 2010
    Messages:
    506
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Novi, MI
    Ratings:
    +0
    Thanks for pointing me in the right direction...I'm interested in learning a lot more about this stuff...and there is a lot to learn.

    Thank you,
    G
     
Search tags for this page

could not find the main class: com.android.signapk.signapk

,

could not find the main class: com.android.signapk.signapk.

,
didn't find class android.view.selector
,

error: signapk.jar failed: return code 1

,
java.lang.classnotfoundexception: android.view.selector
,
linaro could not find the main class: com.android.signapk.si
,
not find the main class: com.android.signapk.signapk