Terminal emulator - Hero CDMA Q&A, Help & Troubleshooting

What is the terminal emulator used for. What can I do with it?
sent from gingerbread hero

eldenmisty said:
What is the terminal emulator used for. What can I do with it?
Click to expand...
Click to collapse
It's like a command prompt on Windows, but for unix/linux. You can execute (almost ?) all commands, that you can run through adb shell.

Can u tell me something that I can do with it. Maybe I will understand better
sent from gingerbread hero

You can use it to push and pull apk's. You use it when you use the batt tweak.
-----
Sent from my CDMA Hero. I got some hot Gingerbread-on-Hero action here!

You can check mtd partition sizes,(especially useful for firerat mod).
Sent from my HERO200 using XDA App

Related

Noob question about guide

I am wondering if there is any literature online about a simple guideline or something of that nature about the adb shell and commands and all that. I have rooted my phone and used the adb, but dont really understand it just basically copying off guides that were on here. also like loading apks through the shell and taking apks off, and having to rename zips all this stuff im kinda gray on but if someone could maybe point me in the direction of a good place to understand all this i would be very grateful....i am new to this but am very addicted to xda now modifying my phone I am currently using darch's 2.1 and really want to add all the additions but need to know about using the shell thanks in advance guys...people on xda rule the world
aauussttiinn88 said:
I am wondering if there is any literature online about a simple guideline or something of that nature about the adb shell and commands and all that. I have rooted my phone and used the adb, but dont really understand it just basically copying off guides that were on here. also like loading apks through the shell and taking apks off, and having to rename zips all this stuff im kinda gray on but if someone could maybe point me in the direction of a good place to understand all this i would be very grateful....i am new to this but am very addicted to xda now modifying my phone I am currently using darch's 2.1 and really want to add all the additions but need to know about using the shell thanks in advance guys...people on xda rule the world
Click to expand...
Click to collapse
Well id say if your very addicted to xda then you should know there's these things called Sticky's at the top of page very useful info could of answered your own question.
forum.xda-developers.com/showthread.php?t=603052
When you use the command "adb shell", that is simply dropping you into the shell of the phone. The phone runs Android, which is a version of Linux. Since almost EVERY ROM has "busybox" installed, you are able to run Linux shell commands on the phone, just as if you were on a Linux install on a computer. So just learn basic Linux commands, and you'll be fine
yea bertman in the stickies there is nothing what im asking about but thanks for your help anyway....mrhinehart so instead of running the cmd promt from my pc i can just run busy box or do i run busy box from reboot recovery?......................ohh snap i found it in the stickes thanks bertman that actually exactly what i was looking for just didnt think it would be in something that had to do with rooting....thanks a bunch man
ADB / 101 Info from Nexus One Forum
Here's some information from the Nexus One forum. Hopefully you'll find it useful.
http://forum.xda-developers.com/showthread.php?t=619153
I seriously apreesh all the help that last post was like the icing on the cake.Roundaway i see that you have darch's 2.1 seriously a badd ace rom. i have v3 of the rom and the aosp 2.1 kernal and thats all and i have really been wanting to add the jit and fix the whitelist etc etc all that awsome stuff that people have been finding at that thread and i would real remount this or rename the zip to this and just never understood why but that clears up alotta things and connects alot of bridges for me so no on to playing with the adb thanks again everyone

Now that im rooted.......

How do I remove the bloatware, I am looking for specific instructions. I know that I need to open cmd and get into shell, what do I type to remove them and which ones are ok to remove?
Thanks for any help relating to this.
Ok so open up your cmd window, navigate into your tools directory of the android sdk and then type: adb shell
Next: cd /system/app
Then: ls
Then: rm appname.apk
or just rename it from Appname.apk > appname.apk.bak just in case...
Code:
mv appname.apk appname.apk.bak
this will prevent it from being available on your device. It will save memory but still be in storage.
mrweeeedbirdman via tweet
"DO NOT REMOVE BACKUPASSISTANTCLIENT if you do, get it back on there NOW! a factory reset will result in a near brick."
what are the commends to block adds? and can it be run via X or do i need to hook up laptop? also will any of the other commends like free100 work?
moosc said:
what are the commends to block adds? and can it be run via X or do i need to hook up laptop? also will any of the other commends like free100 work?
Click to expand...
Click to collapse
Get adfree fromt he market.
I just used root explorer and renamed some apps just in case. They are not in the drawer anymore so I would expect them to be gone
Sent from my DROIDX using Tapatalk
Not as good
rolandroland said:
Get adfree fromt he market.
Click to expand...
Click to collapse
Sent from my DROIDX using XDA App

