[Q] Mass Storage Mode - One (M7) Q&A, Help & Troubleshooting

Hello can someone tell me how to get Mass Storage Mode. I am rooted and have TWRP installed. S-On (obviously).
I want the MSM like in ICS!! I've tried a setprop line persist.sys.usb.config mass_storage,adb + rebooted.
That did nothing but originally was only "adb".
Is there an APK I can download that is tested and works for the AT&T HTC One?

Nope, this device is a /data/media device
Short answer is you wont have mass storage anytime soon if ever, there is a workaround but it was implemented in a venom Rom so until we have that we won't know
Sent from my HTC One using Tapatalk 2

superchilpil said:
Nope, this device is a /data/media device
Short answer is you wont have mass storage anytime soon if ever, there is a workaround but it was implemented in a venom Rom so until we have that we won't know
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Can you ellaborate?
My One X had mass storage mode with ICS and when I went to Jelly Bean it lost it. exactly what transpired there?

superchilpil said:
Nope, this device is a /data/media device
Short answer is you wont have mass storage anytime soon if ever, there is a workaround but it was implemented in a venom Rom so until we have that we won't know
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
This isn't the case with the HTC One.
The mod on the Venom ROM was just restoring the app that handles the connection mode and a couple of tweaks on the framework & android policy for it to work.
Whilst the HTC One has a unified storage. Which means userdata partition and sdcard a single storage unlike the One X where it has a seperate partition on both userdata and sdcard.
The only viable solution for this is by repartitioning the userdata partition and assign the newly created one as an external sdcard.
But I'm not sure if this is possible without S-Off.

Riyal said:
This isn't the case with the HTC One.
The mod on the Venom ROM was just restoring the app that handles the connection mode and a couple of tweaks on the framework & android policy for it to work.
Whilst the HTC One has a unified storage. Which means userdata partition and sdcard a single storage unlike the One X where it has a seperate partition on both userdata and sdcard.
The only viable solution for this is by repartitioning the userdata partition and assign the newly created one as an external sdcard.
But I'm not sure if this is possible without S-Off.
Click to expand...
Click to collapse
I am trying to learn the inner workings because I write Android apps as well. I think I'd write an app for this that does this but I need to know more. When you say "restoring an app that handles the connection mode", do you have an apk name for that? Changing android policy is which file?
Couldn't we just take the /sdcard folder and emulate a drive along with the usb storage protocols in an APP?

Related

There is a file on my internal memory I cannot delete. How do I get rid of it???

