yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] bc54:
Alright, so I have this 95% working.

I took your Epic 4G flashable zip, commented out the device || product check, then flashed. Worked as expected and I have a working bash with history and everything. (Need to double check that inputrc, had 1 or 2 funky unexpected up arrow presses).

Now, to the 5% not working. For some reason, whenever I do something like "ls", I get "ls: applet not supported". (Trying to remember exactly). So I check busybox version, and its 1.17. Should be 1.19. Turns out this bash shell is using /bin/busybox rather than /system/xbin/busybox. My previous bash shell (now bash0) uses /system/xbin/busybox.

I checked $PATH in /data/local/.bashrc and it has /system/xbin, in fact off the top of my head it looked identical to my bashrc for "bash0".

Any ideas?

Edit: Figured it out. In /data/local/.profile and /system/etc/bash.bashrc, I edited the PATH variable by moving "/bin" to the end ( "PATH=/sbin:.../data/local/tmp:/bin" ). When I get home I'm going to post a flashable zip in the SK4G forum. Although, I do have one question. Why is there a /system/etc/bash.bashrc? Seems like it the same as /data/local/* configs. (Possibly /data/local = user; /system/etc/bash.bashrc = root?)
[Epic 4G Android Development] nubecoder:
Good catch! Ya, another thing setup for The Epic is the PATH export..

It could probably be removed (since the Kernel should be exporting PATH as well), or at least should match what the Kernel's init.rc file uses (maybe with any additions you might want).

ps- I hope you modified the mount paths for your phone as well before flashing (after having removed the Epic 4G check @ the top).

Or that your mounts match the Epic's (I wasn't aware any phone had mounts that match the Epic).

=]
[Epic 4G Android Development] bc54:
I think its better to have the PATH variable there, kind of an "OVER HERE" sign for anyone looking to add a folder to the $PATH.

As for the mounts in the *.zip, actually SK4G and Epic both use the same mounts (or at least /dev/block/stl9). Probably a Samsung thing. Perhaps I could change it to check for either "SPH-D700" or "SGH-T839"?
[Epic 4G Android Development] nubecoder:
Because it's already there in bash, just needs to be uncommented.

'/etc/profile' is also a default in Bash, since android does have /etc/ (technically '/system/etc/'), I felt it was fine to use those paths with android.

You do bring to my attention a couple things though.

You might notice in the updater-script that when the files permissions are being set they are being owned to uid '2000', which is "shell".

And if I want to mimic my Ubuntu setup (kinda what I've been doing a little), I should be setting the ownership to root (uid '0').

Those files don't technically need to be there.

Everything could be merged into 2 files (one for interactive logins the other not) .bashrc and .profile (or .bash_profile).

See here for more info.

[EDIT]

Note that logging in with adb will not execute '/etc/profile', seems that it is not a "login shell".

[/EDIT]

Hope that clears it up.

Also @ ev1 else.

Updated OP with more info, /sdcard support details (needs to be fixed a bit), etc.

=]
[Epic 4G Android Development] sohardivetried:
yea. this is awesome :)
[Epic 4G Android Development] nubecoder:
You could add it to check for either or just replace the check to "SGH-T839" (assuming that's what the build prop has in it).

Epic mounts:

/system = stl9

/data = stl10

/cache = stl11

=]
[Epic 4G Android Development] bc54:
Yup, exact same mounts on the SK4G.

As for the device/product check, I think I'll just make it "SGH-T839" and append a "-SK4G" to the .zip. This keeps seperate the edit to $PATH I made.

I'm starting to get the difference between the profile's and bashrc's, although some actual reading (opposed to skimming) will clear it up more.

Again thanks for porting bash properly, and thanks for all the help!
[Epic 4G Android Development] nubecoder:
Updated OP.

Fixed .inputrc and .bash_aliases stored on sdcard problem.

Changed to generic mounts and removed the device check (for more general device support).

