Jump to content


Photo

[DEV] AOSP Dev for Zte Blade

* * * * * 32 votes

  • Please log in to reply
938 replies to this topic

#1
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@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:
  • audiohardware/libaudio - removed device's own libaudio and libcamera from build, adjust the device's Android.mk
  • 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
    
  • Add 'Local_module_tags := optional' to the files in hardware/msm7k/lib directories, if its missing, shove them in!
  • 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>
  • fix up the slang compile error that halts on warnings that is treated as errors, remove the -Werror from Android.mk within slang directory.
  • 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>
  • Libril, simply overwrite the libril from hardware/ril into the device's libril directory...
  • copybit.h missing... look for ICS_Fixes on google ;)
  • Fix up the gralloc errors.
  • webrtc - spl_in.h (part of ICS_Fixes ^^)
  • oprofile's libpp - compile error, add
    #include <stddef.h>
    (IIRC)
  • libgralloc_qsd8k - window.h compile error memset, line 75, 303, need to add
    #include <string.h>
    to the said header file.
  • 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, 08 December 2011 - 04:06 PM.

  • 26
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#2
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b
Reserved.

Great, where do I download from:
Anyway, here's the Image for you to try out and report back on this thread for feedback :)

Download
MD5sum:0925fc68203005901c4435e67e646a8e ics4blade_system.img

  • 12
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#3
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b
Reserved

1st December 2011.

What's working:
  • Touchscreen (single - Props to Tilal6991 for his solution)
  • WiFi
  • BlueTooth (Props to Ippe H)
  • Radio (3G data unconfirmed, Props to Ippe H, Hecatae)
  • AutoRotation/Sensors (Props to Ippe H)
  • Audio (WIP - Props to Kallte Kaffe) PLEASE DO NOT ASK FOR DOLBY! :P
  • Home key working (Props to FelixL)
  • GPS (Props to SkyWave)
  • SDCard (Props to KonstaT)

What's not working:
  • Hardware Acceleration (Not yet until confirmed)
  • Armv6-VFP Dalvikvm (Not yet until confirmed)
  • Camera
  • 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:
  • 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.
  • In-call

Edited by t0mm13b, 26 December 2011 - 08:07 PM.

  • 14
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#4
hugobosslives

hugobosslives

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,108 posts
  • Gender:Male
  • Location:hampshire and birmingham (depending on whether at uni or not)
  • Devices:Nexus 4, Zte Skate and Blade
31 hours! Posted Image

good work tho.

  • 0

#5
Matty-p

Matty-p

    Addict

  • Moderator Team
  • PipPipPipPipPip
  • 682 posts
  • Gender:Male
  • Devices:orange sanfransico, g300

Reserved.

Download link


Tom you seem to have been stuck at 19.5mb for ages :) - what sort of connection are you on and have you tried just using someting like multiupload or mediafire?

  • 0

#6
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@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...

  • 1
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#7
Matty-p

Matty-p

    Addict

  • Moderator Team
  • PipPipPipPipPip
  • 682 posts
  • Gender:Male
  • Devices:orange sanfransico, g300

: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!

  • 0

#8
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@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... :(

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#9
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon
+1 for multiupload.

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#10
Matty-p

Matty-p

    Addict

  • Moderator Team
  • PipPipPipPipPip
  • 682 posts
  • Gender:Male
  • Devices:orange sanfransico, g300

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

  • 0

#11
The Soup Thief

The Soup Thief

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,045 posts
  • Gender:Male
  • Location:Dublin
  • Devices:Nexus 5 (N4 etc retired)
  • Twitter:@TheSoupThief
V easy and quick to set up a free megaupload account http://www.mediafire.com/
Else I can stick it on mine

  • 0

#12
Matty-p

Matty-p

    Addict

  • Moderator Team
  • PipPipPipPipPip
  • 682 posts
  • Gender:Male
  • Devices:orange sanfransico, g300

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)

  • 0

#13
The Soup Thief

The Soup Thief

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,045 posts
  • Gender:Male
  • Location:Dublin
  • Devices:Nexus 5 (N4 etc retired)
  • Twitter:@TheSoupThief
Right o

  • 0

#14
hedgepigdaniel

hedgepigdaniel

    Addict

  • Members
  • PipPipPipPipPip
  • 850 posts
  • Gender:Male
  • Location:Sydney, Australia
  • Devices:Galaxy Nexus, ZTE Blade (OLED)
mediafire requires no account.

Looking forward to trying this out, well done for getting it up and (sort of) running so quickly!

  • 1

#15
Matty-p

Matty-p

    Addict

  • Moderator Team
  • PipPipPipPipPip
  • 682 posts
  • Gender:Male
  • Devices:orange sanfransico, g300
+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

  • 0

#16
iKrautDroid

iKrautDroid

    Addict

  • Members
  • PipPipPipPipPip
  • 686 posts
  • Gender:Male
  • Devices:ZTE Skate, HD2, Galaxy S
Wow
Great work here!

  • 0

#17
fallenangel32

fallenangel32

    Addict

  • Members
  • PipPipPipPipPip
  • 520 posts
  • Gender:Male
  • Location:Koritnhos Greece
  • Interests:computers,movies
  • Devices:zte blade (blade mix 365)
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 outPosted Image

Edited by fallenangel32, 24 November 2011 - 07:28 AM.

  • 0
If You Like My Work You Can....
Donate for a new phone
Posted Image

#18
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b
Bump, check post #2 :)

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#19
fallenangel32

fallenangel32

    Addict

  • Members
  • PipPipPipPipPip
  • 520 posts
  • Gender:Male
  • Location:Koritnhos Greece
  • Interests:computers,movies
  • Devices:zte blade (blade mix 365)

Bump, check post #2 :)

yes i m downloading nowPosted Image

  • 0
If You Like My Work You Can....
Donate for a new phone
Posted Image

#20
jonas.lindberg

jonas.lindberg

    Newbie

  • Members
  • Pip
  • 24 posts
  • Devices:ZTE Blade
Will there be a flashable zip available for download, or would someone care to give some directions how to use that image?

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users