The name of the file in question is:
í/à=√f+ⁿ.bí£
Yes, that filename has a forward slash in it!!!!!!!!
How do I get rid of this file??
It is preventing me from running NanDroid backups, and I cannot format the partition (bizarrely).
I suspect the filename is corrupted.
If I run ls -il I do not get an inode number, just a series of question marks ?????
Have you tried renaming it and then deleting? Try also a different file manager if that doesn't work (Solid Explorer Trial shouldn't have any problem)
It can't be renamed unfortunately.
I have used a variety of android file managers with no success.
I'm rooted on CM10.1 and have tried CWM tools also.
Sent from my GT-N7000 using xda premium
Connect device as mass storage and delete from PC
still you can't delete it then install unlocker (attached here) to PC and delete with that
This should work otherwise
Last option copy data to PC and format internal memory.
dr.ketan said:
Connect device as mass storage and delete from PC
still you can't delete it then install unlocker (attached here) to PC and delete with that
This should work otherwise
Last option copy data to PC and format internal memory.
Click to expand...
Click to collapse
Thanks Dr. Ketan
I can't delete from Windows or Linux on a PC.
The forward slash confuses both O/Ss.
I'll give the UnLocker a go, thanks very much for that :thumbup:
I've tried formatting through CWM and Android, it fails for some reason.
Sent from my GT-N7000 using xda premium
The unlocker tool didn't do the job I'm afraid.
And Windows would not format the partition.
I found a Windows tool for formatting FAT32 on large memory sticks.
Copied all the files from my internal memory, apart from the dodgy file.
Used the FAT32 tool to format the partition.
Copied all my files back.
NanDroid now works
Awesome
Sent from my GT-N7000 using xda premium
Answer to Question found - please close this thread
Hi moderators.
I have an answer to the question I posed, so happy for this thread to be closed.
Thanks.
FabreFaction said:
The unlocker tool didn't do the job I'm afraid.
And Windows would not format the partition.
I found a Windows tool for formatting FAT32 on large memory sticks.
Copied all the files from my internal memory, apart from the dodgy file.
Used the FAT32 tool to format the partition.
Copied all my files back.
NanDroid now works
Awesome
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Hello.
I have exactly the same problem as you. Could you explain the way you format the partition? I tried with 3 different usb format tools but I cant find the way to format it from my computer, they dont detect my internal memory as a usb drive and I dont know how to do it
Thank you very much.
diripirate said:
Hello.
I have exactly the same problem as you. Could you explain the way you format the partition? I tried with 3 different usb format tools but I cant find the way to format it from my computer, they dont detect my internal memory as a usb drive and I dont know how to do it
Thank you very much.
Click to expand...
Click to collapse
I had the same issue with multiple files not deleting. The solution I found was the following. I have Chasmodo's Asylym ROM installed, and its kernel has the TWRP recovery, and in advanced settings of that recovery mode you have the option to pick what you want to mount. I connected Note to my PC and picked Mount USB storage in TWRP, and the phone's internal storage was now accessible on my computer. After that, I just formatted it on my PC using the usual method: right click on the drive, Format, picked FAT32 and quick format. It cleaned the entire thing and the freakin files were finally gone. Do keep in mind that this wipes your entire internal storage.
Sent from my GT-N7000 using xda app-developers app
diripirate said:
Hello.
I have exactly the same problem as you. Could you explain the way you format the partition? I tried with 3 different usb format tools but I cant find the way to format it from my computer, they dont detect my internal memory as a usb drive and I dont know how to do it
Thank you very much.
Click to expand...
Click to collapse
Hi
So sorry I haven't replied earlier, I removed the subscription from the thread once I nailed the problem.
Basically you have to connect to the N7000 as a mass storage device.
There are different ways of doing this depending upon the Rom you are using.
This mounts the internal and external drive on the N7000 as drives in Windows.
Then using a FAT32 formatter you can format the internal drive.
It's that simple.
Take it easy.........FF
Sent from my GT-N7000 using Tapatalk
igesem rent
FabreFaction said:
Hi
So sorry I haven't replied earlier, I removed the subscription from the thread once I nailed the problem.
Basically you have to connect to the N7000 as a mass storage device.
There are different ways of doing this depending upon the Rom you are using.
This mounts the internal and external drive on the N7000 as drives in Windows.
Then using a FAT32 formatter you can format the internal drive.
It's that simple.
Take it easy.........FF
Sent from my GT-N7000 using Tapatalk
Click to expand...
Click to collapse
When I face these problems on Linux, usually I use " rm -i * ".
That is the interactive mode of "rm".
So basically the system will ask you to delete each file it founds on the directory. You'll answer "no" for each file except the one you want to delete.
The system should be able to pass the right info to the rm command (I think it will not pass the name but the inode) to delete it.

Problems with storage on the Htc one

Hi all, i flashed the new rayglobe rom succesfully, but i think there is a problem with the multi user part of android 4.2.2. This is because i now have an sdcard0 and an emulated0 which both have the exact same files in? Any help would be appreciated
joshiy99 said:
Hi all, i flashed the new rayglobe rom succesfully, but i think there is a problem with the multi user part of android 4.2.2. This is because i now have an sdcard0 and an emulated0 which both have the exact same files in? Any help would be appreciated
Click to expand...
Click to collapse
If you mean storage/emulated/0/ that It's correct.
/storage/sdcard0/ internal sd storage path for compatibility with 4.1 apps.
/storage/emulated/0 4.2 internal sd storage path.
tash2013 said:
If you mean storage/emulated/0/ that It's correct.
/storage/sdcard0/ internal sd storage path for compatibility with 4.1 apps.
/storage/emulated/0 4.2 internal sd storage path.
Click to expand...
Click to collapse
any way to get rid of it? seemed to have ran out of memory on my phone?
joshiy99 said:
any way to get rid of it? seemed to have ran out of memory on my phone?
Click to expand...
Click to collapse
Both of these paths are symlinks, they don't "eat" your disk space,and you don't need get rid of it.
Under root (or in recovery file manager) check /data/media , all your files shall be in data/media/0, if any files are duplicated just in data/media,
that it not correctly... delete them.
tash2013 said:
Both of these paths are symlinks, they don't "eat" your disk space,and you don't need get rid of it.
Under root (or in recovery file manager) check /data/media , all your files shall be in data/media/0, if any files are duplicated just in data/media,
that it not correctly... delete them.
Click to expand...
Click to collapse
It actually was eating my space, i had duplicate of everything, booting into recovery and doing a data wipe fixed this.
I've got the same problem after flashing cyanogen mod 10.1
Sent from my One using xda premium
Have you tried backing up your files and wiping the data partition?, I did this and it fixed this for me, also make sure your recovery is at the latest version.
Sent from my HTC One using xda app-developers app
Can someone help me out with this? What's the EASIEST way to fix this problem on my GF's phone?
I just want to copy over all her data onto a PC, Titanium Backup everything (apps, settings and all) and just fix this mounting issue. She definitely has duplicated around everywhere, but it's hard to understand what is a duplicated or not.
I have her running a CWM recovery.

