Terminal emulator - Desire HD Q&A, Help & Troubleshooting

Is it possible to create a script with gscript to clear app data? I want to clear dsp manager data with gscript just like using snd3254 -dspmode script. I dont know it is dsp manager problem, but after clearing app data , the sound improved, but last a few songs only. I need to clear data back. A gscript i think will help but dont know the command
Sent from my Desire HD

Related

How to check if Apps2SD has been installed correctly...

The following information is for those who are still unsure of whether Apps2SD has been installed and if it is working correctly after root.
Open a Terminal Editor on your phone (I currently use ConnectBot, which is available for download via the Android Marketplace, comes with hotkeys, and it's free, link <here>).
When you have the client open, type "su" to gain super user access, and then hit enter. Now type "ls -l /data" and hit enter. You should see a few lines, a couple of which should read on the far right column:
dalvik-cache -> /system/sd/dalvik-cache
app-private -> /system/sd/app-private
app -> /system/sd/app
Notice the -> indicating symlinks and the 'sd'
You can also run: busybox df -h to check the /system/sd that the folder is being used
If this output is visible to you, then Apps2SD is working properly and you have installed it correctly. You will notice that by checking Menu > Settings > SD & phone storage, there is still some internal memory going down due to cache, other data, etc, but the main apps all go on the SD card given the above result. I currently have 29 apps installed (including Google Earth, which is 22.1 MB in size itself) and my internal memory currently shows 119MB of available space.
You can perform more extensive checks by executing the following command:
ls /system/sd/app (this will list all the apps which you have installed to the SD card)
If you prefer to run it from a PC with your phone connected, then this can also be checked via ADB by installing the relevant Android SDK for your OS. Downloads for SDK versions, link <here>.
Alternatively, you can use the script (written by theboxman from MoDaCo.com), which you can run via GScript Lite to test if Apps2SD is working correctly, link <here>.
how about unlock?
thank you for the info. btw, i havent seen in the forum if there a way to unlock the Desire form a certain network. any idea? sorry i know its the wrong place to ask and post this.
Hi Mastoid,
Could you tell me how exactly to run this from PC?
I've got the whole SDK installed but no idea what i have to do...open a prompt or something? Please inform as i'd really like to check.
You need to download the Android SDK and also Java.
http://java.sun.com/javase/downloads/widget/jdk6.jsp
http://developer.android.com/sdk/index.html
Then open a command prompt in Windows, plug in your Desire (your phone does not need to be in hboot/fastboot to access adb shell).
1) Open a command prompt on your computer and cd to your adb tools directory (it will be wherever you extracted the sdk; ie, c:\android-sdk_r04-windows\android-sdk-windows\tools
2) In that window enter the following commands:
adb shell
su
ls -l /data
this should list the top 2 items as:
lrwxrwxrwx root root 2010-04-28 22:54 app-private -> /system/sd/app-private
lrwxrwxrwx root root 2010-04-28 22:54 app -> /system/sd/app
ls -l /system/sd/app (will list apps on installed to your SD Card)
Now, for final proof, type:
busybox df -h
iom_jack said:
thank you for the info. btw, i havent seen in the forum if there a way to unlock the Desire form a certain network. any idea? sorry i know its the wrong place to ask and post this.
Click to expand...
Click to collapse
Do you mean to have it sim-unlocked?
http://uk.answers.yahoo.com/question/index?qid=20100328154024AA1abkl
Great!
That worked, though the items you mention are not at the top but a couple of rows down. Busybox did show the apps installed on the SD.....ah, peace of mind
thx for the instructions!
no problem bud, glad it worked out for you
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Question about APP2SD.....if anyone can answer
can it stop working halfway? i mean at first it really looked like apps were on SD but now it takes the flash memory instead....
i have 38m left with APP2SD
totorip said:
can it stop working halfway? i mean at first it really looked like apps were on SD but now it takes the flash memory instead....
i have 38m left with APP2SD
Click to expand...
Click to collapse
I posted a thread recently showing how to check if Apps2SD has been installed correctly and is working:
http://forum.xda-developers.com/showthread.php?t=677073
How to setup App2SD?
Anyone got a clear, easy guide on getting it working? Can you install it on the standard rooted ROM from MoDaCo? Do you need to have it cooked into a ROM?
A video or something would help but I'm interested in getting it setup incase I need to get a load of apps
î did your think i i use better terminal pro
app => system/sd/app
dalvik cache => /system/sd/dalvik cache
app private => /system/sd/ app private
so how can i have around 40mb left only?
Re: Question about APP2SD.....if anyone can answer
How many apps have you installed?
How have you partitioned your sd card? i.e. swap size?, ext2 size?
Have you applied the Apps2SD update zip?
-------------------------------------
Sent via the XDA Tapatalk App
ive got maybe 40/50apps
i partitionned , 66 cache 1280m EXT 2=> EXT3
and no update....i dont need with the latest modaco R2 custom rom do i?
im afraid to reboot everything again, spent the whole day to isntall everything
30mb left :x
Re: Question about APP2SD.....if anyone can answer
I would suggest that you apply the dalvik-cache update zip and that should hopefully fix it. Note that you should only allocate 512MB to 1024MB (max) for the ext2 size and, you do not require a swap of 66MB, it is not recommended. I have my swap set to 0MB, ext2 set to 512MB which is more than enough space for apps, and rest to FAT32.
Search google for the "Apps2SD mini guide" (found via MoDaCo website) click the link and scroll down to the bottom of page one, the update zip file is available there.
-------------------------------------
Sent via the XDA Tapatalk App
is it bad? (64 swap)
i calculated, i installed 170m worth of app. And i have "43" left (started at 138)
so , somewhere, APP2SD is working...but not verry effective
Re: Question about APP2SD.....if anyone can answer
I think it is working, run the command (ls /system/sd/app) in terminal editor in the link i posted earlier and check what apps are stored to the sd card. Also, download and install "cachecleaner" from the marketplace (free) to free up some cache space.
-------------------------------------
Sent via the XDA Tapatalk App
Re: Question about APP2SD.....if anyone can answer
You have something wrong. I have also this Rom with about 53 apps and have still 134MB free.
Sent from my HTC Desire
i installed the update.zip
i went from 38 to 53mb
then i use cache cleaner , i now have 60....
and still 170m worth of app...
so is my app2sd working in half?
Re: Question about APP2SD.....if anyone can answer
I ran the command in Su, and only the 2 app ones said sd, my dalvic cache didn't say SD card. I ran the suggested update fix but had bootloop, do I need to wipe anything first? I'm using evil 1. 0 Rom and thought it came pre app2sd. . .
Id like to get dalvic moved. . .
Thanks
-------------------------------------
Sent via the XDA Tapatalk App
Lol since thazt update zip i have no more wifi....cant start wifi it says. Great

