Jump to content

[DEV] AOSP Dev for Zte Blade


Guest t0mm13b

Recommended Posts

Guest t0mm13b

Hi,

Disclaimer:

This is extremely experimental and am not responsible for any undue stress caused by flashing this ROM which is freshly compiled and built. So, if smoke comes out of it, screen acts funny, you're on your own. That's my disclaimer :P

But please please do provide feedback on this what-so-ever, no matter how small and insignificant this is, this would help keep track on this thread, what needs to be done to get this ICS from AOSP working for the Zte Blade.

Word of caution:

I discovered that my TPT gen2 layout was too small so you may have to re-TPT it to get a bigger system partition. So double check first before proceeding. Mine was 160Mb in which it was deemed too small to flash despite stripping out the unnecessary stuff which shaved off 8Mb from the fresh original system.img, which was originally 155Mb. Head over to XDA's Zte Blade forum to get the TPT, Gen1 to Gen2 TPT v8 Stock which has 210Mb system partition layout as part of TPT.

Brief Summary:

AOSP ICS source compiled, with using the CM7's Zte Blade's device tree added into it along with the proprietary supporting libs extracted from a running CM7 nightly 255. No change to the boot image as that's the same as on the CM7 nightly.

Now, I did this for myself, so call me crazy, but don't care what others think. :P

My PC is a super duper workhorse... NOT!!!! <_<

I built this on a Atom N270 1.6Ghz with 2Gb RAM, running Arch Linux 32bit. It took a long while, about 31 hours to be exact. I timed this for the benefit of others to judge if they can get the build to work on a superior specc'd machine. But hey, it does compile in 32bit environment... :D

What's not working:

Audio - afraid so, there was incompatibilities found with the device (when I say device, I am referring to the CM7's device/zte/blade tree), libaudio's namespaces used in the sources and clashed with what was in hardware/libhardware_legacy's libaudio.

Camera - yup, again, further incompatibilies and missing headers with the device and those of AOSP's frameworks/base/include/camera. So that had to go.

If you're a dev itching to do this yourself read on ...

Things to do if you want to build it yourself:

  1. audiohardware/libaudio - removed device's own libaudio and libcamera from build, adjust the device's Android.mk
  2. webcore's javascriptcore issue - logged on googlegroups here - within the device's BoardConfig.mk this will disable the JIT and Javascript's JIT for the moment.
    WITH_JIT := false
    
    ENABLE_JSC_JIT := false
    
    
  3. Add 'Local_module_tags := optional' to the files in hardware/msm7k/lib directories, if its missing, shove them in!
  4. fix up the missing resource via add-resource tag in launcher2's [config|strings].xml, as in using the <add-resource type="string" or "bool" or "int" name="...">...</add-resource>
  5. fix up the slang compile error that halts on warnings that is treated as errors, remove the -Werror from Android.mk within slang directory.
  6. fix up the missing resource via add-resource tag in Phone's config.xml <add-resource type="bool" name="allow_incoming_call_touch_ui">true</add-resource> <add-resource type="bool" name="allow_in_call_touch_ui">true</add-resource> <add-resource type="bool" name="allow_back_key_to_reject_incoming_call">true</add-resource>
  7. Libril, simply overwrite the libril from hardware/ril into the device's libril directory...
  8. copybit.h missing... look for ICS_Fixes on google ;)
  9. Fix up the gralloc errors.
  10. webrtc - spl_in.h (part of ICS_Fixes ^^)
  11. oprofile's libpp - compile error, add
    #include <stddef.h>
    (IIRC)
  12. libgralloc_qsd8k - window.h compile error memset, line 75, 303, need to add
    #include <string.h>

    to the said header file.

  13. Camera/Overlay, there's missing constants in CameraParameters.h found in frameworks/base/include/camera, copy those necessary constants as reported missing by the compiler. As for the Overlay.h absent from frameworks/base/include/ui, copy that from CM7's repo. (Dont ask!)

My C++ skills are a bit rusty so... <_<

