yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Mustaavalkosta:
I've been tinkering with something interesting for our low storage space issue to take my mind of WebView crash for a while since solving that issue became quite unproductive use of my time. Essentially I first changed the OS use data partition as system partition and then sd-ext partition as data partition but it felt somewhat clumsy to use since sd-ext is fixed in size.

Then I decided to try if it was possible to convert the OS to think we are running emulated sdcard device with only internal storage available. This practically meant reformatting sdcard as EXT4 (or F2FS) and mounting it as /data and making some changes to convert sdcard to be emulated one. In a nutshell, this gives you shared storage space for user apps and sdcard (just like internal storage only devices).

With the 8GB class 4 card that came with my device: http://i.imgur.com/Mvcvm0V.png

This setup allowed the system to be pre-optimized and by using PIC pre-optimization system boots up without optimizing or moving any dex files to anywhere (excluding gapps) which means first boot is "quite" fast.

This will require some changes to recovery to be used properly so I've been working with jrior001 to likely release separate TWRP build for this purpose. These builds will be built under different device variant called "aceopt" because this will require some level of knowledge from users to comprehend what's happening and not to break anything so I don't really want to force this change on everyone.

Since this isn't 100% ready to go yet there can still pop up unexpected issues but hopefully nothing too difficult to solve but FYI this can still hit the wall.

Having full sdcard available as space available for you to use seamlessly would be very nice though. Keep your fingers crossed for us. :p
[Desire HD Android Development] xda-dhd:
Link2SD

...you mean something like this?

or

before -

dev_mount sdcard /mnt/sdcard emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host

dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host

after

dev_mount sdcard /mnt/sdcard2 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host

dev_mount sdcard2 /mnt/sdcard auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host

P.S. Is an example of another phone... The same can be done on our DHD just a little bit differently.
[Desire HD Android Development] Mustaavalkosta:
Nope, this requires framework and init script changes too to fake the internal storage only thus it's way more holistic and much less duct tape approach than any Link2SD or similar apps can do. Only downside is that sdcards can be much more volatile as storage device than nand chips and they will be exposed to more strain which can kill them more quickly but dunno if this is something to worry about in practice.
[Desire HD Android Development] xda-dhd:
Do not worry, this is normal, what I wrote in the previous post about editing the file vold.fstab.

This is a common thing to change the memory of places, everything will be fine!
[Desire HD Android Development] Mustaavalkosta:
Yeah, jrior001 linked me something similar from mdmower's fireball/fireballx for inspiration. I just want to emphasize this solution won't require anything else after flashing appropriate recovery and converting your sdcard to EXT4 or F2FS just like converting data partition in the current ace builds. After that you can just start using the device like you have used to with the twist that you have full storage space of your sdcard available for your stuff and apps.

I just finished testing initial version of device tree changes and now waiting on jrior001 to see if TWRP will play ball with this hacky setup. Flashing zips like gapps that rely on fstab based mounting will likely be fixed with just changing fstab but nandroid backups can turn out to be tricky, or not. I'm hoping for the latter to be true. :)

https://github.com/OpenDesireProjec...mmit/e85d3ca319161a957dbd91c6352c55143d2bfe85