Possible to wipe all and start over HTC One AT&T?

I want to completely wipe everything and start over.
I have downloaded roms and tried several that i like. But my issue is i think i am filling my storage with duplicate copies of stuff i dont need. I did a erase all data in recovery and on phone but when i go to STORAGE under settings it states i have 27GB of stuff under other.
Can anyone help?
Format InternalStorage via pc
Send via my BinDroided HTC ONE
You can format sd card in philz touch cwm recovery also
Sent from my HTCONE using Tapatalk 4
agfazio said:
I want to completely wipe everything and start over.
I have downloaded roms and tried several that i like. But my issue is i think i am filling my storage with duplicate copies of stuff i dont need. I did a erase all data in recovery and on phone but when i go to STORAGE under settings it states i have 27GB of stuff under other.
Can anyone help?
Click to expand...
Click to collapse
You probably went from a 4.1 ROM to a 4.2+.
The file structure changed. Using a root enabled file explorer check "leftovers" in /data/media
all your files in 4.2+ are in /data/media/0
Sent from my HTC One using xda app-developers app

[Q]Adapting Turbo DATA to HTC Desire 500 - 4gb+ Data partition on sd-ext?

Developer delta-roh made a script for the HTC Sensation that enables it to mount /sd-ext as "internal memory", on a sufficiently fast sdcard this would mean you could make the data partition as big as your sd-ext partition.
This is the thread: TURBO DATA - 8GB DATA PARTITION
The script is only for the Sensation, but the dev said in the thread it could theorically be adapted for other phones:
This is ONLY for the HTC Sensation/XE; it can work also for flashable images of other devices, but then you have to open the batch mni.bat file in the directory @bins and to change the strings for userdata_org1/2, userdata_new1/2 - however, you should only do this if you know exactly what you are doing - and look out the string pairs org1/new1 and org2/new2 have to have the same length! NO SUPPORT!
Click to expand...
Click to collapse
The script involves converting a ROM zip, and requires a ROM with a boot.img file. Adapting it would involve tinkering a bit with partition names, as the Desire's are probably different... But it could be feasible, and it could solve the internal memory problem many Desire 500 users have.
I have a Sensation with a class 10 sdcard, and the mod works pretty well for me, it solved the internal memory problem.
I do not have a Desire 500 handy right now (it's my girlfriend's phone), but maybe somebody could try their hand at this? They're both HTC phones and have similar partitions. Maybe it's not too hard?
Any devs want to try?
Working, thank you very much (tested on single sim)
Puzzlemanx said:
Working, thank you very much (tested on single sim)
Click to expand...
Click to collapse
What? Really? You didn't even need to adapt it? Tell us everything, please, which ROM did you use? Which SDCard? This could be great news!
I simply did what is said in the article... (stock rom)

Desire 510 on FreedomPop ... Out of Storage ... Help ... Kernel? Custom ROM?