[Q] Looking for Uninstaller that actually Meets ALL my needs

So there are many uninstallers. The ones I've have found that will uninstall system apps doesn't have a quick uninstall feature, or it won't allow me to quickly uninstall many system apps. I have root explorer and can just go through and delete the apk's, but I've found that I run into issues occasionally and have found that actually uninstalling the apps is cleaner and doesn't cause as many issues as when I just delete the apks. Any suggestions would be great, I'd rather not have to download many versions, as the descriptions aren't always accurate. Thanks
Code:
adb shell
su
rm /system/app/Nameofapp.apk
rm -rf /data/data/application.package.name
pm uninstall application.package.name
reboot
exit
Works every time.
Thats awsome, I get the first part of it, I'll check out what the rest of the code does However, I would like an app as I don't enjoy typing that much into a virtual terminal. If there is no app then I might just have to deal! I'd like to think with the thousands of apps that 1 uninstaller will allow me to quickly uninstall system apps, like a mass uninstall feature. I'll keep digging....
Well, you could make a bash script out of it...
Anyways, here's what it does:
Open ADB Shell
Get root
Remove unwanted System app
Remove the settings/data for said app
Remove the app from the package manager
Reboot
Close Command Prompt/Terminal
I've never tried writing a script before. Would I have to write one for each program that I would want to remove?

Market not working and phone is rooted