Changed ownership of files installed to /system/etc/ (from shell to root).

=]
[Epic 4G Android Development] dzl:
This is awesome man, thank you. Can't say how many times I've tried to cycle bck through my terminal history :P
[Epic 4G Android Development] bgcngm:
First of all, thank you for your work nubecoder.

I have installed your bash 4.1 binary as well as all the settings files (with all the correct permissions). Is it supposed to work immediately after that? Because I can only have everything fully running after setting the following environment variable:

EXPORT SHELL="/system/bash --rcfile /etc/bash.bashrc"

Are we supposed to edit init.rc to set this variable?

EDIT: Can someone confirm if this is the right way to set that variable in init.rc?

# setup the global environment
export TERMINFO /system/etc/terminfo
export TERM linux
export SHELL '/system/bash --rcfile /system/etc/bash.bashrc'
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
[Epic 4G Android Development] nubecoder:
None of that should be required..

Install the files, open adb and type "bash", now in bash.

What device are you on? It shouldn't matter, but I'm curious.

=]
[Epic 4G Android Development] bgcngm:
Well, you're right. After entering bash again (I say again because /system/bin/sh is a symlink to /system/etc/bash) it works.

C:\>adb shell
sh-4.1# bash
bash
[localhost /]#

Do you know why doesn't it assumes all the settings when I first connect via adb? My phone is a Chinese clone, based on MT6573 chipset.
[Epic 4G Android Development] nubecoder:
Yes, unfortunately, symlinking to system/bin/sh doesn't behave as one might expect it to.

I believe the problem is the adbd binary isn't set up for a shell other than the default "/system/bin/sh".

I will look into the exports you mentioned when I get some time.

I'd be interested in incorporating it into my kernel if it allows a properly working default bash shell and doesn't break things.

=]
[Epic 4G Android Development] bgcngm:
Thank you for your fast replies.

I just doubt if the syntax of this export (when set in init.rc) is correct:

export SHELL '/system/bin/bash --rcfile /system/etc/bash.bashrc'

Other than that, I will add this one as well to init.rc:

export HOME /data/local

EDIT: By the way, I was using an older version of bash that was reading settings from /sdcard/bash_profile. It worked properly with the symlink, right after I connect via adb.

EDIT2: The syntax is incorrect. I've just tested. That export variable becomes: export SHELL="'/system/bash". I have to figure out out to set it properly.
[Epic 4G Android Development] bgcngm:
Can you somehow edit your bash so that it behaves the same as the other version that I've linked in my previous post?

I have just tested that old version of bash which loads /sdcard/bash_profile. I've edited that bash_profile so that it looks like:

source /system/etc/bash.bashrc
source /data/local/.bashrc

Those two rc files are yours and with this set I get bash working right after starting adb. Have a look:

I have this working as I wished, but I wanted to use the newer bash version and dismiss the need of that bash_profile on sdcard.
[Epic 4G Android Development] nubecoder:
Thanks, I'lll look into it.

=]
[Epic 4G Android Development] jocala:
I did Bash about a year ago for the my Epic, but your implementation is much nicer! I used the code sourcery cross-compiler, but lately I've been working with a uclibc-based cross-compiler. Have you tried it? Anyway nice job :)
[Epic 4G Android Development] bgcngm:
Did you ever got the time to look into it? :)
[Epic 4G Android Development] phonehunter59:
Who dares awaken this thread from the grave
[T-Mobile LG G2x] k0nfident:
Hey there, I hope you're doing great!

I'm creating this thread because I was wondering if the issue I am about to describe is a known bug or if it only happens with me.

The problem I am experiencing is sporadic, as I cannot determinate a specific cause for it; it sometimes happen right after reboot, and sometimes after long usage, after a call, simple idling, etc.

Of course the issue is that when I receive an SMS message from a contact, I see it pop-up at the top as a notification, but when I want to see it in the threaded conversation, it is simply not there. I can continue texting, and they continue receiving my messages properly, as do I... only by looking at the top status bar though, because other than that, the threaded conversation remains the same during the whole exchange.