FreedomPop now sells the HTC Desire 510. I bought it for my daughter thinking that 4GB would be enough storage for her, but when I ran my first round of app updates, the phone's storage filled up! I checked it out and there is so much bloat on the phone, that it can't be usable for a little girl who might want to install an app or game or two.
I have rooted it and tried Link2SD, but it won't auto mount an ext3 or ext4 partition on boot and therefore, the apps moved to the SD card can't be found when the phone boots.
I'm assuming the problem is with the kernel.
Ordinarily I would just put a custom ROM on a phone and be done with it, but FreedomPop uses some unique network settings that make it difficult to just replace a ROM.
My question is whether anyone has this phone on FreedomPop and what you are doing to make it into a usable phone?
Are you using a custom kernel?
If you are using a custom ROM, how did you configure the FreedomPop settings?
jeffmikels said:
FreedomPop now sells the HTC Desire 510. I bought it for my daughter thinking that 4GB would be enough storage for her, but when I ran my first round of app updates, the phone's storage filled up! I checked it out and there is so much bloat on the phone, that it can't be usable for a little girl who might want to install an app or game or two.
I have rooted it and tried Link2SD, but it won't auto mount an ext3 or ext4 partition on boot and therefore, the apps moved to the SD card can't be found when the phone boots.
I'm assuming the problem is with the kernel.
Ordinarily I would just put a custom ROM on a phone and be done with it, but FreedomPop uses some unique network settings that make it difficult to just replace a ROM.
My question is whether anyone has this phone on FreedomPop and what you are doing to make it into a usable phone?
Are you using a custom kernel?
If you are using a custom ROM, how did you configure the FreedomPop settings?
Click to expand...
Click to collapse
I'm trying to do the same thing myself. I've tried a couple of kernels. I can get the Link2SD to work but then the front camera won't work.
There are several recommendations to use Rhinestone. So I tried the latest version of that but it breaks the WIFI for me and that won't due for freedompop.
I'll keep trying but nothing works the way I would like so far.
Custom Rom
any updates?
Odin Wynd said:
any updates?
Click to expand...
Click to collapse
No. Apparently, no one has figured this out.
RaptorSense 7
From testing, RaptorSense 7 seems to be the most stable ROM
Link2SD is mostly functional. The only issue, is with the 2nd partition mount script, and thus, the linking features. This is an s-on related issue.
Move to SD works GREAT. but, there is much potential here.
The only other issue, is you must change your wireless settings to global as the preferred network, by holding down the mobile data setting until it's advanced settings pop up, and selecting global as preferred network. This is what I have read from the only other person I have found to post about testing this rom on this device. My HTC Desire 510 is not activated. So I could not test the connectivity and data first hand beyond wifi.
Everything else seems to work.
We need to figure out s-off for this device, or we are kinda stuck with just the simple features of Link2SD, and still stuck with some bloatwear, some of which are discontinued HTC Research products. At least on the Raptor Sense 7 rom..
Solution ~ It Worked for Me
First, I am very new to rooting, so I really have no idea what I'm talking about, but I had this problem yesterday, and I no longer have it.
With that in mind, I was having the same issue, and tried a ton of different random things that didn't work. I basically came to the conclusion that the issue had something to do with the kernel. Anyways, I still don't really know what a kernel is, but I read somewhere that in order to mess with settings like these, you had to flash a sprint kernel with the write protection removed.
I did this by following the instructions from the following forum:
http://forum.xda-developers.com/des...print-virgin-mobile-stock-desire-510-t2958969
At any rate, I'm pretty sure this is what did it for me (although I may have done some other things that I didn't understand / can't remember) and I hope it works for you too!
Best of luck
Edit:
By "it worked for me", I mean that Link2SD is now able to mount the ext2 partition that I created on my microSD at boot.
I'm in the same boat - does anyone have any ideas on how to make this freedompop 510 a little more useful? I don't have room to do anything. Thank you!
Is there a way to get more space in the data partition without having to use Link2SD? The big problem with this phone is the overwhelming amount of bloatware.
smuggskier99 said:
I did this by following the instructions from the following forum:
http://forum.xda-developers.com/des...print-virgin-mobile-stock-desire-510-t2958969
Click to expand...
Click to collapse
Well, I added that kernel to my phone and I noticed the phone got super hot and the wifi stopped working. After rebooting, it got stuck in an unsolvable bootloop, bricking it without being able to fix it.
Raptor Sense 1.2
I have the Sprint variant of the HTC Desire 510 and everything is working plus the phone is for the first time usable and stable. Link2SD is able to mount ext2 partitions on this phone with no problem. No success with ext3 or ext4 partitions. I used the steps found here on xda to partition the microSD Card. Have tried many ROMs with varying results. Some things would work and others would not. Have settled on Raptor Sense 1.2 until something better comes out.
That's odd. I've tried 1.2 but I can't seem to get link2sd to work, but it works fine in version 1.0
wkLeon said:
Is there a way to get more space in the data partition without having to use Link2SD? The big problem with this phone is the overwhelming amount of bloatware.
Click to expand...
Click to collapse
I've rooted the phone only to find that the data partition is too small.
Some stuff to get rid of, but it's not on the data partition so what good does it do you?
list of bloatware
http://forum.xda-developers.com/desire-510/general/bloatware-removal-list-compilation-t2960011
You can tell market apps to download on you sdcard.
http://addictiveblogs.com/how-to-move-all-android-apps-to-sd-card-without-rooting-device/
adb shell pm get-install-location
After Android Tools Update command
adb shell pm setInstallLocation 2
It does appear that you have to have enough space on your data partition before market will download app. It will then end up on your sdcard.
But the data partition still fills up. Don't know who is doing the filling.
I've been playing around with the linux redirect command to try to move some stuff to the sdcard.
see
ln -s <where to go in the future> <old place your are replacing>
work in progress for me.
& I haven't figured out how to do a backup of my system yet. Titanium backup want to backup to the data partition. Guess they want you to buy the pro version. Should just say it's a demo version.
rccharles said:
I've rooted the phone only to find that the data partition is too small.
Click to expand...
Click to collapse
phone: freedompop htc desire 510.
Actually, found out my /storage/emulated/legacy partition is giving me out of storage too. lnk2sd showed:
/data
total 1.11gb used 0.99gb free 119mg
/storage/emulated/legacy
total 1.01gb used 0.99gb free 17.88mg
/storage/ext_sd
total 3.63gbused 74.19mb free 3.56gb
The location /storage/emulated/legacy
is what I see in setting > storage [ the first instance ]
17.89mg
seems this is the problem. Seems this is contains app profile information. This storage space increases when you go into the app and clear settings or ditch the app.
Robert

Categories

Resources