Go Back   Android Forums > Android Discussion > Android Themes
Android Themes Customize the look/feel of your Android with wallpaper, icons, graphics and more!

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old September 16th, 2010, 11:29 PM   #1 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default HOW TO: Modify Widget Backgrounds and Images

NEW! Video tutorial at the bottom of this post.

Hey all,

Here's a quick and simple way to modify the images (backgrounds, etc) of wigets to match your layout and theme. First, I take no responsibility for anything that you do to your device because of this tutorial. There's really not much that can go wrong, but who knows what numbnuts is going to pull their entire /data/app folder out and delete it.

What you'll need:

Android SDK (this tutorial assumes it is installed before going ahead)

Your favorite image editing application

The auto-sign zip file attached to this post


Step 1: Get the .apk

If you already have the .apk app you want to modify, great, skip to step 2. If not, you can either download it from its developer website or from the market. If you download it from a website, simply save it to your computer. If you download it from the market:

-Use Root Explorer or another root file manager to navigate into your /data/app folder, and write down the name of the apk you want to modify
(ex: Pandora's is com.pandora.android.apk)
-Open a command prompt
-Change directory using "cd" to your AndroidSDK/Tools folder
(ex: cd c:\AndroidSDK\tools)
-Type in: adb pull /data/app/name_of_apk_file.apk

Now, the apk file will be in your /tools directory of your AndroidSDK installation.

Step 2: Modify the Widget Images

-Now that you have the .apk file, rename it to .zip.
-Extract the contents to a new folder, name doesn't matter.
-Once the contents are extracted, delete the META-INF folder.
-Navigate to res\drawable-hdpi and edit any of the image files you feel appropriate. The landscape orientation (when you hold your device sideways) images will/may be in res\drawable-land-hdpi.
-Once the images are edited to your liking, zip all of the contents back up into a single zip file (make sure you have everything, excluding the META-INF folder deleted previously). You want the zip file to have the same file structure and hierarchy as it originally had before modification.
-Lastly, rename the .zip file to .apk.

Step 3: Re-signing the .apk

The Android OS will not allow any unsigned apps to be installed, so we need to re-sign the .apk file (renaming it to .zip in the steps above took away the integrity of it's signature, FYI).

-Extract the contents of auto-sign.zip (attached to this post) to a folder anywhere on your computer.
-Copy/paste the modified .apk file into the root directory of auto-sign (make sure it's in there with the sign.bat file). Ensure that ONLY ONE .apk file is in there.
-Double click on sign.bat, continue by pressing spacebar when asked, and press spacebar (or any key, obviously) again when it is completed.

Step 4: Re-install the .apk Application

-Ensure the original application that you just modified is uninstalled before continuing, or you'll get an error in the next steps.
-Copy/paste the .apk file back into your AndroidSDK/tools folder.
-Open a command prompt, and again change directory ("cd") into your AndroidSDK/tools folder (see step 1 if you forgot how).
-Type: adb install name_of_apk_file.apk

Voila! You now have a modified and working (hopefully) widget. Keep in mind, if it doesn't work right away (ex: Vlingo's widget didn't work for me right away) a simple restart of the device should fix that. If it still won't work, then sorry.

You can see an example of what I did with the Vlingo(small) widget here, as well as the Pandora widget.

Extra Credit: Maybe once you've got your widget modified and working, post a reply with a screenshot of what you've done.

Video Tutorial: (I recommend full screening the video and watching in HD 720p quality)

http://www.youtube.com/watch?v=86PgHghRYU0
Attached Images
File Type: jpg Vlingo.jpg (338.9 KB, 377 views)
File Type: jpg Pandora.jpg (391.5 KB, 381 views)
Attached Files
File Type: zip Auto-Sign.zip (816.3 KB, 980 views)

Advertisements
__________________
Justin
Samsung Vibrant | Bi-Winning V3 | OverStock 2.4.1 w/KB1
Avid Homebrewer | Home Brew Talk
Beach dwelling Software Engineer in San Diego, CA
Samsung Vibrant Drivers Download | Android SDK | How to Modify Widget Backgrounds and Images
howetechnical is offline  
Last edited by howetechnical; September 20th, 2010 at 12:27 PM.
Reply With Quote
The Following 21 Users Say Thank You to howetechnical For This Useful Post:
ardchoille (October 28th, 2011), Asitaka (December 15th, 2011), Bad Attitude (October 27th, 2011), brotherswing (May 7th, 2012), diS (September 18th, 2010), Dr.Jpeg (October 25th, 2011), dvschnk (October 26th, 2011), eservant (September 17th, 2010), Eusibius2 (September 22nd, 2010), faile486 (March 19th, 2013), iohcsugna (September 27th, 2010), Kaessa (September 17th, 2010), macramentonate (October 27th, 2011), Mayhem (October 28th, 2011), MReda (December 14th, 2011), MysticMi (October 29th, 2011), nathan312 (September 18th, 2010), ODD BOY (December 4th, 2010), Tsjoklat (September 18th, 2010), twospirits (December 6th, 2011)
sponsored links
Old September 17th, 2010, 08:31 PM   #2 (permalink)
New Member
 
Join Date: Aug 2010
Location: Va Beach, VA
Posts: 6
 
Device(s): Nexus 4
Carrier: T-mobile

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Bump for good info
eservant is offline  
Reply With Quote
Old September 18th, 2010, 09:54 AM   #3 (permalink)
diS
Member
 
Join Date: May 2010
Location: Belgium
Posts: 397
 
Device(s): HTC Desire Rooted LeeDroid Custom ROM
Carrier: Not Provided

Thanks: 84
Thanked 82 Times in 50 Posts
Default

Awesome guide mate!

Is it possible to combine 2 widgets?

Because i've got 2 widgets called "Digital Clock Widget" and "BattStatt" but when
I put them below each other they have like a large gap between them.
So I would like to combine them to minimalize the gap between them
diS is offline  
Reply With Quote
Old September 18th, 2010, 10:07 AM   #4 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by diS View Post
Awesome guide mate!

Is it possible to combine 2 widgets?

Because i've got 2 widgets called "Digital Clock Widget" and "BattStatt" but when
I put them below each other they have like a large gap between them.
So I would like to combine them to minimalize the gap between them
It depends on how the layout xml is written. Like Pandora, if it's written where the background is contstrained to a certain size, then you would have to edit the xml. But if not (as is the case with smoothcalendar, vlingo, etc), then you can just make the background image larger. You wouldn't be able to combine them per say, but you may be able to make the background tall enough to go edge-to-edge.

I have the same two widgets, though for my wallpaper, I like the clock without a background. Give it a try and post your results!

FYI: Yesterday I recorded a video tutorial doing this process 5 times, every time the recording application crapped out when compiling everythin (about 8 minutes worth). I tried mostly CamStudio, which really had issues. I finally got the video to compile, then it gave me an error message saying it lost the audio. Anybody know any GOOD screen recording applications that are free for up to 10 minutes of recording?
howetechnical is offline  
Reply With Quote
The Following User Says Thank You to howetechnical For This Useful Post:
diS (September 18th, 2010)
Old September 18th, 2010, 05:59 PM   #5 (permalink)
diS
Member
 
Join Date: May 2010
Location: Belgium
Posts: 397
 
Device(s): HTC Desire Rooted LeeDroid Custom ROM
Carrier: Not Provided

Thanks: 84
Thanked 82 Times in 50 Posts
Default

Quote:
Originally Posted by howetechnical View Post
Anybody know any GOOD screen recording applications that are free for up to 10 minutes of recording?
What about "oRipa Screen Recorder"?
diS is offline  
Reply With Quote
The Following User Says Thank You to diS For This Useful Post:
howetechnical (September 18th, 2010)
Old September 18th, 2010, 07:53 PM   #6 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by diS View Post
What about "oRipa Screen Recorder"?
Thanks! I just installed it and I'll try it out either tomorrow or monday morning.
howetechnical is offline  
Reply With Quote
Old September 18th, 2010, 11:26 PM   #7 (permalink)
Senior Member
 
waynester's Avatar
 
Join Date: Oct 2008
Posts: 677
 
Device(s): Droid RAZR and incredolious
Carrier: Not Provided

Thanks: 78
Thanked 65 Times in 55 Posts
Default

CaptureFOX Official Website

you might give this a try

*update...this worked on my old xp, it crashes FF 3.6.10 on win 7 64 bit

here are some other choices
http://www.softpedia.com/catList/112,0,2,1,1.html

** i just tried oripa , did not work on my pc
more alts
http://all-streaming-media.com/record-video-from-screen/freeware-screen-video-capture-software.htm
waynester is offline  
Last edited by waynester; September 19th, 2010 at 08:53 AM.
Reply With Quote
The Following User Says Thank You to waynester For This Useful Post:
howetechnical (September 20th, 2010)
Old September 20th, 2010, 12:28 PM   #8 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Bump for new video tutorial (see bottom of original post).
howetechnical is offline  
Reply With Quote
Old September 21st, 2010, 07:23 AM   #9 (permalink)
diS
Member
 
Join Date: May 2010
Location: Belgium
Posts: 397
 
Device(s): HTC Desire Rooted LeeDroid Custom ROM
Carrier: Not Provided

Thanks: 84
Thanked 82 Times in 50 Posts
Default

Great tutorial!
diS is offline  
Reply With Quote
Old September 22nd, 2010, 01:54 PM   #10 (permalink)
Member
 
Eusibius2's Avatar
 
Join Date: May 2010
Location: Chicago area
Posts: 158
 
Device(s): Moto Droid, HTC Incredible, Moto Razr MAXX.
Carrier: Not Provided

Thanks: 50
Thanked 13 Times in 12 Posts
Default

pretty cool, just a few questions:

1 - do you have to be rooted to do so? I already have the Android SDK for screenshots, so i'm familiar with that. Doesn't sound like you need to be rooted, but plz confirm...

2 - is it possible to change, not only the widget backgrounds, but also the icon used for the app (not the widget, but the icon) on a home screen or in the app folder?

Personally - I think your video is more helpful than the written instructions above. You've seemed to leave out quite a few steps in writing... prbably b/c you assume the user knows what they are doing (I do, but some others may not). This is a fairly straight forward process, so many beginner type people could do this, albeit with better instrux...

thanks howetechnical!
Eusibius2 is offline  
Reply With Quote
sponsored links
Old September 22nd, 2010, 03:54 PM   #11 (permalink)
Member
 
Eusibius2's Avatar
 
Join Date: May 2010
Location: Chicago area
Posts: 158
 
Device(s): Moto Droid, HTC Incredible, Moto Razr MAXX.
Carrier: Not Provided

Thanks: 50
Thanked 13 Times in 12 Posts
Default

Hey there,

2 more points:
1 - Did you mean to include chompSMS in the auto-sign.zip file?

2 - you never answered the question (not sure if it was asked) about the permissions and signing of the revised app. Will they be the same as what they were previously or are they changing to something else? To me, it looks like the revised apk file will have the same signature as what's in the testkey* file. Can you explain how this works?
Eusibius2 is offline  
Reply With Quote
Old September 22nd, 2010, 04:51 PM   #12 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by Eusibius2 View Post
pretty cool, just a few questions:

1 - do you have to be rooted to do so? I already have the Android SDK for screenshots, so i'm familiar with that. Doesn't sound like you need to be rooted, but plz confirm...
Nope.
Quote:
2 - is it possible to change, not only the widget backgrounds, but also the icon used for the app (not the widget, but the icon) on a home screen or in the app folder?
I haven't looked for the icon itself, but if you can find it, then sure. Remember, this is open source oriented, so you've really got full access to the entire program if you know what to do.
Quote:
Personally - I think your video is more helpful than the written instructions above. You've seemed to leave out quite a few steps in writing... prbably b/c you assume the user knows what they are doing (I do, but some others may not). This is a fairly straight forward process, so many beginner type people could do this, albeit with better instrux...

thanks howetechnical!
Videos are always more helpful Also, I didn't leave out any steps that are necessary for even an amateur to perform the modification. However, even if there were parts that assume the user knows certain things, there -is- a certain level of intelligence that one must have to venture into doing this kind of thing. I wouldn't expect my mother in law who just upgraded from her dumbphone to a Droid X to be doing this, and wouldn't advise she try.

Quote:
2 more points:
1 - Did you mean to include chompSMS in the auto-sign.zip file?
The zip file is from xda, and I don't want to take away from the original creators creation.

Quote:
2 - you never answered the question (not sure if it was asked) about the permissions and signing of the revised app. Will they be the same as what they were previously or are they changing to something else? To me, it looks like the revised apk file will have the same signature as what's in the testkey* file. Can you explain how this works?
The signature changes, as specified, to what's in the auto sign, which you are correct in thinking is pulled from the testkey files. The java application does all of this for you. I haven't analyzed the .jar file, so I couldn't say what it's doing in detail, but it does work (if it didn't, I would have opened the .jar up...no pun intended )
howetechnical is offline  
Reply With Quote
Old September 22nd, 2010, 06:58 PM   #13 (permalink)
Member
 
n0ct3m's Avatar
 
Join Date: Jun 2010
Location: Mississippi
Posts: 419
 
Device(s): Samsung Fascinate
Carrier: Not Provided

Thanks: 9
Thanked 60 Times in 40 Posts
Send a message via AIM to n0ct3m Send a message via MSN to n0ct3m
Default

I tried this out and for some reason, it's not showing any changes I made when I reinstall the widget. I pull it from the phone just fine and uninstall and re-sign, but it always looks the same as it did before I modified it.
__________________
Quote:
Your opinion is irrelevant.
n0ct3m is offline  
Reply With Quote
Old September 22nd, 2010, 09:01 PM   #14 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by n0ct3m View Post
I tried this out and for some reason, it's not showing any changes I made when I reinstall the widget. I pull it from the phone just fine and uninstall and re-sign, but it always looks the same as it did before I modified it.
Did you completely unzip the files to a new folder, or just open the image files from within the zip file? If you completely unzipped them, then you must have modified the wrong image files. If you got the right ones, there wouldn't be anything but the modified ones to display.
howetechnical is offline  
Reply With Quote
Old September 22nd, 2010, 10:54 PM   #15 (permalink)
Member
 
n0ct3m's Avatar
 
Join Date: Jun 2010
Location: Mississippi
Posts: 419
 
Device(s): Samsung Fascinate
Carrier: Not Provided

Thanks: 9
Thanked 60 Times in 40 Posts
Send a message via AIM to n0ct3m Send a message via MSN to n0ct3m
Default

Quote:
Originally Posted by howetechnical View Post
Did you completely unzip the files to a new folder, or just open the image files from within the zip file? If you completely unzipped them, then you must have modified the wrong image files. If you got the right ones, there wouldn't be anything but the modified ones to display.
I completely unzipped the files. Not sure what I could have done wrong. Guess I'll just have to sit down and play with it some more somtime to see what I'm doing wrong.
n0ct3m is offline  
Reply With Quote
Old September 23rd, 2010, 02:28 AM   #16 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by howetechnical View Post
NEW! Video tutorial at the bottom of this post.

Hey all,

Here's a quick and simple way to modify the images (backgrounds, etc) of wigets to match your layout and theme. First, I take no responsibility for anything that you do to your device because of this tutorial. There's really not much that can go wrong, but who knows what numbnuts is going to pull their entire /data/app folder out and delete it.

What you'll need:

Android SDK (this tutorial assumes it is installed before going ahead)

Your favorite image editing application

The auto-sign zip file attached to this post


Step 1: Get the .apk

If you already have the .apk app you want to modify, great, skip to step 2. If not, you can either download it from its developer website or from the market. If you download it from a website, simply save it to your computer. If you download it from the market:

-Use Root Explorer or another root file manager to navigate into your /data/app folder, and write down the name of the apk you want to modify
(ex: Pandora's is com.pandora.android.apk)
-Open a command prompt
-Change directory using "cd" to your AndroidSDK/Tools folder
(ex: cd c:\AndroidSDK\tools)
-Type in: adb pull /data/app/name_of_apk_file.apk

Now, the apk file will be in your /tools directory of your AndroidSDK installation.

Step 2: Modify the Widget Images

-Now that you have the .apk file, rename it to .zip.
-Extract the contents to a new folder, name doesn't matter.
-Once the contents are extracted, delete the META-INF folder.
-Navigate to res\drawable-hdpi and edit any of the image files you feel appropriate. The landscape orientation (when you hold your device sideways) images will/may be in res\drawable-land-hdpi.
-Once the images are edited to your liking, zip all of the contents back up into a single zip file (make sure you have everything, excluding the META-INF folder deleted previously). You want the zip file to have the same file structure and hierarchy as it originally had before modification.
-Lastly, rename the .zip file to .apk.

Step 3: Re-signing the .apk

The Android OS will not allow any unsigned apps to be installed, so we need to re-sign the .apk file (renaming it to .zip in the steps above took away the integrity of it's signature, FYI).

-Extract the contents of auto-sign.zip (attached to this post) to a folder anywhere on your computer.
-Copy/paste the modified .apk file into the root directory of auto-sign (make sure it's in there with the sign.bat file). Ensure that ONLY ONE .apk file is in there.
-Double click on sign.bat, continue by pressing spacebar when asked, and press spacebar (or any key, obviously) again when it is completed.

Step 4: Re-install the .apk Application

-Ensure the original application that you just modified is uninstalled before continuing, or you'll get an error in the next steps.
-Copy/paste the .apk file back into your AndroidSDK/tools folder.
-Open a command prompt, and again change directory ("cd") into your AndroidSDK/tools folder (see step 1 if you forgot how).
-Type: adb install name_of_apk_file.apk

Voila! You now have a modified and working (hopefully) widget. Keep in mind, if it doesn't work right away (ex: Vlingo's widget didn't work for me right away) a simple restart of the device should fix that. If it still won't work, then sorry.

You can see an example of what I did with the Vlingo(small) widget here, as well as the Pandora widget.
can you point me to the image files you edited?
been trying to edit my vlingo, i just want the text "Talk" only on the small 1x1 widget icon. with no background
but i dont know which of the files to edit
if you can send me your apk it would be appreciated
thanks
i also have a SGS
furstrated is offline  
Reply With Quote
Old September 23rd, 2010, 08:48 AM   #17 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by furstrated View Post
can you point me to the image files you edited?
been trying to edit my vlingo, i just want the text "Talk" only on the small 1x1 widget icon. with no background
but i dont know which of the files to edit
if you can send me your apk it would be appreciated
thanks
i also have a SGS
No can do on sending the apk, that would be against the forum rules. All you need to do is check out the drawable-hdpi folder for the images you are looking for, they're all in there. Vlingo uses multiple images for each button, so you'll need to clear out the background image (the same background image is used for all button backgrounds on each of their widgets, so save a backup copy) as well as change the microphone image to the text that you want. I believe the microphone image (the same one, that is) is used in the application as well, so you'd have some button in the app that says "Talk" also, instead of the standard icon.
howetechnical is offline  
Reply With Quote
Old September 23rd, 2010, 09:27 AM   #18 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by howetechnical View Post
No can do on sending the apk, that would be against the forum rules. All you need to do is check out the drawable-hdpi folder for the images you are looking for, they're all in there. Vlingo uses multiple images for each button, so you'll need to clear out the background image (the same background image is used for all button backgrounds on each of their widgets, so save a backup copy) as well as change the microphone image to the text that you want. I believe the microphone image (the same one, that is) is used in the application as well, so you'd have some button in the app that says "Talk" also, instead of the standard icon.
Thanks i figured as much on the apk thing after i posted
i managed to edit it and its working fine
but it dint come out the way i want it to
apparently, there is a size for the widget length and height and the button i made gets cropped
i ended up making all button backgrounds as transparent and using the 2x1 widget resized via launcher pro to display only the text, transparent background.
im trying to find the proper xml file to edit the widget size but im having no luck so far.
i open the xml files via word but the length width values are not showing
only shows length width height but no values
maybe i'm missing something there
thanks again
heres a screen shot btw-the upper left corner is the vlingo
i cant use the icon i made cos it gets cropped
so i defaulted to 2x1 vlingo with the text and no background since i made all backgrounds transparent
it just doesnt match up to the rest of the theme
furstrated is offline  
Last edited by furstrated; September 23rd, 2010 at 09:33 AM.
Reply With Quote
Old September 23rd, 2010, 09:44 AM   #19 (permalink)
Member
 
Join Date: Apr 2010
Posts: 166
 
Device(s):
Carrier: Not Provided

Thanks: 15
Thanked 0 Times in 0 Posts
Default

okay, I can't find the apk of the widget I want to modify.
When I go to data all that's in there is a titaniumBackup folder with nothing in there and a flixster folder
omgitswes is offline  
Reply With Quote
Old September 23rd, 2010, 11:05 AM   #20 (permalink)
Member
 
Join Date: Apr 2010
Posts: 166
 
Device(s):
Carrier: Not Provided

Thanks: 15
Thanked 0 Times in 0 Posts
Default

okay nvm I got that fixed.
Now I ran into another problem. It says error in opening zip file
when I run the sign.bat

My errors

Exception: error in opening zip file
at java.util.zip.Zipfile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java.320)
omgitswes is offline  
Last edited by omgitswes; September 23rd, 2010 at 12:38 PM.
Reply With Quote
sponsored links
Old September 23rd, 2010, 12:49 PM   #21 (permalink)
Member
 
Eusibius2's Avatar
 
Join Date: May 2010
Location: Chicago area
Posts: 158
 
Device(s): Moto Droid, HTC Incredible, Moto Razr MAXX.
Carrier: Not Provided

Thanks: 50
Thanked 13 Times in 12 Posts
Default

Quote:
Originally Posted by howetechnical View Post

The signature changes, as specified, to what's in the auto sign, which you are correct in thinking is pulled from the testkey files. The java application does all of this for you. I haven't analyzed the .jar file, so I couldn't say what it's doing in detail, but it does work (if it didn't, I would have opened the .jar up...no pun intended )
Hey - thanks for all the answers, they really helped. I'm still curious about this last point though. Couldn't this lead to a security flaw if we can now essentially re-sign a program (or fake sign a new one??) to do something malicious using another dev's key? Wouldn't this essentially fake the requested permissions the program wants the user to agree too?
Eusibius2 is offline  
Reply With Quote
Old September 23rd, 2010, 06:36 PM   #22 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by Eusibius2 View Post
Hey - thanks for all the answers, they really helped. I'm still curious about this last point though. Couldn't this lead to a security flaw if we can now essentially re-sign a program (or fake sign a new one??) to do something malicious using another dev's key? Wouldn't this essentially fake the requested permissions the program wants the user to agree too?
Yes, but to be honest, anybody who knows how to implement malicious syntax into a program will know how to fake the signature. There are a few auto-signers out there right now. As for the permissions, I don't believe they are stored in the signature files, but I may be wrong as I haven't analyzed it closely. I would presume that the application permissions would be stored in the application itself. What I do know about this particular auto signer is that it's clean, completely free of malicious code, and will not harm the applications it's used on or the devices. I'm a software developer, so I -have- looked for the usual signs of malicious intent as well as scanned it with not only desktop antivirus and antimalware apps (Nod32, Malwarebytes), but also with a couple android ones after re-installation of the modified apk.

This tutorial is simply for those who want to utilize the full versatility of their Android devices. It's not to give the tools needed to create malicious applications. Even though the auto sign will work for that purpose, it's only 1% of what's needed to do so, and anybody knowledgeable enough to write the other 99% does not need this auto signer to complete the job.

I'm getting the impression that you are not really interested in this tutorial itself, but rather in the possibilities and features of the auto sign java program (whether to cause problems here, or purely out of curiosity, I don't know). If this is the case, please request such information on the XDA thread where this tool was created, not here.
howetechnical is offline  
Last edited by howetechnical; September 23rd, 2010 at 06:41 PM.
Reply With Quote
Old September 23rd, 2010, 06:38 PM   #23 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by omgitswes View Post
okay nvm I got that fixed.
Now I ran into another problem. It says error in opening zip file
when I run the sign.bat

My errors

Exception: error in opening zip file
at java.util.zip.Zipfile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java.320)
Try installing the Java SDK (google it) if you don't have it already, that may help. Also, make sure you have only one apk file in the same directory as the sign.bat file, and ensure it's not a zip file but rather an apk.
howetechnical is offline  
Reply With Quote
Old September 23rd, 2010, 09:06 PM   #24 (permalink)
Member
 
Join Date: Apr 2010
Posts: 166
 
Device(s):
Carrier: Not Provided

Thanks: 15
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by howetechnical View Post
Try installing the Java SDK (google it) if you don't have it already, that may help. Also, make sure you have only one apk file in the same directory as the sign.bat file, and ensure it's not a zip file but rather an apk.
It was already installed. I just decided to reinstall it again, still same thing. And yeah there is only one apk file in the same directory.

This is so weird
omgitswes is offline  
Reply With Quote
Old September 23rd, 2010, 09:17 PM   #25 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by omgitswes View Post
It was already installed. I just decided to reinstall it again, still same thing. And yeah there is only one apk file in the same directory.

This is so weird
Well, it's having a problem opening the apk file to assign the signature to it. I would make sure it's not set as read only, and try running the sign.bat program as administrator if you're on Vista or 7.
howetechnical is offline  
Reply With Quote
Old September 23rd, 2010, 09:23 PM   #26 (permalink)
Member
 
Join Date: Apr 2010
Posts: 166
 
Device(s):
Carrier: Not Provided

Thanks: 15
Thanked 0 Times in 0 Posts
Default

run as admin did something. but now it says Unable to access signapk.jar

I'm looking right at it, so it is there
omgitswes is offline  
Reply With Quote
Old September 23rd, 2010, 10:18 PM   #27 (permalink)
Senior Member
 
Ngo93's Avatar
 
Join Date: Feb 2010
Posts: 588
 
Device(s):
Carrier: Not Provided

Thanks: 71
Thanked 40 Times in 39 Posts
Default

would you mind sharing that wallpaper please? =D
Ngo93 is offline  
Reply With Quote
Old September 24th, 2010, 12:07 AM   #28 (permalink)
Member
 
Join Date: Apr 2010
Posts: 166
 
Device(s):
Carrier: Not Provided

Thanks: 15
Thanked 0 Times in 0 Posts
Default

Finally got it!
It's because I would compress it as a rar instead of zip.....I knew it was something simple
omgitswes is offline  
Last edited by omgitswes; September 24th, 2010 at 07:46 AM.
Reply With Quote
Old September 27th, 2010, 01:32 PM   #29 (permalink)
Member
 
Eusibius2's Avatar
 
Join Date: May 2010
Location: Chicago area
Posts: 158
 
Device(s): Moto Droid, HTC Incredible, Moto Razr MAXX.
Carrier: Not Provided

Thanks: 50
Thanked 13 Times in 12 Posts
Default

Quote:
Originally Posted by howetechnical View Post
I'm getting the impression that you are not really interested in this tutorial itself, but rather in the possibilities and features of the auto sign java program (whether to cause problems here, or purely out of curiosity, I don't know). If this is the case, please request such information on the XDA thread where this tool was created, not here.
That's not it at all... relax. I've since used your technique and it works great. I've only got a curious mind, that's all. I'm not out to figure out how to spoof apps. Trust me, you're barking up the wrong tree for that one.

Thanks for all the info though...
Eusibius2 is offline  
Reply With Quote
Old September 28th, 2010, 09:06 AM   #30 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by Eusibius2 View Post
That's not it at all... relax. I've since used your technique and it works great. I've only got a curious mind, that's all. I'm not out to figure out how to spoof apps. Trust me, you're barking up the wrong tree for that one.

Thanks for all the info though...
I'm glad it's working for you and that you enjoy it
howetechnical is offline  
Reply With Quote
sponsored links
Old September 29th, 2010, 12:16 AM   #31 (permalink)
Member
 
Join Date: Mar 2010
Location: Georgia
Posts: 396
 
Device(s): HTC Droid Incredible
Carrier: Not Provided

Thanks: 17
Thanked 25 Times in 22 Posts
Default

I can't pull off of adb...it just shows me a list of all the ADB commands after i do: adb pull /data/app....etc.

EDIT: fixed the pull issue ( just re=installed android SDK.)

NOW I can't sign stuff...it's just not working. I have the apk in there ( it is THE ONLY .apk file in there..)
__________________
HTC Droid Incredible Rooted
B&N Nook Color Rooted
Follow my Twitter
nathan312 is offline  
Last edited by nathan312; September 29th, 2010 at 01:02 AM.
Reply With Quote
Old September 29th, 2010, 08:20 AM   #32 (permalink)
Member
Thread Author (OP)
 
howetechnical's Avatar
 
Join Date: Aug 2010
Location: San Diego, CA
Posts: 455
 
Device(s): Samsung Vibrant
Carrier: Not Provided

Thanks: 29
Thanked 90 Times in 50 Posts
howetechnical
Default

Quote:
Originally Posted by nathan312 View Post
I can't pull off of adb...it just shows me a list of all the ADB commands after i do: adb pull /data/app....etc.

EDIT: fixed the pull issue ( just re=installed android SDK.)

NOW I can't sign stuff...it's just not working. I have the apk in there ( it is THE ONLY .apk file in there..)
What directory is your apk in? Remember, it shouldn't be in tools, it should be in the same directory as your sign.bat file.

When you write "can't sign stuff", is it giving you an error message? Or when you re-install it does it give you an error? Did you remember to delete the META-INF folder before zipping it all back up, renaming it to apk, then signing it?
howetechnical is offline  
Reply With Quote
The Following User Says Thank You to howetechnical For This Useful Post:
hkb (October 26th, 2011)
Old September 29th, 2010, 02:55 PM   #33 (permalink)
Member
 
Join Date: Mar 2010
Location: Georgia
Posts: 396
 
Device(s): HTC Droid Incredible
Carrier: Not Provided

Thanks: 17
Thanked 25 Times in 22 Posts
Default

Quote:
Originally Posted by howetechnical View Post
What directory is your apk in? Remember, it shouldn't be in tools, it should be in the same directory as your sign.bat file.

When you write "can't sign stuff", is it giving you an error message? Or when you re-install it does it give you an error? Did you remember to delete the META-INF folder before zipping it all back up, renaming it to apk, then signing it?
The apk is inside the Autosign folder (unzipped/extracted). It's the ONLY apk in the folder.

There is no error message that I see, it just doesn't put a signed copy into the folder. I deleted the META-INF folder before zipping also. I renamed back to .apk...
nathan312 is offline  
Reply With Quote
Old September 29th, 2010, 04:13 PM   #34 (permalink)
Member
 
Join Date: Mar 2010
Location: Georgia
Posts: 396
 
Device(s): HTC Droid Incredible
Carrier: Not Provided

Thanks: 17
Thanked 25 Times in 22 Posts
Default

got it all fixed now...thanks for everything, but I'm using that apkmanager tool from XDA...quite nice!

Note, if anyone has a problem with this...make sure that the android SDK is in your PATH...
nathan312 is offline  
Last edited by nathan312; September 29th, 2010 at 05:10 PM.
Reply With Quote
Old December 5th, 2010, 12:23 AM   #35 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

it works well

thanks so much
ODD BOY is offline  
Reply With Quote
Old April 24th, 2011, 07:38 PM   #36 (permalink)
New Member
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by omgitswes View Post
okay nvm I got that fixed.
Now I ran into another problem. It says error in opening zip file
when I run the sign.bat

My errors

Exception: error in opening zip file
at java.util.zip.Zipfile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java.320)
I was coming across the same error (Windows 7 Professional). It's not the OS, make sure you change the file extension from "ZIP" to "APK" before copying to the Auto-Sign folder. That fixed my issues.
cmonsterf50 is offline  
Reply With Quote
Old September 10th, 2011, 02:50 PM   #37 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you so much for this article! I have read many explanations about editing themes in android, but this one I find most clearly written and easy to follow step-by-step! Thank you, thank you very much!
XeLi is offline  
Reply With Quote
Old October 26th, 2011, 04:10 AM   #38 (permalink)
hkb
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for this, i modded the Google music apk to have a Black bg instead of an ugly blueish.
Quote:
Deny all permisions just to be safe!!

Attached Files
File Type: apk com.google.android.music.bbg.apk (2.30 MB, 5 views)
hkb is offline  
Last edited by hkb; October 26th, 2011 at 04:20 AM. Reason: apk and screens added
Reply With Quote
Old October 27th, 2011, 07:16 AM   #39 (permalink)
Member
 
Join Date: Jan 2010
Posts: 251
 
Device(s):
Carrier: Not Provided

Thanks: 21
Thanked 8 Times in 7 Posts
Default

One widget I really want is a power control one that is vertical.

Would really make my life easier!

Weather one would be useful too.
choccy is offline  
Reply With Quote
Old October 28th, 2011, 05:04 AM   #40 (permalink)
Senior Member
 
gwcaton's Avatar
 
Join Date: Apr 2010
Posts: 825
 
Device(s): Samsung Galaxy SIII
Carrier: Not Provided

Thanks: 140
Thanked 250 Times in 220 Posts
Default

if you are looking for transparent versions of your fave widgets try [UPDATE 10/27/11 | THEME l MOD ] Transparent Widget Skins - xda-developers
gwcaton is offline  
Reply With Quote
sponsored links
Old October 28th, 2011, 05:08 AM   #41 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Excellent tutorial! Good work
ardchoille is offline  
Reply With Quote
Old November 18th, 2011, 02:42 AM   #42 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm still getting this error message, even after reading everyone elses problems

Exception: error in opening zip file
at java.util.zip.Zipfile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java.320)

JavaDK is installed, the META-INF is deleted and the zipped folder is renamed with .apk

is it really just as simple as renaming with .apk or is there a step I'm missing cause that's all you did in your tutorial
RandomTaskMan is offline  
Reply With Quote
Old December 15th, 2011, 05:39 AM   #43 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the post! Worked easily and perfectly on my first try!
Asitaka is offline  
Reply With Quote
Old January 5th, 2012, 09:44 PM   #44 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default androidmanifest.xml issue

[Removed]
conundrum768 is offline  
Last edited by conundrum768; January 5th, 2012 at 09:46 PM.
Reply With Quote
Old March 19th, 2013, 11:53 PM   #45 (permalink)
New Member
 
Join Date: Mar 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up Two Questions

First, awesome tutorial! Thanks a TON for this, I'll post pictures as soon as I'm done editing = )

When the application updates, will it remove any changes I've made? If so, can I simply save the image files to my hard drive and replace them, or would I need to edit the ones that are included in the update each time?

Is it possible to share the new images with others like themes, or would they have to modify/replace the image files specifically?

Thanks again!
faile486 is offline  
Reply With Quote
Old September 3rd, 2013, 02:43 PM   #46 (permalink)
New Member
 
Join Date: Sep 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is it essential to use the SDK push? I've been messing with a widget. But I don't have my cord handy - darn non standard plugs! - so I've just been emailing it. When I install i get the same old icon! Driving me nuts!
nijohnson is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Themes
Thread Tools

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


LinkBacks (?)
LinkBack to this Thread: http://androidforums.com/android-themes/178363-how-modify-widget-backgrounds-images-your-liking.html
Posted By For Type Date
Customize The Look of Any Android Widget Using Just a Photo Editor This thread Refback March 26th, 2012 05:17 AM
[ROM] Android Revolution HD&#8482; 6.0.2 | ICS & Wi-Fi calling | High Quality & Performance - Page 4323 - xda-developers This thread Refback January 9th, 2012 09:09 AM


All times are GMT -5. The time now is 11:30 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.