My phone is not rooted, it is a brand new LG-P999 from Videotron (They call it the LG Optimus 2X here!) and it runs Froyo 2.2.2!

Thank you very much for your help, and of course, excuse me if this issue has already been looked into! Otherwise, have an awesome day! ;)
[T-Mobile LG G2x] Maris_:
Is it possible you are using a third-party text app? I ask because I mainly use Google Voice for my texts, but every now and then someone will text my phone number, which of course means it goes to the phone's message app. As you mentioned, you get the notification and can respond just fine. However, if I don't pay attention, and go to my Voice messages, their messages will not appear, and I have to switch to the built-in message app to see their conversations.
[T-Mobile LG G2x] k0nfident:
Thanks for your reply, but I am actually using the stock SMS app!
[T-Mobile LG G2x] k0nfident:
Hmph, started looking into the "Messages" app settings and found something called "Text messages on SIM card" and found all the messages I was "missing".

What causes this?! =O

*EDIT*

I looked on the Internet a bit but found nothing pertaining to the LG-P999/G2X. I, however, found information on the matter saying that this is usually caused by reaching the maximum capacity of SMS messages in your phone. I have about 120 messages all in all, which is certainly a very small number! I also have about 4.50GB of free space on my phone!

Thanks for the help!
[T-Mobile LG G2x] SpOuK-3-:
This is a known issue from LG... Call the tech support and open a ticket.

Voicemail notif is causing this issue... default storage is change to simcard by the OS...
[T-Mobile LG G2x] k0nfident:
Thanks a lot, it is definitely a relief to know that this is a known bug. Do you know how we can change the default storage of the voice mail, or I need to root?

Thanks!
[T-Mobile LG G2x] k0nfident:
I just wanted to add that I successfully found a permanent workaround to this problem by installing GoSMS Pro! No more "disappearing" text messages :)
[Atrix 4G Q&A, Help & Troubleshooting] XXtremeAzzKicker:
Does anyone have a "Tip or Trick" on how to stop hopspot timeout on Gingerbread?? No matter which time setting I change it to, it still say data link lost until i wake the screen back up. Really annoying while trying to watch netflix!!
[Atrix 4G Q&A, Help & Troubleshooting] recurringintensity:
I think it has to do with your MAC. Are you able to log back on or do you have to wait?
[XPERIA X10 Q&A, Help & Troubleshooting] sour_cream:
Hi everyone,

I have been testing a lot of different custom ROMs for my X10 but so far I have not come across a single one that 1) support the advanced CM backlight settings successfully allowing the backlight to be set below 15/255 2) any market app that would achieve the same thing i.e. lower the backlight to lower than what is achievable through the normal settings slider. Screen Filter is not good, it only lowers the color brightness but the backlight still burns your eyes. My HTC Hero supported the CM settings and it is the only thing i miss after my transition to the otherwise glorious X10.
[Desire HD Q&A, Help & Troubleshooting] AlCapone:
When using earbuds, whenever I play music (with any player) - or the phone makes sounds (like vol up/down) - a weak background noise is added, - until the music/sound stops, then the noise goes away after 2 seconds.

Is there any solution to it, or is that a hardware limitation ?