[Q] Remove Android Market App - Yes, seriously!

OK, sounds like the most stupid question ever, but is there a way to remove the google android market from the vegan 5.1 build? I've tried the obvious (i.e uninstall through app manager) but it's greyed out.
I know most people are desperate to get the market app on and working, but I need it removed
Any ideas...? Thanks
Can't see why but...
From pc
adb remount
adb rm /system/app/Vending.apk
adb reboot
Or in shell
#su
#cd /system/data
#rm Vending.apk
#reboot
Sent from my HTC Vision using XDA App
connoisseur said:
Can't see why but...
From pc
adb remount
adb rm /system/app/Vending.apk
adb reboot
Or in shell
#su
#cd /system/data
#rm Vending.apk
#reboot
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
fab, thanks! I know it's crazy, but there is method in my madness
Cheers
archos 101
hey
i am maybe the bigest noob in developing in android. but where do i put those commands on my pc?
Easiest way to do it is to download a root browser from the market or sideload it. Open root browser. Go ti root. System. Data. Apps. Delete vending.apk.
Sent from my DROID3 using xda premium
thnx for the fast reply
but if i open the root folder it is empty. do i need to root my device for this of something like this or is it something else?'
btw i use an archos 101 g9 whit android 3.2 honeycomb
sacratus91 said:
thnx for the fast reply
but if i open the root folder it is empty. do i need to root my device for this of something like this or is it something else?'
btw i use an archos 101 g9 whit android 3.2 honeycomb
Click to expand...
Click to collapse
Yes, you will need to be rooted to remove System apps.

[How-To] Make nandroid backups really fast

