Terminal emulator - T-Mobile LG G2x

I have a question regaurding the terminal emulator. I work on the command line a ton! With that said, yesterday I was creating/writing a bash script with nano and tried to save but there is no freaking enter button. I like the terminal emulator setup a great deal. So I am looking for a work around. Can I edit a file to add an enter button or would that require recompiling some Java file or APK? Suggestions?
Sent from my LG-P999 using xda premium

What keyboard are u using? As long as I can remember there's been a button with the enter function. On my stock 2.3.4 that button is the arrow pointing to the left in the bottom right corner
Sent from my LG-P999 using XDA

noobletsausecakebbq said:
What keyboard are u using? As long as I can remember there's been a button with the enter function. On my stock 2.3.4 that button is the arrow pointing to the left in the bottom right corner
Sent from my LG-P999 using XDA
Click to expand...
Click to collapse
Dude, are you serious? Maybe your just not understanding my question. The enter button works just fine. Up until I create a new file and try and edit that file with nano. How do you think i created the new file and opened nano in the first place lol The enter button inside of the nano editor is non-existant.
Try for yourself!
My commands:
1) Mount -o remount,rw -t yaffs2 /Dec/block/mtdblock3 /system
2) touch /etc/init.d/firewall.sh
3) nano text.txt
Write to the file and try to save. You can use page down(volume up + n) to temporaryily simulate the enter key to create a newline. Volume down + x is exit plus save. This is where I need the exit button the most.
Sent from my LG-P999 using xda premium

I talked to the dev, control + m is the work around. He also said that in the next up and coming version he is pushing a fix for the bug.
Sent from my LG-P999 using xda premium

Related

Touchwiz music player

Hi...does any one knows how to make touchwiz music player on rooted x10
Sent from my X10i using XDA App
I have the apk but it doesn't work...
Sent from my X10i using XDA App
maybe it needs so kind of lib files
So this is dead? Can i have the apk or something?
Sent from my X10i using XDA App
Here is from the leaked Vibrants 2.2 build never tested it.
Edit:
Doesn't work at least not on my end most likely needs a lot of modding to get it working.
urs74 said:
Here is from the leaked Vibrants 2.2 build never tested it.
Edit:
Doesn't work at least not on my end most likely needs a lot of modding to get it working.
Click to expand...
Click to collapse
Awwww...
When u tried it, u pushed with adb? Or copy paste with root explorer?
Sent from my X10i using XDA App
dk2000zx said:
Awwww...
When u tried it, u pushed with adb? Or copy paste with root explorer?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Copy and paste I'll try pushing it.
Edit:
came up failed install for me used these commands not sure if I did them right though.
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push MusicPlayer.apk /system/app
urs74 said:
Copy and paste I'll try pushing it.
Edit:
came up failed install for me used these commands not sure if I did them right though.
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push MusicPlayer.apk /system/app
Click to expand...
Click to collapse
LOL i know nothing about adb so cant help ya, all i do is copy paste then change permission,then reboot
Sent from my X10i using XDA App
dk2000zx said:
LOL i know nothing about adb so cant help ya, all i do is copy paste then change permission,then reboot
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Doesn't look promising since searching on the forums here comes up empty handed on any other phones getting a port of it. Closest music player I've found to it is power amp.

Bionic ROM boot animation sounds?