(you need to be in a quiet room to hear it.)
[Eee Pad Transformer Q&A, Help & Troubleshooting] devilpera64:
Hi to all! My TF is in RMA from 2 days in Czech Rep. I sent it for repair front facing camera. Well Asus receive it and in one day have done "repair" -> "tests" -> "packing" and now is on "ready for shipping" from yesterday late afternoon. How long is process of shipping? Asus don't send immediately the object? have they a favourite day for shipping? :confused:
[Eee Pad Transformer Q&A, Help & Troubleshooting] devilpera64:
Solved, ASUS show up Tracking no. :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] Triton1986:
My TF is in Czech republic too! Now it is almost 3 weeks ago since I contacted them and more then two weeks they have my TF. First the ''reparing'' status remaned a couple of days, but now 4 work days (exc weekend) it is showing "Ready for Shipping" When will it be shipped back to me?
[Galaxy S II Q&A, Help & Troubleshooting] Juxtapo:
Hey XDA, long story short, I rooted my phone, installed Cyanogenmod Nightly on it, then I put a custom theme on I found here and when I rebooted it, it got stuck in the Cyanogenmod Boot Loop. I didn't want to try anything because I don't want to risk bricking it, but what can I do to fix it?

Edit: I don't really care if I just go back to Touchwiz, if that's relevant at all.
[Galaxy S II Q&A, Help & Troubleshooting] Juxtapo:
Thank you sir.
[Windows Mobile Development and Hacking General] fabicio:
I find utility for windows mobile similar to utility for android. For example Smart measurement, trip journal, Orienteer, camera zoom, barcodescanner etc.

Do you know?

Thanks
[EVO 4G Q&A, Help & Troubleshooting] Stovepipe:
Sounds like a silly request... but see if my train of thought makes any sense.

Background: I have an evo running on pageplus. I've followed the tut's, and had sporadic 1xRTT data working. I also tested running the phone using the verizon (pp) setup for mobile profiles, being simply one profile rather than the three required for it to connect to data.

What I've discovered (using the debug tool ##DEBUG#) is that using the three data profiles, the phone never authenticates for EVDO, and thus, stays at 1X, but the data does work. Using one profile, the phone does authenticate, but the connection never actually starts. I've read that it is because of the way the sprint provisioning works. Needless to say, at 1X battery life is horrendous.. as the phone is constantly trying to authenticate with EVDO cell bands. With EVDO and 1 profile, battery life is fantastic, but there's no data stream.

SO... I'm not sure if the final step of data startup (where the phone checks to see if it is using a sprint mobile data or verizon mobile data) is part of the ROM, or coded somehow into the radio firmware (or both).

I was thinking of trying to port a rom from, say, an incredible or Eris (any VZW phone).. to see if it'll actually start data with true 3G.

I figure XDA is the best place to ask.. these forums have been indispensable to me for all my phone nerding needs. =-)

Anyone have any thoughts on this?
[EVO 4G Q&A, Help & Troubleshooting] Stovepipe:
Bueller.. anyone? anyone? Frye?
[EVO 4G Q&A, Help & Troubleshooting] PapaRhino:
I'd really love to flash CM9 or an ICS ROM on my Page Plus carried Evo4G, I had it flashed on when I went through Sprint but, what precautions should Itake and is it even possible? Sorry for the bump, I searched and searched and couldn't find info about this since Feb so I'm finally asking :(
[Viewsonic ViewPad 7 & Variants] mb-14:
Can anyone provide me with with the stock res-framework.apk which does not have any kind of modifications?

Thanks in advance
[Viewsonic ViewPad 7 & Variants] Amalgation:
I've uploaded the unmodified framework from my stock EU 2.2 firmware

Stock2.2-framework-res.zip

Are you planning some new mods ?

Hope this helps :)
[Viewsonic ViewPad 7 & Variants] mb-14:
Thanks a lot. :D I need it for this new rom im building.
[Viewsonic ViewPad 7 & Variants] haree:
hi

wow great. as of now im still using ur old modified rom u had give long time back

and loving it .im sure the new will be even better :D
[HTC EVO 3D] :
Catch it up here:

http://xdaforums.com/showpost.php?p=16794680&postcount=117
[HTC EVO 3D] ApeLovesIceCream:
I keep gettin invalid key can anyone help me with this or guide me how to do all this?

PR3MIUMSWAGG ★[P$W]★
[HTC EVO 3D] cruise350:
Don't use the serial number from the box. Run the program and use the serial number that revolutionary reads from the phone. Enter that into the key maker and you should be ok.
[HTC EVO 3D] ApeLovesIceCream:
Ok thanks now i upgraded to 2.3.3 will it still work?

