Change Icon (signing .apk w/ubuntu) - Android Themes

Ok guys please help me. I am fairly new to linux so all of the commands and script dont click with me as it will in a few more months so please be thorough if you can.
I have been searching and trying different things for almost 3 days now and Im just going to ask for help before giving up.
For now im trying to get familiar with further hacking for modifying apk's and roms but I am having a terrible time getting the correct information on how to resign an apk to make it installable on an android phone.
In order to keep this simple lets assume this is what Im trying to do.
(im using ubuntu, and every tuturial I see is for win or mac. I have seen 1 (http://forum.xda-developers.com/showthread.php?p=3271434) for ubuntu but it seems that it either does not apply to me or is simply over my head at the time with my limited ubuntu knowlege).
Im wanting to take avp.apk and change the icon. I replace the ya.png with a properly sized png named ya.png. I then have tried both ways of either deleting the meta-inf file (do I need to do this?)
And then after that I am stuck. I have tried some different autosign and testsign and different tools but Im obvousially typing something wrong or just not getting something right because it simply does not work with me.
Can someone please help me or tell you what to do or point me to a youtube vid? I keep coming up with the same threads and videos at this point and none of them seem to apply to me (for win/mac).
It seems like what Im trying to do should be simple enough. So please show me what Im being dumb about.

Related

Need mac adb help

I am trying to install the new Hero OS, and can gain adb mount, but when the file I want to upload is on my desktop, adb wont see it. I have also tried adding it to the tools folder of the sdk itself, and it still doesnt see it.
Can anyone help me out a bit? I have even tried writing the full path to the file, but i dont think i have that correct either. So far i have tried these:
adb push app_s /system/sd/app_s
"cannot stat "app_s": No such file or directory"
I also have tried various forms of this, but still get the above responce.
adb push C:\users\username\app_s /system/sd/app_s
Is this a problem with not see ing the file, or am i maybe trying to push it to a non-existant directory on my sd. I dunno, i have searched on here for anything adb, but when you search, nothing comes up.
I have been listening to the stupid htc jingle for over an hour simply trying to figure out how to push a file, so please help me keep my sanity..
you did install the SDK right?
http://developer.android.com/sdk/1.5_r2/index.html
if so, you need to add it to your path or give the full path to where you installed it every time you execute the command
you're even not very smart, or completely lost.
lolz, i'm j/k
i'm a mac user too, pm me you ichat i'll help you out.
i looked at my PATH,
(/Users/tslate/Desktop/fastboot:Users/tslate/Desktop/SDK/tools:
/Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools/adb:
tslate/Desktop/SDK/tools/adb:/tslate/Desktop/SDK/tools/adb:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin)
and added the folder to the tools folder and the fastboot folder, but this still doesnt work for me. Still getting Cannot stat 'app_s': No such file or directory exists.
Any ideas?
need mac adb help
I dont understand but my thread was moved to general for some reason so here it is again.
I cannot make adb find local files to push to my g1. I can and do have adb mount though. My PATH is:
/Users/tslate/Desktop/fastboot:Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools/adb:tslate/Desktop/SDK/tools/adb:/tslate/Desktop/SDK/tools/adb:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I have tried adding the local file to both the tools folder of the sdk itself, and to the "fastboot" folder mentioned in the PATH, but i get the following error:
cannot stat 'localfile': No such file or directory
Anyone have an idea?
It was moved to general, because it is a general android (poorly worded) question.
Please don't make duplicate threads.
I'm sorry, but I guess I didnt really know there was any other way to ask. I and prob many others here are trying to learn what you guys already seem to know. If I'm going to be called stupid, I would at least like to know the proper procedure is for asking.
I didn't see anyone call you stupid, except one person who said "you're even not very smart, or completely lost." but was just kidding.
neoobs said:
I didn't see anyone call you stupid, except one person who said "you're even not very smart, or completely lost." but was just kidding.
Click to expand...
Click to collapse
Ok, so not stupid, but unable to write a question correctly. So what's the correct way for me to ask this? Im not trying to be a smartass, but when things like this happen, and people don't understand what they did to receive such treatment, it reflects poorly on the xda dev community, and makes it hard to appease the powers that be and get my question answered. So how can i reword the aforementioned poorly written question differently?
For that I point you to some threads, which are all stickied by the way.
http://forum.xda-developers.com/showthread.php?t=479704
http://forum.xda-developers.com/showthread.php?t=519523
http://forum.xda-developers.com/showthread.php?t=480521
how did you setup your variable?
i can adb just fine on my windows computer. i have no idea how to set up the adb on my mac. how do i set the variable?
neoobs said:
For that I point you to some threads, which are all stickied by the way.
http://forum.xda-developers.com/showthread.php?t=479704
http://forum.xda-developers.com/showthread.php?t=519523
http://forum.xda-developers.com/showthread.php?t=480521
Click to expand...
Click to collapse
I actually did do a search through both those adb threads, as well as a search through the general developer forum, which returns 0 results for the term "adb". My question isnt answered in either of those threads which are mostly windows based from what i have seen.
Since no one can really give me an answer on how to make the question better or more to the point so I dont get locked/moved/etc. I'm going to assume there isnt one.
Thanks to those that actually tried to help.
Thread locked. Don't create another one until you learn to read.

Android Market and AOSP

Hello, all,
I have recently taken an interest in developing Android 2.1 ROMs. So far, my work on 2.1 has been going well, except I cannot seem to get Android Market to install. I have tried re-signing the apk file, but the result is the same.
Can someone help me out on this? This has probably been answered before, but I cannot find anything truly relevant to this question. Any help is greatly appreciated.
someone needs to close this thread before this flame war gets any bigger
tekgek said:
Hello, all,
I have recently taken an interest in developing Android 2.1 ROMs. So far, my work on 2.1 has been going well, except I cannot seem to get Android Market to install. I have tried re-signing the apk file, but the result is the same.
Can someone help me out on this? This has probably been answered before, but I cannot find anything truly relevant to this question. Any help is greatly appreciated.
Click to expand...
Click to collapse
Have you tried just pushing with adb? By development do you mean cooking or compiling your own?
Please be respectful of others ...
I taken the time to cleanup this thread and move to Q&A where it should have been. If someone has an answer post a reply; plans to respond using trolling tactics are ill-advised.
If the thread goes OT again, a moderator will be forced to close it and likely remove it ... would be nice if it didn't have to come to that.
Regards,
I am building this directly from AOSP, from scratch. Thanks to the mod for cleaning up the flame war, by the way
Oh, from AOSP. How are you adding them in? AOSP does NOT include the Google Apps by default, I'm not expert in ROM building but I am sure there are some .libs needed (I know GTalk requires some) and possibly need the other Google Apps as well.
And this is why I love this place . What you said about libraries and what carz12 said about adb helped a lot.
Here is what I knew:
AOSP does not include the Google Apps, including the market. The market is somewhat difficult to install to an aosp build, and I think needs to be resigned with another RSA key.
What the forum helped me figure out:
The advice about trying the adb shell gave me some help. When I tried to push the market app to the phone, I got this:
./adb install alpha-1-signed/system/app/Vending.apk
898 KB/s (1274068 bytes in 1.384s)
pkg: /data/local/tmp/Vending.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Click to expand...
Click to collapse
This tells me that I am missing some libraries. But I'm also missing some other stuff. I'll recompile from source, install the libraries, and report back after I flash this to the phone. Until then, if anyone thinks any of my conclusions are wrong, please tell me so I don't waste my time, or yours.
EDIT: For all of you who are currently viewing this thread, how many of you would like a very fast (possibly faster than OpenEclair), stable, no-frills Android 2.1 ROM? I would like your opinions, because this will give me a good idea of how many people would be interested in this kind of thing.
Tekgek
tekgek said:
And this is why I love this place . What you said about libraries and what carz12 said about adb helped a lot.
Here is what I knew:
AOSP does not include the Google Apps, including the market. The market is somewhat difficult to install to an aosp build, and I think needs to be resigned with another RSA key.
What the forum helped me figure out:
The advice about trying the adb shell gave me some help. When I tried to push the market app to the phone, I got this:
This tells me that I am missing some libraries. But I'm also missing some other stuff. I'll recompile from source, install the libraries, and report back after I flash this to the phone. Until then, if anyone thinks any of my conclusions are wrong, please tell me so I don't waste my time, or yours.
Tekgek
Click to expand...
Click to collapse
It's good to know that you are missing libraries
Your best bet is to compile your rom, and then compare it to a rom that already has the google apps included (WesGarner build, CSDI, etc...) and see what libs are missing from yours, add them in and then try again
I was having the same problem too. I am gonna try this too.
And ya besides the libraries, the aosp build doesn't include some of the framework files and permission files too, like the framework files relating to gtalk and google maps should be added as well to the system/framework folder and the permission files in system/etc/permissions relating to gtalk and maps should be added as well.
I tried with all the missing libraries but with no luck...there must be some other files tooo. Gonna continue on Thursday.
Did you try resigning the apk file?
Not really. I am gonna try that too. Got coll tomorrow so may be later tomorrow. By the way did you got the video working?? I tried pushing some libraries from supereclair. But not workin till date. it works in his build though.
College is more important than android, imho. whenever you get the chance .
I hope to get video working in the future, but not right now. My primary computer (the core i7 rig I use for all my computer work) needed an OS reinstall, so I have made no progress since my post on ADB. My fist priority is to get the basics working, then I'll work on the other issues, like video playback and the camera. However, as of right now, I am re-downloading the source, and hopefully building it in the very near future, expect an update tomorrow, and maybe even a finished product (keep in mind that this is ALPHA, so don't expect anything wonderful).
Alright, I got it... mostly. The market appears installed, now all I need to do is make it not crash. Whenever I select the market app, I get a white screen, and then the home screen. I'm also getting a force close on the gapps process. What am I doing wrong
How did you got market show up???
The gapps framework file is also missin in the /system/framework folder in AOSP build.
Did you tried pushing the missing file?
I downloaded openeclair, pulled all the apps that had the word google in them, resigned the the market with another key, integrated them into a rom package, flashed, and voila, the market appears. I also added in a couple framework files, but I think I'm still missing something. Do you know what the name of the file is? I'm not sure what or where it is.
tekgek said:
I downloaded openeclair, pulled all the apps that had the word google in them, resigned the the market with another key, integrated them into a rom package, flashed, and voila, the market appears. I also added in a couple framework files, but I think I'm still missing something. Do you know what the name of the file is? I'm not sure what or where it is.
Click to expand...
Click to collapse
ya its com.google.android.gtalkservice.jar
okay, added it in, still getting a force close on the gapps. Where to go now???
As i mentioned earlier there are some files missing in system/etc/permissions. Did u tried pushing those files.
All permission files are in place, all gapps are resigned. The framework is in place. The setup wizard i also resigned, which now crashes. If anyone has any suggestions please post them. I am at my wit's end here.

[q] i'm so confused i could scream!

Okay, I'm looking for a way to have all of my homescreens looking similar. I have been looking for some dark, smoky widgets and I found them here:
http://forum.xda-developers.com/showthread.php?t=731625
But, I have no idea how to install them.
-I tried using Astro. That didn't work.
-I tried an installer program. That didn't work.
-I have no idea what it means to push anything.
-Does pushing require a rooted phone, because I attempted to root, and failed.
Maybe I just suck at the android platform. Or maybe I'm just overthinking everything. Please, someone explain it to me like a five year old, because I really want to be able to customize my phone like I do my computer, but it's all so new to me.
Also, I have a MyTouch 3G Slide, if that means anything.
yo.... first.. i was in your spot once.... brand new EVO user, from a dumb reclaim~....biggest advice i "read" was to read~.......all the answers ar at your fingertips!!...
get root~... z4root.... ..do a seach.....
second, astro will only install apk files...
installer program?
push is to use ADB and do shell commands... thats how i rooted... sucked but i made it through...
pushing requires root....
its about learning... .your in XDA, so your first step was correct..... good luck man!..

.9.png's editing on Linux?

Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I use draw9patch without any problems. Have been for years. Make sure that the sdk tools is in your path.
Im on ubuntu 10.10 using windows xp ob virtualbox. I tried and tried to get the gothemesfactory to work, but to no avail, so i broke down and set up a vbox to make ot work.
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I am not familiar with the D9PC program, but have you tried to run it with WINE?
Ok, Thnx guys! (i love XDA)
Let me respond to u all at once. Ok, so sorry I wasn't as informative as possible.
First, I'm "'cd'-ing" to the draw9patch's dir, but I've also tried just moving the files over to my platform-tools folder.... I still get the same error: "draw9patch.jar cannot be found". Finally, even tho 'cd'ing to 'tools' folder should yeild the same result, I added it (tools) to my path and I still get the error message. Like I said, Google seems to agree that the issue is quite common .....who knows?
As for a virtual box? I've heard of it.... Just not sure Wut it is. Is that like booting an OS ROM 'flash'?
And as for "Wine", I just googled it and I'm thoroughly excited! That sounds perfect! I'd also heard of that but also wasn't sure what it was ...wait, is that a virtual box? O see I need to create a "mock" C drive to install to. Wut version of Wine should I use? On-line, its suggested to use an older version but the advice seems a little dated. I'm running 11.04 "Natty".
Hey Thnx guys! I really appreciate all the help.

How to Recompile APKs the right way?

Dear forum readers, geeks & developers,
I have been trying to seek for that one thread that could solve my issue which the title said it all. I have followed many guides & use multiple different tools, both on device & PC but to no success. Most of the threads would just say; "recompile after finished editing whatever you want". But that's definitely not the proper way. Some guides there were hints of keeping/replacing the Manifest.xml & META-INF folder, yes I kept it somewhere else & replace it just before I want to recompile, no it didn't work too.
One of the guides said decompile the APK, copy the *_src folder somewhere else & recompile it back right away, edit the copied _src folder & edit whatever you want. After editing, open/view the recompiled APK as zip & drag/drop the files you edited, yes it was recompiled successfully but when I apply it to the device it FC right away & were unable to boot up although I wiped Dalvik and Art Cache. One more example was, instead of replacing the edited files, this guide replaced the META-INF & Manifest.xml. The problem was I can't even get it to recompile successfully.
Something could be really wrong with me, my PC or my device, if only some generous kind soul would spare some knowledge to help this poor soul I would appreciate it very much, thank you for whoever spared the time for reading this, I hope my noobness made your day.
Cheers all,
- Merry Xmas &
A Happy New Year
DaRdamnDoG said:
Dear forum readers, geeks & developers,
I have been trying to seek for that one thread that could solve my issue which the title said it all. I have followed many guides & use multiple different tools, both on device & PC but to no success. Most of the threads would just say; "recompile after finished editing whatever you want". But that's definitely not the proper way. Some guides there were hints of keeping/replacing the Manifest.xml & META-INF folder, yes I kept it somewhere else & replace it just before I want to recompile, no it didn't work too.
One of the guides said decompile the APK, copy the *_src folder somewhere else & recompile it back right away, edit the copied _src folder & edit whatever you want. After editing, open/view the recompiled APK as zip & drag/drop the files you edited, yes it was recompiled successfully but when I apply it to the device it FC right away & were unable to boot up although I wiped Dalvik and Art Cache. One more example was, instead of replacing the edited files, this guide replaced the META-INF & Manifest.xml. The problem was I can't even get it to recompile successfully.
Something could be really wrong with me, my PC or my device, if only some generous kind soul would spare some knowledge to help this poor soul I would appreciate it very much, thank you for whoever spared the time for reading this, I hope my noobness made your day.
Cheers all,
- Merry Xmas &
A Happy New Year
Click to expand...
Click to collapse
Are you still having issues with this? If so can I suggest using my decompiling tool Tickle My Android? The link's in my signature.
Yes, I'm advertising my work but I also think it could help so..
Ticklefish said:
Are you still having issues with this? If so can I suggest using my decompiling tool Tickle My Android? The link's in my signature.
Yes, I'm advertising my work but I also think it could help so..
Click to expand...
Click to collapse
Well, you're back in business! I was letting you finished off your "Xmas & new year's off" with your 3 sons. I was trying to venture into Linux, hoping it would be more convenient to get tools & because it's free! However, I was wrong. 2 weeks later I am still installing/testing out different distributions. I have kinda abandoned my device most of the time now, unless you fix Toad & deodex my rom i wont be motivated to do anything
P/S: Im not even bothered of you advertising. Google is the main advertiser here, the main mastermind of Android.
The guides & tutorials needs a spring clean too.
DaRdamnDoG said:
Well, you're back in business! I was letting you finished off your "Xmas & new year's off" with your 3 sons. I was trying to venture into Linux, hoping it would be more convenient to get tools & because it's free! However, I was wrong. 2 weeks later I am still installing/testing out different distributions. I have kinda abandoned my device most of the time now, unless you fix Toad & deodex my rom i wont be motivated to do anything
P/S: Im not even bothered of you advertising. Google is the main advertiser here, the main mastermind of Android.
The guides & tutorials needs a spring clean too.
Click to expand...
Click to collapse
Things are still really busy at work so I'm not back to normal right now. But I'm trying to get as much done here as I can.
I don't know enough about Linux really - I just don't have the time or a free PC to play with so I can work it out. Which is a shame as it'd be great for modifying Android.
I did reply to your post on the TOAD thread though. You said about moving apps away and I asked for more clarity about what you were moving and how.

Categories

Resources