Terminal Apps for 2.1 - Hero CDMA Themes and Apps

Anyone find a terminal app that works well on 2.1? Better Terminal Emulator FC's on me, and I haven't found another that works decently with the soft keyboard.

angst911 said:
Anyone find a terminal app that works well on 2.1? Better Terminal Emulator FC's on me, and I haven't found another that works decently with the soft keyboard.
Click to expand...
Click to collapse
ConnectBot works great - just choose connection type local.

I use Android Terminal Emulator. Just up the font size and its good to go

Thomas1218 said:
I use Android Terminal Emulator. Just up the font size and its good to go
Click to expand...
Click to collapse
how do you enter any symbols? like a * ? I tried and I get j* always

Ya I had that problem too but the best workaround I found was to use the 12# key to bring up all the numbers and symbols and I enter them that way

f00kie said:
ConnectBot works great - just choose connection type local.
Click to expand...
Click to collapse
I'm liking connectbot so far

angst911 said:
I'm liking connectbot so far
Click to expand...
Click to collapse
It's also by far the best SSH/telnet client for android.. it should be a great local terminal client as well
The help for soft keyboards should cover any questions on missing keys.

But when I try to remove a file it does not work? (I am rooted)
I have run
cd /system/app/
rm HtcLockScreen*
and
cd /system/app/
sudo rm HtcLockScreen*

chaos67731 said:
But when I try to remove a file it does not work? (I am rooted)
I have run
cd /system/app/
rm HtcLockScreen*
and
cd /system/app/
sudo rm HtcLockScreen*
Click to expand...
Click to collapse
you gotta mount it read/write.
/system is read only

Still very new to this,
How Do I do that?
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
I do not have adb installed and am doing it from my phone so I am guessing I need to just do
cd /system/app/
rm HtcLockScreen*
exit

chaos67731 said:
Still very new to this,
How Do I do that?
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
I do not have adb installed and am doing it from my phone so I am guessing I need to just do
cd /system/app/
rm HtcLockScreen*
exit
Click to expand...
Click to collapse
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# ls
there ull have the list of all ur system apps just, rm appname.apk or .odex

I was hoping that would give me the Android 2.1 lock screen but it did not work..
Well it did get rid of the htc lock screen
It did not have a way to slide to unlock the screen.
Thanks for the help!

Related

Ash as login shell