PR3MIUMSWAGG ★[P$W]★
[HTC EVO 3D] mrrogers1:
Didn't we start off on 2.3.3?? The HBOOT is what you need to be worried about. You need to be on 1.30.00000 or 1.40.0000 to use it "currently". If you ran the OTA that they pushed out Wed/Thurs your HBOOT was updated to 1.50.0000 and you CANNOT use Revolutionary right now. They are surely looking into how to get it to work but as always, no promises or timelines are put to it. :)

NEVER ACCEPT OTA! :cool:
[XPERIA X10 Q&A, Help & Troubleshooting] kuuulock:
Im tired of cm6 and i wanna a new rom. I want it extremely fast and stable. 2.2 or higher. Help plz
[XPERIA X10 Q&A, Help & Troubleshooting] josephnero:
why dont you try 2.3.3stock,or alot of gingerbread roms like wolfbreaks roms?
[Eee Pad Transformer Themes and Apps] ksporry:
Hey guys,

I'm still at Prime 1.2 and planning to up it to 1.7 this weekend.

At the time of 1.2 there was a mod floating around that would change the clock fonts to the ASUS font (to make the font use consistent).

When I install v1.7 of prime, does that have HC original fonts all the way, or the original ASUS fonts? In case of the latter, does that mean the clock fonts are also original (i.e. HC instead of ASUS fonts)?
[Optimus One, P500, V General] mvgadagi:
For whom charging not working go to LG SERVICE centre and tell them that Mobile is not charging well ..then they will suggest u for software upgrade and u should ignore and tell them that it's problem with charger only then they will give latest improved charge for free and CHARGER MODEL IS STA U341R

And it will work well...
[Optimus One, P500, V General] gmg9:
will they chk da fone s/w. cause mine custom rom installed.

lgO1-p500 mik's cm7.1 6.5.7b + ffk v19.2 bfs w/o zram
[XPERIA X10 Q&A, Help & Troubleshooting] DeadlyCords:
Long story short - was running WB v3.9.0 Gingerbread on my x10, worked flawlessly... until my usb cable stopped working. Went out and bought a new one... Charged phone for 2 hours fine, tried to plug into PC to update to WB v4.0... PC didn't recognize my phone...

Tried downloading new drivers etc.. nothing worked. So i rebooted phone:

Surprise Surprise! SD Card is unmountable!

rebooted into xrecovery and did a factory reset/wipe of everything.

then tried to restore my backed up rom.... SD card unavailable...

Tried to manually mount sdcard, didn't work

Tried formating SD card - no luck there! :confused:

Now i'm stuck with NO ROM, no way to plug my phone into my computer to download a ROM, a constant bootloop with no firmware and a crappy replacement nokia...:eek:

Any help would be MUCH appreciated! (other than taking it in to repair) I don't know if my warranty will cover this much destruction...

EDIT: called up my service provider (3 australia) and they immediately agreed (to my utter delight and complete surprise) to swap my handset for a brand new HTC Desire HD...

It's a shame i'm now leaving the x10 forums - i really did love the phone, but for an offer like this i don't think many people would refuse the trade.

Thanks everyone for your help and input and see you (or not) on the Desire HD forums :)
[XPERIA X10 Q&A, Help & Troubleshooting] Frosty666:
Looks grim... you might be out of luck... :(
[XPERIA X10 Q&A, Help & Troubleshooting] DeadlyCords:
especially the nokia replacement eh? :P
[XPERIA X10 Q&A, Help & Troubleshooting] ionutraducu:
What version of xrecovery are you using?? Is the latest one which is gingerbread fix? The version that is not fix for gingerbread have that problem with mounting sd card. So try the latest from here: http://xdaforums.com/showthread.php?t=859571&highlight=xrecovery

Another question: did you try with flash tool? maybe in flash mode your phone will be recognized.
[XPERIA X10 Q&A, Help & Troubleshooting] tp1979:
try to put your SD card into a card reader and copy the existing data to your computer.

then format the SD card with Panasonic SD Formatter - I can't include the URL as I'm a new member. :D Just google it.

After formatting the SD card, put all data you copied to your PC back on the SD card and try again.

Maybe it works, I had a similar problem and could fix it as detailed. ;)