https://github.com/OpenDesireProjec...mmit/912e76f8087584b32cc95c1573c265dc8436fc60
[Desire HD Android Development] $or$:
very good before, I used Link2SD and with my transcend 32gb U3 sd card speed of anything that I link2sd are very good (I divide my sd to 2 derive one EXT4 (10gb) and another default fat32 (21gb). only problem is cannot move system apps and gapps I think with moving some of them which is unnecessary to boot at startup specially gapps we can expect speed improvement in our device
[Desire HD Android Development] Mustaavalkosta:
Nightlies for aceopt will start tomorrow to check a few more things. It won't flash with regular ace recovery so don't waste your time trying and don't waste everyone's time by asking about it. I'll post more detailed installation instructions once it's truly ready for release but things are looking good at the moment.

Edit: Upstream introduced a build error so no builds today. Better luck tomorrow I guess.
[Desire HD Android Development] Mustaavalkosta:
I just tried this with my car's 3rd party audio system (Pioneer DEH-2600UI) with aceopt build thus via MTP and it seemed working just fine. It might be some incompatibility with your specific audio system or something like that but at least it's not universal with all car audio devices. I don't know about UMS though but try MTP if you haven't already.
[Desire HD Android Development] $or$:
I installed cm-12.1-20150816 so, do I need to update my phone to all available updates after 20150816 ?

+ after flashing XTREMEMusic mod which as I said I had no sound on my device after that I tried eXtremeBeats mod from here but, again I had some weird problem at first everything looks good with no problem with increase sound on speaker specially ringtone which seems very weak on my device but, after a few second of playing any sound it will crash and sound become like old tv's white noise! So, I wonder are those problems happening because, our device is incompatible or Cm 12.1 or kernel problem? or should I delete/change some things on that mod? I asked on their topics but, nobody answered :(
[Desire HD Android Development] rjand:
No need to install newer updates if you don't want to - not much has changed in the past 2 weeks.

The aceopt message you quoted is going to be different, fresh install it when it is ready for prime time - so not yet. It is the same CM version, but the storage layout is different.

The eXtremeBeats mod you have linked to doesn't list our device in the compatible devices on the first post, but searching through the thread another user says an older version 4.0 worked on their Desire HD, although that was with KitKat and not Lollipop.
[Desire HD Android Development] $or$:
Thank you for your respond

what about XTREMEMusic from here it is compatible with cm 12.1 but, flash it make no sound in speaker in our device, my blutooth headset works fine only speaker has no sound
[Desire HD Android Development] rjand:
I see you have asked in the thread for that mod with no reply, but that thread is going to be the best place for an answer. As I don't use it myself, my only suggestions are to try an earlier version and / or be very selective with which mods you enable as they won't all be compatible.
[Desire HD Android Development] jrior001:
I didn't see it mentioned so I'll throw it out here as this caught me on my initial testing.

If you had previously converted partitions to f2fs (data and cache) you may want to recheck this after installing the aceopt twrp. The new layout is using your old /data partition as the new /system partition. If it was previously f2fs you may run into issues flashing the cm build as no CM build supports f2fs on /system.
[Desire HD Android Development] Mustaavalkosta:
Thanks! Added to the instructions. :)
[Desire HD Android Development] rjand:
As old /data is now /system, what happened to old /system, just empty and unused or has it been merged with old /data?
[Desire HD Android Development] dvhttn:
Does titanium Backup still work as 'normal' with this setup?

Ta
[Desire HD Android Development] Mustaavalkosta:
Unused and empty space, this only changed mount points and the way operating system thinks sdcard is present. There's no soft or hard repartitioning of NAND involved so this is safe to the device.

No clue but I'd assume it doesn't do anything on the lower level in the software stack than these changes reside so I guess it should work.
[Desire HD Android Development] rjand:
Will the device also be faster with the changes to ART?
[Desire HD Android Development] Mustaavalkosta:
In theory, yes, but this can also vary depending on the sdcard used for data partition. I'm still pondering whether there'd be anything noticeable to gain from disabling PIC and letting dex files to be moved to sdcard too. Using PIC apparently according to Android docs has "[..] a slight runtime impact because it disables an optimization that takes advantage of position-dependent code [..]" but I have my doubts whether it's something noticeable. However, having to copy dex files increases "optimizing apps" -boot up times noticeably.

Anywho, you can check the short summaries for dex2aot filter options from here: http://source.android.com/devices/tech/dalvik/configure.html#compiler_filters

ace: interpret-only

aceopt: speed

I don't know much more than what those summaries say. Boot.art and boot.oat (which contain "[..] most performance sensitive code in the framework [..]") are using speed filter on both.

I have noticed this a bit more concrete difference though. This can be purely placebo since I haven't spent time confirming and really testing it but aceopt build seems to have more stable download speeds both on play store and OTA updates. This kind of makes sense since nand chips can be quite worn out already which can affect write speeds even when downloading to sdcard if system does any kind of caching via nand and to be honest I would be amazed if flash memory in general hasn't made any improvements in the past 5 years. This is why I even considered ditching internal memory altogether and running both /system and /data from sdcard which likely would have been possible but that setup might have been a bit too risky due to not all sdcards are really being built for this kind of use which is why I chose sdcard for my RPi very carefully. :)
[Desire HD Android Development] rjand:
It will be a few days before I get the chance to test this, but I'm looking forward to it.

