General :: Edit Line In File From Terminal?

Dec 12, 2012

I don't really know where to put this topic but anyways my problem is that i need to edit a line in a file.

So i think of something like this

su
Cd /data/data/foldernameofapp/
Edit "file.dat"
Edit line 4 "text here 2"

i want it to edit like this "text here 3"

Change only the number. or replace the hole line with a new line where i only changed the number. btw the best is if the script can change a line and not find text and change. Because the number in the text i want to change can vary from different numbers.

P.S i can use root explorer and open the file with a text editor and change it, this works but takes forever P.S.S i got root

General :: Edit line in file from terminal?


General :: No Internet Access / File Manager - Install APK File From Terminal Emulator?

Oct 8, 2012

Let's say you don't have internet access at the moment. Let's say all you have is fresh install of CyanogenMod 9, which for some reason, does not come with a File Manager :

Let's say you have an apk file on your SD card. How would you install the apk file? Terminal emulator, using which commands or another way?

By the way, ASTRO File Manager vs. ES File Explorer, which one and why?

View 8 Replies View Related

Motorola Droid :: Open Up Terminal Emulator The First Line Goes

Feb 2, 2010

So I rooted my Droid last night but then unrooted it. Now when I open up terminal emulator the first line goes:

View 2 Replies View Related

General :: How To Open A File In Terminal Emulator - Samsung Galaxy S II

Feb 16, 2013

Just got Samsung Galaxy S II and I'm trying to open a file in terminal emulator for android. The file is named 'setup.sh'. When I type 'sh setup.sh' in terminal, it writes back 'Can't open setup.sh' The file is saved on the phone. How to open it?

View 3 Replies View Related

Motorola Droid :: Scripts In BB - Terminal Emu - Edit Text Copy Or Paste

Jun 20, 2010

I want to run some scripts in BB. When I open the emu and type su and hit enter, it brings up an "Edit Text" dialog box with the options to copy or paste and it won't let me proceed. (I have successfully done it before on another ROM). Am I doing something wrong? Can I run scripts using Root Explorer and how? Is there another emu you would recommend?

View 14 Replies View Related

Android :: How To Read A Local File Line By Line?

Jul 10, 2010

I have a text file in my res/raw directory. I want to read the file line by line, but FileReader and BufferedReader fail, because of Android's security restriction. How else can I do it?

View 1 Replies View Related

Place 6 Edit Box In A Line Horizontally?

Dec 12, 2013

How I can place 6 edit box in a line horizontally without overlapping other.

the following is my code

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"

[Code]....

View 1 Replies View Related

General :: How To Make List Of Each File In New Line (using ADB Commands)

Mar 19, 2012

I have developed a program that will allow android users to navigate through the files. But the problem is that when I use the "ls" command it doesn't make always a new line after each file but it places it in one line. Here is a screenshot

So my question is: Is there a way to make it list each file in new line? (using adb commands)

View 9 Replies View Related

General :: Edit APK With ODEX File?

May 3, 2014

I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.

The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?

View 3 Replies View Related

General :: How To Edit Host File

May 19, 2012

How can you edit your host file?

PC36100

View 3 Replies View Related

General :: How To Edit OBB File Or Old Zip Trick

Jun 26, 2013

Is there a way to edit the obb file or the old zip trick is enought for that?

View 7 Replies View Related

Android :: How To Put Horizontal Divisor Line Between Edit Text In Activity

Nov 10, 2010

im making a activity to configurate my app, and i have to divide the sections of my configuration window with a line, i used this: divider_horizontal_bright, from this example: http://android.cryx.li/doku.php?id=know:settings: start but it doesn't works, when i test on my android phone, it doesn't shows a horizontal line

View 2 Replies View Related

General :: NVFlash Files - How To Edit BCT File

Apr 28, 2012

I am running some more tests and decided to take a different path for dual boot (for testing anyway, still gonna give it a go with bmp)... so to make a long story short, how do I edit the .bct file that comes with the nvflash zip??? I can edit the .cfg just fine but when I add my secondary partitions at the end of the line up and before UDB, the g2x doesnt seem to boot, like it just stays at the first lg logo and goes no further. I need access to the file to make it kick over. I think. Ive not been able to find out how to edit the file.. although I've not looked 110% as I usually do..

I am not even sure if I've named them right.. but hte way I see it they are all 3 characters in length.. so ive made the secondaries called APS, CAS, & UDS.. that also maybe my issue. but none the less ive attached a screen cap to show they were made and where they fall in the lineup.

View 1 Replies View Related

General :: How To Edit Info File On Android

Mar 18, 2014

im trying to edit one file with extension .info since i cant find any program that i can did that on mac,so is there any program who can open that file and edit in the phone instead using a pc?

View 2 Replies View Related

General :: Edit APK File To Allow To Stay For 4 Seconds

Mar 2, 2013

The goal is to be able to change small things in some apps.For example, there is an app called SnapChat which allows you to send a picture for 3 seconds and then closes the picture. In this scenario, I would like to be able to edit the .apk file to allow to stay for 4 seconds.

View 1 Replies View Related

General :: How To Edit Ext4 File With Windows XP