if not...phew...good question...
[XPERIA X10 Q&A, Help & Troubleshooting] nipun123:
can you get in flash mode? well if you can then reflash using SEUS

and search for drivers in forums.
[XPERIA X10 Q&A, Help & Troubleshooting] nickymy:
did u try the flashtool to flash it bak to 2.1 SE rom ? i faced the same problems like u b4..

if u stil can access into xrecovery , u can try this

http://xdaforums.com/showthread.php?t=1054818
[XPERIA X10 Q&A, Help & Troubleshooting] DeadlyCords:
It connects in flash mode, but my computer doesn't read the usb connection in order to flash... neither does any other computer :S
[XPERIA X10 Q&A, Help & Troubleshooting] nickymy:
actually i still don understand wat u mean by pc cant read the connection... when u start to flash ur phone bak to 2.1 SE generic rom, ur phone should be having a green light led right ? is the flashmode aborted at the half way bak or totally there is no connection at all?

sorry for asking so much, bcoz i faced this problem b4..i would like to help u too...
[XPERIA X10 Q&A, Help & Troubleshooting] mmokk:
Hey, I also had same problem with my sd card. I couldn't mount it via xrecovery also The solution is very very simple :) You just have to buy a sd card reader. It coasts less than 1 euro. You will have to format your sd card, then copy someones zip with ROM and your phone is repaired :)
[XPERIA X10 Q&A, Help & Troubleshooting] vpllover:
I'm stuck in the same boat. When I lug my phone in it says " USB Device not recognized." In device manager on my computer it says, "The USB device attached to this computer has malfunctioned, and Windows doesnt recognize it."

the phone goes into flash mode but the phone is not recognized in flashtool!
[XPERIA X10 Q&A, Help & Troubleshooting] scoobysnacks:
So then try seus repair
[XPERIA X10 Q&A, Help & Troubleshooting] vpllover:
SEUS wont recognize the phone!!
[XPERIA X10 Q&A, Help & Troubleshooting] waigsr:
u might want to try the phone on a differrent cpu /laptop and run flashtool again.

Some cpus just dont want to detect. I have a few cpus i know,i do all the stuff on my win7 laptop cos its the one that does not give me any problem. one thing the laptop is original win7 64bit,the rest of the cpu is pirated xp,maybe thats why.

try it .
[XPERIA X10 Q&A, Help & Troubleshooting] vpllover:
tried it on 2 different PCs, same frikkin error!
[XPERIA X10 Q&A, Help & Troubleshooting] kieronw3:
Have you downloaded the latest USB drivers and latest sues. My phone could not be found till I did that.

Kieron
[XPERIA X10 Q&A, Help & Troubleshooting] DeadlyCords:
My problem is getting the computer to even recognize that the phone is plugged in. It's

not

even giving me a message saying 'device not recognize', it's totally ignoring it. Therefore i can't use SEUS to reflash the phone as when i plug in my phone in flashmode it doesn't read it.

As for formatting my sd card - that's not the problem... i have 2 sd cards (one brand new that i bought as a spare) and i tried both and neither of them worked - something seems to have happened to the actual hardware of the phone :(

I'm taking it in to repair tomorrow - this is the second x10 that's done this... maybe it's my computer? :confused:
[XPERIA X10 Q&A, Help & Troubleshooting] DeadlyCords:
Also - i can't find a link to the drivers on the forums anywhere - but i honestly doubt that's the problem - the phone was working 100% yesterday.