yashsingh1/xdaforums huggingface dataset:
[HTC Amaze 4G] PowSniffer0110:
It wont boot even if i dont flash gapps. I know how to flash roms tho. Have been tinckering for 3 years now. Im still in bootloop. Im not s-off tho and im trying to flash in twrp. Do i need to try ext4??
[HTC Amaze 4G] chevycowboyusa:
In the thread

In this thread you will find multiple posts with specific instructions....

If you search you will find post #2410 + #2412

Follow these steps:

- flash back to stock with RUU

- flash recovery ext4 and root

- backup

- wipe cache and davik

- format system

- FIX PERMISSION (i didn't and got boot loop in CM10). It may take 5 minutes.

- flash CM10

- wipe cache and davik

- fix permission

- reboot

- ???

- profit?
[HTC Amaze 4G] ziggy46:
yes, try 4ext. by the sounds of it the kernel didnt flash... so when you load 4ext, find and enable "smart flash" so the kernel flashes properly. if your still having problems ill get you the manual kernel flashing instructions.

also, if your stuck at the cyanogenmod boot animation then it may be a bad download. but if its the white htc screen then its the kernel
[HTC Amaze 4G] dcacklam:
UPDATE:

path is actually:

/sys/class/android_usb/android0/f_mass_storage/lun0/file

/sys/class/android_usb/android0/f_mass_storage/lun1/file

Working on the hex edit now.
[HTC Amaze 4G] PowSniffer0110:
It worked. Ext4 with smart flash worked. Thanks yall. OP you need to include this in the actual OP thatd be wise. Thanks!
[HTC Amaze 4G] ziggy46:
awesome, if the hex edit works then cm10 is practically stable for us

EDIT: also, i just did a clean install of linux and the source is almost done syncing. do you me to try and cook in these fixes while we wait for sport?
[HTC Amaze 4G] chevycowboyusa:
What file are you editing?

In trying to hang in there and follow what you are doing....
[HTC Amaze 4G] dcacklam:
Edited vold attached.

CONFIRMED WORKING.

How to use:

1) Be running 1227 build

2) Unzip this file into /system/bin (obv you will need a way to get it to your device, adb push works... And you will need to mount /system read-write)

3) From ADB shell or Terminal, run chmod 755 /system/bin/vold

4) reboot

5) Enjoy WORKING USB Mass Storage!
[HTC Amaze 4G] dcacklam:
I'm editing the volume-mounter daemon (a binary file) itself. The file is /system/bin/vold, and in an epic display of retardation, the configuration of this program is hard-coded as string-literals and compiled into the program, rather than read from a configfile.

You need a specific sort of editor (hex editor) because this is not a conf file, this is 'hacking' (literally) a program to change the contents.

Apparently, they just use a different version of vold for phones with one user-mountable storage, than for phones with two or more mountable storages.

The permanent fix, will be when Sporty updates the build-configuration of vold to reflect the proper multi-sdcard layout.

Since there are many, many folks on OTHER PHONES out there running borked USBMS on CM9 & 10.... This is going to be a popular fix if it gets out. The flip-side is that the vold we are going to be using, will NOT work on phones that use the 'crippled' AOSP usb gadget, and vice-versa....

With the good vold & kernel, we get the exact same behavior as a themed-sense ROM, mounting both SD cards with one tap of the sd-mounter screen.
[HTC Amaze 4G] elmerohueso:
Does this also get MTP working, or does that require editing other files as well?
[HTC Amaze 4G] dcacklam:
Hex edit worked...

What I'd like someone with a full source-tree to do, is find out where the *bleep* in the vold sources, makefile, headers or other config, this path is defined...

So that we can fix it elegantly, rather than as a binary-blob.

---------- Post added at 10:38 PM ---------- Previous post was at 10:29 PM ----------

USB Mass Storage only.

MTP is a huge giant ball-o-wax, as from what I can tell the files to support it ON THE ANDROID SIDE simply do not exist in our build, other than the option-picker itself.

The kernel supports everything you could ever want to do with that USB port, it's just a question of implementing it in Android...

