Quantcast
Channel: xda-developers - HD2 Android NAND Development
Viewing all articles
Browse latest Browse all 164

[DEV][PLEASE_CONTINUE][Sense 4.1]Common Sense

$
0
0
Well, here we go...

This is not the way I wanted to post this thread, but fate was stronger than me :)

Guys, I spent last several months working on a stable Sense 4.1 base for our HD2. I succeeded in a lot of things. I got BT working. I got mic working in applications. I got this damn thing running smoother than my wife's Galaxy S3 (I'm not kidding)...

So, yesterday my HD2 died on me. For the second time. I can't afford to fix it anymore, I don't have neither time nor money for that. Mainly time... So, unfortunately, I have to stop the development right here.

Someone, please take it from here. It would be a real pity for me if this ROM died together with my HD2.

Here's the link. Enjoy.

UPD: big thanks to philipped346 for fixing the installer script! The ROM should be fully functional now. Just install ICS camera or LG camera from market and you're all set.
REMEMBER: keep your system partition small! philliped364 reports that 55MB works just fine


https://mega.co.nz/#!WhpRzJQa!DOdybh...6N52mPTfNkXk1k



UPD2: big thanks to RobbieP, ya5, philliped346 and others for helping me out and creating the following instructions. What you will read below is an option, the ROM will work just fine if you don't do this. However, following these instructions will create an ext2 loop over data partition, thus greatly speeding up DB access and overall responsibility of the device. So...

1. Install the ROM normally. Let it boot for the first time. Wait for ~5 minutes after the initial lock screen appears. Do not unlock or run the setup wizard.

2. Connect the phone to USB and run ADB shell

3. In ADB, say
Code:

dd if=/dev/zero of=/data0/data.img bs=1024 count=320000

losetup /dev/block/loop0 /data0/data.img

mke2fs -T ext2 /dev/block/loop0

Note that the first command may take several minutes to complete. Just be patient.

The rest will be done by init.rc. If data.img was created and formatted correctly, you'll get a working EXT2 loop over YAFFS.

4. Reboot and wait for ~30 minutes for the ROM to settle.

4.5 (Optional): To check that your ext2 loop works, run mount command in ADB and make sure that /data/data is mounted on a loop device.

5. Go through the setup wizard, allow it to settle for another minute or two.

6. Run Quadrant and better believe your eyes :)


Some technical details about the ROM:
Config: Data on Ext, DB on NAND, looped over EXT2. Yeah, it's returded fast.
System: mostly taken from other Sense 4.1 devices, proprietary files taken from several half-working Sense 4.x ROMs flying around here. Sound system taken from EvoHD2 ROM (yeah, CM9). Credits to Mr Evil for these files.
Kernel: Dorimanx 7.2 HWA (credits to Dori please)
Framework: stock Desire X ROM as a base, heavily modified to work with CM9 sound system, heavily optimized for smoothness.

NOTE for DEVs:
 
I was stunned to discover that DISABLING HW acceleration makes scrolling silky-smooth in 99% of the applications. Exceptions are: Rosie, Browser and... uh... that's it, I think. So, I REVERSED the way framework enables HW acceleration. Here's how: if the application doesn't request HW acceleration, it doesn't get it by default. If it requests it (HWAcceleration=true in the manifest), it DOESN'T get it either. If hwAcceleration=false in manifest, it DOES get it. This way, I only had to modify Rosie and the Browser and set hwAcceleration=false for them to actually GET the acceleration. The other apps just denied the acceleration natively. Please be aware of this change :)


Sense: stock Desire X ROM. I've got permission to use MyOne ROM (see Desire X forum), it has full 3D effects enabled and runs smooth as silk on HD2 (it's pretty damn smooth even with live wallpapers!)

What should work:
Everything. I know that WiFi router doesn't work, but that's it, more or less. Video shooting works at 15FPS. Sound recording works. Voice input works. BT works.

Known problems:
It does crash from time to time. Needs more work on system files. I was planning to recompile gralloc from CM9 to use it here, but didn't have the privilege to finish that.
Adding widgets to the home screen is LAGGY. It works, just be patient. Sorry, it's a known bug with this Rosie...


............. Well, that's it. I'll be watching this thread. Don't ask me to develop anything though, I can't do anything without a working HD2. Sorry guys and good luck to anyone who will take it from here.

Bye



P.S.

Guys, I'm doing something I never thought I would do
but I really want to continue this development...

I'm shamelessly adding a "Donate to me" button, so anyone who wants to help can send me a couple of bucks. my target is to raise enough money to buy either a used HD2 in a fair condition, or a new touch screen assembly.
I hereby promise not to buy myself a new house with this money or spend it on gambling

Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>