Orientation-aware Launcher.apk! - Hero, G2 Touch Android Development

This orientation-aware Launcher.apk is a perfect compliment to my Vanilla MoDaCo custom ROM, but can be used in any ROM! Basically, all this apk does is replace your existing Launcher.apk with one that has accelerometer sensing enabled.
To install this application, simply replace your existing Launcher.apk with adb. For example, in Linux:
adb push Launcher.apk /system/app/Launcher.apk
http://s000.tinyupload.com/index.php?file_id=84557978968581050941
Have fun!
Andrew

don't forget to adb remount first

Does this mean we can use our home screen in vertical?
edit : horizontal i meant to say

My home screen has always worked in vertical!

I think he meant horizontal.

This crashed my hero.

maxld said:
This crashed my hero.
Click to expand...
Click to collapse
I'll make an update.zip later, this should solve some installation problems.
And btw, it allows the launcher to be in horizontal orientation: )
Andrew

"adb remount", then "adb push Launcher.apk /system/app/Launcher.apk"
then rebooted the phone .. but nothing changed :\

Just a note, this is for the android vanilla launcher, not HTC Sense.

Didn't work for me, showed a blank screen & kept force closing.

MaXo64 said:
"adb remount", then "adb push Launcher.apk /system/app/Launcher.apk"
then rebooted the phone .. but nothing changed :\
Click to expand...
Click to collapse
Same here There must be somethign else in the framework of your ROM that enables this, I tried it on an ASOP 2.0 build and it doesn't work (I also downloaded your ROM, ripped the apk and pushed that and still nothing)

deleted

Related

Ok removed some built in app's

