Text editor for terminal on customer ROM - Desire General

Hi,
I am using Sandvold's ICS ROM for HTC Desire. The browser isn't any good so I found this post on how to enable Chrome beta: http://forum.xda-developers.com/showpost.php?p=22936668&postcount=13
Trouble is how to edit this file (/system/build.prop) on the phone?
I could transfer it off and put it back, but would be easier just to edit using terminal or another simple text editor. I noticed "Vi" is there, but it is way too cryptic for me. "Nano" is also installed, but it comes with an error message when I try to run it.
How to make nano work, or is there some other text editor people can recommend for this purpose?
Mons

What file explorer do you use? With a file explorer which can get root rights (e.g. Root Explorer or ES File Explorer), you could edit that file with their inbuild text-editors.

HI,
did you try vim or vi ?
It works on BCM.
Code:
vim /system/build.prop
i --> to edit the file
ESC --> to exit edit mode
:q! --> to exit vim without save
:wq --> to save and exit vim

Hi,
Managed to change it in the end, so I can run chrome now.
I installed ES File Explorer, very nice app, but found that the file system was mounted read-only. Only way around it that I found was to use the adb tool from my desktop. Pull the build.prop, modify it on the desktop and push it back.
Chrome is sluggish though, no better then the built in browser on ICS, so not sure the exercise was worth much. Although I did find a lot of other settings in that build.prop file.
Mons

You can mount /system as writable in ES File Explorer's settings.

I missed that setting. At least I know for next time.
Cheers,
Mons

Related

[Q] How To Make a .txt file?

I tried searching and didnt find what I was looking for
Can someone explain how to make a .txt file? I was wanting to modify my power widgets in MikFroyo and I am lost as to what program to use to make it. Thanks for the help
You can use any word processor, the easiest one is probably notepad or wordpad. When you save the file make sure to select .txt as the file type
If you mean on your phone, get es file explorer from the market. Then you just hit: menu new and name it with a .txt at the end of the file name
Ok, so I got how to make the .txt file but using ES file explorer it wont let me paste/move it into the system>customize directory... It just says "copy failed"...
Also, the permission set on the existing widget.txt file are set to read only so I cant just modify that one...
I got it to copy one time and upon reboot the phone stuck at the white HTC EVO screen.. had to android back to pre-messed up copied file...
Anybody already done this and know what I'm missing?
The reason it is not copying is because the system is mounted read only.you can try going into settings in es and go to root options at the bottom. Those options don't work on all roms but you can check it out and see. Mount as read write and then you should be able to copy to system
elegantai said:
The reason it is not copying is because the system is mounted read only.you can try going into settings in es and go to root options at the bottom. Those options don't work on all roms but you can check it out and see. Mount as read write and then you should be able to copy to system
Click to expand...
Click to collapse
Alright, so I used the "experimental" feature to copy the .txt file into the system>customize directory and it actually worked, I have my power widgets the way I want them now..
But, I tried it again a little bit ago and ES file Exlp wouldnt let me use that feature... It kept saying that "mounting failed, this feature wont work on your phone."... Any idea what's up with that?
thanks for the help BTW

[Q] Edit hosts file