Hi,
Originally, I rooted my phone to gain access to the Android market. The market opened and says loading then it would return back to the menu.
so, I downloaded market access and marker enabler and both of them do not open the market.
Just as a note, the country im in is a "forbidden country"--so Google says. I can't even open code.Google.com.
Is there some sort of modified version of the Android market app that I could use to access the market?
Clear market cache, reboot into cwm recovery and clear the dalvik cache. Reboot, market enabler, save settings, settings list, long press on a provider, fake provider now. Then Try market again. When finished with market, restore settings from market enabler. Good luck.
Sent from my Desire HD using XDA App
because my net is too slow right now, since im using the carriers internet, i cant download the flash cwm image thingy.
so to delete the cache, i went to the terminal
su
cd data/dalvik-cache
rm *
rebooted and followed instructions, but still, its not working
You cleared the Market cache as well?
Settings, applications, manage app, all, market, force stop, clear cache.
Clear dalvik again and reboot.
Try market enabler same as before.
Note: If you fake your carrier, I don't think you can use the phone data connection, because market enabler changes the APN ? Maybe you will need to use WiFi until you restore the settings. I think also that if you restart the phone, settings will be restored back to your own carrier.
Sent from my Desire HD using XDA App
yea, i did all that, ... , and im guessing the same thing, ... , but i dont have any wifi connections at this time. if i find one, and it works, i'll post it here, hopefully

Uninstalling an app you can't see.

Hey,
Like the topic says.. just wondering how you go about uninstalling an app you can't see. When I use a backed up apk file to install it, it says it will replace data and such, then I click okay, and then gives me a message, "application not installed". So that's how I know the app is there...
Its just that nothing recognizes the app as being installed. No uninstall app, no system app... anyone know how to get rid of this app by means of file exploring and not wiping the phone clean??
Thanks all.
Sent from my HTC Vision using Tapatalk 2
Maybe the "application not installed" means that it wasn't installed. This would explain why you can't see it.
Under settings/applications/all, can you find it there? You might be able to uninstall it from there.
Can you find it with a file manager? You could delete it, but it might leave the data behind. This is usually in /data/data if you want to scrub things clean.
Lastly, and my personal favorite, the command line. This is the no-click method. If you know the java name, you could probably type "pm uninstall android.your.package" Try typing "pm" from the command line to get the syntax/ Some thlng like "pm list" will give you a list of installed pacakges.
Be careful what you delete- some things don't react well with being deleted.
there may be some confusion here, you say the reason you know the app is in your phone and hidden is when you try to install it is says that it will be replaced? well you can use root explorer or similar file explorer to hunt it down, check:
/system/app
/data/app
/sd-ext/app
/sdcard
demkantor said:
there may be some confusion here, you say the reason you know the app is in your phone and hidden is when you try to install it is says that it will be replaced? well you can use root explorer or similar file explorer to hunt it down, check:
/system/app
/data/app
/sd-ext/app
/sdcard
Click to expand...
Click to collapse
Well the way I know the app is there is because when I try to install it. It prompts me and tells me that the program will be replaced but user data and settings will be saved. Usually if an app is not installed on the phone there is no prompt and you just have to hit install.
Sent from my HTC Vision using Tapatalk 2
gee one said:
Maybe the "application not installed" means that it wasn't installed. This would explain why you can't see it.
Under settings/applications/all, can you find it there? You might be able to uninstall it from there.
Can you find it with a file manager? You could delete it, but it might leave the data behind. This is usually in /data/data if you want to scrub things clean.
Lastly, and my personal favorite, the command line. This is the no-click method. If you know the java name, you could probably type "pm uninstall android.your.package" Try typing "pm" from the command line to get the syntax/ Some thlng like "pm list" will give you a list of installed pacakges.
Be careful what you delete- some things don't react well with being deleted.
Click to expand...
Click to collapse
Can't find it under settings/applications/all
I'll try to find it using root explorer... and if all else fails.. I guess I'll have to live without using the app or try the command line method.
Sent from my HTC Vision using Tapatalk 2
If you have upgraded from say GB to ICS, the app might not install because it is a GB app. Try upgrading from the market. Otherwise, I would guess that you don't actaully have the app installed, perhaps just the data.
gee one said:
If you have upgraded from say GB to ICS, the app might not install because it is a GB app. Try upgrading from the market. Otherwise, I would guess that you don't actaully have the app installed, perhaps just the data.
Click to expand...
Click to collapse
Well darn. Gotta fish this thing out then. Heh. There's gotta be a way! I guess I'll upgrade through the market if possible solutions are exhausted.
Sent from my HTC Vision using Tapatalk 2
More technical, but it was mentioned to use the package manager. Under the terminal or using adb shell enter:
Code:
pm list packages
This gives you a list of all the packages installed listed as something like android.application.com. Most are self explanatory. Using that information you can use:
Code:
pm path android.application.com
That gives you the location of the apk (i.e. /system, /data/app, etc). Then delete via explorer or use adb to remove:
Code:
adb uninstall /location/application.apk
I came across the same error when I manually copied an APK into /system/app folder. It showed in my drawer but was unable to execute it. In order to get rid I had to install it as well, then I was able to uninstall it which made is disappear. Any chance its something like that?
progress ughtsrr
Have you tried clearing the google play store data? If this has been corrupted with some partial entry for your app it might leave it in there and hence why you can't install/uninstall it...
Menu -> Settings -> Apps (and/or manage applications as per your ROM)
Choose "Google Play Store", then "Clear Data" and "Clear Cache"
Close the settings, then see if you can re-install the app.
Failing that, try the above, followed by a wipe cache/wipe Dalvik cache at recovery and see if that helps.
Good luck

