Jump to content

[DEV][ROM][8.1.] CyanogenMod 10 (Android 4.1.2)


Guest KonstaT

Recommended Posts

Guest KonstaT

This is my port of CyanogenMod 10 for ZTE Blade. It is unofficial and unsupported by the CyanogenMod team. This ROM is mainly for developers/testers/advanced users - people who are aware that this ROM is incomplete. I'm really not interested in hearing whining about non-working things (and questions when they will be fixed), instead your ideas/input on the remaining issues is welcome. Sources and instructions are available in the second post for you to build CM10 yourself.

Screenshot_2012-07-23-16-45-49.png Screenshot_2012-07-23-16-47-35.png Screenshot_2012-07-23-16-46-30.png Screenshot_2012-07-23-16-47-50.png

cm-10-20130108-KonstaKANG-blade.zip
deprecated, use cm10.1
md5:9a696d776d0dae0ea0d9800b60e55bf3

gapps-jb-20121017-KonstaKANG.zip
deprecated, use cm10.1
md5:9979601a6b32b0d4e147f5be79b4f01e

You'll need at least 160mb system partition for the ROM and gapps to fit. Both gen1->gen2 and G2 TPTs are available at Amphoras' site.

Working:

  • RIL (mobile network & data)
  • Wifi
  • Bluetooth (& bt-tethering)
  • GPS
  • Audio (playback/input/routing/headphones/etc)
  • Hardware acceleration and OpenGL rendering
  • Hardware video decoding & encoding
  • Camera (photos, camcorder & panorama)
  • SD card
  • USB-storage & adb
  • USB-tethering
  • Browser
  • Touchscreen/multi-touch
  • Sensors
  • LEDs

Partially working:

  • Project Butter - fake vsync events

Not working:

Sources:

Thanks:

  • CyanogenMod team & everyone who's been working on CM10
Edited by KonstaT
Link to comment
Share on other sites

Guest KonstaT

1. Follow instructions on initializing a build environment up to a point of downloading the source code.

2. Download CM10 source code.

repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync
3. Download ZTE Blade device config, props and kernel source from my github. Create a file path-to/CM10_WORK_DIR/.repo/local_manifests/local_manifest.xml and copy in following content.
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="KonstaT/android_device_zte_blade" path="device/zte/blade" revision="jellybean" />
<project name="KonstaT/proprietary_vendor_zte" path="vendor/zte" revision="jellybean" />
<project name="KonstaT/zte-kernel-msm7x27" path="kernel/zte/zte-kernel-msm7x27" revision="jellybean" />
</manifest>

'repo sync' again.

4. Update ROM Manager & Terminal Emulator. (You have to do this again only when the apps have been updated.)

cd path-to/CM10_WORK_DIR/vendor/cm/
./get-prebuilts
5. Compile the ROM.
cd path-to/CM10_WORK_DIR/
. build/envsetup.sh && lunch cm_blade-userdebug
make bacon -j8

Use 'repo sync' to pull merged changes from upstream. Use 'make clobber' to clean the build environment. Repeat step 5 to do a new build. Sej's intructions on building CM9 might also help. Patches to CM10 source tree needed to compile (or add functionality). Copy the patches and cd into the directories respectively. To apply patch(es).

git am -3 patchname.patch

frameworks/av/

https://github.com/K...r-MSM7x27.patch

frameworks/native/

https://github.com/K...on-pixel-.patch

hardware/qcom/media/

https://github.com/K...r-msm7x27.patch

Edited by KonstaT
Link to comment
Share on other sites

Guest KonstaT

Merged commits not mentioned in the changelog.

8.1. changelog:

  • fixed charger mode detection
  • fake vsync events
  • set correct permissions for boostpulse (now it actually works :P)
  • enabled divx and wma hw decoding (again)
  • switched back to jellybean camera (again) & fixed preview glitches
  • Allow purging of asset bitmaps (1)

27.12. changelog:

  • backported USB gadget driver from msm-3.0 kernel (thanks to WaylandACE)
  • fixed native USB tethering
  • fixed issues with apps failing because of borked usb0 interface (e.g. network speedtest apps)
  • switched back to legacy camera
  • reverted some of the OMX hacks (and switched back to using OMX libs from ZTE device)

24.11. changelog:

  • video playback improvents by Ganster (HTML5 streaming video, divx harware decoding, etc)

18.11. changelog:

  • fixed hardware video decoding (e.g. YouTube HQ, thanks to Ganster and everyone involved)

16.11. changelog:

  • got rid off nasty CTS breaking hacks
  • fixed camcorder to ICS standards (uses hardware encoder, videos can be viewed via gallery)
  • switched to jellybean camera app (preview and panorama are still a bit flaky, might have to change back to legacycamera later)

14.11. changelog:

  • "Clear all" button on recent apps (1)

6.11. changelog:

  • CM File Manager (merged)
  • few kernel updates (ashmem, pmem)
  • fixed possible bluetooth issues