Hello,
After reading theads about this universal problem.
I'm still looking for a solution to edit hosts file.
I don't want to pay for root explorer app (sorry).
I've tried AdFree but it adds only "127.0.0.1 localhost"
is there a way to edit this f*** file. I've a hosts file to use but no possibilies to use it...
If someone can help me, (s)he will be very kind....
re Hello,
I've seen a thead a patch to make a link to a file on the sdcard (I don't know where on the forum exactly)
Is there someone to help me ?
I recently have been looking into changing my own hosts file. I use Astro with the root option enabled to copy the hosts file in /system/etc/ to my SD card. With Astro you can change file extensions. Rename your SD copy to hosts.txt and you can edit it with ThinkFree. As for copying that back over, I'm not sure if it's as direct. I would suggest using an Android terminal to do the edits because you can edit without having to use ADB (I found all this out through other threads). Make sure you're root(ed) as well (su command). Also you might have to reboot after copying over your new file. My PC has trouble with my hosts file.
Basically what I've seen is that there's a line in the file that the device can't "understand" (or find) perhaps. My PC file has a couple groups of sites that I copied from a website (after checking for loopback). All in all there was a box or something somewhere because the encoding wasn't the right one. (If you add the .txt extension on the device ThinkFree will ask you what encoding. I use the suggested but that's probably my issue on my PC.) My PC kept making a new, blank copy of my hosts and turning my custom one into an iCal file (?).
Hope this helps a little, even though you're only adding one line...
Sent from my SPH-M910 using Tapatalk
Hello
Thanks for the info.
I've manage to do a link to a hosts file located in the sdcard using adb when I'm in recovery mode.
Now When I use AdFree, the app can update without problem the file
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Indirect said:
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Click to expand...
Click to collapse
It's Ok,
when I do this, it outputs all the adress associated with 127.0.0.1
It displays the content of /sdcard/etc/hosts file.
Easy Host File
I have been able to change my hosts file with no paid apps,adb, or recovery. This will work with Astro or ES File Explorer.
Find and download the hosts file you wish to use; I use mvps. If you want to edit it or add entries do so now. To save it with no file extension on Windows under tools-->folder options enable "show file extensions for known types". Control click and select "rename"; rename "hosts.txt" as "hosts". Window will warn you about changing the extension but clear the warning. Copy this to the root of your sdcard.
On your rooted phone open your file manager (Astro or ES) and click menu. Allow root permission. You will see a legend that says your app has been granted superuser privileges. Navigate to sdcard and copy your desired hosts file. Go to root directory and paste the new file in /system/etc. You will get a warning that files will be overwritten/folders merged. Allow. Now you're done, easy money!
---------- Post added at 06:21 PM ---------- Previous post was at 06:15 PM ----------
To avoid a "blank" you have to show file types for known extensions. Editing is easy in Notepad++. This way you can add new annoyances at will. There's no place like 127.0.0.1!
I Understand the good side of your method.
Just a question. Can we do a link (ln -s....) via ADB with the original recovery ( the unrooted one) ?

[FIX] Stylus and handwriting

If you're looking for stylus functionality from your tablet. You'll need to root it and use the app and tweaks found here.
forum.xda-developers.com/showthread.php?t=1336464&page=2
Also worth doing if don't use stylus, you'll have a much more snappy tablet.
i am rooted, and using es file explorer with the root explorer and file mount checked, i cant get to the /system file
its only allowing /sdcard
i'm using In Paris V5
- still kind of new to this, but i know how to read. Any idea's
You need to enable superuser in es file explorer under settings, i use root explorer and can't remember the precise location of the settings.
pytyper483 said:
i am rooted, and using es file explorer with the root explorer and file mount checked, i cant get to the /system file
its only allowing /sdcard
Click to expand...
Click to collapse
I had to set the root directory (i.e. /) as my home directory. From there you can navigate to /system/build.prop IIRC and make the necessary changes.
touch tune is great.

How to edit hw_config?

Ive been trying to edit hw_config.sh file to remove the led backlight on my arc. Im using the latest CM10 fxp150.
However every time i try editing the file using root explorer or es file explorer they create a backup-file (as they should), but the original file ends up being empty of script.
Does anyone know what im missing?
monty1234 said:
Ive been trying to edit hw_config.sh file to remove the led backlight on my arc. Im using the latest CM10 fxp150.
However every time i try editing the file using root explorer or es file explorer they create a backup-file (as they should), but the original file ends up being empty of script.
Does anyone know what im missing?
Click to expand...
Click to collapse
Navigate to Sys/Class/Leds/Button-Backlight and Change brightness and max_current to 1
. Save.
Now go to System/etc and open hw_config. Now Scroll down a bit and change Max_current to 1, too. Reboot.
If Backlights are not Blinking it Works

[Q] Why can't I copy to 'notifications' folder?

I am running Paranoid Android 4.5 beta. I am trying to copy a sound file to /system/media/audio/notifications but it fails. I have root and I made sure it is mounted as R/W in root explorer but I can't do it. I can copy a file to my 'ringtones' folder. Any thoughts?
I just think its the way KK handles things...try different apps
I tried es file explorer and the terminal emulator and the error is it's a read only file system even though Root explorer says it is read write. Does anyone know how to change it?
bird333 said:
I tried es file explorer and the terminal emulator and the error is it's a read only file system even though Root explorer says it is read write. Does anyone know how to change it?
Click to expand...
Click to collapse
I fixed this problem on my note 10.1 gnabo rom with an xposed module. Now I can use my sd how I want not how google thinks I should
Any other thoughts?
Try this: https://play.google.com/store/apps/details?id=com.mrbimc.selinux

Categories

Resources