So I took the plunge and have removed peep and learn more from the phone, all working well so far. don't want to push my luck and remove more.
How did you managed it? I'm guessing you have root access or something?
yes rooted and booted loads of bits i want to remove but not sure what effect they would have on the system.
adb shell rm /system/app/Learn*
adb shell rm /system/app/com.htc.Twitt*
I managed to remove learnmore and the Stocks app and its widget. No discernable bad effects. I used Root Explorer successfully to do this, thought I havent managed to get Root Explorer to Copy and paste either to or from the device (Yup I know its read only, but Root Explorer, when working correctly, allows you to toggle R/w and R/0 ).
Daisy xxx
Dayzee said:
I managed to remove learnmore and the Stocks app and its widget. No discernable bad effects. I used Root Explorer successfully to do this, thought I havent managed to get Root Explorer to Copy and paste either to or from the device (Yup I know its read only, but Root Explorer, when working correctly, allows you to toggle R/w and R/0 ).
Daisy xxx
Click to expand...
Click to collapse
Daisy! Quick question?? how did you manage to get root explorer to work. It seems to for-close on me all the time!
Dayzee said:
I havent managed to get Root Explorer to Copy and paste either to or from the device
Click to expand...
Click to collapse
It's now working here. I used the update.zip mentioned here to gain "adb remount" ability for an unrelated issue and a side-effect is that Root Explorer now copies/pastes as expected.
Maybe a little tutorial on how to uninstall apps ??
I remove "rosie" to get back old style android look : its blazing fast and all htc's applications still works.
I used the Update.zip from Pauls Method at MoDaCo (Should go in the wiki if Paul says its OK?) and then was able to copy from /data/app/ to my SD Card using Linda File Manager whilst in "adb remount" (link via usb, then use command prompt to get to the adb directory and type "adb remount" then use the Linda File manager to do the bizz.)
Haven't tried removing anything or putting anything in yet, cos I really don't know whayt I'm doing. I just want to know HOW it can be done really. :0)
Dayzee
minogue said:
Daisy! Quick question?? how did you manage to get root explorer to work. It seems to for-close on me all the time!
Click to expand...
Click to collapse
I don't get force closes, but it certainly doesn't work for me as it should. Pressing the buttons to change from R/W to R/O usually says Busy: cannot remount - also any "copy" seems to go ok but the "paste" never works.
I've got Root Explorer 1.4 I think. Also tried it with adb remount but it didn't seem to work either.
Daisy xx
NisseGurra said:
I remove "rosie" to get back old style android look : its blazing fast and all htc's applications still works.
Click to expand...
Click to collapse
I want to do this but worried I might get the "force close error" when opening the peoples application when using the standard android UI. Its happened a few times when I set Home as my default application, reverted back to Touchflo and it been working great.
Removing Rosie completely will also remove the black look that HTC put in the ROM? Or is that something that is fixed by theming? (Like the top bar being black on the Hero, but white on the Magic)
Edit:
Well I went ahead and gave Rosie the boot, allong with some other HTC widget stuff (which becomes obsolete when you remove Rosie) I used Root Explorer to delete the files (adb shell rm wouldn't work :-\)
All I need now is the default white bar at the top instead of the HTC Black one

Deleting system apps after root?? (Root Explorer won't do it)

I used to use "Root Explorer" on my hero to delete system apps before..doesn't seem to work anymore..
solution??
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
did you mount /system in rw mode? (it's ro by default)
U dont have write access to system partition in normal use if i read the tutorial right. U have to do it with an update.zip (editing the update script) or with adb both u have to do in recovery menu from modaco i think. Tell me if i am wrong.
Sry for my bad english
@cezarL yes I did
@xtcislove I wish u were wrong..seems like pain.. anyway to do it without a pc?
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Click to expand...
Click to collapse
ye..I'm sure it has something to do with the root limitations Paul mentioned in his rooting guide. hope it'll be fixed soon.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Try this: Boot in recovery menu and try the following commands:
adb remount
adb shell rm /system/app/APP.apk
adb shell rm /data/app/APP.apk
where APP.apk is the filename of the apk with the .apk extention, remember case-sensitive!
for example:
adb remount
adb shell rm /system/app/FriendStream.apk
adb shell rm /system/app/FriendStream.odex
take a look before if your app has a odex or try this: (here u need only one command)
adb remount
adb shell rm /system/app/*FriendStream*
Good luck and have fun =)
Edit: Just find a topic =)
hxxp://android.modaco.com/content/htc-hero-hero-modaco-com/297207/removal-of-apps-via-adb/#entry1124362
(replace hxxp with http)
I'm trying to do these things in windows at the moment. No issues getting in the recovery with the windows scripts. But when I try to open a ADB Shell after I've gone to recovery I can't really do anything with it and the recovery hangs (not controllable with the track pad).
Anyone can tell me what I'm doing wrong?
You're not doing anything wrong, from what I've seen opening a new adb instance on Windows will kill the server created by the .bat file used for recovery... which means the connection to the device is lost. I haven't looked into it further, but it might be fixeable somehow.
Ah I see, so basicly you undo the patched recovery by opening a new session. It does work properly under Linux then? I run ubuntu on my netbook so It's not a big issue anyway. Thanks for the tip, gonna try under linux now!
I'm having the same problems as:
http://android.modaco.com/content/h...co-com/307401/removing-sys-apps/#entry1256015
I removed a load of HTC widgets but I get strange entries on the widget menu. Anyone know how to get rid of these?
Also, I removed Stocks (.apk and .odex), now I get a force close on 'Accounts & sync'. Anyone know how to remove Stocks properly?
Cheers.
After running the bat file to get into recovery, start a new cmd prompt in windows and use again adb-nilezon for shell commands instead of ordinary adb, and it wont be killed.
This has worked for me atleast
blackadder1000 said:
Anyone know how to remove Stocks properly?
Click to expand...
Click to collapse
The best, foolproof, failsafe way is to remove them from the rom before installing it... and remember that some services are still required, weather you use them or not.
But, if a system app is already installed you need to remove:
the apk from /system/app
the data from /data/data/appname
the cache from /cache/dalvik-cache
Do not remove Accounts & Sync...
Thanks for the answer.
I guess now is a good time to bake my own ROM!
blackadder1000 said:
Thanks for the answer.
I guess now is a good time to bake my own ROM!
Click to expand...
Click to collapse
Yep, that's what I do... see my sig...

[Q] teeter.apk that installs on froyo?

I'm currently running Skyraider 2.5, but was also looking for teeter when i was on 2.2.
The fiance loves to grab my phone while we are out and play teeter. I pulled the teeter.apk from another build i found and tried to install it, but it came back always that it did not install.
Anyone able to install teeter on froyo (not sure if this is a froyo or skyraider thing, but im assuming its froyo), and have a working apk they can post please ?
We both would very much appreciate it, thanks!
if you look in the aiccucs rom v4.2 thread, the second post has a bunch of .zip files that he removed from the stock froyo rom incase you want to put them back on. teeter is in there too. idk if installing the .zip would work since your on a different rom, but if you unzip it you can access the .apk and just try intstalling that
dccoh said:
I'm currently running Skyraider 2.5, but was also looking for teeter when i was on 2.2.
The fiance loves to grab my phone while we are out and play teeter. I pulled the teeter.apk from another build i found and tried to install it, but it came back always that it did not install.
Anyone able to install teeter on froyo (not sure if this is a froyo or skyraider thing, but im assuming its froyo), and have a working apk they can post please ?
We both would very much appreciate it, thanks!
Click to expand...
Click to collapse
I tried exactly what you did with the same results.
But...
If you boot into recovery and mount system, then push it to /system/app using adb shell then reboot it should work for you. It did for me.
Open a command propmt in a directory containing the teeter.apk file and run the following command:
adb push teeter.apk /system/app/teeter.apk
gadget! said:
I tried exactly what you did with the same results.
But...
If you boot into recovery and mount system, then push it to /system/app using adb shell then reboot it should work for you. It did for me.
Open a command propmt in a directory containing the teeter.apk file and run the following command:
adb push teeter.apk /system/app/teeter.apk
Click to expand...
Click to collapse
I just copied it to my SD card and installed normally... Had to tick the little block in the Unknown Sources though.
Adam_NCNN said:
I just copied it to my SD card and installed normally... Had to tick the little block in the Unknown Sources though.
Click to expand...
Click to collapse
Strange, that didn't work for me as well as several others. And I do have Install from unknown sources checked.
It always came back with "Application not installed".
Glad it worked for you.

[MOD] Default Froyo Launcher

This will allow you to use the default Froyo Launcher instead of using the HTC Sense Launcher included with the MT4G for those that prefer it!
This was compiled through the generic AOSP 2.2r1 source with 5 screens. I will make one with 7 screens if anyone would like it.
First of all, you will need root(VISIONary) and adb.
Second, you will need this file: http://www.4shared.com/file/Cd9kUAqL/Launcher2.html
Third, make sure your phone is in "Charge Only" mode when you connect it to your computer.
Next:
1. adb push Launcher2.apk /sdcard/
2. adb shell
Now in shell:
3. su (Superuser might pop up on your device, make sure to press "Allow")
4. stop
5. mount -o remount,rw /dev/block/mmcblk0p25 /system
6. cp /sdcard/Launcher2.apk /system/app/
7. start
8. Wait for the phone to do a "soft boot"
9. Once you pull down the Lockscreen, select Launcher instead of HTC Sense
Now, of course, this will go away once you reboot the phone, but you could use visionary.sh, a file that loads on boot if VISIONary roots your phone on every boot, and make it do these commands.
This was a simple idea I had after seeing Cyanogen's LED Notification Light Mod for the G2: http://forum.xda-developers.com/showthread.php?t=797867&page=4
UPDATE: You might want to re-download the Launcher2.apk. The phone hotseat button now loads the HTC Phone app instead of not working.
UPDATE 2: This also includes the default AOSP wallpapers under Wallpaper > Wallpapers.
thank you very much. i was really looking for this. now all we need is perm root so this doesnt go away on reboot
Greatly appreciated!
Not to seem like I am spitting in your face, but I think I'll stick with LauncherPro if I want to get the stock look. Until persistent root is obtained I don't want to mess with anything that may go away.
JWhipple said:
Greatly appreciated!
Not to seem like I am spitting in your face, but I think I'll stick with LauncherPro if I want to get the stock look. Until persistent root is obtained I don't want to mess with anything that may go away.
Click to expand...
Click to collapse
Ha I understand. I was using LauncherPro before I did this.
Updated Launcher2.apk so that the phone hotseat button now loads the HTC Phone app instead of not working.
travisjames said:
This will allow you to use the default Froyo Launcher instead of using the HTC Sense Launcher included with the MT4G for those that prefer it!
This was compiled through the generic AOSP 2.2r1 source with 5 screens. I will make one with 7 screens if anyone would like it.
First of all, you will need root(VISIONary) and adb.
Second, you will need this file: http://www.4shared.com/file/Cd9kUAqL/Launcher2.html
Third, make sure your phone is in "Charge Only" mode when you connect it to your computer.
Next:
1. adb push Launcher2.apk /sdcard/
2. adb shell
Now in shell:
3. su (Superuser might pop up on your device, make sure to press "Allow")
4. stop
5. mount -o remount,rw /dev/block/mmcblk0p25 /system
6. cp /sdcard/Launcher2.apk /system/app/
7. start
8. Wait for the phone to do a "soft boot"
9. Once you pull down the Lockscreen, select Launcher instead of HTC Sense
Now, of course, this will go away once you reboot the phone, but you could use visionary.sh, a file that loads on boot if VISIONary roots your phone on every boot, and make it do these commands.
This was a simple idea I had after seeing Cyanogen's LED Notification Light Mod for the G2: http://forum.xda-developers.com/showthread.php?t=797867&page=4
UPDATE: You might want to re-download the Launcher2.apk. The phone hotseat button now loads the HTC Phone app instead of not working.
UPDATE 2: This also includes the default AOSP wallpapers under Wallpaper > Wallpapers.
Click to expand...
Click to collapse
Dude is there anyway you can do this with the traditional sense launcher instead to replace the ugly espresso crap?
Omeer said:
Dude is there anyway you can do this with the traditional sense launcher instead to replace the ugly espresso crap?
Click to expand...
Click to collapse
Since Rosie.apk already exist within /system/app, it would just throw an error when trying to copy it from the SD card to the system cache.
Lol yeah I found that out the hard way after semi bricking my phone last night. My question now is can rosie.apk that exists within the system cache be replaced by a custom one? I'm assuming no since the .apk being replaced would be in use atm...
Sent from my HTC Glacier using XDA App
Ooh here's another idea. I saw a thread over at the Desire HD forums and someone ported/modded the themes into .apk files. The installation instructions are very straight forward, just install as normal .apk files or move the files to /system/app. Needless to say that just simply installing it didn't work on the MyTouch 4G. My concern now is can we use this method or any other method to push these .apk files to the /system/app folder to see if it works? A way to theme our devices will hold us eager beavers off till we get a permanent root.
Sent from my HTC Glacier using XDA App
Great work, thanks a ton for this. One question though, is there any advantage of using stock launcher insteat of ADW or LP? I myself love ADW, especially with 3D look that AnderWeb is trying go implement but if there's performance gain with the stock - I'm all for it.
Omeer said:
Lol yeah I found that out the hard way after semi bricking my phone last night. My question now is can rosie.apk that exists within the system cache be replaced by a custom one? I'm assuming no since the .apk being replaced would be in use atm...
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
Even when using Launcher2.apk instead of Rosie, it failed to replace. I tried it last night after I saw your suggestion.
Omeer said:
Ooh here's another idea. I saw a thread over at the Desire HD forums and someone ported/modded the themes into .apk files. The installation instructions are very straight forward, just install as normal .apk files or move the files to /system/app. Needless to say that just simply installing it didn't work on the MyTouch 4G. My concern now is can we use this method or any other method to push these .apk files to the /system/app folder to see if it works? A way to theme our devices will hold us eager beavers off till we get a permanent root.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
You might be able to do that with this method. All I can say is, try and see if it works.
borodin1 said:
Great work, thanks a ton for this. One question though, is there any advantage of using stock launcher insteat of ADW or LP? I myself love ADW, especially with 3D look that AnderWeb is trying go implement but if there's performance gain with the stock - I'm all for it.
Click to expand...
Click to collapse
Personally, I haven't seen any advantage to using Launcher2 over ADW or LauncherPro. The only reason I made this was because I like vanilla Android over Sense. But, I don't really see any performance gain. I might do a little bit more testing and get back to you.
travisjames said:
Even when using Launcher2.apk instead of Rosie, it failed to replace. I tried it last night after I saw your suggestion.
You might be able to do that with this method. All I can say is, try and see if it works.
Click to expand...
Click to collapse
OK so I followed this guide exactly as outlined except I replaced the launcher2.apk files with the commonSense.apk file. Everything goes swimmingly until I pull down the lock screen when the screen just hangs for a good a while but ultimately results in no change. What I want to try now is to push .apk files onto the /system/app folder some how and that's not what this method does. I read somewhere that it's now possible to push .apk files to root folders, any ideas as to what that might be?
travisjames said:
1. adb push Launcher2.apk /sdcard/
2. adb shell
Now in shell:
3. su (Superuser might pop up on your device, make sure to press "Allow")
4. stop
5. mount -o remount,rw /dev/block/mmcblk0p25 /system
6. cp /sdcard/Launcher2.apk /system/app/
7. start
8. Wait for the phone to do a "soft boot"
9. Once you pull down the Lockscreen, select Launcher instead of HTC Sense
Now, of course, this will go away once you reboot the phone, but you could use visionary.sh, a file that loads on boot if VISIONary roots your phone on every boot, and make it do these commands.
Click to expand...
Click to collapse
I think if you replace step 6 with
"pm install /sdcard/Launcher2.apk"
it should install to /data/app which should still be fine after a reboot.
Phone doesn't work
Thanks for that!
The left button doesn't work on my desire.
Is the link on #1 up to date?

[Q]How to restore Sense lockscreen?

This is going to be one of those things where some people cry out "Blasphemy!" But I will ask anyways.
I loaded up a ROM on my Evo that contains Sense everything, except the lockscreen. The ROM is perfect other than this problem. Despite my best efforts all I see is people asking how to remove the Sense lockscreen (wut?) and none trying to add it to a ROM after the fact. So I'm wondering if anyone would be kind enough to aid me in restoring the Sense lockscreen. I'd greatly appreciate the help.
Licht_ said:
This is going to be one of those things where some people cry out "Blasphemy!" But I will ask anyways.
I loaded up a ROM on my Evo that contains Sense everything, except the lockscreen. The ROM is perfect other than this problem. Despite my best efforts all I see is people asking how to remove the Sense lockscreen (wut?) and none trying to add it to a ROM after the fact. So I'm wondering if anyone would be kind enough to aid me in restoring the Sense lockscreen. I'd greatly appreciate the help.
Click to expand...
Click to collapse
Restore nandroid
Find the HtcLockscreen.apk and use adb to push it to /system/app/
bcarter2000 said:
Find the HtcLockscreen.apk and use adb to push it to /system/app/
Click to expand...
Click to collapse
If you're not good with adb, you can also use root explorer.
I've placed htclockscreen.apk into system/app but it doesn't enable the lock screen. Possible the APK I downloaded is misnamed.
Licht_ said:
I've placed htclockscreen.apk into system/app but it doesn't enable the lock screen. Possible the APK I downloaded is misnamed.
Click to expand...
Click to collapse
Did you install it?
Sent from my HTC EVO 4G with Tapatalk
Widget locker works well
A drop of Chuck Norris's semen was placed on Android OS. We now have CyanogenMod.
kd0axs said:
Did you install it?
Sent from my HTC EVO 4G with Tapatalk
Click to expand...
Click to collapse
I tried but it says "Application not installed." I assumed that meant that I couldn't install system APKs or something of the like. I'll look for another source for the file. I'm sure this one is just bad. (Random Mediafire link.)
Edit : I downloaded from a better source. But this file also will not install. Placed it into the correct folder and am now rebooting to see if it works.
Edit 2 : Definitely not working. Am I missing something? I just place it in the folder... then nothing happens.
You have to install it after it's place in the folder. Use your favorite file manager and click on the apk file.
Licht_ said:
I tried but it says "Application not installed." I assumed that meant that I couldn't install system APKs or something of the like. I'll look for another source for the file. I'm sure this one is just bad. (Random Mediafire link.)
Edit : I downloaded from a better source. But this file also will not install. Placed it into the correct folder and am now rebooting to see if it works.
Edit 2 : Definitely not working. Am I missing something? I just place it in the folder... then nothing happens.
Click to expand...
Click to collapse
Okay. Take your htclockscreen.apk, using Root Explorer preferably, and place it in /system/app. There is no need to install anything now. What is needed, is that you need to long press on the htclockscreen.apk after you copy it to the system/app folder, and press permissions. You must make sure that the "user" permissions are set "read" and "write". Make sure they're both checked. Once that is complete, reboot your Evo. You'll have the htc lockscreen, every time.
you can also use adb. If you don't have it all set up, there's an easy way around that. Download 'wireless adb' or 'adb over wifi' from the market. Activate that app (you have to have your wifi on), open up a command prompt and connect to your phone, by typing 'adb connect 192.sss.s.ss:8000' (it'd be your IP address and port, which the app will provide to you). Once connected, navigate to where you downloaded the htc lockscreen apk. (say it was in the folder C:\android, you'd type cd C:\android, then hit enter). Then do this. adb remount (hit enter).
adb push HtcLockscreen.apk /system/app (hit enter). Then type adb reboot (hit enter). That would be all you need to do. Either one of those two methods, with adb or the file explorer should solve your problem.
k2buckley said:
Okay. Take your htclockscreen.apk, using Root Explorer preferably, and place it in /system/app. There is no need to install anything now. What is needed, is that you need to long press on the htclockscreen.apk after you copy it to the system/app folder, and press permissions. You must make sure that the "user" permissions are set "read" and "write". Make sure they're both checked. Once that is complete, reboot your Evo. You'll have the htc lockscreen, every time.
you can also use adb. If you don't have it all set up, there's an easy way around that. Download 'wireless adb' or 'adb over wifi' from the market. Activate that app (you have to have your wifi on), open up a command prompt and connect to your phone, by typing 'adb connect 192.sss.s.ss:8000' (it'd be your IP address and port, which the app will provide to you). Once connected, navigate to where you downloaded the htc lockscreen apk. (say it was in the folder C:\android, you'd type cd C:\android, then hit enter). Then do this. adb remount (hit enter).
adb push HtcLockscreen.apk /system/app (hit enter). Then type adb reboot (hit enter). That would be all you need to do. Either one of those two methods, with adb or the file explorer should solve your problem.
Click to expand...
Click to collapse
I've added the permissions as per your instructions and rebooted twice but I still have the stock lockscreen.
Licht_ said:
I've added the permissions as per your instructions and rebooted twice but I still have the stock lockscreen.
Click to expand...
Click to collapse
What ROM are you running? I was under the assumption (for some reason) that it was a nonsense rom (sense based, but most sense elements removed). Are you on an AOSP rom? If you are, I don't believe you can use a sense htc lockscreen at all, and I apologize for the mis information. If you are actually using a sense based ROM, then I'm not sure why it's not working. What file explorer are you using? Root Explorer?
Edit: I re read your OP. I see you are on a Sense based rom. What rom is it? Maybe I'll flash it and see if I can get the htc lockscreen working. I feel like flashing something....
k2buckley said:
What ROM are you running? I was under the assumption (for some reason) that it was a nonsense rom (sense based, but most sense elements removed). Are you on an AOSP rom? If you are, I don't believe you can use a sense htc lockscreen at all, and I apologize for the mis information. If you are actually using a sense based ROM, then I'm not sure why it's not working. What file explorer are you using? Root Explorer?
Edit: I re read your OP. I see you are on a Sense based rom. What rom is it? Maybe I'll flash it and see if I can get the htc lockscreen working. I feel like flashing something....
Click to expand...
Click to collapse
Eternal Prophecy 4.2
It has most Sense elements but just not the lockscreen.
Sent from my Evo 4G using XDA App

Categories

Resources