Launcher.apk not being installed in He-aero theme - G1 Q&A, Help & Troubleshooting

Can someone help me figure out why the Launcher.apk does not get installed to the phone when applying the zip? Everything else seems to get installed fine.
http://forum.xda-developers.com/showthread.php?t=538762
FYI - It installs fine on my G1, but getting reports from some users that the Launcher.apk is not changing for them.

Its probably the user
I'ma dl and flash. and edit this post with my findings
EDIT: no idea why but it did not install on mine either
only thing i see in the logcat regarding launcher (which is probably a bad thing)
11-10 13:44:58.401: WARN/WindowManager(142): Force clearing freeze: AppWindowToken{439374a0 token=HistoryRecord{438d2338 com.android.launcher/.Launcher}}
Will investigate more and see what I can do. I took a quick look at the scripts but they seem fine.

Ok so something is messing with the launcher because the stock launcher doesnt have cyans settings (they only have 4 icons across)
pushing the launcher.apk works fine
Also, its not just launcher.apk
I dont have the themed power bar or google search bar. powerbar is in settings.apk
EDIT: None of the system apk's installed
everything is stock with the exception of framework-res.apk
there is something wrong with the install script
EDIT2: changing install script to copy_dir PACKAGE:app SYSTEM:app
EDIT3: worked on replacing launcher and dialer...but the search and power widget are still unthemed. they dont appear to be themed in the apks however
so just go to META-INF>com>google>android and open update-script in notepad++
and change the last line to
copy_dir PACKAGE:app SYSTEM:app

wow...thanks for the good info...what I plan on trying next is just taking someone else theme and using theirs as a template(since there is no generic template). The only issue I'm seeing is that the directory structures are different in a lot of different themes. So I don't really know which one to use.

Well its very easy to edit that script so I can help you out with it if you like.
basically
copy_dir PACKAGE:app SYSTEM:app
tells the recovery to open the package (the update.zip) and copy everything in the app folder in the .zip to the SYSTEM partition, app folder
You can just mess around with that and get it to work with whatever structure the base template has. If you need anymore help, just pm me

Related

Need to get back 4x4 app drawer

i am running cyanogen 3.6.8.1 and i have the 5 app drawer how do i get it back to normal is this possible through terminal
not that i have tried this but from what i have seen this might work. take a rom that has 4x4 app drawer open it up. go to framework-res.apk in system/framework. in framework-res.apk go to res then layout-land and layout-port and take the icon_menu_layout.xml file from that rom and put into the corresponding place in the cm rom, resign it, and flash. now i have no clue if this would work, but it is how i could see it working.
edit: sorry been dealing with too many stubborn .9.png's tonight. tried what i said and it booted but i have no idea what i changed if it changed anything. try pushing a launcher.apk from a version when he still had the 4x4 layout. that should fix it. really don't know what i was thinking. i do not know if you can this via terminal but look at the thread for the adv. launcher and if there are directions for installing it via terminal there then the same should apply to the launcher.apk with 4x4 layout

Resigning apks

Usually when I theme an app I move it from /data/app to /system/app and then edit the files and do an update.zip to install the themed application. However, the problem with this is that I am not informed of market updates after moving the app to /system/app. Now I know that some people just edit the apk itself and resign it and that allows it to stay in /data/app.
I tried doing this, edited an apk, resigned it and that part went well. However, then I'm confused. Do I uninstall the app that's sitting in /data/app? Do I just cut and paste the new apk into /data/app? Or do I just install the new apk using Astro or something and let it overwrite the existing one.
I tried all three and it doesn't seem to work for me. It appears like everything went ok and it tells me application installed but none of the edits I make stick. Further, I noticed that in /data/app all the apks are named com.something.something.apk, whereas if you download an edited APK from some website it's usually named Facebook.apk, or Pandora.apk, etc.
So how the heck do I do this? I know the resigning is working because I edited the "Pandora.apk" that I downloaded from another source and resigned it, but when I try to pull from my phone I get the error that it either didn't install, or it does install but no changes happen.
How do you get com.something.something.apk to become Pandora.apk or Facebook.apk and then install it directly without having to do an update.zip??
anyone have a clue?
somebody anybody haha...why do my apps disappear from the app drawer after editing the apk in /data/app??
Dude i feel your pain, i've been in the same position.
Check this out it might help:
What are you editing in the apk?
http://forum.xda-developers.com/showpost.php?p=6479689&postcount=1
If your changing the name then the update can't find the apk, you cant move house but keep the same adress, you wont get your mail!!
Also if your wanting to update the edited apk, it will be overwritten by the updated version so your back to square one.
Hope this helps.
Search for apk tool, it will do what you want.

[GUIDE] How to make mymode themes