I have Bionix ROM and I'm trying to add sounds to my bionic boot animation. But there isn't a poweron folder and I tried putting it in the history folder but it still doesn't work. Is there any way to add sounds to the animation?
EDIT: Changed to Bionix ROM and it still hasn't worked. Also tried putting sound file in Notification file and no luck D:
Sent from my Chuck Norris fishbowl
I think it has to do with the kernel, faux kernels don't have boot sound. Dunno about morfic or stock kernels either since I only rock faux ds kernels when released.
Sent from my LG-P999 using xda premium
d12unk13astard said:
I think it has to do with the kernel, faux kernels don't have boot sound. Dunno about morfic or stock kernels either since I only rock faux ds kernels when released.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
What kernels do have boot sound?
testing a method...will post back results ...good or bad
I was able to get sound...tried lots n lots. There is a TON posted here on the subject...found my solution in the HTC forums. Don't have the link handy but search CM7 boot sound. There is a file called bootsnd.sh that will append the necessary files and create the bootsound app needed. To finally get this to work I reflashed a new nightly of CM7. This also removed Trinity kernel...so maybe that was mucking things up. Ill reflash Trinity and see.
But to recap ...yes boot sound on LG g2x with cm7 is a go.
Sent from my LG-P999 using XDA App
OK, I'm going to try cm7. Will posts results to verify.
Sent from my Bionix 2 - A TeamWhiskey Production using xda premium
Taken from somewhere here in xda. (http://forum.xda-developers.com/showthread.php?t=1048231)
I cleared cache and dalvic using CWM.
I flashed a fresh CM7 nightly using CWM.
I Followed terminal emulator instructions...I'm sure adb from command line will work also. I used root explorer to copy android_audio.mp3 (don't forget to set system folder as R/W with root explorer.
1) search for and Download the bootsnd.sh file. Save it to the root directory of your SD Card on your Device.
2. Take whatever sound you want and rename it to: android_audio.mp3 (needs to be mp3 format) and then place in your adb directory.
3. On your phone, open terminal emulator, and type in the following:
su [enter]
cd /sdcard [enter]
ls (to list all files, you should see bootsnd.sh)
sh bootsnd.sh [enter]
You won't see a confirmation, or message, it just runs, and returns you to a # sign.
From your computer, adb push the android_audio.mp3 to the /system/media folder, reboot, and you'll have a sound.
If you don't like or know how to use adb, using root explorer and placing the android_audio.mp3 in the system/media folder works just as well (Mount the /system as R/W First). Reboot, and enjoy your boot sound.
*NOTE*
If you flash / change roms, you'll have to re-run the process to enable the boot sound again. If you get tired of it / don't want it, you can use root explorer and delete the file.
Alternate method:
For those that don't like using the terminal emulator, you can do it via adb:
navigate to your adb folder via commanda prompt, then issue the following commands:
adb remount
adb shell
cd /sdcard
ls [will list files, you should see bootsnd.sh]
sh bootsnd.sh
Like in the emulator, you will be returned with a # sign. Then place the audio file in the folder I specified. Just decided like posting an alt method
Sent from my LG-P999 using XDA App
jhayton said:
(don't forget to set system folder as R/W with root explorer.
(Mount the /system as R/W First). Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
What do you mean by setting the system folder as R/W? It means read/write right? (lol write right)
EDIT: Plus how do I set it to R/W ( Sry im a little of a noob when it comes to things like this, im better at game developing )
thor6577 said:
What do you mean by setting the system folder as R/W? It means read/write right? (lol write right)
EDIT: Plus how do I set it to R/W ( Sry im a little of a noob when it comes to things like this, im better at game developing )
Click to expand...
Click to collapse
Using a utility like Root Explorer (A paid app but worth the 4$, there may be a free alternative), makes this a trivial task...simply click the "Make R/W" will make the system directory ...you guessed it "Read/Writable". Normally its "Read Only" (R/O).
Im not 100% sure about this (im sure ill be corrected) as Root Explorer has made me lazy, but using ADB and issuing the command ADB Remount, will make the file system R/W (per the ADB Wiki adb remount - remounts the /system partition on the device read-write)
So using ADB to push your files, make all your edits on your local machine, then put them in your ADB directory, and issue commands as follows:
ADB remount
ADB push build.prop /system
ADB push init.local.rc /system/etc
ADB push bootsound /system/bin
ADB push android_audio.mp3 /data/local
Grr after I tried it it still doesn't work!!!
EDIT:Im reflashing ROM in case.
EDIT 2 : Yup didn't work.
Sent from my LG-P999 using xda premium
Open terminal emulator and type
Su
Then at the # type bootsound
Do u hear sound? If not something is incorrect
If you do...then its your kernel.
Trinity breaks my bootsound.
Still looking for a fix
Sent from my LG-P999 using XDA App
jhayton said:
Open terminal emulator and type
Su
Then at the # type bootsound
Do u hear sound? If not something is incorrect
If you do...then its your kernel.
Trinity breaks my bootsound.
Still looking for a fix
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Nope didn't hear nothing.
Sent from my LG-P999 using xda premium

[Q] How to enable boot audio with CM

Sorry if this doesn't belong here, I can change audio easily with stock based roms but nothing I've found is working for CM based roms, preferably CM9 if possible. I don't know anything about this, looked up multiple threads none worked I tried the changes they said, editing lines in build.prop, init.local.rc and a way that says to run a script in Android terminal, everything is added/modified I get no audio still
Sent from my LG-P999 using Tapatalk
I believe it now works on the latest
Set of nightlies
Sent from my LG-P999 using XDA
There are no nightlies for CM9
Tried a few more things can someone help or is it not possible? Don't think I've ever had a cm based rom have on/off audio
Sent from my LG-P999 using Tapatalk
xBkKx said:
Tried a few more things can someone help or is it not possible? Don't think I've ever had a cm based rom have on/off audio
Sent from my LG-P999 using Tapatalk
Click to expand...
Click to collapse
There's an app called BAC lite, it shows an option to install boot audio binary and tells to use android_audio.mp3 in /system/media/ I haven't tried it with an MP3 or even a properly named ogg but I'd say to give it a shot for a possible quick, easy fix.
Did it work?
Sent from my LG-P999 using xda app-developers app
jefdumais said:
Did it work?
Sent from my LG-P999 using xda app-developers app
Click to expand...
Click to collapse
I couldn't get it to work, app changed boot animation fine but when I tried audio it said it installed the file but still heard nothing during boot
Can't remember where I found this procedure but it does work for me using CM7. I would guess it would work for CM9 and above as well.
_______________
Another user asked for this, and I helped him through it, so I decided to post it here so everyone can have access to it. I didn't create the file, just came across it one day being bored..I digress.
Credit to barnacles10 and lithid-cm
*NOTE: Anything in brackets is either description of what is happening or an action you need to perform; don't type in anything in brackets*
What you need to do to get a boot sound on CM7/AOSP is the following.
1. http://dl.dropbox.com/u/19699565/bootsnd.sh Apparently some people had issues with the first link, so I uploaded it again. Download that file, place on your sdcard.
2. Take whatever sound you want and rename it to: android_audio.mp3 [needs to be mp3 format] and save it to the system/media folder using a file manager that lets you access system directories. I use Root Browser Lite (you can get from Play Store).
3. On your phone, open terminal emulator, and type in the following:
su [enter]
cd /sdcard [enter] *you can store the bootsnd.sh file to any folder on your SD card, so use this command to navigate to it*
ls [to list all files, you should see bootsnd.sh]
sh bootsnd.sh [enter]
You won't see a confirmation, or message, it just runs, and returns you to a # sign.
Reboot, and enjoy your boot sound.
*NOTE*
If you flash / change roms, you'll have to re-run the process to enable the boot sound again. If you get tired of it / don't want it, you can use root explorer and delete the file.
If your having trouble getting sounds to play this should fix the problem.
Quote:
Here is how to fix it.
Make sure you are mounting in R/W mode on each of these steps.
Quote:
Originally Posted by deaver_92 on XDA
To start go to
/system/etc/init.local.rc
and open it in the text editor. Delete everything from
###Bootsound - Safe to Delete: Start###
to
###Bootsound - Safe to Delete: Stop###
Delete any instances of it.
Using a app like root explorer, goto /system/bin and delete the file bootsound.
Back out to /system now open build.prop in text editor mode, look for this text.
Code:
ro.config.play.bootsound=1
Delete it from the build.prop and save and exit.
This is optional but recommened.
Reboot phone.
Verify no sound is playing.
Now run the script again and reboot.
You should have a boot sound again.

[Q] Need tool to access phone using PC, cant access phone

I have accidentally installed a theme that is probably of higher resolution than my phone screen. Now in locked mode the unlocking option/pattern/graphics is not visible as it is 'spilling out of screen'.Only a part of large lockscreen wallpaper is occupying my entire screen. Android debugging is on in my device (thankfully). Please suggest me a tool/method using which i can control the phone using PC(or atleast unlock the phone). I (obviously) cannot install anything on my phone, i found some such apps that need installation on phone.
Last option is to flash my phone in recovery with a ROM, but i dont want to do that if other ways possible. my phone is on MIUI ROM developed on 26/9/12
You can wipe your /data in recovery if you don't mind
Or you can manually delete the theme using adb(the apk will be in /data/app).
PS: make a nandroid backup first in case anything goes wrong...
Edit: if you don't know the Apk name, navigate to /data/app and type find(Idk if it will work on windows, cause I tested it in android )
Sent from my LG-P500 using xda premium
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
but my friend i am not able to access my device,meaning i am not able to unlock it, how do i install it (even if installation possible how to open that app without accessing phone)
i dont know if i am expressing my case properly, i am a noob you see.
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FIRST YOU STOP SPAMMING EVERYWHERE
What is the problem when you can see all system files and folder. Go to data /app.. and delete it. Or if you have moved the theme apk to sdcard.. just browse your sdcard using an adapter and delete that appname.apk from ".android_secure" folder.
Use these (if you havent moved the app to sdcard)
adb shell
login as.. su
cd data/app
ls
rm appname.apk
reboot
problem solved
Sorry 'senior member' , i did not mean to spam but if u can understand my desperation. btw problem solved- a noobie like me suggested to call from a different phone and while on the call change the theme....
i myself tried a lot fiddling with command line but wasnt able to figure out.
Peace \/
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FPChaim said:
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Sorry I was sleeppy when I replied that...
Sent from my LG-P500 using xda premium

Photon Q / Droid 4 QWERTZ Mod

You can just replace the Keys, all Keys are Stickers
Uploaded with ImageShack.us
The device must not be opened !!!
Then copy these files to system/usr/keylayout/
http://www.share-online.biz/dl/18IWSTKMY76
I guess I should port the keyboard layout changer from MS1 to CM10.
Just saw this thread today:
Awsome! Now the Q is really complete!!
Stupid question of the day :
Which program do you recommend to copy the files into /system/usr/ ? Androxplorer obviously can't do it, i need a program with Root access, right ?
EDIT : Used Rootexplorer, and this worked. However, i still don't get the German keyboard layout ? How do i activate this ?
after overwriting the files you have to reboot your device.
I use ES Explorer for stuff like that.
Sent from my XT897 using XDA Premium 4 mobile app
gehstock said:
You can just replace the Keys, all Keys are Stickers
Click to expand...
Click to collapse
damn, how nice. but i really miss the ö, ä, ü and ß key on the photonq, because i mostly write in austrian dialect, which has much umlauts.
(jetzt seh ich grade, du heißt gehstock. wie gehts dir ohne umlaute?)
with well modified keyfiles you can access Umlaute by double pressing the Vokal. ß by double pressing s ;p
very handy
Sent from my XT897 using XDA Premium 4 mobile app
Afaik only on Skrilaz_CZ builds with multipress feature.
Not CM default feature.
Correct me if I'm wrong.
could be right. I've never used a non skrillax build
Sent from my XT897 using XDA Premium 4 mobile app
Sorry guys, i tried several times but i can't get this to work. The reason is simply that all file managers i have tried so far, Rootexplorer and ES Explorer, fail when trying to overwrite the existing system/usr/keylayout/ folder, although both have perfect root access (i have SU Superuser for this).
What can i do to get this working ? Are there different levels of root access ?
you have to get write access to the system folder by remounting it
su mount -o remount,rw /system
for es explorer open the left sided menu.
Werkzeuge
click on Root Explorer
R/W einbinden
choose r/w twice.
now you should be able to overwrite files
Sent from my XT897 using XDA Premium 4 mobile app
comstyle said:
for es explorer open the left sided menu.
Werkzeuge
click on Root Explorer
R/W einbinden
choose r/w twice.
now you should be able to overwrite files
Sent from my XT897 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you so much, that did the trick ! I have been to the 'tools' section (=Werkzeuge) of ES Explorer before already, but didn't realize that there are additional functions when clicking on the switches. Allowing R/W for system and root did it, i have QWERTZ finally !
EDIT : I don't know what happened, but for a while the second phone i did the update with did not react to the keyboard any longer at all, and also the power button could not be used to interrupt the screensaver. I tried various actions, also changing the permissions for the new 'keylayout' folder (i renamed the old one to 'keylayout_backup') from the GZ archive file to 'rwx' for all groups, not only 'root', and all of a sudden - after some reboots - everything was fine again. Keyboard worked again, and phone will react to power button. Don't know exactly what i did to get this working, but thank god it does ....
EDIT #2 : This is strange, although i do have QWERTZ working now on all three XT897 phones, on one of them the power button is not working anymore since i changed the keylayout folder. The button itself is working, i can power on the phone fine if it shut down, but as soon as ANDROID has started it won't allow me to lock and unlock the screen with the power button, i have to use the keyboard for that. The phone can be used this way, but this is quite annoying as it makes one handed use almost impossible ? BTW, the other two phones are on 4.1.2, this one is still 4.0.4, will that explain the difference ?
Is there any possible explanation to this behaviour ? Maybe a wrong/outdated file in the new /system/usr/keylayout folder ?
it's possible the key isn't defined inside the file. never had this problem with my files but I used them with jb stock and cm10.2.
you probably should check your files again and/or just update to cm10.2.
Sent from my XT897 using XDA Premium 4 mobile app
comstyle said:
it's possible the key isn't defined inside the file. never had this problem with my files but I used them with jb stock and cm10.2.
you probably should check your files again and/or just update to cm10.2.
Sent from my XT897 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
But i was using exactly the same files in all three phones, the original files from Gehstock from his original link, and they worked for the two phones with 4.1.2, only on mine with 4.0.4 they don't work for the power button ? I had this strange effect that in one of the two 4.1.2 phones the keyboard would not work at all, including power button, immediately after overwriting the old files, but after fiddling around with read/write permissions it worked all of a sudden, and including power button.
Now i have QWERTZ on all three phones, but on mine with 4.0.4 the power button will only work if i want to switch on the phone, as soon as ANDROID is running the power button doesn't react anymore, meaning i have to use TWRP to shut it down again and can't switch to flight mode at all. Any idea what could be causing the problems ? Which of the files in the keylayout folder will describe the power button, maybe i should make a reload of this file ?
EDIT :
Here a list of the files in my original /system/usr/keylayouts folder on Android 4.0.4 :
AVRCP.kl
cyttsp-i2c.kl
Generic.kl
keypad_8960.kl
msm8960-snd-card_Button_Jack.kl
qwerty.kl
usb_keyboard_102_en_us.kl
Vendor_05ac_Product_0239.kl
Vendor_22b8_Product_093d.kl
Vendor_22b8_Product_0938.kl
Vendor_045e_Product_028e.kl
Vendor_046d_Product_c216.kl
Vendor_046d_Product_c294.kl
Vendor_046d_Product_c299.kl
Vendor_046d_Product_c532.kl
Vendor_054c_Product_0268.kl
In the new layout folder from Gehstock there are a number of additional files, especially
atmel_mxt_ts.kl
Button_Jack.kl
gpio-keys.kl
philips_remote_ir.kl
samsung_remote_ir.kl
ue_rf4ce_remote.kl
while some others are missing, like msm8960-snd-card_Button_Jack.kl and usb_keyboard_102_en_us.kl .
Is the problem with my power button maybe resulting from any of the missing files, or the additional files which can't be read in 4.0.4 ?
EDIT 2 : I solved the problem. Deleted the folder from Gehstock, brought my original folder back and only replaced the file 'keypad_8960.kl' with the one from Gehstock. Now i have QWERTZ and my power button is working again.
Can anybody explain to me why we are told to replace the complete folder, if all we need for QWERTZ is the one file ? I only found this out when reading this thread here (German ) :
http://www.android-hilfe.de/motorol...difizierte-belegung-des-hardwarekeyboard.html
When reading this thread it became clear to me that all we need to replace is 'keypad_8960.kl' to get QWERTZ.
So, has anyone an idea how we can get double or longpress on a,o and u to get ä, ö and ü ? At the moment, ihave to close the phone too type the letters with the software keyboard. Plus, i have a major problem, when i type ****+, it doesnt type a semicolon but a <, same with shift+. No double point or however the two dot thing is called, but a >
Any idea how to fix those issues?
I suppose you are not using cm11? (umlaut = sym + vowel) just select the right layout. (the second "Asanti QWERTY" is qwertz)
when using cm10 or stock rom (rooted) you could insert a modded layout file for double pressing
comstyle said:
I suppose you are not using cm11? (umlaut = sym + vowel) just select the right layout. (the second "Asanti QWERTY" is qwertz)
when using cm10 or stock rom (rooted) you could insert a modded layout file for double pressing
Click to expand...
Click to collapse
i cant get cm11 to run on my photon q... dunno why, but no rom boots, so i have to stick with aokp , since its the only rom working.
so.... you could just add a modded layout file into the right folder to get double pressing!?!
did you try that?
comstyle said:
so.... you could just add a modded layout file into the right folder to get double pressing!?!
did you try that?
Click to expand...
Click to collapse
no, which files exactly are the ones qwertz (not qwerty, i replaced y/z) with äöü?
[off topic] btw, is there anything special i have to keep in mind for installing custom roms on my photon q (with gsm sim mod)? i have twrp and aokp running, but only aokp and colorOS are installing, everything else fails while installing.

Categories

Resources