Apr 23, 2014

I want to edit an ext4 file with Windows XP and and I haven't found a solution despite extensive research.

View 4 Replies View Related

Android :: Cursor Placed In Middle Of Edit Text / Make That To Point In First Line?

Jul 14, 2009

I was going through the notepad tutorials .... the cursor was placed in the middle of edit text ..i tried to make the cursor to point in the first line as shown in the pic but not able to find the solution for it...

View 2 Replies View Related

General :: Miui V4 Theme Edit (icon File)

Feb 11, 2012

How can I edit the icon file in miui v4? It's a separate file in /system/media/theme. With miui versions based on android 2.*.* it was possible to use winrar or 7zip but now I can open the file and extract but cannot replace files within the file. So what to do?

View 1 Replies View Related

Motorola Droid :: Difference Between Using Terminal Emu And File Explorer

Aug 29, 2010

Is there a difference between using a terminal emu and a file explorerer opposed to using the root explorer file manager. I don't have a pc and can't use my card on the market for paid apps at the moment because I'm BROKE!

View 1 Replies View Related

General :: Android Emulator - Edit Hosts File Doesn't Resolve Custom Domain Name

Dec 20, 2010

I'm developing a mobile website and I want to see how it looks in Android Simulator.

I manage to edit my android's /etc/hosts file. Here's what I did:

1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command

Code:
./emulator -avd android -partition-size 128

3. Execute the following commands

Code:
./adb remount

4. Get the android hosts file

Code:
./adb pull /etc/hosts

5. Add my mobile website into the android's hosts file. It looks like the following

Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost

6. Push the hosts file to the simulator

Code:
./adb push hosts /etc/hosts

7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.

Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)

View 3 Replies View Related

Android :: Android Multi Line Edit Text

Mar 15, 2010

I want to have 5 line in height text area following code I am using.

<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="center"
android:singleLine="false" android:lines="5"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
/>

Text area looks fine but problem is cursor is blinking in the middle of the text field. I want it to blink at first line first char of the text field.

View 3 Replies View Related

Android :: Build APK File From Command Line

Sep 28, 2009

I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res folder and Manifest.xml file to a specified folder. and run the command :[apkbuilder.bat %FILE_NAME% -rf "./src_folderr"]. This command build the new .APK file with default keystore. But I want to build the APK with me generated keystore, with command line as this :[apkbuilder.bat %FILE_NAME% -rf "./src_folder" -storetype path_to_my_release_keystore.keystore] but it can not find my keystore with "java.security.KeyStoreException : release.keystore not found". How can I build APK file with my keystore file?

View 12 Replies View Related

Android :: Put File In Sdcard Using Command Line?

Aug 20, 2010

How to put file in sdcard using command line I tried by using adb push command but its not working my file is in D:/sample.ogg I had written code...

View 1 Replies View Related

Android :: Replace First Line Of A File In Droid App?

Sep 3, 2010

In my android application i would like to replace my first line of a txt file with some other data.
Is there any way that i can do this.

View 1 Replies View Related

Android :: Get Only Third Line Data Of A File In Droid?

Sep 3, 2010

In my android app i am reading a file but require any the data on third line to be displayed.Is there any way to do that.

View 1 Replies View Related

Android :: Build .apk File From Windows Command Line?

Sep 30, 2010

How can I build and signed (keystore) the .apk file using 'apkbuilder.bat' via windows command-line? I try to run the following line: apkbuilder.bat %APK_File_Name% -u -z %Project_Path%in esources.ap_ -f %Project_Path%inclasses.dex -rf %Project_Path%. But I'm getting the following exception: java.lang.ArrayIndexOutOfBoundsException: 1 at com.android.sdklib.build.ApkBuilderMain.main<ApkBuilderMain.java:61>.

View 2 Replies View Related

Android :: Insert Line Breaks Into Text File?

Aug 16, 2010

My code is pretty standard.. sReport contains the text I would like output to the text file, and it contains several" "line breaks that render fine in a textview, but in the text file they're non-existent. There must be something easy i'm missing..

try {
FileOutputStream fOut = new FileOutputStream(sDir + sFile);
//write
fOut.write( sReport.getBytes() );
// Close output stream
fOut.flush();
fOut.close();
} catch (IOException e) {
e.printStackTrace();
}

View 1 Replies View Related

Android :: Generate Build.xml File From Command Line Using Ant

Nov 2, 2010

I've installed Ant. From an existing Eclipse project I am able to generate the build.xml file from the command line using ant -update project. When I now try ant release I get this error: build.xml:65: java.lang.NullPointerException. This project builds fine under Eclipse. I have no idea where to even begin to figure this out. I wouldn't bother with this except that I need to use ProGuard later on (which I have not done yet).

View 1 Replies View Related

Android :: Reading Defining Line Of Text File In Java

Oct 2, 2010

I am trying to develop application for android . how I can get the defining line of textfile? For instance I have to read 15. line of textfile. how I can do that?

View 1 Replies View Related

Android :: Edit CLF File For Source Insight?

Aug 11, 2009

Which tool can be used to edit the CLF file for sourceInsight?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved