Access Filesystem from Java application on PC - Android

So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!

sanosuke001 said:
So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!
Click to expand...
Click to collapse
Windows or Ubuntu?
Sent from my Galaxy Nexus using xda premium

windows, preferably (main dekstop pc is windows) but linux might work.

sanosuke001 said:
windows, preferably (main dekstop pc is windows) but linux might work.
Click to expand...
Click to collapse
Ah OK. I have it working fine in Ubuntu after setting up mtp. I'm honestly not sure about windows. I never use it. I will look into it and get back to ya.
Sent from my Galaxy Nexus using xda premium

lithid-cm said:
Ah OK. I have it working fine in Ubuntu after setting up mtp. I'm honestly not sure about windows. I never use it. I will look into it and get back to ya.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Care to share the trick you used. I'm running Ubuntu 12.04. I had it working once, reinstalled Ubuntu and haven't been able to get it to work since -.-
Sent from my Maguro

hev88 said:
Care to share the trick you used. I'm running Ubuntu 12.04. I had it working once, reinstalled Ubuntu and haven't been able to get it to work since -.-
Sent from my Maguro
Click to expand...
Click to collapse
Replace Id vendor, and id product with yours. My example is with maguro (gnex gsm)
Code:
sudo apt-get install mtp-tools mtpfs
sudo echo "
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04e8\", ATTR{idProduct}==\"685c\", MODE=\"0666\"
" >> /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo mkdir /media/GNex
sudo chmod a+rwx /media/GNex
Replace "lithid" with your user
Code:
sudo adduser lithid fuse
Make sure to uncomment or add
Code:
user_allow_other
to /etc/fuser.conf
You could add this to your bashrc profile to help with aliases
Code:
echo “alias go-go-gadget-gnex=\”mtpfs -o allow_other /media/GNex\”" >> ~/.bashrc
echo “alias gadget-gnex-stop=\”fusermount -u /media/GNex\”" >> ~/.bashrc
source ~/.bashrc

sanosuke001 said:
So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!
Click to expand...
Click to collapse
From reading about mtp in windows, its my understanding that it "just works" is this not the case?

MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/

sanosuke001 said:
MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/
Click to expand...
Click to collapse
:good:

sanosuke001 said:
MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/
Click to expand...
Click to collapse
Only thing I can suggest is using a better operating system. With the new iteration of windows even game developers have started getting opengl gaming to linux. Which to my understanding is a huge reason people still use windows (of course other software like video editing), but if you are not using that type of stuff, get with linux. It works better and hackability is endless when trying to get something to work right.
Cheers

lithid-cm said:
Only thing I can suggest is using a better operating system. With the new iteration of windows even game developers have started getting opengl gaming to linux. Which to my understanding is a huge reason people still use windows (of course other software like video editing), but if you are not using that type of stuff, get with linux. It works better and hackability is endless when trying to get something to work right.
Cheers
Click to expand...
Click to collapse
Yeah, I know. However, I do PC gaming and until Linux games don't require Wine (or work flawlessly in Wine) there's not much I can do about it and I refuse to dual boot; it's a pain in the ass.

sanosuke001 said:
Yeah, I know. However, I do PC gaming and until Linux games don't require Wine (or work flawlessly in Wine) there's not much I can do about it and I refuse to dual boot; it's a pain in the ass.
Click to expand...
Click to collapse
Sounds like either way its a pain in ass?
Sent from my Galaxy Nexus using xda premium

Related

[GUIDE] How to LINUX on Rooted TFP

First off, thanks to msullivan for providing the BackTrack 5.0 image!
I've made this as easy as possible. Not for novice users.
I chose backtrack as the image (instead of ubuntu) because i LOVE backtrack. I've used it as my main on-the-go linux for a while. Mainly because I hack all the wifi I'm around so i have a constant NET connection
This script requires ADB installed and ROOT!
Required Apps
Busybox - Download and install busybox
Terminal Emulator
Any VNC Client that supports LINUX
Installation
Download the image and attached scripts (BT5_Install.zip)
http://www.ulozto.net/xfHz8JJ/primelinuxbacktrack5-zip
Rename the image to BT5.zip and copy to /sdcard/ - I would copy in the script, but ADB is WAAAY slow.
Unzip BT5_Install.zip into your ADB folder - Or anywhere if you have ADB set with environmental variables
Make sure device connected and responds to adb (adb devices)
run install.bat
This will push the proper scripts, open the image up for use and run necessary scripts
This process does take time. No longer than 10 minutes. Script will notify when complete.
---Linux is now installed!---
Open terminal emulator and type: (do this any time you want to start your linux if you have shut it down or the TFP has restarted)
su
cd /sdcard/bt5
sh bt
Type Y at the prompt
VNC into 127.0.0.1:5901 with password 'root' with any VNC program you like
PROFIT
Change Resolution!!
Open terminal in Linux
Type pico /usr/bin/startvnc
Xhange resolution to 1280x800
Type ctrl x
Yes
restart TFP
Look absolutely AMAZING now
Notes:
If the bt5 folder on /sdcard/ is ever deleted, you will lose your linux and need to re-install!
This has been tested and confirmed by me!
Can you tell I like formatting?? hahaha
Need help with ADB? Click HERE for my guide!
Im using POCKETCLOUD in Windows mode (it connect to linux as well!)
The GUIDE is not finite. Please post anything you feel should be added/corrected to the guide.
Thanks and 5 star would make me feel good inside too!
Yes!!!!I was wondering when we would see this for the TP. I wonder how long it will be till somone asks about monitor mode and packet injection. Let me go ahead and announce it... AIRCRACK WILL NOT WORK!!! Had to do it.. every backtrack thread on this forums is full of kids saying "I can hax0rz wifi?"
Sent from my SAMSUNG-SGH-I727
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Agreed.. but chroot is better than nothing I guess. You may want to try the "orbot" app along with backtrack. Its great for using the tor network while using bt.
biggem001 said:
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I727 using XDA App
anyone tried interfacing with any wifi adapters yet with either the dock or a USB ATP to USB adapter? it'd be pretty awesome to get monitor mode on this thing...
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
adampdx said:
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
Click to expand...
Click to collapse
theoretically, yes!
tbns said:
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
Click to expand...
Click to collapse
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
biggem001 said:
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
Click to expand...
Click to collapse
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Thanks for this. I was looking to put some form of Linux on my tp lol. Just have to wait until I get an sd card now.
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
biggem001 said:
theoretically, yes!
Click to expand...
Click to collapse
Oh, that's just the cat's pajamas. Awesome!
tbns said:
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Click to expand...
Click to collapse
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
foboi1122 said:
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
bt5 is ubuntu 11.04 with the penetration app suite and a different wallpaper... lol
Can someone try out LibreOffice and report back how smoothly it does/doesn't run? Will definitely root if LibreOffice runs well. Thanks!
biggem001 said:
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
Click to expand...
Click to collapse
Yeah but I just prefer it on my sd. Personal thing.
Sent from my Transformer Prime TF201 using xda premium
to change resolution in BT5.. in linux
open terminal
type pico /usr/bin/startvnc
change resolution to 1280x800
ctrl x
yes
restart TFP
look absolutely AMAZING now
How does it run on the TFP ? is it responsive etc?
Can it be used as an everyday function? i'm really interested in this, and cant wait to get start messing about with it.
I've got BT5.zip on my sdcard directory, but I keep getting this error when I use the './install.bat' command:
OFF
Installing BackTrack 5 for ARM Devices.
./install.bat: line 3: syntax error near unexpected token `('
./install.bat: line 3: `ECHO Make sure BT5.zip is in your /sdcard/ folder (/sdcard/BT5.zip) NO' removable SD, internal.

Linux Help Thread

So since beaups has announced that s-off for 2.06 will be for Linux only, a lot of people are preparing by either trying to set up a Linux partition or Live DVD/USB. I just thought I'd make a thread for general info and help getting it working properly. I'm not going to go super in-depth with this because there's a plethora of information online this is more just for some tips to get you started.
Disclaimer: Make sure your computer is backed up before doing this. You shouldn't run into any problems that will screw it up, but you never know what could happen. Better safe then sorry, right? If your computer explodes, it's not my fault.
Some general info about LInux
Essentially, Linux is just a kernel. Android is based off the Linux kernel, and your cable box, router, and most web servers probably are as well... And a lot of other things you might not think of.
Desktop Linux has what are called distrinutions. These are basically the equivalent of Android ROMs, just operating systems based on Linux. If you are just starting out, you probably want to use Ubuntu or Linux Mint as they are the most user-friendly.
Making the Live DVD/USB
-First you obviously need the iso. Here is a link to the Ubuntu download: http://www.ubuntu.com/download/desktop
-Unless you have a computer that doesn't support 64-bit, just get the 64-bit download. If you have a UEFI-based computer, you definitely want the 64-bit iso because it's UEFI native, which will make things easier, and you will also want to read this: https://help.ubuntu.com/community/UEFI
-If you're trying to boot the Live DVD on a Mac, you also want the 64-bit iso, and you need rEFIt: http://refit.sourceforge.net/
-If you just want to boot from the DVD, you can burn it with pretty much any DVD burning software. If you want to make a live USB, use unetbootin: http://unetbootin.sourceforge.net/ or Pendrive Linux: http://www.pendrivelinux.com/category/usb-creator/
Installation
-If you only plan on using Linux once to s-off your phone, you don't really need to do this, just use the Live DVD.
-If you haven't already, you probably want to hook up an ethernet cable to your computer in case the wireless drivers aren't available.
-If you actually want to install it on a PC, it's pretty straightforward, just use the "Install Ubuntu alongside Windows" option, unless you want to partition it manually with the "Something else" option (I won't go into that here).
-If you want to install it on a Mac, you will need rEFIt, which I already mentioned. You also need to add a fat32 partition to your drive that you will reformat to ext4 with the Ubuntu installer. Install rEFIt, reboot twice and then you should see the rEFIt boot menu where you can choose your live disc. One very important thing about this: If you are installing Linux to the same drive as an OS X installation, DO NOT choose the "install alongside" option. It will break your install. Use the "Something else" option. By default, Linux wants to install grub to the MBR, but you need to reformat your fat32 partition to ext4 instead and install it to that partition. Then you can just boot into it with rEFIt. The rest is pretty much the same as installing it on a PC.
Post-install
-At this point, it's going to want to install some updates and maybe some proprietary drivers it may need and that's it. Really all you need to do after this is install the android drivers. The easiest way is to use apt-get which is basically a package installer for everything in Ubuntu's software repos. Open up Terminal, and type in: sudo apt-get install android-tools-adb android-tools-fastboot. Hit enter, type in your password, then it will ask you to confirm and blah blah blah and then it will download and install it. That's really it. I don't know what else may be necessary at this point since the s-off tool hasn't been released yet.
Some other links that may be helpful:
-Dual-boot on PC: http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/
-Dual-boot on Mac: http://lifehacker.com/5934942/how-t...-and-take-back-your-powerhouse-apple-hardware
-Triple-boot on Hackintosh: http://lifehacker.com/5698205/how-to-triple-boot-your-hackintosh-with-windows-and-linux
-If you want to build a ROM from the source (Ubuntu 12.04): http://forums.androidcentral.com/ve...99-guide-ubuntu-compiling-android-source.html
-Linux forums, the folks here are very helpful: http://www.linuxforums.org/forum/
-Terminal basics: https://help.ubuntu.com/community/UsingTheTerminal
I hope this is helpful. If anyone has any suggestions to add to this post feel free.
EDIT: One more thing! If you are asking for help, please post what computer you are using, the specs, and whether it is BIOS-based or UEFI-based.
Nice write up thanks for sharing this will help a lot of folks
Sent from my Liquid Smooth Nexus 7
Nice write up but can you link me where beaups said that? If that's true that sucks.
Sent from my HTC6435LVW using Tapatalk 4 Beta
deathrow1992 said:
Nice write up but can you link me where beaups said that? If that's true that sucks.
Sent from my HTC6435LVW using Tapatalk 4 Beta
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=42118877&postcount=601
Be grateful that you are getting s-off for free.
kern3l said:
http://forum.xda-developers.com/showpost.php?p=42118877&postcount=601
Be grateful that you are getting s-off for free.
Click to expand...
Click to collapse
LOL? Because I am unfamiliar with linux I'm ungrateful? I never said if moonshine is linux only im going to destroy beaup's face or anything like that, jeez. Now I see why people from androidforums would amputate a leg before they come over here. So hostile.
Thanks for the link though.
deathrow1992 said:
LOL? Because I am unfamiliar with linux I'm ungrateful? I never said if moonshine is linux only im going to destroy beaup's face or anything like that, jeez. Now I see why people from androidforums would amputate a leg before they come over here. So hostile.
Thanks for the link though.
Click to expand...
Click to collapse
I think he took it as "if its Linux only then the method sucks" while I can see that your just trying to say you wish it was on windows as well but whatever, it can be taken as as much more negative thing... Remember attacking back only causes more hostility let's all please get along.
Sent from my Galaxy Nexus using Tapatalk 4 Beta
He never really said it's Linux only... Simply hinted it. For all we know he may be delaying to get a windows version working.
Sent from my HTC6435LVW using xda app-developers app
Ok so I am trying to dual boot windows 8 and linux mint 15. I have an ASUS X55C laptop that cane preloaded with Windows 8. I made a liveusb that works great but now is like to dual boot. After i install linux mint I restart and choose to run mint as the os. Then I get this message. Also here is the guide I followed to install mint
http://www.howtogeek.com/99060/how-to-dual-boot-windows-8-and-linux-mint-on-the-same-pc/
Windows has failed to start. A recent hardware or software change might be the cause. To fix the Problem
1. Insert Windows installation disc and restart your computer. 2 Choose your language settings and click next. 3, Click repair your computer.
If you do not have this disc, contact your system administrator or computer manufacturer for assistance
File: \linuxmint\winboot\wubildr.mbr
Status 0xc000007b
Info: The application or operating system couldn't load because a required file is missing or contains errors
EvolutionXJ
Level 1
*
Posts: 3
Joined: Wed Jun 05, 2013 3:58 pm
Sent from my HTC6435LVW using xda app-developers app
Does windows still start? Did you use the 32 bit or 64 bit version of mint?
Also does your computer have uefi?
Sent from my DNA using Tapatalk 2
jamiethemorris said:
Does windows still start? Did you use the 32 bit or 64 bit version of mint?
Also does your computer have uefi?
Sent from my DNA using Tapatalk 2
Click to expand...
Click to collapse
Yes windows will still start up and linux will still start up from my usb. Im actually on linux through my liveusb now. I downloaded the 64bit linux since my laptop came pre downloaded with a 64 bit windows 8. ALso it is a UEFI. I have secure boot disabled as well. I just am confused as to why it runs fine from my usb. But wont run when its installed to my computer.
Using Android Tools on Ubuntu 12.04
Native Ubuntu 12.04 installed on a bootable memory stick needs also to reference the repository that the tools are located.
Once you have booted into Linux, then execute the following commands from a terminal window
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
deathrow1992 said:
LOL? Because I am unfamiliar with linux I'm ungrateful? I never said if moonshine is linux only im going to destroy beaup's face or anything like that, jeez. Now I see why people from androidforums would amputate a leg before they come over here. So hostile.
Thanks for the link though.
Click to expand...
Click to collapse
lol i forgot about androidforums, that was the first place i used to post
i eventually came over to xda cuz all the developers at the time only supported their work here
EvolutionXJ said:
Yes windows will still start up and linux will still start up from my usb. Im actually on linux through my liveusb now. I downloaded the 64bit linux since my laptop came pre downloaded with a 64 bit windows 8. ALso it is a UEFI. I have secure boot disabled as well. I just am confused as to why it runs fine from my usb. But wont run when its installed to my computer.
Click to expand...
Click to collapse
That's really strange. Do you have an option for legacy bios in your bios or anything like that you can change?
Sent from my DNA using Tapatalk 2
jamiethemorris said:
That's really strange. Do you have an option for legacy bios in your bios or anything like that you can change?
Sent from my DNA using Tapatalk 2
Click to expand...
Click to collapse
Just checked for legacy boot. Don't have it. SO secure boot is still off in the UEFI. This is going to drive me crazy...
EvolutionXJ said:
Just checked for legacy boot. Don't have it. SO secure boot is still off in the UEFI. This is going to drive me crazy...
Click to expand...
Click to collapse
Hopefully someone else will have some more insight, for now I have to go to class. I'll look into it more when I get home.
Sent from my DNA using Tapatalk 2
I didn't see anything about Linux only in the new moonshine thread. Is this still necessary?
If the other guy is like me rooting a phone is the absolute limit of our technical abilities. Now I have to learn to change things on my desktop? I'm grateful, but I'd rather pay for a windows version than go messing around with my desktop. I guess I'll try to learn what livecd is now.
@EvolutionXJ something just occurred to me. Since your PC more than likely has GPT instead of MBR, you may need to use gptsync to sync the partition tables. To so this, boot into your live disc, open the terminal, and type sudo apt-get install gptsync. After it installs, do sudo gptsync /dev/sda. I had an issue similar to yours trying to triple boot my netbook and that was the solution. Let me know if you get stuck again.
Also are you using windows boot manager to boot Linux or are you using GRUB (it might be lilo in the case of uefi)
Sent from my DNA using Tapatalk 2
Forget the gptsync thing, I don't think that's the issue. Don't think you would need to do that with a uefi pc
Sent from my DNA using Tapatalk 2
I have Ubuntu booting on my mac through a virtual box and I've never been able to get it to recognize any of my devices. It's usually why I just wait for a Mac method, but I'm super excited to get this bad boy dialed.
Any ideas? I've tried reinstalling Ubuntu and adb multiple times through different methods, but no dice. And yes, I have usb debugging checked. I've also tried 3 different cables and all of my usb ports. Thanks for any help!
Sent from my DNA all in ya mouf

[Q] Some questions about Nexus 4 and Ubuntu Touch

Hi all,
im new to the forum and wanted to say hello to everyone
Im running ubuntu 12.04 at my desktop and also on my HTPC so i decided to test ubuntu touch on my Nexus 4 and my Nexus 10. I never had any kind of smartphone before and never had buy one if there wasnt ubuntu touch :good:
I have two questions about different things and hopefully someone can guide me through the darkness.
1.: with daily build 2013/08/21 my background image switches from the default ubuntu unity like to the one with the auger and im not able to change it back to the default ubuntu 13.10 theme. Hot can i fix this?
2.: As i never worked before with openssh i dont know exactly how to transfer files from desktop to the phone. If i connect to the phone with ssh [email protected]_of_device im connected to it but dont have the knowledge to transfer files like music and/or pictures. How do i have to proceed here?
Thanks a lot for your help.
akI* said:
..2.: As i never worked before with openssh i dont know exactly how to transfer files from desktop to the phone. If i connect to the phone with ssh [email protected]_of_device im connected to it but dont have the knowledge to transfer files like music and/or pictures. How do i have to proceed here?...
Click to expand...
Click to collapse
About that...
The openssh package contains a command called scp made for file transfer. Should work like this:
Code:
scp file-to-send [email protected]_of_device:/path/to/place/file
happyass**** said:
About that...
The openssh package contains a command called scp made for file transfer. Should work like this:
Code:
scp file-to-send [email protected]_of_device:/path/to/place/file
Click to expand...
Click to collapse
Thanks
scp did the trick.
I read the scp man and -r give me the rest of information to copy complete folders to my /home/phablet/Music folder
Work like a charm :good:

[Q] connected my phone to ubuntu, all my files on external SD card are now gone

Hello!
I just updated my ubuntu to the latest version, 13.04, and I wanted to transfer some files to my Galaxy s2 (i9100). I have had problem earlier which included slow transfer speed and I got 4 dialog screens wanting me to connect both the internal and external Sd-card instead of 2.
When I tried to transfer my files to my external Sd card I got an error message,
Code:
Error creating directory: Input/output error
. I thought that it was weird but since I was in a hurry I didn't have time for it. I opened my audio map on the computer but I didn't see any files there. I thought it was just my computer being slow so I disconnected my phone.
When I later tried to listen to music I couldn't find any with Apollo so I opened a file manager and I couldn't see my files there either. I restarted my phone but the music is still not showing. I also found out that also all my pictures are gone from the external Sd-card.
The custom ROM I have is ReVolt 4.3 if that would be to any help.
That's it for using Ubuntu.Use Windows or MAC like a normal man.
GamingDj said:
That's it for using Ubuntu.Use Windows or MAC like a normal man.
Click to expand...
Click to collapse
I'm sorry, that's garbage. That's not a solution.
OP I'm sorry I don't know much about Linux, I haven't used it extensively. In what limited use I have of it, I haven't come across that error I'm sorry.
Sent from a galaxy far, far away
Have all your files gone? If so it must have got wiped during a faulty mounting procedure, I am guessing you tried to mount the device as a USB storage device, faulty cables or improper connection have been known in my experience to do that that's why I say MTP is always safer because android still has control over the memory,unlike UMS it doesn't un mount the memory when connecting to a host device.
And personally I prefer Linux over any other OS, especially ubuntu linux.
But again there could be some bugs with the latest ubuntu.
Edit: also not to alarm you input/output error usually in linux means a hardware issue related to the external memory connected. But as I said before it could be something else like improper connection or a driver error.
Sent from my GT-I9100 using xda app-developers app
king_below_my_lord said:
Have all your files gone? If so it must have got wiped during a faulty mounting procedure, I am guessing you tried to mount the device as a USB storage device, faulty cables or improper connection have been known in my experience to do that that's why I say MTP is always safer because android still has control over the memory,unlike UMS it doesn't un mount the memory when connecting to a host device.
And personally I prefer Linux over any other OS, especially ubuntu linux.
But again there could be some bugs with the latest ubuntu.
Edit: also not to alarm you input/output error usually in linux means a hardware issue related to the external memory connected. But as I said before it could be something else like improper connection or a driver error.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Well, my photos have been replaced by some files with around 1 bytes in size and their name is similar to eachother.
I used the same cable and usb-port as before. I didn't know that you could use MTP on ubuntu. It seems like you have to install it yourself which I haven't done yet.
The weird thing is that I successfully conncted my external harddrive and it showed up on the computer and I managed to transfer some files to the computer. I didn't get any error message what so ever with the harddrive.
I have had this computer several years now and maybe it's time for an upgrade...
EzZn0 said:
Well, my photos have been replaced by some files with around 1 bytes in size and their name is similar to eachother.
I used the same cable and usb-port as before. I didn't know that you could use MTP on ubuntu. It seems like you have to install it yourself which I haven't done yet.
The weird thing is that I successfully conncted my external harddrive and it showed up on the computer and I managed to transfer some files to the computer. I didn't get any error message what so ever with the harddrive.
I have had this computer several years now and maybe it's time for an upgrade...
Click to expand...
Click to collapse
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
king_below_my_lord said:
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
I tried to run the chkdsk from windows 7 but after a while it just stopped. I will try again when I have more time on my hands. Maybe over night and see if it can find anything. Now my Audio map is gone and all the files in DCIM is called Q and have 0 bytes in size.
I did however find 2 albums that I had deleted myself in the .trash1000 map.
king_below_my_lord said:
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Ok I have now searched my memory with these instructions. https://www.youtube.com/watch?v=KCtbHV2RKWs. It searched the whole memory but it didn't find any errors. I'd guess I'd be best off if I formatted the card again and start over.
I also checked with "chkdsk /f :f" from the command and I got the same results.
EzZn0 said:
Ok I have now searched my memory with these instructions. https://www.youtube.com/watch?v=KCtbHV2RKWs. It searched the whole memory but it didn't find any errors. I'd guess I'd be best off if I formatted the card again and start over.
I also checked with "chkdsk /f :f" from the command and I got the same results.
Click to expand...
Click to collapse
If it went through fine all must be well, formatting is a good idea though as it will probably remove any problematic data block problems.
Sent from my GT-I9100 using xda app-developers app

Wpa2 Enterprise

Hi I can't connect to the Wlan Network at our university, which is using wpa2 enterprise.
When I click on the network nothing happens. On askubuntu I found something, but I don't know in which file on my phone I have to put the text in.
http://askubuntu.com/questions/586300/creating-a-wpa2-enterprise-connection-on-ubuntu-touch
Yes, WPA2 Enterprise isn't supported by the GUI yet.
The file you need to save that to needs to be called
Code:
/etc/NetworkManager/system-connections/<your network's id>
Replace <your network's id> (including the brackets) with the ID of your Wifi network. In the example it would be "eduroam".
(Please note that you need to save the file as root, i.e. using sudo.)
I tried it yesterday with the file, but it didn't worked. But I am not sure if the file is correct for our network.
I followed this guide http://www.danbishop.org/2015/02/21...ther-802-1x-wireless-network-to-ubuntu-phone/ and now I get a connection. Only username and password have to be changed.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
Sorry if this is a semi-hijack, but this seems the most relevant place for my question. I can't get access to my uni's wi-fi either (aquaris ubuntu edition phone), and I was wondering if anyone knows if the functionality for wpa2 is going to be added in the near future? I don't have ubuntu on a desktop atm and I don't want to have to install it just to tinker with my phone, which also seems a little bit daunting to me, worried I will explode my phone or something.
I don't know when they bring wpa2 enterprise support via gui, but I think it is a must have feature. You don't need ubuntu to get it working. I can upload the file I used, you just have to change 2 lines. You can use putty to put the file in the right location.
jonny-boy said:
I don't know when they bring wpa2 enterprise support via gui, but I think it is a must have feature. You don't need ubuntu to get it working. I can upload the file I used, you just have to change 2 lines. You can use putty to put the file in the right location.
Click to expand...
Click to collapse
That'd be great, although I've no idea what I'm doing with this sort of thing, would it be possible for you to explain it to me in idiot terms? I'm not familiar with putty or this kind of exercise
1. Activate Developer Mode on your phone
You can activated the Mode under Device info, developer mode
(But you have to set a password for your phone before, if I am not mistaken)
2. Connect your Phone via usb to your computer
3. Download adb for windows: http://forum.xda-developers.com/showthread.php?p=48915118
The installer asks some questions, I answered all questions with yes.
4. I attached a File. Just change username and password.
Then remove the file extension (remove the .txt)
You have to activate show file extensions in the windows explorer, to remove the file extension
5. Move the File on your phone e.g. in the download directory via usb
6. Run the windows command line tool (I use Super+R and then just run "cmd")
7. Run "adb shell" in the cmd
(When it says: "error: closed", you have to unlock your phone)
It should say something like "[email protected]" now.
8. Move the file from the Download-Folder to the Network-Manager-Folder:
"sudo cp Downloads/eduroam /etc/NetworkManager/system-connections/"
Password should be your phone unlock password
9. Now go into the Networkmanager directory:
cd /etc/NetworkManager/system-connections/
10. Run the following commands to set the right permissions for the file:
"sudo chown root eduroam"
"sudo chgrp root eduroam"
"sudo chmod 600 eduroam"
11. Reboot your Phone
For me this worked. My English is not that good, so just ask, if you have questions.
jonny-boy said:
1. Activate Developer Mode on your phone
You can activated the Mode under Device info, developer mode
(But you have to set a password for your phone before, if I am not mistaken)
2. Connect your Phone via usb to your computer
3. Download adb for windows: http://forum.xda-developers.com/showthread.php?p=48915118
The installer asks some questions, I answered all questions with yes.
4. I attached a File. Just change username and password.
Then remove the file extension (remove the .txt)
You have to activate show file extensions in the windows explorer, to remove the file extension
5. Move the File on your phone e.g. in the download directory via usb
6. Run the windows command line tool (I use Super+R and then just run "cmd")
7. Run "adb shell" in the cmd
(When it says: "error: closed", you have to unlock your phone)
It should say something like "[email protected]" now.
8. Move the file from the Download-Folder to the Network-Manager-Folder:
"sudo cp Downloads/eduroam /etc/NetworkManager/system-connections/"
Password should be your phone unlock password
9. Now go into the Networkmanager directory:
cd /etc/NetworkManager/system-connections/
10. Run the following commands to set the right permissions for the file:
"sudo chown root eduroam"
"sudo chgrp root eduroam"
"sudo chmod 600 eduroam"
11. Reboot your Phone
For me this worked. My English is not that good, so just ask, if you have questions.
Click to expand...
Click to collapse
So far I can't get the adb shell to recognise the phone is there, it just keeps saying "error: device not found" so I'm kinda stumped right now
I got this error the first time, too. I just reinstalled adb, while the phone was plugged to my computer and unlocked and answered the driver question with yes, then some driver were installed.
jonny-boy said:
I got this error the first time, too. I just reinstalled adb, while the phone was plugged to my computer and unlocked and answered the driver question with yes, then some driver were installed.
Click to expand...
Click to collapse
Did that, still says Error: device not found =/
Garatolla said:
Did that, still says Error: device not found =/
Click to expand...
Click to collapse
Tried it on my friend's linux pc as well and it still says error device not found, guess I'm just going to have to wait for them to officially add in wpa2 functionality. Welp, back to my old phone for a while then, thanks for the help jonny-boy
@garatola Do you have the phone unlocked and the screen turned on when trying to connect? That's one requirement on Ubuntu.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
nikwen said:
@garatola Do you have the phone unlocked and the screen turned on when trying to connect? That's one requirement on Ubuntu.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
Click to expand...
Click to collapse
Yup, I managed to find out about that before I first started trying to figure out how to fix this unfortunate situation
Does anyone know if or when there will be wpa2 functionality on this os? Or where I might ask? I need it for accessing my uni wifi stuff, and if it's going to be a while, I'll just shelf the phone and forget about it as a phone without internet access is pretty much just a paperweight for me. Thanks again for the help given so far everyone
Garatolla said:
Does anyone know if or when there will be wpa2 functionality on this os? Or where I might ask? I need it for accessing my uni wifi stuff, and if it's going to be a while, I'll just shelf the phone and forget about it as a phone without internet access is pretty much just a paperweight for me. Thanks again for the help given so far everyone
Click to expand...
Click to collapse
According to the corresponding launchpad issue, a fix has just been made available. However, it will probably take a month until it is in the stable builds.
If adb still doesn't work for you and the issue is that important to you, you can always also try following the guide using the terminal app on the device itself. Will take some time to type the commands in but it should work.
nikwen said:
According to the corresponding launchpad issue, a fix has just been made available. However, it will probably take a month until it is in the stable builds.
If adb still doesn't work for you and the issue is that important to you, you can always also try following the guide using the terminal app on the device itself. Will take some time to type the commands in but it should work.
Click to expand...
Click to collapse
I don't have access to a linux pc, and for some reason ubuntu wouldn't install for a dual boot when I tried that either. I also didn't see an app that would let me use the terminal on my phone - I've not had much luck with this lol. However, for some reason the adb stuff randomly started working on my friends linux pc and he friend managed to fix something up for me today, so all is well, for now at least :s (I also noticed the terminal app on the ubuntu store once I finally did get the net working.)
In the end, my friend used this http://www.danbishop.org/2015/02/21...ther-802-1x-wireless-network-to-ubuntu-phone/ to get it working, although the first time he tried adb wouldn't recognise my phone, and we don't know how it was righted, so sorry I can't pass on more info to people who might have the same problem =/
Thanks for all the replies again
Garatolla said:
I don't have access to a linux pc, and for some reason ubuntu wouldn't install for a dual boot when I tried that either. I also didn't see an app that would let me use the terminal on my phone - I've not had much luck with this lol. However, for some reason the adb stuff randomly started working on my friends linux pc and he friend managed to fix something up for me today, so all is well, for now at least :s (I also noticed the terminal app on the ubuntu store once I finally did get the net working.)
In the end, my friend used this http://www.danbishop.org/2015/02/21...ther-802-1x-wireless-network-to-ubuntu-phone/ to get it working, although the first time he tried adb wouldn't recognise my phone, and we don't know how it was righted, so sorry I can't pass on more info to people who might have the same problem =/
Thanks for all the replies again
Click to expand...
Click to collapse
Great that it finally worked.

Categories

Resources