Insufficient Memory Error

Having just run through applying the CyanogenMod 10.1(by vijendrahs - refere below) to 4.2.2 on my HTC Desire, I've now come across the above error with some of the applications that I've been trying to install.
I've partitioned my SD card and am running mounts2sd and am using link2sd. I've also downloaded and have tried the marketfix app. I've also tried killing apps and restarting the phone none of which seem to make a difference.
The research I've done indicates that this is appears to have something to do with memory. What I've noticed is that there doesn't seem to be any particular pattern to those apps that will install and those that won't. For example the Tasks app won't install nor will Yahoo but Skype, Maps, and Gmail installed fine.
I am beginning to suspect that the error message might not actually reflect the problem that is being reported. Is there a tool or some debugging routine that I can run to expose any further insights into this?
http://forum.xda-developers.com/showthread.php?t=2070704
Why did u use mounts2sd or link2sd if in threat is recommend a2sd in terminal? I used this ROM with a2sd and all was fine, no any error according memory.
Vijendrah's JB 4.2.2 has build in A2SD. Just open Terminal Emulator from menu and type:
"#su" then hit Enter;
"#a2sd" install then hit Enter;
"Y" then Enter when first question pops-up;
"N" then Enter when second question pops-up;
"Y" then Enter when third question pops-up.
Note: type only what's inside the commas.
Thanks for the replies. In my defense, it was my first attempt at a ROM flash and I probably didn't follow the instructions properly. I I'll try a re-flash over the weekend and see how that goes.
That said, I still think that the error message is misleading unless there is something in the installation routines for those apps that is validating for a minimum amount of available RAM.
Two ideas:
1.Android will give you that error when you try to reinstall app which you tampered with using lucky patcher try running it once before attempting to install and it will remove any leftover odex files it is responsible for.
2.Or the original a2sd script is messing up link2sd, try removing 10apps2sd from system/etc/init.d with root explorer or es file explorer. Reinstall link2sd afterwards.
3.you are simply running out of internal memory, link2sd leaves dalvik in there. You can explore your sdext with es file explorer and see what's going on there or use 'df' command in terminal emulator to check if there really is no space left in internal or sdext
freebird24h said:
Two ideas:
1.Android will give you that error when you try to reinstall app which you tampered with using lucky patcher try running it once before attempting to install and it will remove any leftover odex files it is responsible for.
2.Or the original a2sd script is messing up link2sd, try removing 10apps2sd from system/etc/init.d with root explorer or es file explorer. Reinstall link2sd afterwards.
3.you are simply running out of internal memory, link2sd leaves dalvik in there. You can explore your sdext with es file explorer and see what's going on there or use 'df' command in terminal emulator to check if there really is no space left in internal or sdext
Click to expand...
Click to collapse
Curious. I reran a2sd and answered no to the second question regarding data. Upon reboot, I was able to install apps that previously failed. On the downside, I've lost the home key!
I use MildWild

Categories

Resources