And once you get too far away from linux stuff, into the Android shell that's where I become much less useful...
[HTC Amaze 4G] snowlin:
I've been monitoring this thread for a good while now and its VERY apparent how much you've helped with the progress of getting CM10 near-perfect.

Just want to give you a formal THANK YOU SIR.

as well as a big THANK YOU to everyone else that is working on this and keeping this phone in the game :)
[HTC Amaze 4G] dcacklam:
BTW, I don't know if this is the right place for this, but the following board-files are also using the 'neutered' single-mass-storage driver:

I don't know which files these are, but if the phones in question HAVE multiple SDcards... I wonder if their dev communities have figured this out yet?

8064

8940

8960

9615

holiday

mxm7x27a

pyramid

qrd7627a

shooter

shooter_u

ville
[HTC Amaze 4G] elmerohueso:
Bummer. MTP would let us format the sdcard partition to EXT4. At least we get mass storage working (hopefully sport throws together a new unofficial build).
[HTC Amaze 4G] dcacklam:
Someone could make the 'fix' for USBMS on 1227 into a flashable, easily.

It's just a matter of replacing the vold file, fixing perms, and rebooting.
[HTC Amaze 4G] :
Yea I'll look through the vold source and hopefully I can find something
[HTC Amaze 4G] chevycowboyusa:
I'm at work

I'm at work, and can't break out my laptop right now, or I'd doit....

Thanks again for your hard work! And, I'm learning a butt ton of new things!
[HTC Amaze 4G] elmerohueso:
I was about to do that, but the fix is still seeming flaky. Seems to only work 50% of the time for me. I've been testing by connecting/disconnecting and enabling/disabling mass storage multiple times, and sometimes the phone just hangs while enabling mass storage, a couple times it said it was enabled but the PC didn't show anything, and once it only showed internal storage.

Are you having a better success rate? Should I still try to make a flashable ZIP or would it be better to wait for sport to build from source?
[HTC Amaze 4G] EclipzeRemix:
Wao this is making some good progress

Sent From T mobile Samsung Galaxy S3 Running CM 10.1
[HTC Amaze 4G] chevycowboyusa:
Working Fine

It's working fine for me... every time.

my sd_ext isn't right though. Was this supposed to fix that as well?
[HTC Amaze 4G] elmerohueso:
Here's a flashable zip of the new vold binary from dcacklam, for anyone who's itching for working USB Mass Storage before sport throws together a new build.
[HTC Amaze 4G] elmerohueso:
No. AFAIK, CM10 requires it to be mapped to /storage/sdcard1. However, you could probably use a script to create a new symlink to link /storage/sdcard1 to /storage/sdcard0/sd_ext at boot. I use Directory Bind to do this. I prefer Directory Bind over scripting the symlinks because it's a nice GUI and I can link/unlink paths on the fly. Directory Bind can also be told to run at boot, and to temporary unlink things when USB is connected (so it doesn't conflict with USB Mass Storage mode).
[HTC Amaze 4G] dcacklam:
no /sdcard/sd_ext actually *is* a feature, not a bug.

JB & CM10 don't support that layout, for any phone.

---------- Post added at 01:07 AM ---------- Previous post was at 01:05 AM ----------

You cannot symlink in /sdcard, because it's FAT32.

The ONLY way a symlink will be doable, is if someone gets MTP working and you re-format your sdcard back to a proper Linux filesystem (EXT4. No, not related to '4ext recovery' at all, rather the 4th-extended version of the Linux filesystem)
[HTC Amaze 4G] chevycowboyusa:
OH well

Well at least I can mount it thru usb now (without having to reboot into recovery) BIG + !!!!!

Thanks!
[HTC Amaze 4G] BlacKca7:
thanks mate, i'll flash it and report back
[HTC Amaze 4G] :
ok here's the vold makefile https://github.com/CyanogenMod/android_system_vold/blob/gingerbread/Android.mk and heres the fix that should work https://github.com/Sportsstar89/and...mmit/d0239c2c682f849338e59b395a30ba638b9931de
[HTC Amaze 4G] :
Ok intervigil seems on board so i'll clean up and get the other devices on for the change
[HTC Amaze 4G] elmerohueso:
Guess I meant "bind" mounts, not true symlinks.

