Stock rom with CIFSmanager - Motorola Droid X2

I want to run slideshow of pictures shared on my NAS. The NAS, which is a debian box, shares photos via samba. I can view them with ES fileexplorer one by one.
The only viable options seems to be the cifsmanager, I created a folder /system/lib/modules and loaded three modules into it, cifs.ko, slow_worker.ko and nls_utf8.ko. Configured cifs manager with insmode ...
However, I still get the "No such device or directory" every time. Any thoughts?

Related

[Q] Copy file from sdcard to Samba network directory

Hi, We have installed ES File Explorer on our Android tablet and we have cataloged a remote server (10.10.19.45). I am able to see the files on this server from the tablet.
On a different desktop project, I have used a java.nio class file to copy files from a local folder on the desktop to the same remote server and it has been working fine. I tried to use the same java class to copy a file from the Android /sdcard/Download directory to the remote server and it will not create the file on the remote server. I tried specifying
File DestinationFile = new File("//10.10.19.45/sandbox/result.txt"); AND
File DestinationFile = new File("smb://10.10.19.45/sandbox/result.txt");
but neither one works. I keep getting the error "IOException: No such File or Directory". The first option worked for my regular desktop Java application. Is there anyway I can copy files from my sdcard/download directory to the samba directory I have catalogued on my Android? Thanks.

[Q] Do log viewer apps work on stock?

Are logs disabled on stock Sony roms?
If so, is there any way to enable them?
I am using se tweaked 0.7 and inteks kernel, and I can't use any log viewer app, such as logcat. Nothing appears when I open them.
Also when I connect it by USB with ddms in the android sdk, I get
Unable to open log device '/dev/log/main': No such file or directory
I solved it by deleting file in system\etc\init.d\11fuckthelogger It contained this:
rm /dev/log/main

[Q] Opening FLV Videos Using ES File Explorer (File Associations and Players)

Device: Samsung Galaxy Player 5
OS: Gingerbread.UEKI8
Hello All!!
I am using ES File Explorer to browse files on my PC from my Galaxy Player. Whenever I try to open FLV files it pops up a window asking me to select which application to use.
The problem is, it is only showing me 2 applications: ES Media Player and "Videos." I have installed a player specifically for FLV videos (FLV Player) but that one isn't on the list.
Is the reason FLV Player is not on the list a limitation of ES File Explorer? If yes, can you recommend a network file explorer that supports other players? If no, how do I add more players to the list?
Thank you!!
Jan
Hi,
As you probably know:
-ES Media Player does not support that file type
-If you install FLV Player, it won't show up on the list
But, you can use ES File Explorer and MX Player, because MX Player does support the file type and it will show up on the list.
When you try the typical approach to running the files (whether local or on NAS), ES File Explorer gives a message "Sorry, no application available"
But if you:
-long press on file name
-select 'more'
-select 'open as'
-select 'video'
-select MX Player
The file will play.

Editing the host file - new entry has no effect

Hi folks,
I'm developing a new version of a live website in WordPress with domain mapping so that the URL is like-for-like with the live site. On a PC, I just change my host file to point to the WordPress IP address.
I now need to test the WordPress site on a phone.
I have an old HTC Desire with Android 2.3.4 (rooted) that I'm trying to use, so need to add the WordPress IP to the host file.
Using ADB, I've managed to retrieve the hosts file from the phone, edit it and place it back on the phone using:
Code:
adb remount
adb pull /system/etc/hosts /hosts
[edited host file]
adb push /hosts /system/etc/hosts
To double-check that the hosts file really has updated, I've deleted hosts from my computer, then pulled it again from my phone. Opening it up in Notepad++ I can see that it does contain the new entry.
The strange thing is, if I open a web browser to the url I'm trying to map to the WordPress IP address, it still goes to the live website, not the WordPress server. I've verified this using PingTools - the returned IP address is that of the live server.
I'm guessing I need to flush the DNS but it seems the only way to do this is a reboot. But upon reboot, the new entry in the hosts file is gone and we're back to only "127.0.0.1 localhost", so I'm now at a loss.
Any thoughts on where to go from here?
EDIT
After doing the above, installing and loading 'Hosts tool' from Google Play, sometimes the new host entry is there, but most of the time the host file disappears from the phone completely! Looking through ASTRO file manager, it confirms the host file has vanished. Rebooting the phone gets it back, but then we're then back to only "127.0.0.1 localhost" in the host file
I've fixed the problem. For some reason, there needs to be a line feed after the last entry in the host file.
To do this, open the host file in Notepad++ and go the view menu > Show symbol > Show characters. Copy the LF character at the end of "127.0.0.1 localhost" and paste it to the end of each line if it doesn't already have the LF character at the end.
Android refreshes its DNS every 10 minutes, so it's then just a matter of waiting.

