Don't mean to start too many threads, but this is meant to specifically discuss the above programs.
RE: Google maps
Completely uninstalling and then reinstalling from the market seems to address the force close that occurs when a search query is submitted.
Alternatively, you can move the google maps apk from the ext2 partition to the /system/app folder on the phone. This is the same fix as for the google voice search...
RE: Google voice search
I went about the rather cumbersome process of moving the apk from the ext2 partition (as automatically happens in the Modaco ROM) back to the /system/app folder on the phone. This has resolved all the voice search crashes that I have come across.
NB: I do not know the results if you were to fix google maps by uninstalling and reinstalling and fix google voice search by moving the apk. I.e. if you were to do a google voice search within google maps under this fixing method, Im not sure if the voice search will crash....I'm guessing not though.
Please bear in mind im a COMPLETE linux/andoird/adb/whatever noob. I can outline my method for moving the apks, but Im certain there are better ways to do it.
Sweet, that fixed my google voice issue (and a quick mv and reboot didn't seem so bad to me, but perhaps I just have a high pain tolerance lol)
that or i didn't know there was an mv command...like i said...complete noob
dom2114 said:
that or i didn't know there was an mv command...like i said...complete noob
Click to expand...
Click to collapse
No sweat, mv is a linux command that can be used to move (thus mv) or rename files.
Basic Syntax:
Code:
mv [source] [destination]
So what I did was
Code:
mv /data/app/com.google.android.voicesearch.apk /system/app
and then rebooted the phone. Worked like a champ!
thanks, worked perfectly
NOTE: be sure to issue this command before the move to not get the 'read-only file system' error
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Thanks a ton for this! I don't have A2SD running and my Google Voice Search was also not working, I didn't even notice until someone had pointed it out. Lucky for me, there was a solution almost as fast as the problem was discovered! We should probably point it out to Paul @ MoDaCo now!
tstack77 said:
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Alternatively, the following command works on MoDaCo's ROM:
Code:
adb remount
It accomplishes the same thing and is waaaaay easier for my simple mind to remember.
thecodemonk said:
Code:
adb remount
It accomplishes the same thing and is waaaaay easier for my simple mind to remember.
Click to expand...
Click to collapse
haha, totally agree. Thanks for that bit o' knowledge
AWESOME, thank you. I've been saving all of these forum posts together, I'll make a super-post once I get everything running the way I want, very clearly detailed and it will feature all of these different commands that I have used to help me along the way!
ok, so help me out if you can.
I want to copy the apk's on the ext2 partition i.e. in /system/sd/app to my computer in case I decide to wipe the sdcard for some reason.
In adb im typing:
cp /system/sd/app /desktop
Ive tried cp with the -r, -f, -rf options, and everytime i get a cannot create error message or sometimes a cannot create symlink message
Any tips??
dom2114 said:
ok, so help me out if you can.
I want to copy the apk's on the ext2 partition i.e. in /system/sd/app to my computer in case I decide to wipe the sdcard for some reason.
In adb im typing:
cp /system/sd/app /desktop
Ive tried cp with the -r, -f, -rf options, and everytime i get a cannot create error message or sometimes a cannot create symlink message
Any tips??
Click to expand...
Click to collapse
Once you're inside the adb shell, you don't really have access back to your desktop. Your best bet would be to run (from the windows command prompt where you normally run adb):
Code:
adb pull /system/sd/app c:\mybackup
(Replace C:\mybackup with whatever the path is to your destination...if you're on *nix or Mac, it will probably be more like "./Desktop" or something)
jesus, i think i might put a fist through a wall...im such an idiot.
pulling instead of pushing for the last half hour...
cheers, codemonk
dom2114 said:
jesus, i think i might put a fist through a wall...im such an idiot.
pulling instead of pushing for the last half hour...
cheers, codemonk
Click to expand...
Click to collapse
No sweat, we all have those moments. All the commands are fresh in my head since I've been researching and digging into things since before we had root (at the time trying to get it)...that and I think I've become addicted to the xda forums. (HALP!)
just as quick update to all.
Ive got a feeling that google voice search was actually causing all the force close issues in google maps. I still have google maps on my sdcard and did not uninstall it (only updated it) - have google voice search on phone and all seems to be fine.
A quick question for codemonk (& anyone else out there). For apps in the /system/app folder, you've got the apk and corresponding odex file. Anyone have any idea where the corresponding odex files for apps installed on the sd are (if they exist at all)?
dom2114 said:
just as quick update to all.
Ive got a feeling that google voice search was actually causing all the force close issues in google maps. I still have google maps on my sdcard and did not uninstall it (only updated it) - have google voice search on phone and all seems to be fine.
A quick question for codemonk (& anyone else out there). For apps in the /system/app folder, you've got the apk and corresponding odex file. Anyone have any idea where the corresponding odex files for apps installed on the sd are (if they exist at all)?
Click to expand...
Click to collapse
Not sure on the odex...I noticed some of the apps I removed didn't appear to have them (or are in a location I'm not aware of).
I ended up just moving the google voice app to fix it. (There's another thread on the google maps/google voice thing that contains the fix)
Ha, guess my XDA navigation isn't quite up to par. Care to post the link out of interest?
dom2114 said:
Ha, guess my XDA navigation isn't quite up to par. Care to post the link out of interest?
Click to expand...
Click to collapse
Wow I'm out of it...I was looking around, then realized...this *is* that thread. >.<
hahaha...guess it was your turn for onea those mistakes....
ok i dont even have voice search after installing modaco rom. all i have is the basic google search. how do i get the apk or download it. i tried the move, but it says it doesnt exist. i am complete noob so details are really needed thanks
if you decided to format your sdcard (using the recovery console) using the ext2/fat32/swap option, then the modaco ROM automatically moves google voice search and google maps (and a few other apps like quickoffice) to the ext2 partition on the sdcard.
this partition is accessible in various ways, but most people do it manually using ADB. if you don't know how to use adb, there are a bunch of threads here that talk about it. But in a nutshell, it involves downloading the android SDK, extracting it to somewhere on your computer (no need to install anything), open a command prompt in windows (start -> run -> cmd), navigate to the folder containing the sdk and go to the tools folder inside there (e.g. cd\androidsdk\tools), then type 'adb shell'. If all worked, you should have access to the phone.
then its just a matter of navigating to the ext2 partition on the sdcard (this is where all apps you install will be installed too - this is apps2sd automatically at work). You navigate there by typing:
cd /data/app
you should see the google voice search apk in there + others
then just use the command that codemonk helped me out with:
mv /data/app/com.google.android.voicesearch.apk /system/app
this will move the apk from the data/app folder (this is your sdcard) to the phone.
Written this response very quickly. Ask any specific questions and Ill try to help more if needed.
Root Explorer doesn't work. Root manager does. If you want to save the $2.55 use ADB
EDIT: Titanium back up is free and also works for removing files although the backup portion seems a little wonky at times. That is an easier way to remove apps the rest of this is obsolete but keeping it here for reference.
/**
YOU MUST ALREADY BE ROOTED TO DO THIS
This is very easy. It assumes you have rooted thus you have the SDK / ADB drivers already installed.
Your phone should be booted up and in android
Connect to your pc and open your command window and do the following:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Adam>cd..
C:\Users>cd..
C:\>cd androidsdk (your directory may be named differently)
C:\Androidsdk>cd tools
C:\Androidsdk\tools>adb shell
$ su (notice the echo on successful command and the change to # meaning you have root access now)
su
# mount -t rfs -o remount,rw /dev/block/stl9 /system
mount -t rfs -o remount,rw /dev/block/stl9 /system
# cd /system
cd /system
# cd /system/app
cd /system/app
Once here you can do a "ls" which is LS but all lower case and that will give you a list of what is in the current directory.
The "rm" command is used to remove items. What follows is the file name which is case sensitive.
# rm TouchWizCalculator.apk
rm TouchWizCalculator.apk
# rm TouchWizCalculator.odex
rm TouchWizCalculator.odex
#
*/
Click to expand...
Click to collapse
What can be removed? Some sites with info and lists of apps:
http://forum.sdx-developers.com/android-2-1/(list)-apk's-and-odex's-safenot-safe-to-delete/
http://androidforums.com/samsung-moment/112896-guide-removing-stock-apps.html
I dont suppose their will be a youtube video for rooting the Epic will there?
or is gaining root access the same on all android 2.1 phones?
Im new to Android & want to get rid of some sprint apps but I dont want to brick my phone at the same time..
Great post. Personally, I just use Root Manager. It is really easy and only costs a couple of bucks in the market. Plus it has the added advantage of backip up the apps as you remove them, and you can restore them if you wanted to, like say you wanted to take your phone back to the store and you wanted it more "factory" before you go.
chris5h said:
Great post. Personally, I just use Root Manager. It is really easy and only costs a couple of bucks in the market. Plus it has the added advantage of backip up the apps as you remove them, and you can restore them if you wanted to, like say you wanted to take your phone back to the store and you wanted it more "factory" before you go.
Click to expand...
Click to collapse
So what you're saying is that I can download Root Manager from the market having done nothing else to my phone and delete some Sprint apps?
Although the SDX App Removal Tool was written for the Samsung Moment, but it works to remove any unwanted stock apps from the Epic.
Here's a download.
Is there anything unsafe to remove like Samsung widgets ect?
pjree said:
Although the SDX App Removal Tool was written for the Samsung Moment, but it works to remove any unwanted stock apps from the Epic.
Here's a download.
Click to expand...
Click to collapse
this didn't work for me..
WhiteWidows said:
Is there anything unsafe to remove like Samsung widgets ect?
Click to expand...
Click to collapse
I deletes all the samsung widgets and the touch wiz launcher without problems. lost all the colorful wallpapers that come with the phone thought, oh well I don't really use them anyways
Sent from my SPH-D700 using XDA App
I was able to finally remove amazonmp3.apk using Root Manager, but I selected the apps I wanted to remove and had it back them up first, it said it completed, but no files show up when I try to restore... any ideas?
I am sorry if this has been covered someplace. ive searched for a while but cant find any answers that help me out.
also, i would like to thank the android developer community. you guys stinking rock. i love looking at all the stuff you have worked on and released. its cool that android users are willing to put in a lot of hard work and help other users out.
Problem: any app that requires super user to work has stopped working. my wireless tether wont start. shoot me wont work. type fresh wont either.
it worked about an hour ago. i did a nandroid. flashed a font. realized i couldnt use my root apps. restored just now and still cant use them. it seems odd that it suddenly stopped. could messing with the fonts damage something someplace?
i am thoroughly confused. i am a relative noob with all this developing stuff, but i have worked thru some problems on my own, with the help of guides and searches on here. i am comfortable with adb and all, but this confuses me pretty good.
any help or suggestions?
thanks in advance!
edit: ok, i did this
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4755 su
in adb. that restored wireless tether and shootme, but i still cant use type fresh. have i done something weird? and did flashing a font cause all that?
When you restored did you wipe everything first? it may have saved permissions that were changed when you installed the font... I would try a complete wipe and then restore (assuming you have a nandroid backup or something like it).
Hi all!
I've already written some little apps for Android and so I'm planning to create my first 'useful' app. But I'm undecided yet if there should be a PC- or Android-version.
One important thing: I don't ask for compile-ready code or anything, just how to do it the best way.
What should it do?
The user has some checkboxes where he can check if the filesystem should be mounted, if *.apks should be deleted (how can I get a list of all installed *.apk-files on the phone?) and so on.
If making a version for the PC I think there could be a lot of problems with ADB (on my notebook it's running fine, but other users could run in trouble, couldn't they?).
So my preferred way to go would be an Android-app. But how can I execute the commands the user checked? I know how to create text-files on the phone and how to read the content, but not how to execute commands like su, rm, mount -o and so on.
Could you just help me with this little point?
Thanks in advance,
Lunch
Nobody?
For listing apps installed, you can use the command "pm list packages". That'll give you package names. You can then use "pm uninstall {package name}" to uninstall them.
For running shell commands in apps, here's some info: http://stackoverflow.com/a/5686992
http://stackoverflow.com/a/6809955
https://code.google.com/p/market-enabler/wiki/ShellCommands
Hopefully seeing as you know a bit of Java programming the info at these links will make sense to you.
Thank you! Java is not a big problem, but it's my first combination of Java & Android.
So I'll try it and maybe I can make a runable and non-buggy program out of it.
Have a question about the mount settings in my recovery. I know that target box means it is mounted/RW and untagged is unmounted/Ro. But my /system partition keeps getting set to Ro and when i need to flash things it needs to be on RW. Is that bc my device is Samsung and thereforth has protected bootloader set? I'v been reading trough script files and think i can adjust some of them so they mount as RW instead of Ro. I know that /system is set to RO bc of safe against accidental alteration/removement. But it would be much easier to flash or install updates/programs/apps/etc that way. Hope anyone can give some advice for me.
P.S. i use the ROM Toolbox Lite Scripter bc it has a lot standard scripts already and changing them is easy. And u can just copy that script into an Terminal Emulgator thats rooted and then run it to alter/install it so u can read back whats been changed?
A. Nieveen said:
Have a question about the mount settings in my recovery. I know that target box means it is mounted/RW and untagged is unmounted/Ro. But my /system partition keeps getting set to Ro and when i need to flash things it needs to be on RW. Is that bc my device is Samsung and thereforth has protected bootloader set? I'v been reading trough script files and think i can adjust some of them so they mount as RW instead of Ro. I know that /system is set to RO bc of safe against accidental alteration/removement. But it would be much easier to flash or install updates/programs/apps/etc that way. Hope anyone can give some advice for me.
P.S. i use the ROM Toolbox Lite Scripter bc it has a lot standard scripts already and changing them is easy. And u can just copy that script into an Terminal Emulgator thats rooted and then run it to alter/install it so u can read back whats been changed
Click to expand...
Click to collapse
Usually, the ROM updater script will mount/unmount system. I do not know if that is the case here.