If this works well with enough users would it be worth doing with CM12 and perhaps less so CM11?
[Desire HD Android Development] jrior001:
Both 11 and 12 and basically dead at this point, now that the inc has released 12.1 builds for all the cyanogenOS devices. 11 and 12 got what is essentially final stable security releases last week and that is likely the end for both branches.
[Desire HD Android Development] rjand:
I know they are unlikely to receive any further upstream updates, I was just wandering if they had a build where the sdcard was used as /data like this new optional build, would it benefit them - CM12 probably would as it is closer to CM12.1 in storage requirements, but some users prefer CM11 as it is faster and if it was possible to get a little more speed that would be great.
[Desire HD Android Development] Mustaavalkosta:
Yeah, this basicly comes down to use of codefi.re resources and storage space available on mirrors. At least ODP mirror will be full if we push 7 new nightlies for each iteration there. This isn't anything that can't be overcome with a bit organizing which would likely mean just doing same kind of builds for latest snapshot builds which wouldn't take much more space and would be only one-time occurance of build server resources used. Anyways, I'll likely push these changes next to saga (assuming jrior001 has time to do the recovery magic) and then see what is wise to do for the older "dead" iterations. Changes themselves are more or less copy & paste to backport them although CM11.0 has quite different device trees due to incomplete commonization which happened on CM12.0.
[Desire HD Android Development] rjand:
I was thinking that since there is unlikely to be many new updates to those branches the number of older builds stored could be reduced as users are more likely to install the latest build if it hasn't introduced any new bugs over previous builds, sort of in the same way that "nightlies" are now only build once a month. As CM12.1 is still under development it makes since to continue with those nightlies as is.

PS.

I hope I'm not making too many assumptions about how you plan on organising this project or spend your limited time, your work is greatly appreciated.
[Desire HD Android Development] Mustaavalkosta:
It's all good. I had been thinking of doing some kind of backport for 11.0 and 12.0 already but because it was only a thought and nothing that's coming "tomorrow" I didn't mention anything about it yet. :)
[Desire HD Android Development] Mustaavalkosta:
Uhm, there's something funky going on with source sync with the past two nightlies which has then broken revision and changelog generation. This is at least partly due to _r18 tag change from upstream. I hope it will return to normal although I will check if something is to be done from codefi.re end once build script finishes. Sync has been also incomplete thus missing some changes.
[Desire HD Android Development] jrior001:
Google has also been updating repo the last few days as well breaking sync a few times along the way.
[Desire HD Android Development] Mustaavalkosta:
Yeah, there was some kind of local git issue with prebuilts/qemu-kernel repo also.

fatal: git fetch-pack: expected shallow list

I removed .repo/projects/prebuilts/qemu-kernel.git/ and now it's syncing ok again. IIRC, this isn't first time repos are throwing that shallow list error either. Oh well, things should be back to normal tomorrow unless something breaks again. :p
[Desire HD Android Development] babydown:
I can't flash cm-12.1-20150912-UNOFFICIAL-ace.zip. Recovery said "can't find system file..." or something like that and in last console is "status 0", how can't I fix it ??? Thanks
[Desire HD Android Development] Mustaavalkosta:
Check the FAQ in Q&A thread. First Q&A.
[Desire HD Android Development] Mustaavalkosta:
Today's aceopt build (20150912) won't boot due to a tiny mishap in decommonization. It should be ok tomorrow but I didn't really check since it's late and I'm tired. I can't see anything else wrong though so *fingers crossed*...
[Desire HD Android Development] babydown:
Deleted
[Desire HD Android Development] anbaalie:
Hello users

Does anyone suffer from the GPS

my GPS can't detect my location.
[Desire HD Android Development] rjand:
What radio are you using?

What was your previous ROM?
[Desire HD Android Development] hamxa266:
How's aceopt is going! anyone has tested that I am going to flash that as soon as my system come back after some repairs. And another question is that if old /system is unused so can we include that partition in swap, not completely but little like 128mb, will that make this phone faster or not ??

Sent from my Desire HD
[Desire HD Android Development] Mustaavalkosta:
Using relatively slow storage device as swap doesn't sound too attractive to me but of course everyone's free to do whatever they want. :) We are already "extending" RAM with 256MB ZRAM block.
[Desire HD Android Development] anbaalie:
RADIO-26.14.04.28_M