Backup and restore a Chrome extension?

I have an extension that is no longer available on the Chrome store. I'd like to be able to back it up on my Chromebook and restore it, since I think it will not be restored after I update the Chrome OS (it will presumably fetch the available extensions from the store).
My Chromebook is in developer mode. So I wonder can it be done from the shell?
I tried enabling developer mode in chrome://extensions, but pack extension does not allow me to see any system root directory, and I have the additional challenge of figuring out which extension it is in /home/chronos/user/Extensions/.
I'm not really sure where to go from here. Any help with this would be really appreciated!
beetroot said:
I have an extension that is no longer available on the Chrome store. I'd like to be able to back it up on my Chromebook and restore it, since I think it will not be restored after I update the Chrome OS (it will presumably fetch the available extensions from the store).
My Chromebook is in developer mode. So I wonder can it be done from the shell?
Click to expand...
Click to collapse
Can you see the ID of the extension at the very bottom of its listing in chrome://extensions/? If you can.... I just tested out the following with an extension chosen at random, and it worked fine for me, although I suppose it may depend on the extension...
Copied the ID of the extension (at the very bottom of its listing in chrome://extensions/), then:
sudo su
find / -iname theidoftheextension
cp -a -r /home/chronos/user/Extensions/theidoftheextension /media/removable/UNTITLED/
Back in chrome://extensions/
Clicked Packed extension > chose the folder above the one containing manifest (in my case /media/removable/UNTITLED/theidoftheextension/0.1.2_0/)
Clicked Pack extension
Opened /media/removable/UNTITLED/theidoftheextension/ in file browser
Dragged the newly-created packed extension /media/removable/UNTITLED/theidoftheextension/0.1.2_0.crx over chrome://extensions/
It installed! Actually I tested it three times, resulting in three copies of the extension. Having said that, if you only have one copy of the extension, perhaps it would be better to test the .crx out on another copy of Chrome first, in case it somehow overwrites/breaks the copy you have installed.
Nolirum said:
Can you see the ID of the extension at the very bottom of its listing in chrome://extensions/? If you can.... I just tested out the following with an extension chosen at random, and it worked fine for me, although I suppose it may depend on the extension...
Copied the ID of the extension (at the very bottom of its listing in chrome://extensions/), then:
sudo su
find / -iname theidoftheextension
cp -a -r /home/chronos/user/Extensions/theidoftheextension /media/removable/UNTITLED/
Back in chrome://extensions/
Clicked Packed extension > chose the folder above the one containing manifest (in my case /media/removable/UNTITLED/theidoftheextension/0.1.2_0/)
Clicked Pack extension
Opened /media/removable/UNTITLED/theidoftheextension/ in file browser
Dragged the newly-created packed extension /media/removable/UNTITLED/theidoftheextension/0.1.2_0.crx over chrome://extensions/
It installed! Actually I tested it three times, resulting in three copies of the extension. Having said that, if you only have one copy of the extension, perhaps it would be better to test the .crx out on another copy of Chrome first, in case it somehow overwrites/breaks the copy you have installed.
Click to expand...
Click to collapse
Thank you, Nolirum!
I did as you suggested, and installed Chromium in Crouton to test it. I get the error "This can only be added from the Chrome Web Store" when I try dragging in the .crx.
When I try 'Load unpacked extension' option in chrome://extensions I get the following error:
Failed to load extension from: /Volumes/KINGSTON/theidoftheextension/5.0_0
Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
Click to expand...
Click to collapse
I saw this on Stackoverflow about the error. I deleted the leading underscore from metadata folder and it works! Yay!!
https://stackoverflow.com/questions...ebstore-throws-error-package-is-invalid-detai
No problem!
Out of interest, when you dragged the .crx onto Chromium, and got the error, was that with dragging it directly into the list of extensions in the chrome://extensions/ window (where you see the icons, details, extension IDs etc)? Just wondering, as I get that error if dragging a .crx on to the browser address bar or on a webpage, but not if I drag it into the extensions list directly.
In any case, interesting info about the metadata folder nonetheless. I remember having to do the same (deleting the underscore) for some extension I was trying to edit. It's reassuring to to read that _metadata is just Web store hashes, and that modifying it shouldn't affect functionality.
Nolirum said:
No problem!
Out of interest, when you dragged the .crx onto Chromium, and got the error, was that with dragging it directly into the list of extensions in the chrome://extensions/ window (where you see the icons, details, extension IDs etc)?
Click to expand...
Click to collapse
Yes, I was dragging into the extensions list. When I try it a little popup says something like "drop to install" then the error.
Interesting. I don't get that error (tried on Chromium, too). Perhaps it depends on the extension. Thanks for checking.

Categories

Resources