Nandroid backups on the D3 aren't the fastest right now, but with a simple and quick tweak, we can make them much, much faster.
During the backup/restore, clockword recovery shows each individual file being copied. By turning this off, it drastically improves backup/restore times. It'll still say backup up /system, or /data, it just won't show the individual file. In order to remove the nandroid progress stats, you need to create two files using adb or terminal emulator.
ADB or Terminal Emulator​1) type- (may need to do "adb shell" first)
Code:
echo "" > /sdcard/clockworkmod/.hidenandroidprogress
Press enter
2) type
Code:
echo "" > /sdcard-ext/clockworkmod/.hidenandroidprogress
Press enter
3) Done!
Hint- to check to make sure it created the files, navigate to /sdcard/clockworkmod and see if there's a .hidenandroidprogress file. Also check in /sdcard-ext/clockworkmod for the same file.
Can't we just create the files manually instead of going through the trouble of using adb?
Yup. I used a terminal emulator on my phone since I didn't feel like taking the time to do it.
Sent from my DROID3 using XDA App
Thanks for this. I was wondering why backup/restore was so much slower on the D3 than on my OG Droid - synchronous IO strikes again.
FYI,
I removed the detailed progress bar from the upcoming Safestrap 1.0. The wait was just too long to even have that option enabled.
Excellent post, thanks a lot for sharing this tip.
Edit: I created both files and then rebooted into Recovery and started a backup. I still see each file being named as well as the progress bar. Did not seem to work for me...
g3m1n1 said:
Excellent post, thanks a lot for sharing this tip.
Edit: I created both files and then rebooted into Recovery and started a backup. I still see each file being named as well as the progress bar. Did not seem to work for me...
Click to expand...
Click to collapse
You'll still see the actually progress bar. It just won't show each individual file. But that's weird. Ill see what I can find out.
Sent from my DROID3 using XDA App
Definitely weird, I will delete the files and try to create them again to see if that helps. FYI, I used Android Terminal Emulator to create the files using the commands you posted.
g3m1n1 said:
Definitely weird, I will delete the files and try to create them again to see if that helps. FYI, I used Android Terminal Emulator to create the files using the commands you posted.
Click to expand...
Click to collapse
Did it actually create the files? try using /mnt/sdcard/clockworkmod/,hidenandroidprogress
Sent from my DROID3 using XDA App
erismaster said:
Did it actually create the files? try using /mnt/sdcard/clockworkmod/,hidenandroidprogress
Click to expand...
Click to collapse
Wow, had a temporary lapse of reason earlier... Your typo of the comma in your last comment made me realize my own typo in typing /.hideandroidprogress instead of ./hidenandroidprogress . Backups are much, much faster now.
Huge difference!
I'm not sure if this is where I should post this but... When making a backup with CWM bootstrap(Not Safestrap) does it backup the /preinstall stuff too? I ask because I tried using the safestrap to flash a compatible rom and didnt backup and the rom wasnt functioning properly. I managed to recover back to my ogblur i was running prior but i wanted to know if my /preinstall was reverted and if not do I have anything to worry about with it not being how it was originally?
MrObvious said:
Yup. I used a terminal emulator on my phone since I didn't feel like taking the time to do it.
Sent from my DROID3 using XDA App
Click to expand...
Click to collapse
YUP. Same here. Smooth
Nandroid is ripe for a rewrite anyway.
How do you make a nandroid backup to begin with?
MerCiLeSS28 said:
How do you make a nandroid backup to begin with?
Click to expand...
Click to collapse
You boot into clockwork recovery and click backup and restore and then backup...
Sent from my DROID3 using XDA App
At first, wondered why I couldn't see them with ls...
With terminal emulator, at least, you have to use "ls -a"!
Sent from my Droid 3 via the air
erismaster said:
You boot into clockwork recovery and click backup and restore and then backup...
Sent from my DROID3 using XDA App
Click to expand...
Click to collapse
Oh really? I didn't know that. Trollolol just playing bro.
Sent from my DROID3 using xda premium
Shouldn't it be spelled hidden? With two d's?
Sent from my DROID3 using XDA App
Izeltokatl said:
Shouldn't it be spelled hidden? With two d's?
Sent from my DROID3 using XDA App
Click to expand...
Click to collapse
Cause its not 'hidden' but 'hide android'
Sent from my DROID3 using XDA App

Phone unusable/help me find the bad app