28.10. changelog:

  • fixed possible connection drop
  • zRAM tweaks
  • Add option to hide AlarmClock Icon in StatusBar (1)
  • Trebuchet : Add a pref to set hotseat icon's number (1)
  • restore soundrecorder interface (1)

17.10. changelog:

  • fixed small issue with gallery
  • Expanded Desktop (1,2)
  • Add onclick action to notification clock and date (1)
  • removed Google Ears widget from gapps package

16.10. changelog:

  • added zram support (Settings -> Performance -> Memory management-> zRam)
  • added missing bluetooth filter
  • legacycamera now bundled into gallery2
  • new CM circle battery mod (merged)

15.10. changelog:

  • Updated trimmed gapps package based on 4.1.2 version

10.10. changelog:

  • Android 4.1.2
  • fixed notification blur
  • Allow airplane and silent power toggle (1,2)

27.9. changelog:

  • camcorder records and saves files (small resolution and framerate)
  • removed few LatinIME dictionaries (da, hr, iw, ka, nb)
  • updated audio routing strategies
  • Clock - right/center/off (1,2)
  • NavigationBar: Custom height (1,2)

15.9. changelog:

  • fixed CRT screen off animation
  • calculator: start of new features (1)
  • stopwatch&timer: fix pending bugs (1)

9.9. changelog:

  • Lockscreen: Add clock alignment (1,2)
  • Quick reply option added to SMS (merged)

1.9. changelog:

  • fixed panorama mode in legacy camera
  • no more prebuilt/cm9 libs
  • added option to exit to home screen after a call instead of call log (Phone -> Settings -> Exit to home screen, ported from AOKP)
  • plenty of merged cm10 changes (e.g. national roaming option)

29.8. changelog:

  • fixed streaming video, should work fine with most apps and with local videos in gallery (youtube still causes a soft reboot after few seconds)
  • added a temporary hack to add support for ad-hoc networks until proper solution is merged into CM10 (thanks to kelvie&szym)
  • i/o scheduler settings got merged so I enabled more i/o schedulers in kernel
  • smaller font footprint
  • option for circle battery (Settings -> System -> Status bar -> Battery status style -> Circle)
  • Forward porting CM7/CM9 Advanced Phone Settings (1)
  • Stopwatch & Countdown (1)

21.8. changelog:

  • camera works with apps that don't require gpu acceleration. Legacy camera app included.
  • added option to control cursor in text fields using volume keys. Works also with third party keyboards. (Settings -> Language & input -> Volume key cursor control)
  • plenty of stuff from cm10 upstream
  • cm10 bootanimation (1)
  • Option to enable gfx effects (1,2)
  • NavigationBar : Customization (1,2)
  • gapps: fixed scrolling in Google Now

13.8. changelog:

  • fixed derp in gapps package backup script :P

11.8. changelog:

10.8. changelog:

  • updated trimmed gapps package
  • latest Play Shop (3.7.15)
  • removed Gmail (JB version can now be downloaded from the Play Shop)

9.8. changelog:

  • smooth ui - no streaming video
  • bootanimation: allow using RGB565 instead of ARGB8888 (1)
  • Back icon doesn't scale when changing navbar height (1)

8.8 changelog:

  • slighly slower UI but streaming video playback works in this build
  • added hot reboot option to power menu (thanks to burstlam)
  • old ringtones & silenced low battery sound
  • included all LatinIME dictionaries
  • trebuchet launcher

27.7. changelog:

  • enabled triple frame buffering in kernel
  • improved UI speed
  • broke all video playback
  • theme manager
  • Hardware key custom rebinding (1,2)
  • Improve scrolling cache (1)
  • several improvements to browser (1,2,3)

26.7. changelog:

  • updated trimmed gapps package to include jb gmail app with expandable notifications

25.7. changelog:

  • ability to enable/disable use of profiles (1,2)
  • fixed purchasing apps from the play shop
  • partition info, ext partition info should now work with all(?) the different a2sd solutions (Settings -> Partition info, thanks to Squadzone)
  • MIUI-style battery bar (Settings -> System -> Status bar -> Battery status style -> Status bar, thanks to Spitemare)

23.7. changelog:

  • upstream CM10 changes:
  • notification power widget
  • more of the CM settings now actually work
  • charging LED works again
  • center clock (1,2)
  • much more...
  • option to display navigation bar (Settings -> System -> Show navigation bar)
  • link to this forum page (Settings -> About device -> KonstaKANG)
  • option to disable boot animation (Settings -> Performance -> Disable boot animation)

22.7. changelog:

  • video playback to same level as in ICS

19.7. changelog:

  • fixed GPS
  • fixed native moving apps to sdcard
  • fixed headphones and some other audio issues
  • superuser should be fully working

18.7. changelog

  • new CM10 features merged (some will still force close)
  • superuser included and working root access (pop-up keeps appearing even you've ticked remember, you can still flash the zip from superuser homepage)
  • audio playback fixed
  • RIL fix with flashable zip

16.7. changelog:

  • initial release
Edited by KonstaT
Link to comment
Share on other sites

Guest Freakn

What about hearing about all the good work you guys are doing?Is dat ok to post? :P But you are right indeed people should stop whining about things not workig. Keep up the good work!

Edited by Freakn
Link to comment
Share on other sites

Guest å¹»

Do I manually "chmod 777 /data/radio/* && chown radio.radio /data/radio/*" in adb shell or terminal emulator after the ROM is booted up every boot?

Link to comment
Share on other sites

Guest android@sam

Do I manually "chmod 777 /data/radio/* &amp;&amp; chown radio.radio /data/radio/*" in adb shell or terminal emulator after the ROM is booted up every boot?

Yes you have to do it on every boot
Link to comment
Share on other sites

Guest ElrOnDPT

Nice work!

What is your opinion right now on 4.1 performance on the current build? Where project butter is working, is it noticiable?

Cheers and huge props for the work! :)

Link to comment
Share on other sites

Guest shmizan

Are the Gapps included or can we download the ones from ICS?

search for jellybean gapps, they are different, they include google now and many other things

Link to comment
Share on other sites

Guest sej7278

nice one! seems i was patching far too much stuff in the mainline code, basically its just comment out srec and add the undef line to bionic, the dalvik patch got merged, i guess they fixed mdpwrapper. i hadn't noticed the wpa issues. plus your device and kernel tweaks.

cyanogenmod have added superuser.apk to the build now (and fixed the typo in the repo) as a prebuilt for the moment.

for the radio permissions you're probably best to add an init script such as lalit does for the skate

Link to comment
Share on other sites

Guest ufizo

So, right now we are using openGL hacks to get HW acceleration working... It this correct?

Like we had in ICS, before the adreno binaries for ICS were released?

Link to comment
Share on other sites

Guest KonstaT

Can I make a script in init.d to make it dose that? My English is poor.

You can try. Init.d scripts are run at early state and I guess there isn't anything in /data/radio at that point. I tried making a service that is run on property sys.boot.completed=1 (couple of seconds before lockscreen is shown) but didn't have much luck with that either.

This would be a temporary hack anyway. I'd rather have it properly fixed.

What is your opinion right now on 4.1 performance on the current build? Where project butter is working, is it noticiable?

So, right now we are using openGL hacks to get HW acceleration working... It this correct?

Like we had in ICS, before the adreno binaries for ICS were released?

Well, it isn't exectly smooth as butter yet. ;) It works quite well in many places but e.g. notification area and app drawer are still quite laggy. Yeah, there are some hacks that shouldn't be there (e.g. prebuilt CM9 binary). I'm sure it'll get better when more support is merged into CM10. To be honest I don't know how to verify how well the "project butter"/vsync is working. Hw acceleration at it's current state is Lalit's work, so you might want to consult him in this matter. :P

nice one! seems i was patching far too much stuff in the mainline code, basically its just comment out srec and add the undef line to bionic, the dalvik patch got merged, i guess they fixed mdpwrapper. i hadn't noticed the wpa issues. plus your device and kernel tweaks.

for the radio permissions you're probably best to add an init script such as lalit does for the skate

Yeah, most of the other needed patches got merged last night. Actually the wpa_supplicant patches are not needed to build, they just fix wifi on our device.

Afaik RIL doesn't work any better on Skate/Crescent even with those lines added. It's something else preventing the radio getting the permissions (something similar to this?)

Edit. ok, there's something new going on. Edit2. Yeah, that won't work. Edit3. lol, I take that back. :)

looks like adding su broke the build again, seems they left LOGE/LOGD/LOGW in.

Sync your repo. Fix is merged (compiled just fine for me).

Link to comment
Share on other sites

Guest sej7278

Sync your repo. Fix is merged (compiled just fine for me).

i think they're doing a "copy this from cm9" commit followed shortly afterwards by a "fix it for cm10" commit method with most patches.

my build broke half way so this isn't accurate, but it seems to be taking about 90mins to build as apposed to 70-odd for cm9, gonna delete out/ and try again.

edit: 80mins from clean, so only 5mins slower than cm9

Edited by sej7278
Link to comment
Share on other sites

Guest KonstaT

for the radio permissions you're probably best to add an init script such as lalit does for the skate

Actually it does sort of work but there is a huge delay. It takes about half minute before SIM query is shown after the device is already booted. Still in search of better solution...

Does everybody's phone app constantly crash until PIN is entered? Or is it just mine because my operator is roaming on another network. It's this line where it fails. Index out of bound error on getting MCC value (operator country code).

Link to comment
Share on other sites

Guest Hirsch2k

OMG! Cannot believe that CM10 is coming to our blades. Thanks tilal, KonstaT, sej and all the other developers for their great work. This is amazing!

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.