I think all of the above is what I did to get the build going. I removed the _test binaries and the Android Japanese/Chinese keyboard to trim it down from 155Mb to 147Mb which was too big for my existing TPT gen2 with 160Mb partition... sigh

A caution:

Please, if you're a beginner, do not flash this, as this is not for general usage and do not post saying you're getting a black screen as clearly there's a lot of work to get the screen working..

Edited by t0mm13b
Link to comment
Share on other sites

Guest t0mm13b

Reserved

1st December 2011.

What's working:

  1. Touchscreen (single - Props to Tilal6991 for his solution)
  2. WiFi
  3. BlueTooth (Props to Ippe H)
  4. Radio (3G data unconfirmed, Props to Ippe H, Hecatae)
  5. AutoRotation/Sensors (Props to Ippe H)
  6. Audio (WIP - Props to Kallte Kaffe) PLEASE DO NOT ASK FOR DOLBY! :P
  7. Home key working (Props to FelixL)
  8. GPS (Props to SkyWave)
  9. SDCard (Props to KonstaT)

What's not working:

  1. Hardware Acceleration (Not yet until confirmed)
  2. Armv6-VFP Dalvikvm (Not yet until confirmed)
  3. Camera
  4. Anything else...

There may be other issues that are yet to be discovered... :P

I intend to keep this post updated.

Feel free to notify via this thread.

Attention for the impatient - PLEASE DO NOT POST "When will it be ready" or "Does so-and-so work?" or rubbish like that as they will be ignored! :)

Edit:

26th December 2011.

What's working:

  1. Armv6-VFP Dalvikvm - it works but something deep within the bowels of it is broken which produces poor Antutu benchmark ratings on CPU Integer/Floating Point performance.
  2. In-call
Edited by t0mm13b
Link to comment
Share on other sites

Guest t0mm13b

:sigh:

This is embarrassing as I cannot find a decent upload site....and have no way of getting that system.img out to you... apologies guys for the premature posting as woe betide me... xD

Will try dropbox it somewhat...

Link to comment
Share on other sites

Guest Matty-p

:sigh:

This is embarrassing as I cannot find a decent upload site....and have no way of getting that system.img out to you... apologies guys for the premature posting as woe betide me... xD

Will try dropbox it somewhat...

as above mediafire or multiupload has always worked fine for me for these purposes you obviuosly need to watch out for dropbox allowances esp with the size of the forum!

Link to comment
Share on other sites

Guest t0mm13b

Well I have 3.8Gb capacity for dropbox but yeah, if I can get it on there I'd appreciate just ONE person to download it and then mirror it as I do not have a acccount with Mediafire/Mediaupload etc... :(

Link to comment
Share on other sites

Guest Matty-p

Well I have 3.8Gb capacity for dropbox but yeah, if I can get it on there I'd appreciate just ONE person to download it and then mirror it as I do not have a acccount with Mediafire/Mediaupload etc... :(

yea can do that

Link to comment
Share on other sites

Guest Matty-p

V easy and quick to set up a free megaupload account http://www.mediafire.com/

Else I can stick it on mine

i think he is already uploading to drop box so starting a new upload would waste all the time it has spent uploading already as i have said i will mirror it immediately (got a gig-e symmetric connection so will take me seconds)

Link to comment
Share on other sites

Guest Matty-p

+1 huge well done and props on this :) can't weight to use it !! tom be sure to let me know as soon as its uploaded to dropbox so i can replicate it so where not using up your 10g/day bandwidth alawance

Link to comment
Share on other sites

Guest fallenangel32

WELL DONE

I ll upload it for u in megaupload and i ll post the link here

When i get home

19,5 mb image?

your download stucks i think

i have send you a pm,for the megaupload accound,check it outwink.gif

Edited by fallenangel32
Link to comment
Share on other sites

Guest t0mm13b

How to install?

You may have to re-read the first post to see that you may have to re-TPT the Blade to get a bigger partition....

As for installing:


sudo fastboot flash system ics4blade_system.img

sudo fastboot flash boot ics4blade_boot.img

If this is outside of your comfort zone, it would be more better for you not to actually do anything until this gets stable! :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.