...but i didn't change any thing in the ROM

my previous ROM was mokee Rom with kitkat 4.4.4

thank you.
[Desire HD Android Development] rjand:
That radio is fairly new, I think there are 2 newer radios, but it should be okay.

Have you tried the usual "fixes" such as pushing the GPS antenna cover (small cover around flash LED) to make sure that the contacts are good underneath - I have to do this most times I use GPS as I never got around to removing the cover and fixing the connections properly.
[Desire HD Android Development] dvhttn:
Is there a 'safe headset volume' setting somewhere I haven't found yet? I connect to my car stereo via cable and the output volume volume is too low with this set. I always 'max' it out but can't find how/where this is set.

Ta.
[Desire HD Android Development] anbaalie:
I don't think the problem is an the GPS antenna because is working correctly and fine in kitkat

the problem is in the Rom maybe or in other software

is it work correctly in your Desire HD on CM 12.1 ?

what is your RADIO?

and what is your current version of CM 12.1?

many thanks to you.
[Desire HD Android Development] rjand:
The radio I am using is 12.69a.60.29U_26.17.14.11_M, I switched to it when the first alpha Android 4.1 ROM's were starting to appear on the DHD as I was having problems with the stock radio causing calls to drop after a few seconds.

The latest nightly I have tried is 0817, I haven't had a chance to try the newer aceopt builds yet.

Which build are you using?

Which Gapps?

Did you do a full wipe before installing this ROM and Gapps?

Did you restore any apps / data, or download fresh from the Play store?

Have you tweaked the ROM in any way / installed any mods?

Have you tested GPS using GPS Status & Toolbox from the Play store?
[Desire HD Android Development] anbaalie:
i am using nightly 0919 and i update my RADIO to 12.69a.60.29U_26.17.14.11_M but still doesnt work.

i had tested the aceopt but the gps still doesnt work

but it is always working fine when i test it on kitkat mokee Rom

without Gapps because i dont use Gmaps i use MAPS.ME application

and i do full wipe before installing the Rom

and download all appa fresh without restore

i didnt installed any mods or tweaks

and tested GPS using GPS Status & Toolbox it give me 4/4 satellites witout any location information.

can you please give me a screenshot for your bootloader please

many thanks to you.
[Desire HD Android Development] Rooks:
Try radio 26.14.04.28M, it shall work fine.
[Desire HD Android Development] rjand:
I think I usually need 6 or more satellites to get any location information from GPS with any ROM - I haven't used GPS for a few weeks now, I'll test as soon as I get a chance.
[Desire HD Android Development] xda-dhd:
FasterGPS

[MENTION=5223901]anbaalie[/MENTION]​

Try this on two radio [26.14.04.28_M & 26.17.14.11_M] and choose the best for yourself.

Also, try to change the letter radio [on 12.69a.60.29U_26.17.14.11_M change letter U -> P] it can also effect the operation of the ROM.
[Desire HD Android Development] anbaalie:
can I have download link to it please?
[Desire HD Android Development] xda-dhd:
http://xdaforums.com/showthread.php?t=877295
[Desire HD Android Development] anbaalie:
thanks for all helped me

finally it is working although it takes about 155 seconds to detect my location

but it is working.

many thanks to you [MENTION=4891658]rjand[/MENTION] [MENTION=5092546]xda-dhd[/MENTION] [MENTION=512133]Rooks[/MENTION]
[Desire HD Android Development] rjand:
What radio did you get it working with in the end?
[Desire HD Android Development] anbaalie:
26.14.04.28M
[Desire HD Android Development] Tao309:
What is the difference between:

ace and aceopt in downloads

?
[Desire HD Android Development] Mustaavalkosta:
Just a few pages back:

http://xdaforums.com/showpost.php?p=62695682&postcount=519

http://xdaforums.com/showpost.php?p=62758453&postcount=531
[Desire HD Android Development] Tao309:
Thank You!
[Desire HD Android Development] Rikodu:
Please help!

I wanted to use the Aceopt Rom so I installed TWRPopt but flashed all the partitions. Then I followed the instructions given by Mustavalkosta and put the files into the ext-sdcard. However, I was unable to install the rom. When I open file manager in TWRP I am able to go through the extcard but I am unable to change its extension, to ormat it or to install from it. Please help!!!
[Desire HD Android Development] pat99:
That's where sideload comes.
[Desire HD Android Development] yecarrillo:
Can I find Inspiremod for aceopt? Thank you.
[Desire HD Android Development] anbaalie:
hello all

is there any way to lock the notification when device is locked

i want to prevent slide the notification drawer down when the device is on lock screen

is there any way or programs to do that??

thanks to all.
[Desire HD Android Development] Mustaavalkosta:
Hmm, I'll try to fix it this week but no promises.
[Desire HD Android Development] Shores:
Hi, I'm running the latest nightly, wiped my phone but I'm locked in the "Trebuchet has crashed" loop... Already tried clearing Trebuchet data and rebooting, tried deleting dalvik+cache, tried requesting remote install of nova launcher, no avail... still nothing working... I can get in Android's settings, but Trebuchet still doesn't start.

Somebody has a suggestion?
[Desire HD Android Development] Mustaavalkosta:
Revert back to earlier nightly. Upstream broke it with a bunch of updates.

Edit: Although it seems to be working when I already had Action Launcher installed. No crashes whatsoever. You can try to install another launcher with adb if you have debugging enabled or can enable it.

http://apps.evozi.com/apk-downloader/

adb install yourlauncher.apk
[Desire HD Android Development] Shores:
Ok, reverted to the stable and all is working well! Thanks!
[Desire HD Android Development] MikhailM1:
Hi, Mustaavalkosta,

For several weeks now I have not been able to download the updates over the air. My DHD finds all the new nightlies, but when I press the download, it starts downloading and then stops downloading and goes back to normal operation. Any ideas?
[Desire HD Android Development] Mustaavalkosta:
Works fine here. If you can PM me your public IP that your phone uses, I can check server's firewall and/or logs. There are various abuse prevention systems in use and false positives are a possibility as always with that kind of systems.
[Desire HD Android Development] joriq:
when I connect my DHD to a PC, it just starts charging, no options to connect it as MTP or mass storage or anything. Wham am I doing wrong?
[Desire HD Android Development] xdagee:
It happened once for me after I flashed gapps but for my advice stated above. Two things to do over here, reboot and it should be fine. Or reflash, this time waiting for device to settle and the you flash gapps by jajb.
[Desire HD Android Development] Mustaavalkosta:
Nope, it will only work seamlessly for S-OFF due to the brainfarted unlock mechanism HTC used to provide. Boot partition is off-limits on S-ON device and there's nothing I can do about it.
[Desire HD Android Development] gjc:
+1

Clean install of cm-12.1-20150408-UNOFFICIAL-ace.zip then GApps Minimal edition & Bloatware removal script

(Also tried Install ROM, boot & settle, reboot recovery, install gapps, reboot - same issue)

Using TWRP 2.8.5.2

Unable to install anything through Play Store, getting error-504

Unable to install APK directly from file manager, getting error App Not Installed.
[Desire HD Android Development] rjand:
I think Gapps minimal is too big (even for CM12), try Gapps pico or nano.
[Desire HD Android Development] xda-dhd:
[GApps][5.x] PA-GOOGLE APPS Plus (All ROM's)

[MENTION=3382363]Mustaavalkosta[/MENTION]

Seems to recommendations here this project - [GApps][5.x] PA-GOOGLE APPS Plus (All ROM's)
[Desire HD Android Development] Mustaavalkosta:
I'm quite happy with Deltadroid's gapps and it seems to be more suitable for us because we can't have those massive packages so people can just choose what they want in addition to what is needed (as long as it fits). Also with only single base package I don't have to test and specify what bundles will fit ace so it's easier for me too.
[Desire HD Android Development] xda-dhd:
112.9MB Deltadroid' s and PICO - 43MB/92MB I guess it' s very :good:
[Desire HD Android Development] Mustaavalkosta:
I was mainly talking about the bigger bundles, not direct size comparison which can be a bit pointless from zip sizes due to a few reasons (eg. compression level used, what specific files are included and which ones of those really end up getting extracted, etc.). Everyone is free to use what gapps they like of course. For me Deltadroid's seems to be easiest one to recommend. :)