Directory Bind works fine. I have /storage/sdcard1 linked to /storage/sdcard0/ext_sd, /storage/sdcard0/DCIM linked to /storage/sdcard1/DCIM (because I didn't see a setting in the CM10 camera to change the storage path), and /storage/sdcard0/Android/data/com.google.android.music linked to /storage/sdcard1/Music (for more Google Music Offline storage).
[HTC Amaze 4G] chevycowboyusa:
MTP

Could anything in this post help?

http://xdaforums.com/showthread.php?t=1711009
[HTC Amaze 4G] :
MTP sucks why would you want it anyway
[HTC Amaze 4G] chevycowboyusa:
I didn't Know

Lol... I didn't know it sucked...

Is that why they went from MSC to MTP back to MSC?
[HTC Amaze 4G] :
it's slow USB Mass Storage is faster and better
[HTC Amaze 4G] elmerohueso:
There are pros and cons for each. IIRC:

Mass Storage

Usually stuck with FAT32, so it can be read by other OSes (so you have the pros and cons of FAT32, like size limit and not supporting file permissions)

Unmounts the storage from the device in order to mount it to the PC (PC has physical access to storage media, so while in Mass Storage, apps that access either sdcard partition won't work)

Transfers can be faster because PC is communicating directly with the storage

The physical access allows for more chance of corruption due to bad transfers or improper unmounting

Device must re-scan the storage after unmounting from PC

Requires true separation of App Data and Storage (leaving you with only 1 GB for apps even though you have 16 GB total internal memory)

Usually must be manually enabled and disabled when connected to a PC

MTP

Allows other filesystems, like EXT4, to be used because communication goes through the device (so you have the pros EXT4, like higher size limit and supporting file permissions)

Does not unmount the storage from the device (PC has logical access to storage media, apps that access either sdcard partition may still work)

Transfers can be slower because PC is communicating through the device

Usually is automatically enabled and disabled when connected to a PC

If programmed into the ROM, allows the App Data and Storage "partitions" to be shared, giving the system access to more storage for installing apps! (there are a lot of big games, now)

One annoyance is that Windows might warn you when transferring "non-media" files

I actually prefer MTP for ease of use, have more app storage (without needing to move apps to SD), and to have the advantages of EXT4.

http://www.androidpolice.com/2011/1...behind-galaxy-nexus-lack-of-usb-mass-storage/ has a pretty good article on why Google prefers MTP.
[HTC Amaze 4G] leaky0320:
Which 12/27 build are we talking about? The one on get.cm or the goo.im one? Also I see a new 12/28 build on goo.im. Anyone tell me what's changed in that?
[HTC Amaze 4G] :
USB Mount should be working in the latetes build btw test out battery life it should be better
[HTC Amaze 4G] misfit61871:
I'm on the 12/26 official, can I flash it over that, or should I do a full wipe? I remember on my g2 I used to flash the nightlies and just wiped dalvik and cache.

Sent from the depths of the nine hells!
[HTC Amaze 4G] Bling_Diggity:
Thanks Sports gonna give it a go. Great work guys, y'all are working so hard you've even figured out how to fix usb bugs on other phones now...crazy lol.

I'm keeping track of who's moving things along in this thread, if you have a donation email (paypal) on your xda profile you'll be getting a nice little $20 donation from me soon.
[HTC Amaze 4G] ziggy46:
yea the g2 method should work fine
[HTC Amaze 4G] leaky0320:
Thanks Sport!
[HTC Amaze 4G] Bling_Diggity:
Hmm...somehow I've lost all vibration. Even in recovery. Swapped batteries, nothing. Odd. Never had a complete loss of all vibration before.

EDIT: Not even any vibration on HTC white screen upon turning phone on.
[HTC Amaze 4G] GuyInDogSuit:
I've suggested that he do this, at least recommend 4ext, but as he stated, he's not actually REQUIRED to. He flashes ROMs with TWRP just fine.
[HTC Amaze 4G] dcacklam:
He's S-OFF, IIRC... As you'd expect...

For S-ON, 4ext is the easy way... However, 4ext is not fool proof.

If (like most of us) you are 'S-ON with HTC Unlock'... It is in your best interest to learn how to flash from fastboot, because there are places you *can* go, that 4ext will not bring you back from....

---------- Post added at 06:41 AM ---------- Previous post was at 06:36 AM ----------

Major changes are (a) the kernel, and (b) vold....

I don't think a full wipe is required, but will not be responsible for whatever goes bonkers on your phone if you don't...

The stuff I contributed to this for USB was all done on a live phone, with manual-flashing of boot.img as I worked through the kernel config...

I have some other kernel-stuff I'm working on, as well as chasing the bluetooth bug now that USB is squished....
[HTC Amaze 4G] Bling_Diggity:
USB Mass storage not working for me with 12/28 build. After tapping "turn on USB Storage", it spins for a few seconds, then acts like nothing happened. I touch it again, and it spins endlessly. Gonna try and post a logcat, hang on.

Oh ****...this is not good...tried to reboot and now I'm stuck in a bootloop. Guess it's my fault for trying to do things the quick and easy way by just wiping cache+dalvik and not a full wipe like I usually do.

EDIT: Nvm on the reboots. Got it fixed. I'm looking at the logcat right now, it's the same problem we were having before with android looking in the wrong location for the LUN file.

EDIT2: Screw it, gonna try a full system wipe, then flash the 12/28 build. If that doesn't fix it I'll flash this...

...on top of it. Here goes!
[HTC Amaze 4G] dcacklam:
Android-proper (eg, Nexus & such) went to and stayed with MTP.

The idea was to eventually be able to do 'one big partition' instead of separate apps/data/etc, and format it ext4 - then use MTP to expose it to Windows/etc...

However, this change was not popular with many advanced users who did 'other stuff' with their phone that can only be done by UMS - so CM tends to favor UMS.

Of course, CM10 supports *letting the user choose* between MTP, PTP, and UMS - using a menu under Settings/Storage...

The problem is, at least on the Amaze only the UMS choice is functional...

But at least now it is fully functional....
[HTC Amaze 4G] misfit61871:
Well I flashed with just a wipe of cache and dalvik, I know a full wipe it's usually best for tracking bugs, so far so good have not tested connecting to the pc just yet, but I have noticed that the 4ext recovery control still did not see the external sd card.

Edit: External sd is not mounting, so I'll try it after a fresh install tomorrow and see if that works.

Sent from the depths of the nine hells!
[HTC Amaze 4G] Bling_Diggity:
Ok, after full system wipe and fresh flash of latest build, USB mass storage will still NOT mount either internal or external SD to PC. What's worse, after that fails, the SD cards (both internal and external) fail to be recognized by Android. So, when I try and save a logcat, I can't, because Catlog can't find the SD card, along with the rest of Android.
[HTC Amaze 4G] dcacklam:
** NOTE: USB FIX IS NOT MERGED INTO CM YET, ONLY AVAILABLE ON UNOFFICIAL BUILDS ***

I'll try the latest goo.im build tomorrow morning...

UMS does work with the 1227 build WITH the zip flashed... (So long as the kernel image is actually flashed. Unlike going from Sense to CM, a CM -> CM kernel-flash failure will not always produce a bootloop)....

The key components that MUST be there for the fix to work are:

1) updated kernel image

2) updated /system/bin/vold
[HTC Amaze 4G] Bling_Diggity:
OK good news, I found the problem. Apparently Sports didn't properly included the new Vold binary into his latest 12/28 build. Perhaps I read his posts wrong, I thought that's what he was trying to get across when he posted it was that you didn't have to flash the .zip file with the 12/28 build. But, as a matter of fact, you do. Just spent the last 2 hours of my life learning that the hard way. At any rate, once I flashed the USB_Fix.ZIP or whatever it's called, everything works. So basically, the 12/28 build is for ****s and giggles unless you flash the .ZIP file along with it. My method was:

1. Reboot to 4ext

2. Wipe everything but SD

3. Flash 12/28 build

4. Flash KDH Gapps

5. Flash USB_fix.zip

6. Reboot

7. Profit

Hooray working USB mass storage!
[HTC Amaze 4G] GuyInDogSuit:
So you're saying the latest build off Goo.im does not have the mounting fix?
[HTC Amaze 4G] Darikus:
yup :)
[HTC Amaze 4G] seansk:
I flashed the KDH Gapps but the keyboard doesn't seem to have voice dictation, anyone else? I've looked through settings and everything. Am I missing something? btw, voice search is installed already.
[HTC Amaze 4G] dcacklam:
You don't need a separate voice-search in JB. That functionality is part of Google Now. If your voice-search icon is not blue, then you have a conflict between ICS voice-search and Google Now voice search....

As for KDH, I don't know as I use the standard 10.0 GAPPS (20121011) from the link in my page.
[HTC Amaze 4G] seansk:
thanks figured it out...does the 10.0 gapps include the new camera, keyboard and pinch to zoom gmail, (basically the 4.2 gapps)???? the KDH is awesome since it gives you 4.2 google apps with a 4.1 phone...everything seems to work
[HTC Amaze 4G] dcacklam:
Nope.

Standard GAPPS = Standard 4.1 everything.
[HTC Amaze 4G] iKilla:
20122812 Build Is Available Now, For People Using Manual Update!
[HTC Amaze 4G] seansk:
is there a changelog for the nightly roms?
[HTC Amaze 4G] GuyInDogSuit:
There is, someone posted a link for it a few pages back.