Hi All,
The Ash shell provides a few advantages over the Android default sh shell such as command history and cursor handling at the prompt. There are other benefits, but these are the first that come in most handy (to me).
The following tutorial will get you ash as the login shell with as yet no ill effects:
Note: that in my case, I'm using my android2sd construct and thus this modification is being done to my active overlay profile setup, thus to undo it I can simply boot into "safe\\normal" mode and undo the changes without possibly locking me out of the console should it have failed (which it didn't) But you can edit the Android /system/bin/sh file in this manner directly.
Ash as Login Shell:
OK, make the /system fs read-write:
mount -o remount,rw /system
Click to expand...
Click to collapse
Note: that the fs type is not needed, and in my case is not yaffs but ext3, Android will figure it out proper.
Next,
cp -a /system/bin/sh /system/bin/sh0
Click to expand...
Click to collapse
(this is for backup purposes and allows us to undo the change if so desired, or delete it if no longer needed).
Note: I'm using JF1.51 roms, so busybox ash is available as /system/xbin/bb/ash, so that is what I am using here; use ash however you are able to access it.
echo "#!/system/xbin/bb/ash">/system/bin/sh
echo "/system/xbin/bb/ash \[email protected]">>/system/bin/sh
Click to expand...
Click to collapse
Please note the use of (redirect\\overwrite)> and (redirect\\append)>>.
This will overwrite sh with a script to load the desired shell, executing any command-line arguments passed, and preserve the permissions of the original sh file. You can manually set the permissions the same as they are for our sh0 backup if the permissions (root.shell)(0755) don't seem to keep.
Finally reset the read-only state of /system:
mount -o remount,ro /system
Click to expand...
Click to collapse
Now if you shell-in\\telnet-in you should get the ash prompt which unlike the Android sh default prompt, includes the present working directory(pwd) ie: '/#' instead of just '#'.
Note: A reboot should not cause the loss of the modification, but if does, copy the new sh script to your /data/local/bin location or something and copy it back via boot script or something.
Shell Scripts:
If you're like me, you discovered that Android didn't need the interpreter declaration comment in scripts, and thus may not have used them...Well, you will need to update your scripts to include them by adding something similar to the following as the first line of your scripts:
#!/system/xbin/bb/ash
Click to expand...
Click to collapse
Again, please note that I am using JF1.51 roms and the location of the busybox ash shell is what I'm listing; put the full location to the shell you intend to use as this location.
Without the interpreter declaration, ash simply complains 'not found' at the first command, as ash doesn't know how to interpret the script, and doesn't seem to default to the login shell.
Hope someone finds this helpful!
sweet. This is going to be very useful
BAM. thats sexy. i just did this on CM3.6.7.1. works like a charm.
scratches head. i'm lost. what does this do and how does this make my g1 better?
temporizer said:
scratches head. i'm lost. what does this do and how does this make my g1 better?
Click to expand...
Click to collapse
im not sure about the other features, but the one i installed it for is to have your working directory in front of ur prompt. ex:
Code:
/# cd /sdcard
/sdcard # cd /system/sd
/system/sd #
etc...
EDIT: Also, if you use ConnectBot, you'll notice with the regular sh, if u scroll up with tracball, you get BS characters on the prompt. with THIS one, when you scroll up, you get last command entered. VERY handy for when you mistype one character on a long-ass command.
I love you
Couldn't you do this?
Code:
mv /system/bin/sh /system/bin/sh0
ln -s /system/xbin/bb/ash /system/bin/sh
great job, i'm going to get ash working on my G1 (CM-3.6.7.1)
Thanks.
kanstin said:
Couldn't you do this?
Code:
mv /system/bin/sh /system/bin/sh0
ln -s /system/xbin/bb/ash /system/bin/sh
Click to expand...
Click to collapse
I tried this and it worked even after a reboot...
Sweet, I love the scroll back with trackball in the terminal!!! Me thinks this should get absorbed into the next Cyan release.
kanstin said:
Couldn't you do this?
Code:
mv /system/bin/sh /system/bin/sh0
ln -s /system/xbin/bb/ash /system/bin/sh
Click to expand...
Click to collapse
Yes, I reckon you could. Though I had done a few experiments where the symlink failed, but I'm fairly sure it was do to the link: /system/xbin/bb/ash -->../busybox and /system/bin/../busybox not existing...so I did it via script. Many ways to skin a cat they say.
Thank you all... this is fricken awesome!!
temporizer said:
scratches head. i'm lost. what does this do and how does this make my g1 better?
Click to expand...
Click to collapse
It gives a more advanced shell for when you use the command line interface or telnet into your G1. If you don't use the command line a lot, it won't help you.
As for specific benefits to the advanced version, it was listed in the first post.
Hi,
imho this is rather a hack that exposes you to the risk at least on CM to loose your
shell during boot as xbin.sqf the compressed squashfs filesystem containing
busybox is mounted rather late in the boot process. A cleaner solution would be to
move busybox to system/bin and link it to sh. That way you ensure that sh will
always be accessible during boot and also later on, thus not interfering with
further developments. A alternative could be to compile a standalone version
of busybox containing only ash (for size reasons, as size in /system/bin is precious)
copy that to /system/bin and link sh to it.
Seems to work fine on Dude's. Not really sure how it should open, but I type "ash" at the prompt and I get the /$ and /# if superuser. I also get the command history by rolling the trackball, which is a very nice feature.
Can i install this without using my PC?
temporizer said:
Can i install this without using my PC?
Click to expand...
Click to collapse
Should work using terminal.
Tried it on JACHero 2.7.1
I tried the hard link one and I get a read only fs error on the first move command. What should I chmod to get past that?
mugafuga said:
I tried the hard link one and I get a read only fs error on the first move command. What should I chmod to get past that?
Click to expand...
Click to collapse
Do this first before the mv and the symlink.
mount -o remount,rw /system
farmatito said:
Hi,
imho this is rather a hack that exposes you to the risk at least on CM to loose your
shell during boot as xbin.sqf the compressed squashfs filesystem containing
busybox is mounted rather late in the boot process. A cleaner solution would be to
move busybox to system/bin and link it to sh. That way you ensure that sh will
always be accessible during boot and also later on, thus not interfering with
further developments. A alternative could be to compile a standalone version
of busybox containing only ash (for size reasons, as size in /system/bin is precious)
copy that to /system/bin and link sh to it.
Click to expand...
Click to collapse
Is this in any way accurate? I dedicate my g1 to cyan's roms and wouldn't want anything to hinder any of the goodness that is cyanogenMod. Advice?
Load ash when terminal is started?
temporizer said:
Is this in any way accurate? I dedicate my g1 to cyan's roms and wouldn't want anything to hinder any of the goodness that is cyanogenMod. Advice?
Click to expand...
Click to collapse
Safest method will be to change to ash shell once terminal app is started (same as typing "ash" to switch shell from sh to ash). I don't know how to do it in android (in linux you could add it to your login script).
So if someone knows how to execute a command when we login using the terminal app, then switching to ash shell would work without fear of breaking any other functionality.

