[Q] ADB shell help - Droid Incredible Q&A, Help & Troubleshooting

So I installed Cyanogen 6.0.2, and as expected the email.apk force closes on boot, I planned on using root explorer to replace the apk, however root explorer force closes and I cannot use it.
Can anyone help me with ADB shell and show me how to push the new fixed email apk, in order to replace the buggy one?

mikeymop said:
So I installed Cyanogen 6.0.2, and as expected the email.apk force closes on boot, I planned on using root explorer to replace the apk, however root explorer force closes and I cannot use it.
Can anyone help me with ADB shell and show me how to push the new fixed email apk, in order to replace the buggy one?
Click to expand...
Click to collapse
Found this on XDA:
http://forum.xda-developers.com/showthread.php?t=517874
Sent from HTC Incredible, Redemption 2.0.4, King's BFS #5 kernel OC to 1.113, s-off, Launcher Pro Plus

Do you know if the email apk is in /sytem/app? or is it in the default app folder?

I would run ls on the /system/app folder to see if it's listed. I would assume it is there. If not, it could be moved.
Sent from HTC Incredible, Redemption 2.0.4, King's BFS #5 kernel OC to 1.113, s-off, Launcher Pro Plus

Another way to uninstalling if you need to is from Titanium Backup. But I would check /system/app first by running ls in adb shell. Type cd /system/app, then ls.
Sent from HTC Incredible, Redemption 2.0.4, King's BFS #5 kernel OC to 1.113, s-off, Launcher Pro Plus

Related

Installing AOSP apps on the evo

Hi everybody,
This is a total n00b question, but I was hoping someone could point me in the right direction. I want to install some of the AOSP apps onto my rooted Evo. So I downloaded eclair from google and built it it. Then I copied the Gallery.apk onto my SDK card and tried to install it. It goes through the motions, even as far as telling me which permissions that the app needs to run (Storage, etc).
Then it says, "Application not installed." with a done button.
I probably simply can't do what I'm trying to do, but if you can point in the right direction, I'd love to have a hand. I can't find log files or anything that would be useful.
-Ted
I'm not sure about AOSP apps, but here's what you do to add HTC apps back into roms:
1. Get something like Root Explorer so you can easily write to /system/
2. Copy your apk to /system/app/
3. Change it's permissions to match those of other apk's in the folder
4. Reboot phone
(And this should have gone in Q&A, but it's all good )
K I'm also confused about this but the HTC app part. If I wanted the stock clock widget can I make them work with launcher pro?
Also kind of confused about what exactly asop is in laments terms
Sent from my PC36100 using XDA App
I posted something along these lines in Q&A. Of course the problem with Q&A is there aren't nearly as many people around, but I did eventually get somewhat of an answer.
I was trying to take the apks from bugless beast and install the AOSP dialer, calendar, calculator, browser, and messaging apps into another ROM. I love bugless beast, but ironically it has some pretty bad bugs, hopefully we will see some updates.
At any rate, I eventually got some assistance on installing from adb, you may want to just look at the thread, but the short explination is to run
Code:
adb remount
and then you can do an adb shell command to get onto the phone (or use "adb shell <on-phone command>") to run
Code:
install <apk name> /system/app
This will be a very easy way to bugger things up, as I have found out from trying to get the contacts/dialer app running. I would love to hear what all I need to do to get the contacts/dialer/phone portion running as it is in bugless beast.
http://forum.xda-developers.com/showthread.php?t=715635
Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.
tedroden said:
Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.
Click to expand...
Click to collapse
So you did the remount, and then either ran adb shell install <apk> /system/app or ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?
I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.
nlowhor said:
I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.
Click to expand...
Click to collapse
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.
did the remount, and then ... ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?
Click to expand...
Click to collapse
Yep, I did all of that. Trying to install Gallery.apk
From what I recall about install, it just copies the file with the proper permissions, it's not doing anything super fancy. I can manually verify that the apk is in the /system/app folder, so technically, 'install' worked. It's just not showing up as an app that I can use.
laydros said:
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.
Click to expand...
Click to collapse
I have them both and put that into the same folder. Didn't seem to be good enough to make the emulator happy.

Apps in /system/app dont show up nor do widgets

so i removed friendstream.apk because of forcecloses and htcfacebook for sense i got the apks from a stock rom and used root explorer to mount and paste the files into the /system/app folder so theyre there, but i dont see the apps or widgets but when i try to install them using the app manager on android it says its already installed, any ideas? thanks!
im using damage control 3.2.3 with a custom kernel for damage control 3.7.1, thanks!
Leave them on your sd card and then try installing them using your file explorer.
Sent from my PC36100 using XDA App
i tried their htc apks so they dont install normally ive pushed it before and it worked fine just now its not showing up
zeeyo987 said:
so i removed friendstream.apk because of forcecloses and htcfacebook for sense i got the apks from a stock rom and used root explorer to mount and paste the files into the /system/app folder so theyre there, but i dont see the apps or widgets but when i try to install them using the app manager on android it says its already installed, any ideas? thanks!
im using damage control 3.2.3 with a custom kernel for damage control 3.7.1, thanks!
Click to expand...
Click to collapse
when pusing them to /system/app with root explorer you have to change the permissions of each app you copy over (hold select the app and choose change permissions) i just check off all of the permissions thingys
when pushing through adb it does that automatically
hope that helps
the default ones are all can read and user can write plus read
Thread moved to Q&A.
yea i checked all the permissions and used adb before and still not showing up, lol really frustrating
any ideas guys, really miss friendstream lol
An easy way to fix permissions is through ROM manager.
Download it in the market and select fix apk permissions.
That might do the trick..
Don't forget to reboot.
yea tried that doesnt work, really weird
Very strange, did you try an adb install? Rather than push..

Vanilla lock simple to get?

It's easy to get in my current setup (fresh)
But I was wondering if it was possible to get the vanilla lock in another rom like caulkins evio by just deleting htc lockscreen?
Also, how about the vanilla alarm and such.. delete worldclock or would I have to find that apk and install it?
Ditto, I would like to know this too.
yes, just delete them and reboot.
I have from a rooted file explorer and after reboot they return.
I am unable to delete in adb, I keep getting a "directory is not full" error or something like that.
I use the rm HtcLockScreen.adk command. I have done it after adb remount and get the directory error, before I get a read-only error. Same with HtcLockScreen.odex.
This is how it should go starting from command line in the adb.exe directory:
adb shell
cd /system/app
remount rw
rm HtcLockScreen.apk
Obviously if any errors are reported on anything before the last line, the last line isn't going to work.
rm failed for HtcLockScreen.apk, Directory not empty
That is the error I got, all the other commands worked or at least seemed to.
Maybe try to just rename it?
Code:
mv HtcLockScreen.apk HtcLockScreen.apk.bak
Just make sure you're in the right directory, but I'm sure you got that far.
failed on 'HtcLockScreen.apk' - Directory not empty error
Edit: pwd states that I am in the correct directory, /system/app
Rippley05 said:
It's easy to get in my current setup (fresh)
But I was wondering if it was possible to get the vanilla lock in another rom like caulkins evio by just deleting htc lockscreen?
Also, how about the vanilla alarm and such.. delete worldclock or would I have to find that apk and install it?
Click to expand...
Click to collapse
I used Titanium Backup to delete the Htc Lockscreen, and so far, it has worked on every rom.
AS for the Vanilla alarm, i just stripped cyanogen's ROM and found the APK for it. "Clock.apk" After i found it and transferred it to my phone, i went to Titanium Backup and deleted the original clock apk
adb reboot recovery
mount dev/block/mtdblock4 /system
cd system/app
rm HtcLockScreen.apk
reboot
it will only delete when the phone is in recovery
andrewmc42 said:
I have from a rooted file explorer and after reboot they return.
I am unable to delete in adb, I keep getting a "directory is not full" error or something like that.
I use the rm HtcLockScreen.adk command. I have done it after adb remount and get the directory error, before I get a read-only error. Same with HtcLockScreen.odex.
Click to expand...
Click to collapse
It sound like you don't have nand unlocked. I use root explorer to delete files without a computer.
How would I know if Nand was unlocked?
I have used it to back up the phone from Clockwork Recovery.
bacdoliljo said:
adb reboot recovery
mount dev/block/mtdblock4 /system
cd system/app
rm HtcLockScreen.apk
reboot
it will only delete when the phone is in recovery
Click to expand...
Click to collapse
Major thanks, only thing missed was a "adb shell" command, but that was easy enough to figure out. It worked in recovery just fine.
rosario1187 said:
I used Titanium Backup to delete the Htc Lockscreen, and so far, it has worked on every rom.
AS for the Vanilla alarm, i just stripped cyanogen's ROM and found the APK for it. "Clock.apk" After i found it and transferred it to my phone, i went to Titanium Backup and deleted the original clock apk
Click to expand...
Click to collapse
what's the difference between the stock htc alarm clock and the one from CM? can you post the apk, please?
IMO the clock from cyanogen looks a lot better than the sense clock. You will just be giving up some functionality if you switch to the cyan clock. I have both of them installed just in case. I have the. Apk on my phone but since I am at work, I wont be able to post it up until I am home. Anyone else have it?
Sent from my EVO using XDA App

[SOLVED] Remove ADW launcher and replace it with the Original Launcher in CM7 RC2

I Really love the original launcher way better than any other launcher out there.
I really don't like the ADW launcher.
So is there a way that I can use the original launcher instead of the ADW launcher on CM7 RC-2?
Sent from my HTC Vision using XDA App
You can use Titanium Backup to remove ADW, so if you can find an .apk of the original launcher, shouldn't be too big of a problem.
I installed ADW EX on CM 6.1 and used Titanium to remove the standard ADW...
gbarayah said:
You can use Titanium Backup to remove ADW, so if you can find an .apk of the original launcher, shouldn't be too big of a problem.
I installed ADW EX on CM 6.1 and used Titanium to remove the standard ADW...
Click to expand...
Click to collapse
Well I managed to remove it by using titanium backup. But then I had no launcher anymore
How would I install the original launcher?
Sent from my HTC Vision using XDA App
find a rom with stock launcher and push it in the phone via adb push
adb push /system/app/Launcher.apk
then after you push you can do adb shell or go in terminal and do
mount -o remount,rw /dev/block/mtd3block /system
rm /system/app/ADWLauncher.apk
ilostchild said:
find a rom with stock launcher and push it in the phone via adb push
adb push /system/app/Launcher.apk
then after you push you can do adb shell or go in terminal and do
mount -o remount,rw /dev/block/mtd3block /system
rm /system/app/ADWLauncher.apk
Click to expand...
Click to collapse
I have no idea how to do that
I have never used that in my life lol
Can someone just provide me with the launcher.apk?
I would be very apreciated
Sent from my HTC Vision using XDA App
I think your required to use adb, not simply open the apk like browser.apk or something.
I have a much simpler answer for you. I don't know HOW many times I need to post this information I feel like I've put it in 15 threads asking for stock launcher lol but here you go. No ADB required, etc.
You can find the mod here in the Nexus S forum: THREAD.
Download the first file and flash through recovery. You'll lose all your homescreen placements and widgets you have set up with ADW.
If you want to flash this over nightlies every day, you need to follow a specific order to not lose your placements again.
1) flash CM7 nightly via recovery (not ROM manager)
2) after install, stay in recovery (don't boot up into the ROM!), go to Advanced > Reboot recovery
3) after recovery reboots, flash the launcher mod
Just in case you're lazy, I've attached the file also.
XxFerociouS said:
I have no idea how to do that
I have never used that in my life lol
Can someone just provide me with the launcher.apk?
I would be very apreciated
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
ok you dont have to do it through adb you can do it all through terminal as well
jus put Launcher.apk on sdcard and do this in terminal
su
# mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/Launcher.apk /system/app
after you do that do
#ls
and look for Launcher.apk if its there then do
#rm /system/app/ADWLauncher.apk
and exit
and your launcher shouldbe there
ilostchild said:
ok you dont have to do it through adb you can do it all through terminal as well
jus put Launcher.apk on sdcard and do this in terminal
su
# mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/Launcher.apk /system/app
after you do that do
#ls
and look for Launcher.apk if its there then do
#rm /system/app/ADWLauncher.apk
and exit
and your launcher shouldbe there
Click to expand...
Click to collapse
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
martonikaj said:
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
Click to expand...
Click to collapse
Well I found a much easier way to do this
I went on Astro and installed the gingerbread launcher, then I deleted the ADW launcher by using titanium backup. And that was it lol
Sent from my HTC Vision using XDA App
XxFerociouS said:
Well I found a much easier way to do this
I went on Astro and installed the gingerbread launcher, then I deleted the ADW launcher by using titanium backup. And that was it lol
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Jesus...dude gave you a simple .zip you can flash through recovery...takes 7 seconds yet you still want to do it the hard way....amazing
Sent from my T-Mobile G2 using XDA App
its not the fact is hard..its the experience gain from doing it this way, and also have the sdk for future to come.. when need he has some experience... for himself
Nice talk
Why not dl a gb launcher from the market then delete adw. Seems like mountains being made out of molehills here...
Sent via my CM7 RC3 G2. PTFO
^^ Listening to a little too much Eminem, my friend? haha
Anyways, thanks for all the tips ya'll!
I installed the free version of ADW, uninstalled the EX version of CM7.1 and am trying to install the ADW EX I have paid and can not, incompatible version ... any tips?
-----------------------------------------------------------
Instalei a versão Free do ADW, desinstalei a versão EX do CM7.1 e estou tentando instalar a versão ADW EX paga que tenho e não consigo, da versão imcompatível...alguma dica?
martonikaj said:
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
Click to expand...
Click to collapse
It is worth learning how to use adb/fastboot anyway.

[Q] How do I uninstall google plus? (or other google apps I don't need?)

Hi,
I'm trying to remove google plus as I don't use it, but when I try to uninstall it in settings it only allows me to uninstall updates not the app ??
I'm running AOKP milestone 2
Thanks
DC
Use root explorer to delete or rename the apk, in system/app
jerrycycle said:
Use root explorer to delete or rename the apk, in system/app
Click to expand...
Click to collapse
Or titanium backup to freeze the app or just uninstall it
Sent from my Galaxy Nexus using xda premium
Removing the stock app will cause the Gallery app to crash as it's linked, just so you know
thanks for replies. The reason i wanted to uninstall was because i kept seeing Google+ in my running/cached apps but everytime i stopped it just restarted again sometime later
In the end i deleted the apk from /system/app. But this did not remove the app from the app drawer.
i then deleted the apk from /data/app too and rebooted and that removed it for me. I checked Gallery too and that still seems to work ok, however it did have to sync picasa again
i also read about another step to uninstall, something along the lines of running the terminal command "pm uninstall com.google.android.apps.plus" but that gave me a segmentation error, but it doesnt seem to have affected anything, i no longer see google+ in the running/cached apps
Wish i had known about titanium backup first. I went in and uninstalled Google Wallet too from there and everything seems fine! much easier...
cheers!
Hi Buddy,
Easiest and best way to be sure app has completely gone is to remove it via adb.
Open command line and enter the following commands then reboot:
Code:
adb remount
adb shell rm /system/app/example.apk
Be aware that these commands are case sensitive, if you need to see the correct names for the apps in your /system/app/ folder issue the following command and they will be listed for you:
Code:
adb ls /system/app/
Hope this helps buddy!

Categories

Resources