I wonder why nobody has noticed this but the default user-agent is actually stored in a simple XML file under /data/data/com.android.browser/shared_prefs/
So if you unzip the attached file and push it to your phone, you will be using the new ua next time you start the browser
Code:
adb push com.android.browser_preferences.xml /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml
This is tested to survive a reboot.
billc.cn said:
I wonder why nobody has noticed this but the default user-agent is actually stored in a simple XML file under /data/data/com.android.browser/shared_prefs/
So if you unzip the attached file and push it to your phone, you will be using the new ua next time you start the browser
Code:
adb push com.android.browser_preferences.xml /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml
This is tested to survive a reboot.
Click to expand...
Click to collapse
Nice Job. Worked great.
Sorry
I'm a little new on this is there any way to do this on Os X ?
Thanks!
If you're semi-lazy and don't do adb (I've never really tried to get it working under Linux) you can do those copies under the root terminal emulator. It's the same process (cp) as copying the mountd and init files when you originally rooted the phone. The only difference is, /data is mounted read/write to begin with so you don't have to re-mount it.
you can extract the zip to the root of your sdcard and type the following in terminal
Code:
su
cp /sdcard/com.android.browser_preferences.xml /data/data/com.android.browser/shared_prefs/
Hi,
This is a working broswer for the H builds.
Bookmarks saved and deleted.
Sites display correctly.
Zoom function works.
Rename Browser.zip to Browser.apk and push to phone.
Related
Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.
i want to save a file to the / directory of my phone.
when using adb in recovery mode with $su and mount -a, it seems as if i'm able to us cp to move a file to it, ls shows the file afterwards.
but after booting, the file is gone.
i tried it with a update.zip, same result.
anybody has an idea why this is so and if there is a solution to my problem?
thanks
use root explorer from the market....you can simply copy the file you need to the "/" directory with this app!
I think / is in RAM. There are system and data partitions on internal flash, but there isn't / one, right?
@androgiallo i don't know about root explorer, bur SU File Manager & Terminal couldn't do the trick ...
@Brut.all to be honest, i don't know what you're talking about ... does your reply mean it's futile or rather that there might be a solution?
btw, thanks for maps[brut] and even more for apktool.
der_bert said:
@Brut.all to be honest, i don't know what you're talking about ... does your reply mean it's futile or rather that there might be a solution?
Click to expand...
Click to collapse
I mean "/" isn't persistent - I think it is created in the RAM when you turn on your device, then you could change its contents, but after rebooting it's gone.
For sure there is a way to install something there. If I'm right about that RAM, then there should be somewhere some image of initial contents of "/" partition (they are copied to RAM at boot) - probably in boot.img . So it's possible, but not that easy as just copying a file to "/".
These are just my guesses, maybe I'm wrong.
Ahh and why do you want to place some file to "/"? Why not to e.g. /data/?
i use a keyfile for my password manager and i have to enter the path to it manually every time i open the database, so i want to keep the path as short as possible ...
Hi,
I tried to copy an API to /system/app, but when I did that, the screen just blinks, and the file is not pasted into the directory.
I had temp root, and had remounted R/W.
I eventually was able to do the copy by using ES Explorer, but not with RE itself.
Does anyone have any idea what might be wrong?
Thanks,
Jim
Don't know if this helps but... I recently tried to do some copying of files using AndRootFile, and RootExplorer. And like you they did not "take". I finally figured out that after I selected a file to copy, I would use the back arrow button to move to the target folder. This was the problem. When I used the Parent folder icon instead to move back out of the folder, and move to the destination folder without using the back arrow button. the file copied just fine. Hope this helps.
Reggie,
Thanks for the suggestion, but, no, I wasn't using the "back" to get to the /system/app directory. I was clicking on the parent dir, etc.
Jim
I also am having that problem. I tried both the back buttons and the parent directory. Ive tried factor data reset as well. I wander if it has anything to do with the update yesterday?
Until we/someone figures why, you can use root explorer to mount, then the built in es explorer to do the copy...
Jim
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native 'cp' command, so you have to use 'busybox cp' instead. I wonder if that's why the RE copy/paste doesn't work?
Jim
SOLVED - it was no native 'cp'
jimcpl said:
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native Cp command, so you have to use 'busybox cop's instead. I wonder if that's why the RE copynpasre doesn't work?
Jim
Click to expand...
Click to collapse
Hi,
I just tried a test, where I created a softlink for 'busybox cp':
ln -s /system/bin/busybox /sbin/cp
I then was able to use RE to copy/paste into /system/app !
CAVEAT: I don't know if busybox is on Gtab by default...
Jim
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
NMCBR600 said:
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
Click to expand...
Click to collapse
Hi,
That was a typo on my part. The 'cp' command (lowercase c) was really missing in my Gtab .
I've been experimenting w/alternate keyboards, and keep making typos ...
Jim
P.S. I fixed the typos ...
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
butchconner said:
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
Click to expand...
Click to collapse
Hi,
BTW, to create the softlink (using ln), you'll need to use adb shell. Or, you could use a terminal, if one's installed (kind of catch 22, since you'd need market to get a terminal).
Otherwise, what might work is:
- z4root to get root
- root explorer to make /system R/W
- kill then restart es file explorer and use that to copy the apks to /system/app
Jim
SIGH ... softlink doesn't survive a reboot
It looks like the softlink that I created disappears after a reboot... then RE can't copy again.
Sorry...
Jim
Hi!
I was one of the first downloaders of ARHD 5.1.11, so I've got the version with the wrong "sleep_max_freq"-file. I wanted to change it's content manually from 5xx.xxx to 460.800, but that was more complicated I guessed:
1. nano does not work correct. I started a su-console from within connectbot (yes, "#"-prompt was visible, so I was root), remounted /system/ RW and then moved to /system/etc/virtuous_oc/. Than I've tried to change sleep_max_freq with
#: nano sleep_max_freq
but that doesn't work: I can't edit anything, nano doesn't react on tipping something on the keyboard :-(
So I've copied the file to the sdcard, mounted this on my Debian desktop and edited it. After that I've tried to copy it back to /system/..., but:
2. cp does not work correctly. Normally (so the man-page told me) I can override an existing file with the parameter -f: cp -f SOURCE DEST. But cp stopped with an error-message. I had to rm the old file manually, after that I can move the file from sdcard to /system/...
Is this a normal behaviour?
Dirk
naturelle said:
Hi!
I was one of the first downloaders of ARHD 5.1.11, so I've got the version with the wrong "sleep_max_freq"-file. I wanted to change it's content manually from 5xx.xxx to 460.800, but that was more complicated I guessed:
1. nano does not work correct. I started a su-console from within connectbot (yes, "#"-prompt was visible, so I was root), remounted /system/ RW and then moved to /system/etc/virtuous_oc/. Than I've tried to change sleep_max_freq with
#: nano sleep_max_freq
but that doesn't work: I can't edit anything, nano doesn't react on tipping something on the keyboard :-(
So I've copied the file to the sdcard, mounted this on my Debian desktop and edited it. After that I've tried to copy it back to /system/..., but:
2. cp does not work correctly. Normally (so the man-page told me) I can override an existing file with the parameter -f: cp -f SOURCE DEST. But cp stopped with an error-message. I had to rm the old file manually, after that I can move the file from sdcard to /system/...
Is this a normal behaviour?
Dirk
Click to expand...
Click to collapse
That's the most complicated methods I've even seen mate. Open root explorer end edit this file with your phone
mike1986. said:
That's the most complicated methods I've even seen mate.
Click to expand...
Click to collapse
Hey, maybe
I think it's because I'm coming from Debian, so command-line is the simpliest thought I've had.
But that's not the point, I think that cp and nano are not working correct. Can anybody confirm this?
Dirk
So I am the only one? Or is there anybody outside who is able to confirm my problems?
I'm trying to use my new Sensation with the SIM from my Japanese iPhone, which requires replacing the stock Mms.apk with one that works with Softbank. That much I managed to do. Now when I try to open the Messaging app it crashes immediately, which is apparently normal and means I need to delete the old Mms.odex. But when I try, the command prompt window tells me:
rm failed for /system/app/Mms.odex, No such file or directory
I've made sure the folder isn't read-only (I managed to copy the new Mms.apk to it after all). Not sure what else could be going wrong. Thanks in advance for any help.
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Sent from my Sensation using Cyanogenmod
dr.m0x said:
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Click to expand...
Click to collapse
I know it's not ideal, but this method seems to work just fine; I've read a bunch of Japanese blogs that explain this is how to get MMS working with Softbank, and people on forums elsewhere say it's worked for them.
dr.m0x said:
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Click to expand...
Click to collapse
How do I do that? I'm pretty new to all this, two days ago I was Googling where to find my Sensation's settings menu
If you want to ensure the mms.apk has correct permissions you can simply run:
adb shell chmod 644 /system/app/mms.apk
This will set the correct permissions for apps in the /system/app folder, although its worth reading up on linux permissions to understand what the command is actually doing.
Permissions didn't help, but I've managed to track down another Mms.apk file that works well enough - messages don't integrate properly with HTC's Messaging app, but I can send and receive MMS. I'm going to keep looking for a better apk but at least this one functions!