Well I haven't had much time lately to make themes but I figured i got enough time to explain how. This is how i do it in windows 7.
1) First thing i assume that you already have androidsdk on the root of your C drive. Lets go ahead and add it to your system path. If it's not called androidsdk go ahead and change it to that. Now open up your startmenu, right click computer, click properties, then click advanced system settings, in the advance system settings select environment variables. In the second box down look for path select it and choose edit. copy and paste this
Code:
;C:\androidsdk\tools
in there. Click okay.
2) download the jre and jdk from here and install them. Now you need to add them to your system path so copy paste this
Code:
;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Java\jdk1.6.0_20\bin
to your system path just like you did in the first step.
3) Download apk manager from here. Now run it and when it says clean out all current projects click yes. Now thats ready to go.
4) Download an image editing program. I use gimp. Also if you don't have it 7-zip
your all set to go now so lets start over with the numbers
1) choose a mymode apk and extract it with 7-zip. Open up the res folder select a png that you want to change and change it with the image editor you chose.
2) when you've changed the images you want open up the original apk as an archive with 7zip. Then place the res folder of the modified unzipped apk into the archive and close the archive.
3) Now open up apk manager and place the mymode apk into the place here for signing folder click script batch choose no then type 15.
4) Now put the newly signed apk into your androidsdk/tools folder and close apk manager.
5) open command prompt and type this
Code:
cd\
cd androidsdk/tools
adb install whatever.apk
I'll update this with pics a more thorough guide.
Thanks to everyone that made this easy
reserved for themes to come
Thanks been waiting for a thread like this.
thanks, if i ever get any free-time between jobs and kid and fiancee i will look into this a little more
This is an awesome guide! I messed around with theming mytouch/g1 back when I had one.. so this will be great to make some themes for the slide..
One question though.. let's say you pull the nest theme.. theme it and re install it.. will it just override the nest theme or in the theme listing will it appear as a new theme and still allow you to have the original theme?
Sent from my T-Mobile myTouch 3G Slide using XDA App
ryanolson7 said:
One question though.. let's say you pull the nest theme.. theme it and re install it.. will it just override the nest theme or in the theme listing will it appear as a new theme and still allow you to have the original theme?
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
The nest theme is in the framework, its not an .apk like the rest, its built into the system. The rest of the mymodes themes are .apks and if you edit those they will override the stock "nest" theme. The only way it will show up different in the theme chooser is if you edit the preview snapshot to be a preview of your theme. If you wanna keep the original theme, the nest theme is it and you should edit a different theme .apk...
-BMFC
Sent from my ROOTED MyTouch3G Slide
Okay so I got the next three days off and I already got two mymode themes pretty much done well their done but I just learned of a way to change the name so they are there own standalone apk instead of using another apk name. I've been using puppypride (which by the way isn't puppies those are full grown dogs) and switching out the pngs and you couldn't have the regular puppypride now you can have both
hope you don't mind but I did a mod of your themes and took out the bubbles since some people always create threads about it
Help with following guide
I am a newb at this so please don't attack me if I am doing something wrong. I have been struggling with following the guide posted to make mymode themes. I have successfully got up to the step of signing the apk file. I modified the files in the free_kick.apk. When I try to use APK Manager 4.8 and using the directions given the file just gets erased and nothing happens. My log file just shows errors. Any help with a more detailed directions one what to do in APK manager as I am trying different things and not getting anywhere. I use the option 15 like told in the guide. I can send my modified apk file to anyone if they can get this to work and get it installed that would be appreciated so much. I hope I can figure this out my own but thought I would try get help from the forums. Thanks in advance.
impimms said:
I am a newb at this so please don't attack me if I am doing something wrong. I have been struggling with following the guide posted to make mymode themes. I have successfully got up to the step of signing the apk file. I modified the files in the free_kick.apk. When I try to use APK Manager 4.8 and using the directions given the file just gets erased and nothing happens. My log file just shows errors. Any help with a more detailed directions one what to do in APK manager as I am trying different things and not getting anywhere. I use the option 15 like told in the guide. I can send my modified apk file to anyone if they can get this to work and get it installed that would be appreciated so much. I hope I can figure this out my own but thought I would try get help from the forums. Thanks in advance.
Click to expand...
Click to collapse
Actually the guide needs to be fixed a little because i'm guessing your getting compiling errors when using apk manager? But the best way to do this is to open up the mymode theme (using 7zip) as an archive delete meta-inf folder then replace the pngs with ones of your choice as long as they are the same scale. Then resign. and install
totally lost
I've followed these directions to a T and when it comes to using the apk manager i am getting nothing, please help
You guys that are having trouble with apk manager...its honestly not necessary to use Apk Manager for this. Mymodes themes are system .apks and shouldn't be re-signed. What you need to do is forget about apk manager (for now) and drop the UNsigned .apk into the ROM update you are using, and resign the whole ROM using the autosign tool created by jesusfreke. Or just adbpush the .apk. but don't resign the .apk.
Here's the link for the autosign tool to sign ROM updates. its in the THIRD POST and its auto-sign .zip, NOT the signing.zip in the first post. you can put it anywhere you want and you just drop (a copy of) your ROM update in the autosign folder, rename it update.zip, then run the sign.bat to sign. it will create another file, update-signed.zip. you shouldnt need to wipe when flashing the same ROM over itself, but i cant guarantee this is true for all ROMs.
you can also make an update that will only flash the .apk to /system/app, and nothing else will be changed. basically just make a copy of the update for the ROM youre using, then delete everything but the /system directory from the zip. then go into that /system directory and delete everything but the /app directory, then go into it and delete all the .apks and odex file or whatevers in there. ALL OF IT. when you are finished you should have an update with nothing in it but a /system/app directory. you put your modded .apk in there in /system/app, and thats it for that.
then you must edit the update script and remove MOST of its contents so that it only does what you want it to. THIS IS IMPORTANT! Go here to learn how to create an update script. what youll need is way simpler than the examples, youll want it to look basically like this...
Code:
assert compatible_with("0.2") == "true"
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
this update script will copy ANYTHING in the /system directory to /system on your device, regardless of subdirectories. that means anything in /system will go in /system, anything in /system/app will go to /system/app, etc. but since you only have one .apk in there it wont mess with anything but what you put in there. this way, you have a NOWIPE update for...well, whatever you want to put in it.
so you just drop the new shortened update-script in /META-INF/com/google/android/
and then use the autosign tool to resign your new update then flash away! This also takes less time cus its only flashing one file instead of flashing a whole ROM just to replace that one file...
hope this helps...
-BMFC
Sent from my T-Mobile myTouch 3G Slide using XDA App
So you cannot do this on t-mobile's rom which is 2.1 right now? I'm leery of rooting in case they ever release froyo
Tbrewer80 said:
So you cannot do this on t-mobile's rom which is 2.1 right now? I'm leery of rooting in case they ever release froyo
Click to expand...
Click to collapse
I'm having issues with this as well... After I do the whole signing apk thing, it installs fine, but when I go to MyModes, the preview is black and when I select it, the MyModes app force closes. I don't get it.