What Sprint Apps are you tired of removing?

Hey Guys, what sprint apps are you tired of removing? I am going to remove whatever the consensus shows, and upload a flashable zip of dc2.06... nothing else will be different and the only credit I will take is for removing the apps, all else goes to the original people who worked on dc.
So, let me know and I will be removing them!
Flickr
Twitter
NFL
Navigation
TV
Stock
NASCAR
I will keep count of who requests what to be removed in the next post. I'll only wait for bout an hour then remove whatever you guys want removed.
Remove:
03 - NASCAR
01 - Sprint TV
01 - NFL
01 - Peep
01 - IM
NASCAR
please
Normally removed, so all good...
- Nascar
- NFL
- SprintTV
Tired of removing...
- Peep
- IM
Tired of having to add back in...
- Footprints
- Stocks
- Teeter
- Sprint Navigation - it rocks and better than Google Nav in my opinion. Works (and sounds) much more like a Garmin.
Ceger
NASCAR
What a waste of time to uninstall....
S
Ceger said:
Normally removed, so all good...
- Nascar
- NFL
- SprintTV
Tired of removing...
- Peep
- IM
Tired of having to add back in...
- Footprints
Click to expand...
Click to collapse
Agreed with this, but also tired of having to add voice recorder back...not sure why all devs delete it.
you know what though guys. It's easier just to create a script of our own with our own selection and it's a matter of just running that. That's simple enough i think. Just create a DOS bat file.
Create a text file and save it as RemoveStock.bat and save it where ever it's accessible easily via command prompt. Have these lines in it:
adb remount
adb shell rm system/app/*Stock*
adb shell rm system/app/IM.apk
adb shell rm system/app/*Facebook*
adb shell rm system/app/Flickr.apk
adb shell rm system/app/Mail.apk
adb shell rm system/app/htcmailwidgets.apk
adb shell rm system/app/Sprint_Navigation.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/HTCNew.apk
if you already have adb in your path, just double click this file to run it. If not, place this in the adb tools directory and double click from there.
jackal424 said:
you know what though guys. It's easier just to create a script of our own with our own selection and it's a matter of just running that. That's simple enough i think. Just create a DOS bat file.
Create a text file and save it as RemoveStock.bat and save it where ever it's accessible easily via command prompt. Have these lines in it:
adb remount
adb cd /system/app
adb rm *Stock*
adb rm IM.apk
adb rm Facebook.apk
adb rm Flickr.apk
adb rm Mail.apk
adb rm htcmailwidgets.apk
adb rm Sprint_Navigation.apk
adb rm Sprint_NFL.apk
adb rm Sprint_Nscar.apk
adb rm Stock.apk
adb rm HTCNew.apk
anything missing?
Click to expand...
Click to collapse
Anything else you want to do to crash what I am up to? Thanks kid.
Remove-
- Nascar
- NFL
- SprintTV
- Peep
- IM
Keep in, user optional
- Teeter
- Sprint Navigation
- Ringtone Trimmer
jerry43812 said:
Anything else you want to do to crash what I am up to? Thanks kid.
Click to expand...
Click to collapse
nah dude. Intention was not that. I'm sure you figured out by now that if you were to create a common ROM that with the most unwanted apps removed, it would only consist of the NFL, Nascar, and Navigation wiped. The rest are a toss up for almost all users. It'll be hard for you to please all. So I was just suggesting this, thats all.
Any efforts for help are appreciated. So more power to you.
jackal424 said:
you know what though guys. It's easier just to create a script of our own with our own selection and it's a matter of just running that. That's simple enough i think. Just create a DOS bat file.
Create a text file and save it as RemoveStock.bat and save it where ever it's accessible easily via command prompt. Have these lines in it:
adb remount
adb cd /system/app
adb rm *Stock*
adb rm IM.apk
adb rm Facebook.apk
adb rm Flickr.apk
adb rm Mail.apk
adb rm htcmailwidgets.apk
adb rm Sprint_Navigation.apk
adb rm Sprint_NFL.apk
adb rm Sprint_Nscar.apk
adb rm Stock.apk
adb rm HTCNew.apk
anything missing?
Click to expand...
Click to collapse
Yep, best way to do it, or use Android Commander.
Ceger
jerry43812 said:
Anything else you want to do to crash what I am up to? Thanks kid.
Click to expand...
Click to collapse
He's just giving other options...
And my rom is gonna have that stuff out too, but that doesn't mean you shouldn't make what you're making, because I know a lot of people who DO want a slimmed down version of DC 2.06 and don't know how.
Keep doin it man
jerry43812 said:
Hey Guys, what sprint apps are you tired of removing? I am going to remove whatever the consensus shows, and upload a flashable zip of dc2.06... nothing else will be different and the only credit I will take is for removing the apps, all else goes to the original people who worked on dc.
So, let me know and I will be removing them!
Flickr
Twitter
NFL
Navigation
TV
Stock
NASCAR
I will keep count of who requests what to be removed in the next post. I'll only wait for bout an hour then remove whatever you guys want removed.
Click to expand...
Click to collapse
You can consider adding a poll to this thread. That'll be easy way to see what everyone doesn't want.
jackal424 said:
you know what though guys. It's easier just to create a script of our own with our own selection and it's a matter of just running that. That's simple enough i think. Just create a DOS bat file.
Create a text file and save it as RemoveStock.bat and save it where ever it's accessible easily via command prompt. Have these lines in it:
adb remount
adb cd /system/app
adb rm *Stock*
adb rm IM.apk
adb rm Facebook.apk
adb rm Flickr.apk
adb rm Mail.apk
adb rm htcmailwidgets.apk
adb rm Sprint_Navigation.apk
adb rm Sprint_NFL.apk
adb rm Sprint_Nscar.apk
adb rm Stock.apk
adb rm HTCNew.apk
anything missing?
Click to expand...
Click to collapse
+1. This is what I do.
jackal424 said:
you know what though guys. It's easier just to create a script of our own with our own selection and it's a matter of just running that. That's simple enough i think. Just create a DOS bat file.
Create a text file and save it as RemoveStock.bat and save it where ever it's accessible easily via command prompt. Have these lines in it:
adb remount
adb cd /system/app
adb rm *Stock*
adb rm IM.apk
adb rm Facebook.apk
adb rm Flickr.apk
adb rm Mail.apk
adb rm htcmailwidgets.apk
adb rm Sprint_Navigation.apk
adb rm Sprint_NFL.apk
adb rm Sprint_Nscar.apk
adb rm Stock.apk
adb rm HTCNew.apk
anything missing?
Click to expand...
Click to collapse
jackal, what are the commands to run this file once I've created it?
hoopsdavis said:
jackal, what are the commands to run this file once I've created it?
Click to expand...
Click to collapse
If you put it in the tools folder with adb, just type the name of the file into adb to execute. Or you can just click on the .bat file.
I couldn't get jackals commands to work right so I had to do it a little different.
cd C:\android-sdk-windows\tools
adb remount
adb shell rm system/app/Facebook.apk
adb shell rm system/app/Flickr.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/SocialNetworkProvider.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/Sprint_TV.apk
adb shell rm system/app/Sprint_TVWidget.apk
adb shell rm system/app/Stock.apk
adb shell rm system/app/com.htc.StockWidget.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
Click to expand...
Click to collapse
seyer0686 said:
If you put it in the tools folder with adb, just type the name of the file into adb to execute. Or you can just click on the .bat file.
I couldn't get jackals commands to work right so I had to do it a little different.
Click to expand...
Click to collapse
Thanks, I appreciate it.
I thought you weren't supposed to delete IM.apk because it had some other dependencies throughout some other apps. is this no longer true?
...because I just killed it based on you guys doing it.
Since this thread got jacked, if anyone wants my work you can contact me. Thanks. I am done here.
Don't let these guys get to you. I and others are very interested in what you are doing!!

TypeFresh good to go on 2.1?

As the title states, is TypeFresh good to go on rooted 2.1 on an X10i? The huge fonts are killing me
It wouldn't reboot for me so I've just used RootExplorer instead.
It worked fine for me, both apps (Typefresh and Andexplorer) where installed from the market.
javagreen said:
As the title states, is TypeFresh good to go on rooted 2.1 on an X10i? The huge fonts are killing me
Click to expand...
Click to collapse
yer typefresh works lol
Root Explorer copipast fonts an /system
Thanks for the replies guys, I went ahead anyway and got on it -- and it worked
i m still unable to figure please help, type fresh now displays clockopia on first order, was not there on 1.6. how did u change the font then
sahil4u said:
i m still unable to figure please help, type fresh now displays clockopia on first order, was not there on 1.6. how did u change the font then
Click to expand...
Click to collapse
See the link in my sig.
XperiaX10iUser said:
See the link in my sig.
Click to expand...
Click to collapse
Thanks for all the links my friend.
I always use this method to change my fonts:
1. I pick the font I want and I copy the regular and bold version on my SD.
2. I rename the regular to DroidSans.ttf and the bold to DroidSans-Bold.ttf.
3. Then, on my phone, using a Terminal application, I type:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 4755 /system/fonts/DroidSans.ttf
dd if=/sdcard/DroidSans.ttf of=/system/fonts/DroidSans.ttf
chmod 4755 /system/fonts/DroidSans-Bold.ttf
dd if=/sdcard/DroidSans-Bold.ttf of=/system/fonts/DroidSans-Bold.ttf
4. Reboot!
5. Enjoy!!
My_Immortal said:
I always use this method to change my fonts:
1. I pick the font I want and I copy the regular and bold version on my SD.
2. I rename the regular to DroidSans.ttf and the bold to DroidSans-Bold.ttf.
3. Then, on my phone, using a Terminal application, I type:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 4755 /system/fonts/DroidSans.ttf
adb shell dd if=/sdcard/DroidSans.ttf of=/system/fonts/DroidSans.ttf
chmod 4755 /system/fonts/DroidSans-Bold.ttf
adb shell dd if=/sdcard/DroidSans-Bold.ttf of=/system/fonts/DroidSans-Bold.ttf
4. Reboot!
5. Enjoy!!
Click to expand...
Click to collapse
I tried to change it by the Terminal but it says adb not found.Please help how can I overcome this problem.
If you can't get Typefresh to reboot please try the following: Install the latest Busybox from the market. This fixed the problem for a friend of mine.
good for i think there is some problem with my root, type fresh says cannot remount system. which root method did you use. i recently updated my x10i to 2.1 global generic and rooted with one click 1.5. titanium says ok and su too working. but still i cannot wrewrite or copy paste files. help will be appreciated.
sahil4u said:
good for i think there is some problem with my root, type fresh says cannot remount system. which root method did you use. i recently updated my x10i to 2.1 global generic and rooted with one click 1.5. titanium says ok and su too working. but still i cannot wrewrite or copy paste files. help will be appreciated.
Click to expand...
Click to collapse
I used the same method. The first time you run Typefresh you have to give permission, this will cause Typefresh to 'cannot remount sytem' , when you retry it works
dvildriver said:
I tried to change it by the Terminal but it says adb not found.Please help how can I overcome this problem.
Click to expand...
Click to collapse
Ooops...! Sorry! My bad! The correct commands are:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 4755 /system/fonts/DroidSans.ttf
dd if=/sdcard/DroidSans.ttf of=/system/fonts/DroidSans.ttf
chmod 4755 /system/fonts/DroidSans-Bold.ttf
dd if=/sdcard/DroidSans-Bold.ttf of=/system/fonts/DroidSans-Bold.ttf
My_Immortal said:
Ooops...! Sorry! My bad! The correct commands are:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 4755 /system/fonts/DroidSans.ttf
dd if=/sdcard/DroidSans.ttf of=/system/fonts/DroidSans.ttf
chmod 4755 /system/fonts/DroidSans-Bold.ttf
dd if=/sdcard/DroidSans-Bold.ttf of=/system/fonts/DroidSans-Bold.ttf
Click to expand...
Click to collapse
Hi.It works like a charm.Thanks for sharing!
Or just copy and paste using RootExplorer or similar. TF can be a bit temperamental at times, was in 1.6 and is in 2.1.
works perfectly for me... running sony sketch..... no more large letters in 2.1

ADB question

I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
$ adb push email.apk /system/app
failed to copy 'email.apk' to '/system/app/email.apk': Read-only file system
Click to expand...
Click to collapse
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
$ adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
Then I tried open shell first. no go
$ adb shell
$ mount -o remount rw system/app
mount: Operation not permitted
Click to expand...
Click to collapse
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
$ adb shell
$ su
Permission denied
Click to expand...
Click to collapse
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
tangyoulei said:
I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
Then I tried open shell first. no go
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
Click to expand...
Click to collapse
you need to look at your phone and allow superuser app to grant permission
crazythunder said:
you need to look at your phone and allow superuser app to grant permission
Click to expand...
Click to collapse
su app? how should I set it? I didn't see anyone mentioned that. Do you care to give a bit more details? Thanks.
I think I figured out. I have to manually run the superuser app and let it say in active. Then when I type in "adb shell" the app on the handset will ask my permission. Thanks for the reminder.
Plus I am doing the following as the following that I read from another thread
adb shell
$ su
# mkdir /data/yourname
# chmod 777 /data/yourname
# exit
$ exit
adb push gps.conf /data/yourname
adb shell
$ su
# mount -o remount,rw /dev/block/mtdblock6 /system (copy biggrin.gif)
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system (copy biggrin.gif)
# mv /data/yourname/gps.conf /system/etc
Click to expand...
Click to collapse

Help on pushing files to device (ADB)

Hello guys, experiencing another problem now :silly:
Have search all around, couldn't find any valid answers so I decided to ask myself.
So I was just making a rom, which I have already installed. It's based on Cataclysm (personal use only - Till I ask for perm).
I have installed the rom, then I decided to theme some system files. And so I did. I theme the "Settings.apk" for now, and decided to push it to my device instead of installing the whole rom over again. Now mind you when I made roms and modified system apps, pushing these files to the device was straight forward. However on this Hammerhead, I've been running into some issues.
When pushing the file to my device like this
Code:
adb push Settings.apk system/priv-app
.
I get an error that says -
Code:
failed to copy "Settings.apk" to "system/priv-app/Settings.apk" : Read only file system.
So I then decided to try the following -
Code:
[x] adb root - Permission Denied
[x] adb remount - Permission Denied
So then I decided to use some shell commands to set the system as rw, I did the following.
Code:
[x] adb shell
[x] $ su - gave it permission
[x] $ mount -o rw,remount /system - It mounts it.
I then restarted cmd with root permission.
Code:
adb root"
- it restarted however, this time it stated.
Code:
Device not found.
I probably did the wrong thing above, so how exactly can I push files to /system?
SOLVED
Thanks to everyone that answered my question in detail.
The easiest way I know to push files to /system through adb is using a custom recovery . Try with it.
Why not use usb or AirDroid to transfer files?
gee2012 said:
Why not use usb or AirDroid to transfer files?
Click to expand...
Click to collapse
Is it possible to push files to /sustem/priv-app with it?
varuntis1993 said:
The easiest way I know to push files to /system is using a custom recovery . Try with it.
Click to expand...
Click to collapse
How would I do so? I've ever only used recovery to flash. And that was it, thanks if you can guide me through it?
Sent from this toast making Nexus 5, you wish your Nexus could make toast don't you? (;
krishneelg3 said:
Is it possible to push files to /sustem/priv-app with it?
How would I do so? I've ever only used recovery to flash. And that was it, thanks if you can guide me through it?
Sent from this toast making Nexus 5, you wish your Nexus could make toast don't you? (;
Click to expand...
Click to collapse
Boot into recovery and connect the usb cable. Open a cmd prompt.
Code:
adb shell
mount /system
exit
adb push c:\users\krishneelg3\desktopmyfile /system/priv-app
You can also use the "mount system" option in recovery and skip the first 2 commands above.
krishneelg3 said:
How would I do so? I've ever only used recovery to flash. And that was it, thanks if you can guide me through it?
Sent from this toast making Nexus 5, you wish your Nexus could make toast don't you? (;
Click to expand...
Click to collapse
Open recovery, mount system partition and connect it to pc and then normal procedure.
It will be running as adbd to no need to type adb root. Hope this helps
rootSU said:
Boot into recovery and connect the usb cable. Open a cmd prompt.
Code:
adb shell
mount /system
exit
adb push c:\users\krishneelg3\desktopmyfile /system/priv-app
You can also use the "mount system" option in recovery and skip the first 2 commands above.
Click to expand...
Click to collapse
Thank you so much! Greatly appreciated.
Sent from this toast making Nexus 5, you wish your Nexus could make toast don't you? (;
You can still do it through Android, but it's more difficult because adb root doesn't always work (requires kernel) and you have to mount r/w which is just a pain. I always adb push in recovery.
However, here is an example of a successful attempt to adb push on my nexus 5.
Code:
C:\Users\rootsu\Desktop\tools>adb root
adbd is already running as root
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # mount -o remount,rw /system
mount -o remount,rw /system
[email protected]:/ # exit
exit
C:\Users\rootsu\Desktop\tools>adb push [B][COLOR="Red"]test.txt[/COLOR][/B] /system/
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # cd system
cd system
[email protected]:/system # ls
ls
addon.d
app
bin
build.prop
core
etc
fonts
framework
lib
lost+found
media
priv-app
[B][COLOR="red"]test.txt[/COLOR][/B]
tts
usr
vendor
xbin
[email protected]:/system #
rootSU said:
You can still do it through Android, but it's more difficult because adb root doesn't always work (requires kernel) and you have to mount r/w which is just a pain. I always adb push in recovery.
However, here is an example of a successful attempt to adb push on my nexus 5.
Code:
C:\Users\rootsu\Desktop\tools>adb root
adbd is already running as root
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # mount -o remount,rw /system
mount -o remount,rw /system
[email protected]:/ # exit
exit
C:\Users\rootsu\Desktop\tools>adb push [B][COLOR="Red"]test.txt[/COLOR][/B] /system/
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # cd system
cd system
[email protected]:/system # ls
ls
addon.d
app
bin
build.prop
core
etc
fonts
framework
lib
lost+found
media
priv-app
[B][COLOR="red"]test.txt[/COLOR][/B]
tts
usr
vendor
xbin
[email protected]:/system #
Click to expand...
Click to collapse
Thank you I will keep my eye on this and see if the process is similar. Thanks for the info.
Sent from this toast making Nexus 5, you wish your Nexus could make toast don't you? (;

Categories

Resources