yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] acmeinc:
This has been asked but never answered. Has anyone figured out where this version of bash is looking for the default .bashrc if any at all?

I was thinking like:

/usr/local/etc/*

/etc/profile

/etc/bashrc

Something along these lines may work. Perhaps if there is a default .profile location we can specify the place to look for a .bashrc.

Another idea, but before I do it I want to consult with some other dev's. If we specify a HOME path variable in the init.rc, couldn't we place a .bashrc in the specified home dir to be automatically parsed during a call to bash?

It makes total sense but it may be too simple of a fix. Ideas?
[G1 Android Development] Skrilax_CZ:
When I was compiling bash for my Milestone, I changed them to "/system/.bash_profile" etc. ...
[G1 Android Development] massi_:
Hello,

I have some strange errors when I run a simple "for"

for i in `seq 1 10`;
do
echo "number $i"
done

I run it:

#./bash foo.sh

line 1: syntax error near unexpcted token

line 1: for i in `seq 1 10`;

Do you know any ideas?

..and when I run for command in bash line it works (not from file) :eek:

Regards
[G1 Android Development] nicandris:
darn it... that's the only thing i hate about forums. everybody is adding a small helpfull better thing in each post, BUT no-one ever bothers to write em in a single thread so someone can find it easily.

I know that it's an old thread but if the OP wants people using his product he/she should recreate first post with complete instructions, FAQ and workarounds!

MHO!
[G1 Android Development] Firerat:
my guess is your file is not in unix end of line (eol) format

do

dos2unix foo.sh

to convert it

and get vitualbox , and install some linux ( like kubuntu )

personally I favour vim for editing ( nice syntax highlighting )

but kate might be a little easier fr you

alternatively something like notepad++ or pspad
[G1 Android Development] thew44:
Other binaries available

Hello,

For those interested in binaries for Android, I have compiled some useful tools/applications (e.g. php-cgi, coreutils...) and published them here:

cHNS5e on bitly (sorry I cannot post urls as I am a new user).

They may help in building a usable shell environment, e.g. by providing the 'test' binary, essential for scripting.
[G1 Android Development] gubacsek:
emulate tab

Hi!

I not sure this is the right thread for my question, but it is somehow related to bash, so please let me ask it here:

Do you guys know some terminal emulator, that can emulate a "tab" keypress ? I use android terminal, but couldn't find an option to emulate tab. Now, that i have bash on my phone, i would really like to get use of the bash completition...

(it is already great to use it through adb, i know. but it would be even better to use it on the phone)

googling around didn't helped....

Thanks in advance for you help.
[G1 Android Development] Firerat:
just type

bash

on a g1 <tab> is

<alt> then q
[G1 Android Development] gubacsek:
ermm... what is <alt> ? :)

I mean i have a desire , and there is no alt on the htc keypad or android keypad. The trackpad is configured to be the <ctrl>, but it doesn't work that way.
[G1 Android Development] Firerat:
you should probably not post in a g1 forum then :P

if you use swype, long hold <space> for a tab

if not, ask in a desire forum

we have real keyboards, its the only reason I haven't upgraded from my g1
[G1 Android Development] gubacsek:
I understand... sorry for that :) this was the only thing that made me think. the keyboard. i like "real" keyboards better too...

Space is not working either, but i will ask my qeustion in a desire forum. Thanks!
[G1 Android Development] jodue:
nice one, thanks a lot!

i had this one before on a cyanogenmod rom for the htc magic but i got myself a galaxy s some weeks ago. the default shell was a really a pain in the ass without tab-completion and all ... this makes my life a lot easier (again) :D

cheers
[G1 Android Development] tiger2wander:
Thank you very much, mzet. This will help me much for terminal jobs :D

---

Best regard!

Uoc Nguyen
[G1 Android Development] much1:
hey, do u think guys this would work on xperia mini 2.1 too? or ist it kernel dependent or smt? ty for the answer ;D
[G1 Android Development] mpbm23:
Tried it on Galaxy 3.Worked like a charm
[G1 Android Development] jpvosloo:
Script for Root and Bash

I packaged MZet's bash into a script which automates the installation as well as rooting with Z4Root. The zip file is attached, you may also get it on my blog:

www jacovosloo info /blog/IT/setupandroidwithrootandbash
[G1 Android Development] polhallen:
hello

/system/bin is read-only? how can I re-mount in read-write?

thanks!

Pol
[G1 Android Development] Myth010:
.bash_logout

Hi, is it possible to use something similar to bash_logout or just that when typing exit to the terminal? That way you could for instance mount a volume with r/w on "login" (bash_profile) and then mount it r/o when "logging out"
[G1 Android Development] RobPitt:
This bash dores not read my /sdcard/bash_profile when called with bash -l. It also segmentation faults when su is run from bash -l but not from plain old bash.
[G1 Android Development] RobPitt:
In the end I installed the dynamically linked bash from here but thanks for this. One minor point, your /sdcard/bash_profile patch is unnecessary, instead from within Android Terminal Emulator press the menu button then select "Preferences". In the "Shell" section at the bottom, change "Command line" to /system /xbin /bash and right at the bottom, change "Home folder" to /sdcard. Now it will load /sdcard/.bashrc on startup, or if started with -l, /sdcard/.bash_profile.

I've attached my .bashrc and .bash_profile to get you started.

EDIT: Added a nifty set_title command to change the terminal tabs title, useful when manipulating the same directory with multiple tabs and maybe some other times. It will also execute .bash_exit when any interactive bash finishes (not just for login shells like .bash_logout does).
[G1 Android Development] RobPitt:
Yes, if you start bash with bash - l then bash will run .bash_profile (which usually sources .bashrc - run from interactive non-login shells) and .bash_logout when you exit. Just change your terminal to run bash - l.

If you want to make a script run on exit from non-login shells then you can use the trap command, my .bashrc in bash-files.zip posted above uses it to run .bash_exit on exit (if it exists). This will also run if bash is killed with a signal or closing its window (I think).
[Tilt, TyTN II, MDA Vario III General] pazirez:
Hello all...

I have a little problem... when i open the keyboard and starting to write an SMS ... the keyboard backlight don't turn on ... otherwise in other programs, the backlight is working fine, example: in Opera ... except in the SMS...

Any Idea?!?

i have: 3.34.shifu 1F WWE v11F ROM, and 1.71.09.01 Radio

<off> the ROM is amazing ;P thx to Shifu </off>

thx a lot..

ps:sorry 4 my bad english...
[myTouch 3G, Magic General] vladkor:
Hello all,

I thought that it would be good to share this with the rest of the world.

I'm using the HTC Magic on fido, and for the longest time I had trouble finding working fido MMS APN settings. Most of what I could find via a google search referenced just setting up one APN, quoted various proxies, server addresses - let's just say a lot of contradicting information.

Finally - I did a quick search about the APN Type (the last field in the APN setup screen). I solved my MMS worries by setting up two APNs with different types.

So without further delay, here's the good stuff.

APN1 [this one will have the radio button beside it]

Name: fido internet

APN: internet.fido.ca

Username: fido

Password: fido

APN Type: default

(all other fields blank)

APN2 [this one will not have any radio button beside it]

Name: fido mms

APN: mms.fido.ca

MMSC: http://mms.fido.ca

MMS Proxy: 205.151.011.013

APN Type: mms

(all other fields blank)

Hope this helps!

(Sorry if someone already posted this.)
[myTouch 3G, Magic General] olvap377:
thanks i needed this
[myTouch 3G, Magic General] Dave778:
PERFECT! I had the internet settings but not mms. other sites are giving incorrect mms settings for Fido, But U R DA MAN! :cool:
[myTouch 3G, Magic General] DomMTL:
Data plan blocked?

Is it possible Fido applied the data plan shutdown to unlocked phone owners too? See article “Rogers Canada forces Android update that takes away root access” on boingboing.net.

I had good 3G bandwidth in the morning and no more connection in the afternoon. Still offline :(

Anyone else experiencing the same troubles?

They might have changed the APN credentials...
[myTouch 3G, Magic General] agychan:
I recently got my sister's Rogers Dream ... NOT unlocked or anything...and i have the old sim from about 5 years ago....(don't know if that is the reason)

but these FIDO APN settings are not working for me!
[myTouch 3G, Magic General] coolzor:
Hey do you still have this problem? Because I do and I'd like to fix it. Do you think that Rogers ban extends to Fido customers as well (since they use the same network)?
[myTouch 3G, Magic General] petrovlucca:
This may help you to solve the problem.

Figured it out today thanks to all the other information here.

Settings -> Wireless & Networks -> Mobile Networks -> Acces Point Names

Create a new one for each:

Internet

Name: Fido Internet

APN: internet.fido.ca

Proxy: 205.151.11.11

Username: fido

Password: fido

MCC: 302

MCN: 370

MMS

Name: Fido MMS

APN: mms.fido.ca

MMSC: htp://mms.fido.ca

MMS Proxy: 205.151.11.13

MMS Port: 8080 (still needs to be confirmed, I didn't want to test too much without unlimited MMS)

Username: fido

Password: fido

MCC: 302

MCN: 370

APN Type: mms

So far it works!
[myTouch 3G, Magic General] Mishhu:
These settings worked awesome for me. I have a Rogers Samsung Galaxy S Captivate. I unlocked it to use on Fido's network. At first, my voice worked fine, but no data. These APN settings now have my data working. Thank you so much for posting this!
[myTouch 3G, Magic General] Cluett:
I'm using these settings on an unlocked Atrix and no luck at all. How long does it usually take for these settings to work?
[myTouch 3G, Magic General] DonJuan692006:
Should be nearly instant if they are right.
[myTouch 3G, Magic General] defender007:
I have an rooted and unlocked Telus Desire HD. The settings worked but very ofter I get an connection error and it no longer connects. Anyone having the same issues?
[myTouch 3G, Magic General] utilisateur:
Fido / Motorola XT860 (Bell)

Thanks so much for this tread.

Most of the informations was PERFECT for me.

Thanks again
[myTouch 3G, Magic General] bteljuice:
works great. been using those settings for a while. Great job
[G1 Q&A, Help & Troubleshooting] Metatronx:
If I delete the /data/dalvik-cache folder from the phone will it recreate itself. From what I'm reading this may assist in fixing my phone boot errors.
[G1 Q&A, Help & Troubleshooting] alritewhadeva:
Don't think it will cause a problem. You can try rebooting after removing the files (dalvik).
[G1 Q&A, Help & Troubleshooting] lukekirstein:
I would recommend deleting it in Counsole just because it'd be safer for all your apps and processes, but it should be recreated in Android's framework.
[G1 Q&A, Help & Troubleshooting] ckcin:
needed to remove /data/dalvik-cache

thanks this was just what I needed... I was having the same error with the first boot as you had in some of your earlier comments in the thread. used adb to connect and remove the dalvik-cache file and then reboot... the next reboot nicely passed the 'G1' screen...and looks like my g1 may be back and running... if the endless force closes ever end
[G1 Q&A, Help & Troubleshooting] ThR1LL:
How do you do that?
[G1 Q&A, Help & Troubleshooting] borodin1:
reboot in recovery

alt X to go into counsol

hit enter to get in SU mode

if you don't have apps2sd

mount data

rm -r data/dalvik-cache

reboot

if you have apps2sd

mount system/sd

rm -r system/sd/dalvik-cache

reboot

Good luck
[G1 Q&A, Help & Troubleshooting] ThR1LL:
is it the same commands in adb?
[XPERIA X1 Themes and Apps] poetryrocksalot:
Hi, I am using Stock R3A [Nam]

When I try to load ANY video with the youtube cab, the videos don't play and youtube crashes.

All I want to know is does this happen to you too?
[XPERIA X1 Themes and Apps] augie7107:
I'm running Valkyrie 2.5 and it works but the playback is terrible.

Audio is smooth but video is choppy.

I just saw the header.

"When using R3A"

Sorry!!
[XPERIA X1 Themes and Apps] pashax1:
I have the same problem using R3A...
[XPERIA X1 Themes and Apps] rockinsnake:
workin....

its workin on mine...:)

Mine is R3A rom..
[XPERIA X1 Themes and Apps] spikegotti:
im on the official R3A via SEUS and mine is working perfectly
[Touch Pro, Fuze General] xlinkx:
Hi,

How do I change the softkeys for sms receive notification. Right now it displays "Reply" and "Menu", I want to change it to "Reply" and "Dismiss". I appreciate your help. Thanks
[Off-topic] advil0:
I've recently made a forum skin, and I want to get peoples opinion on it.

http://advil0.co.cc/

Please go into posts to see the whole theme.

Post comments, bugs, suggestions, or just complain like a bunch of idiots.

Thanks!

Also ideas on what the forum could be about would be appreciated also :D
[Off-topic] poetryrocksalot:
I don't like it, website name sucks. Hard to remember.
[Off-topic] advil0:
Uhhhh, the website has no name, it's just a test forum for me, Temporary Banner is there because it's a TEMPORARY banner.
[Off-topic] + Que PPC:
Some ideas to not be an idiot like you said!

The point is...

first: get a topic (whats for that site???)... and create the theme according the central idea!

God damn :mad:

Jejeje its better to change your first posts maybe wyou will never has all the people reads you on your site.
[Off-topic] DaveTheTytnIIGuy:
The theme's alright, but it doesn't really matter too much. When I first came to XDA, I thought to myself, "God, this place is hideous!" But then, as I used it more and more, I became more used to the theme, and now I'm kinda fond of it (it's still ugly though). If the text is visible and the site is easy to see (not too dark or light), don't worry much about the theme, because the content of the site is much more important than how it looks.

And on a side note, you

really

need to change your user avatar on your site, because that is really f**ked up.

Dave
[Off-topic] stylez:
+1....................... Especially the bolded part :D
[Off-topic] orelsi:
INDEED....
[Off-topic] advil0:
Lmao, but I love my McCain avatar!
[Off-topic] orelsi:
Your avatar is freaking the **** out of me. I couldn't fall asleep for 3 hours last night and then I had nightmares. Scariest pic on all the Internetz :D.
[Off-topic] + Que PPC:
yes

That avatar scares even your avatar :D
[Off-topic] galaxys:
LOL...but you are correct :eek:
[G1 Q&A, Help & Troubleshooting] domiiniicano:
Can someone please help me install this? I've tried the terminal way and the update.zip way and I still see JF 1.43 recovery utility.:(
[G1 Q&A, Help & Troubleshooting] alritewhadeva:
You sure you did it correctly? Try again make sure you redownload the image file. It should be roughly 4000kb.

Su

Flash_image recovery /sdcard/cm-recovery-1.3.1.img
[G1 Q&A, Help & Troubleshooting] _Kyros_:
first obviously make sure you have root, do this buy going into Terminal Emulator and typing su then press enter you should see this (#) and make sure the .img file that you downloaded (Cyanogen's Recovery 1.3.1) is in the root of your SD card, this is where all your folders are like (DCIM) (make sure you don't rename the .img file) once all that is verified then go back to Terminal Emulator and type su again and when you get the (#) symbol type

flash_image recovery /sdcard/cm-recovery-1.3.1.img exactly how you see it because it is case sensitive then press enter, now turn off or reboot back in to Recovery and verify that it worked.
[G1 Apps and Games] alritewhadeva:
There's a stickied thread for this...
[G1 Apps and Games] Adam17:
Damn...

I looked but just missed the one AT THE VERY TOP

I'd delete this, but it doesn't seem to want to let me
[Palm Treo Pro] BrianDigital:
is there any way to change the height of the soft keys
[Palm Treo Pro] mccune:
I'm afraid not. You can hide them (would be unwise on the TP).

They do get smaller when you use RealVGA on your TP. This is caused by the different DPI setting.
[Palm Treo Pro] BrianDigital:
ok i might give the real vga a try thankyou
[Touch Cruise ROM Development] fubofo:
Hi guys, I just got myself an Orbit2 but cannot seem to get connected to my home router using WPA-PSK TKIP. It doesnt seem to work no matter what ROM or RADIO ROM I use.

Is there a bug or something or a fix for this ?
[Touch Cruise ROM Development] Olioaglio:
No problem, no matter of radio rom.

I connected Orbit2 both with WPA-PSK and even WPA2-AES.

Olioaglio
[Touch Cruise ROM Development] fubofo:
there must be something wrong with my device somewhere - I had my laptop, Orbit and Orbit 2 lined up beside each other and tested connecting. Both laptop and Orbit connected fine but Orbit 2 just kept cycling through connecting>unavailable. :confused:
[Touch Cruise ROM Development] fubofo:
I have now disabled authentication ,still nothing.............
[Touch Cruise ROM Development] fubofo:
ok so Ive had it showing connected for a few seconds then cycling through connecting>unavailable.

also had it showing connected after I enetered manual IP address, but it wont browse/udate anything.

WTF ??
[Touch Cruise ROM Development] weijoon:
Maybe your router DHCP setting is off or u setup some MAC filtering?
[Touch Cruise ROM Development] fubofo:
OK got it sorted. Apparently this device doesnt like a setting called 'Wifi MultiMedia' found on my Sitecom WL-153. Disabled it and its working OK now.

[search tags] = sitecom, wl-153, wifi not connecting, wifi not working, wmm
[Touch Pro2, Tilt 2 Windows Mobile General] radiowc:
Hi

I found some tweak to improve battery life..not bad... i get it from some old forum when i am using TP.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Battery]

change from 5000 to 20000

Note: Remember to restart

You harm, you can always revert it back if you think it does not work :>

Sorry I didnt want to put them on the already Tweak post cos I not sure it will work for other :> Until it is confirmed by everyone. I work for me at least :>
[Touch Pro2, Tilt 2 Windows Mobile General] Lyian:
what is it thats being changed exactly?
[Touch Pro2, Tilt 2 Windows Mobile General] radiowc:
This tweak is for changing the amount is polled to the battery status so often that it actually drains the battery a LOT.

From default 5000 (5seconds) to 20000 (20seconds)
[Touch Pro2, Tilt 2 Windows Mobile General] Lyian:
ah.. i see. problem is, i dont have a way to edit the regestry on the device lol.
[Touch Pro2, Tilt 2 Windows Mobile General] Mesquire:
http://www.google.com/search?q=registry+editor+pocketpc
[Touch Pro2, Tilt 2 Windows Mobile General] Deleted member 308374:
is it harmful in any way??
[Touch Diamond, MDA Compact IV Themes and Apps] 2tone72:
hey so im trying to change my theme by using this:

http://www.modaco.com/content/black...omplete-customizable-tf3d-theme-for-touch-hd/

step number 5 is which i want to accomplish, ive tried, but still dont understand it at alll!

if anyone could help me at all or give me a p.m it will be GREATLY appreciated :D
[Touch Diamond, MDA Compact IV Themes and Apps] ElCondor:
I think it's only for WVGA devices like the Blackstone...
[Touch Diamond, MDA Compact IV Themes and Apps] Kemot320:
Yeah, definitely, no chance having it on Diamond
[Touch Diamond, MDA Compact IV Themes and Apps] donsalari:
Its not for diamond....
[G1 Q&A, Help & Troubleshooting] marty22877:
anybody else see this:

http://forums.t-mobile.com/tmbl/board/message?board.id=AndroidDev&thread.id=7004

i'm on ion rev1, so i'm guessing i wont get it. but i'd be curious to know what's in the fix
[G1 Q&A, Help & Troubleshooting] alritewhadeva:
Supposedly a security update from google. Build number does change to crc1 though. Haven't heard anything new from people so safe to say its probably just a network/security updatee.
[G1 Q&A, Help & Troubleshooting] lukekirstein:
Yeah, I've read up on the update and it's just a security update, no new features. Anyone without the stock cupcake build won't get it.
[G1 Q&A, Help & Troubleshooting] chrisag92:
thats actually incorrent sum1 on t-mo forums said they had rc29 nd it OTA'ed str8 to CRC1
[G1 Q&A, Help & Troubleshooting] alritewhadeva:
but its quite small...don't believe it includes the cupcake and rc33 changes
[Tilt, TyTN II, MDA Vario III Themes and Apps] Sean D.:
First off, pardon me for cross-posting and what not, but I am DESPERATELY looking for an answer to this. Please see below, thanks.

http://xdaforums.com/showpost.php?p=4137470&postcount=288

:(
[Tilt, TyTN II, MDA Vario III Themes and Apps] wg5566:
Try nueNoBar
[Wing, P4350 General] Dr.Gonz0:
Don't worry this is actually regarding the T-Mobile Wing's SD card slot. I've had mine for over a year now. Working great, thanks Ivanmmj for all his efforts, JustHome Rocks! That's a side issue. For some reason the SD card slot doesn't work anymore. It started off very small at first... Running TCPMP listening to some tunes, all of a sudden the music stops and it pops up with an error message "/Storage Card/Music/KRS-One - South Bronx.mp3 cannot be found" Normally I would just exit TCPMP, pop out the SD card and pop it back in and I am good to go. Now it simply has stopped working. At first I thought "SD card is fried" but nope... it worked fine on other devices so it's not them. I tried 3 different ones, all of them were SanDisk 1GB, 2GB, and an 8GB i just got.

I remember the original nintendo systems, had a similar thing with reading the cartridges, except now it's 2009 and the cartridges are waaay smaller.

Anyone got any ideas as to what the issue may be and/or how to fix it?

Thanks :)
[Wing, P4350 General] dougstoner:
Just blow the cartridge and stick it back in right on the edge...lol...brought back some memories. Hahaha, only thing I can think of is clean the contacts of the card. You could take the battery out and maybe use something to clean the contacts in the phone, but I have no idea what you could use that would be small enough to get in the slot.
[Wing, P4350 General] w220fan:
Hey, you can use a air compressor, to blow in hte microsd slot. Or you can use air-spray in a can. Or you can use a little brush, which is a bit wet.
[Wing, P4350 General] Dr.Gonz0:
My quest so far...

That's where the name came from... blowing on the sd slot, cleaning the contacts on the card and praying my fone picks it up. It worked for a little while at first but over time it became unworkable. Canned air didn't help too much either, in fact it was after that it stopped reading altogether. The slightly damp brush with canned air to dry it didn't help either. My guess is the thing went to pot a long time ago. I've opened up the casing and thought i could get to it from another angle but no dice there without some major precision cutting tools to cut away at the outer hull but I don't think that'll be beneficial in the end.

I also tried a registry hack somewhere... forgot the link (think it was over at ppc geeks) to change the timing or something like that. Made a claim it would fix the issue, but no dice. If anyone knows of any hardcore tools and procedures to do some major surgery on the SD reader lemme know. I've got a back-up wing so I've got some SD action. This has turned into a lil side project for me.
[G1 Q&A, Help & Troubleshooting] lagbaja:
Is anyone else experiencing extremely low media + ringer volume with the HERO ROMS, is it country specific? I'm currently in the UK and having changed the Audio*.csv files to Rogers ROM nothing seems to increase the sound, is the media + volume sound linked to a .jar/.lib file?

Thanks
[G1 Q&A, Help & Troubleshooting] rikupw:
wrong forum dude, go up a level and go to dream Q&A's
[G1 Q&A, Help & Troubleshooting] alritewhadeva:
Just push the audio files over...from the audio hack in this forum