Well to get a long story short,im not a complete noob in the rooting,optimising,flashing bussiness.
So dont tell me flash this kernel or this stock rom,or this or that.
The problem after hours of searching is a bad app.
I have bought over 500 apps cause i want to support the community.
So,when i restore all my apps,when the phone starts,after the home screen loads AT THE MOMENT WHERE IN TOUCHWIZ OR ADW OR WHATEVER THE APPS ARE FINALLY LOADED
REBOOT,hot reboot most of the times...
I tried everything...startup managers to block everything and i mean everything...
Rescan media root app to stop scanning of sdcard...
Everything,no matter if it froyo,ginger,ics,stock,rooted or WHATEVER.
Of course i can install one app at a time an reboot,to see what happens but that will take ages and also maybe one app 'hit' with another...
So help me find the bad app...
I am no noob but i am no pro either...
So how do i take a logcat? Will that help either way?
Do i have to use adb?
help....
You are kidding right? You have 500 apps installed at the same time? Why on Earth? I think you are lucky the phone even tries to boot...
On to your problem at hand - no one here will be able to help you with the info you provided.
I thought their was like a 30 app limit to android?
Adb is your best bet.
Sent from my HD2 using xda premium
kylew1212 said:
I thought their was like a 30 app limit to android?
Adb is your best bet.
Sent from my HD2 using xda premium
Click to expand...
Click to collapse
Yes,i have so many apps and i want to find which app 'collides' with another or at least which app causes problems.
I used logcat with semaphore kernel and i have taken out some txt files just before the soft reboots...
How adb will help me.
I will find how to install adb but what then?
What command should i use?
And the phoen will be open?In recovery? What?
Please help....
karapoutsoglou said:
Yes,i have so many apps and i want to find which app 'collides' with another or at least which app causes problems.
I used logcat with semaphore kernel and i have taken out some txt files just before the soft reboots...
How adb will help me.
I will find how to install adb but what then?
What command should i use?
And the phoen will be open?In recovery? What?
Please help....
Click to expand...
Click to collapse
Well you certainly need apps 2 SD ... but you probably already have that.
To use adb, download it firstly. Its in the Google developer tools.
Once downloaded open terminal. Alt+ctrl+t. Use CD to change to the directory that contains adb in the platform tools. Once your in the folder containing adb, type "./adb logcat" without the quotes. This is for a computer running Ubuntu Linux also
Sent from my HD2 using xda premium
kylew1212 said:
Well you certainly need apps 2 SD ... but you probably already have that.
To use adb, download it firstly. Its in the Google developer tools.
Once downloaded open terminal. Alt+ctrl+t. Use CD to change to the directory that contains adb in the platform tools. Once your in the folder containing adb, type "./adb logcat" without the quotes. This is for a computer running Ubuntu Linux also
Sent from my HD2 using xda premium
Click to expand...
Click to collapse
thanx for the response.
i have set adb succesfully and i see the logcat on my cmd window running like hell most of the time.
i read that you can use some commands like -w -e etc to narrow the results to important messages? is that correct?
if yes,how you can do that? i mean the full command adb logcat....etc
thanx in advance
karapoutsoglou said:
thanx for the response.
i have set adb succesfully and i see the logcat on my cmd window running like hell most of the time.
i read that you can use some commands like -w -e etc to narrow the results to important messages? is that correct?
if yes,how you can do that? i mean the full command adb logcat....etc
thanx in advance
Click to expand...
Click to collapse
Unfortunately I have very little adb experience...
Maybe try something like the same command you used
"./adb logcat"
I guess going by what you're saying you could try something like
"./adb logcat -w" try that then maybe replace the w with e..
Keep in mind these are just guesses because I do not know for certain
I will research as soon as possible and write a quide for it as this can benefit lots of people
Sent from my HD2 using xda premium
kylew1212 said:
I will research as soon as possible and write a quide for it as this can benefit lots of people
Click to expand...
Click to collapse
thanx.
i had the same in mind.maybe something good can come out of this
Another way would be using ddms - connect your phone in debug and run ddms (it's included in the SDK Tools). It provides an interface to browse your device's logs and filter them according to your needs. I think you'll be able to locate that one which explains why your phone is crashing.
On second thought however - is it possible for you to turn the debug on?
avltree said:
Another way would be using ddms - connect your phone in debug and run ddms (it's included in the SDK Tools). It provides an interface to browse your device's logs and filter them according to your needs. I think you'll be able to locate that one which explains why your phone is crashing.
On second thought however - is it possible for you to turn the debug on?
Click to expand...
Click to collapse
thank you!
great idea,i will test it
yes,i can turn the debug on,because the phone crashes just when all the apps are loaded in the drawer.
it must be a bad app because i used to have many apps since froyo times and no problem.
like 500...and the phone was fast.
i really want to find that bad app and kill it
edit
================================
wow,ddms is a dream! thats what i was looking for!!!
thank you
Sorry for the double post but i thought it needed a single post.
Well,the problem is fixed with the help of you guys!!!
I was getting a hell lot of warnings about watchdog_n and stuff.
I googled it and appeared that a whole bunch of people had the same problem especially with nexus s etc.
They said it was due to some crappy app wanting to auto-sync.
So i did a wipe cache,wipe dalvik cache,fix fc and then when the phone rebooted i disabled the auto-sync.
Guess what,no more loops and soft reboots!!!
I still dont know what app is causing all the problems and propably never will,if you thing that the same apps in my tablet dont cause a thing,but after the auto-sync off the problem is gone.
Good thing though i dont need auto-sync cause its not the best solution...

Categories

Resources