Weird issues with LauncherPro when using modified framework-res.apk

So I applied a metamorph for the Desire Black Bar on my framework-res.apk, which worked fine.
However, I tried changing the icons to something a little different by opening the apk in winrar (after pulling it via adb), navigating to drawable-hdpi, and changing a few status bar icons (no compression, I know). And then I pushed the file back.
After adb reboot, the LauncherPro app FCs constantly and keeps doing it until I remove it from focus by opening the task manager or something. Even if I push back the original file I pulled, it still FCs.
Anyone know what to do?
Soooooo...anyone? My phone's unusable until I get this fixed.
I've tried doing the same once, and I couldn't get the framework-res.apk to work.
The only thing that helped was reinstalling the ROM, installing Metamorph, modifying a Metamorph theme and using it to insert the theme to framework-res.apk.
I didn't quite dig into it, since I was in a hurry.

editing and replacing Phone.apk

I am trying to edit the icon for the phone.apk to match a theme i'm working with. When I go in and change the icon file in the .apk and try to overwrite it on my phone it either causes a constant FC or the phone app disappears and I cant use it at all. I have tried using a file explorer to do the swap and I have tried editing the phone.apk and putting it into the theme before I flash it. If I put it into the theme before flashing there are no FC's but the icon stays stock. Can someone point me in the right direction?
P.S. I have done this with many other apps such as email.apk and mms.apk and they work fine.
DialerTabActivity.apk not Phone.apk
Sent from my phone
Just tried that and it didn't change anything. Performed a reboot after switching the files.
/res/drawable-hdpi/ic_launcher_phone.png doesn't work?
Just an idea, this might be caused by the ROM or the launcher you're using.
Yep, that's the one I changed. I tried your suggestion and changed launchers also and it did not effect the icon.
I'm downloading Obssession right now. I'll look in the apk and see if there is anything special necessary.
Well, that file is definitely the icon. If you decompile the apk and look at the AndroidManifest.xml you can see that ic_launcher_phone is the app's icon.
I swapped out the icon for an orange stock-like icon on the attached apk. I can't test it as I'm on CM, but you can see if it'll work for you. (This is the stock Obssession blues rc2 dialertabactivity.apk w/ just the modified icon)
How can I open the .xml files? When I try to open them IE gives me an error and when I allow the script to run it doesn't change anything.
You need to decompile the apk in order to view the xml files. Using APK Manager is the easiest way I know of to decompile apks.
Can I see a screenshot of what you are talking about, icon wise? If it's the launcher then the problem is the icon in the launcher, not the app.
Oh and protip, use Notepad++, not IE: http://notepad-plus-plus.org/

Categories

Resources