I tried that one before, but it just seemed like it re-flashed the 4.1 versions. Nothing was 4.2.
[HTC Amaze 4G] misfit61871:
Exact same problem here.

Sent from the depths of the nine hells!

---------- Post added at 10:15 AM ---------- Previous post was at 09:52 AM ----------

Confirmed, I flashed the fix zip and all its working now yay!

Sent from the depths of the nine hells!
[HTC Amaze 4G] Shadow Samurai:
The vibrator in the phone is jammed. I had the exact same problem about 3 months ago. Simply dropping it on the floor enough times fixed the problem and now the vibrator has never been stuck again!

Sent from my Energized HTC Amaze!
[HTC Amaze 4G] Flyin18T:
DO NOT TRY TO DUPLICATE!
[HTC Amaze 4G] GuyInDogSuit:
So where is this USB_fix file? Or is it already merged in the 12/28 Goo build?
[HTC Amaze 4G] iKilla:
Good Question..
[HTC Amaze 4G] ST4321:
Page 271
[HTC Amaze 4G] andy55:
12/28 nightly is out
[HTC Amaze 4G] wolf_7669:
I assumed not and flashed the fix just in case. Didn't break anything as far as I can tell but haven't plugged into a PC yet to see if both cards mount.
[HTC Amaze 4G] CalicoJeb:
From what I read in the thread :) it's not yet merged, flash the Mass_Storage_Fix.zip (I did) and all will be fine, one more Dead Bug ;)
[HTC Amaze 4G] zandgreen:
Hello, thanks for the efforts and recent updates, the rom seems to be getting closer to an accomplished one (there is always a chance for improvement though). I can't wait to come back home from the vacation to flash it.

There is one thing which isn't immediately connected to the rom issue but as long I plan to flash it in close future I would like to know whether there is "Locations" HTC (?) application (the one you can download maps with) that I have on HTC Sensation but I don't have on the Amaze (stock rom)? Thanks.
[HTC Amaze 4G] :
In the 28 build on my goo it should be working if its not log cat please
[HTC Amaze 4G] crazypotato:
for some reason, it is not as snappy as the speedrom 7.9. Is it because of sense gpu optimization or the faux kernel scheduler? i don't notice the "echo" so far. I am on Wind.

---------- Post added at 04:44 PM ---------- Previous post was at 04:34 PM ----------

28th goo build usb mass storage not working, it still needs the fix.zip to correct.
[HTC Amaze 4G] shift_8125:
Just flashed new nightly (12-28-12),booted then newest gapps in that users sig., and the usb fix now im getting force close from keyboard after installing gapps and usb fix? Any ideas?
[HTC Amaze 4G] Bling_Diggity:
Unless you updated it from last night it's not, unless you flash the usb_fix zip along with it. If you don't flash the usb_fix zip, USB mass storage still fails to mount. And I mean mount anything, anywhere. After it fails to mount either SD card to PC via USB mass storage, both SD cards fail to remount back to Android, so I can't provide you with a logcat because I can't save the logcat because the SD cards can't remount properly, so until I reboot it's like they don't exist. See the catch 22 there? But trust me, I was able to view the logcat while all this chaos was happening and it's the same error as before, vold looking in the wrong place for the LUN file.

Lesson of the day: When in doubt about how to fix USB mass storage, just flash the damn ZIP file, lol.
[HTC Amaze 4G] :
I need a log cat to see if it still trying to check the wrong lun
[HTC Amaze 4G] iKilla:
im s-off, I was actually running 4EXT recovery after i installed 20122812 the USB didnt show up on my PC, until i installed TWRP,now it works, im glad its resolved but im not sure why it wasnt working..
[HTC Amaze 4G] crazypotato:
does any of you do video chat in GTalk and Google Hangout? I couldn't do it with this ROM.
[HTC Amaze 4G] shift_8125:
Any info on Enabling Facebook Contacts yet in CM10?
[HTC Amaze 4G] zPacKRat:
Wrong place to ask. Head over to the cm forums and ask. AND, there is an app for that.
[HTC Amaze 4G] rbehniwal:
I installed the 20122812 update and the mass_storage_fix.zip but still unable to mount to pc. Click on usb storage and nothing happens.I can only get access through 4ext recovery for both internal and external sd. Any help?
[HTC Amaze 4G] iKilla:
before flashing did you make sure SmartFlash was on in 4EXT??
[HTC Amaze 4G] rbehniwal:
Yes Smartflash is on. tools gives me the option "disable 4ext SmartFlash". I also tried wiping cache/dalvik and fix permissions.
[HTC Amaze 4G] HumpDdumpD:
it you flashed the gapps for 4.2 there's your problem. flash the second to last 1011 or 1110 it's one if those two. Sounds like that's the problem. There's also a link a few pages back to hacked 4.2 gapps that runs pretty nicely IMHO
[HTC Amaze 4G] dcacklam:
usb fix ONLY applies to UNOFFICIAL builds after 1227, not CM nightlies YET.

The CM nightlies don't have my kernel changes integrated, so they are still using the hobbled USB gadget...

Sport & Co... are 'working on that' - in terms of getting the changes committed to the CM repo so that it will be part of all future builds...

'till then, enjoy the unofficial builds, or if you want to run the nightlies and use the usb fix you'll need to fastboot-flash the 1227 boot.img, after flashing said nightly & the zip with my 'modified' vold binary....

I'm currently chasing after the BT/audio mess & a few more power-related kernel tweaks....
[HTC Amaze 4G] GuyInDogSuit:
I'll have to try that one again. Last time I tried it didn't actually update the Gapps to anything past 4.1.2.

Better ask Facebook about that one. Until they get over the fact that they lost the social media war, the contacts syncing (specifically phone numbers) won't work with anything newer than ICS.
[HTC Amaze 4G] dcacklam:
Not the newest, the one from October.

GAPPS after 201210 are for 4.2

---------- Post added at 07:05 AM ---------- Previous post was at 07:03 AM ----------

Google Maps (includes Google Navigation, Google Locations (the people-tracker one), etc) is available from the Playstore... It is not part of GAPPS.
[HTC Amaze 4G] iKilla:
http://goo.im/gapps/gapps-jb-20121011-signed.zip
[HTC Amaze 4G] mestguy182:
I use haxsync, works great.
[HTC Amaze 4G] iKilla:
Version 20122912 is up.. and those who keep asking for changelog: http://10.cmxlog.com/?device=ruby and i advice you to save to favorite and stop asking on ever page! another way to check changelog on your phone is to click the version in settings>aboutphone>Cyanogenmodupdate.. click any version you downloaded and changelog will open.. :)