[Kitkat][Nightlies] CM11 Android 4.4 for the Defy(+)

defim

Senior Member
Feb 18, 2012
2,744
1,487
0
which gapps do i use?
I think 4.3 gapps could work, but no one replied to

Which things does not work in yesterday's nightly? So bluetooth is working again ("02.12.13 CM: Fix camera, fix usb/bt")? And with a modified fstab/ramdisk SD works also? So everything works? :confused:
Could I use the same gapps (if ther's enough space) I used all the time with android 4.3?
 
  • Like
Reactions: toroloco73

antukubo

Senior Member
Feb 9, 2011
257
73
58
Johor Bahru
Start from a fresh installation with Banks Core (26-11 works well).
Do not log into your google account. Skip the setup, then go into settings, switch to ART, reboot.
You will get some FCs. Then, wipe cache and dalvik - it will take sometime on boot again, but the FCs will be gone.
This time you can log into your google account and start working properly
That's what i did and i use Bank's Core Gapps 11-26 from the beginning. Tried several times. Weird because it works for some users and at the same time not working for others. Is green-red lense issue related? I'm on green btw
 
Last edited:

cristianosite

Senior Member
Jun 4, 2011
143
98
0
Florianópolis
That's what i did and i use Bank's Core Gapps 11-26 from the beginning. Tried several times. Weird because it works for some users and at the same time not working for others. Is green-red lense issue related? I'm on green btw
I don't think so. I'm on red lens and facing the same problem as well.

I've tried exactly what Kayant suggested here and also overclockthesun here and no success, always getting FC's.
 

sipe1

Senior Member
Jul 31, 2011
276
71
0
Step 6 is wrong. You should wipe only cache and dalvik.
If you wipe data the dev settings come to original. That's why is coming from ART back to dalvik.

Sent from my MB526 using XDA Premium 4 mobile app
6. ***** Reboot wipe cache and dalvik ..reboot and profit.

Nope, still FC.
When I boot I get only email FC, and when I open store it just FC

I will try this one now

Start from a fresh installation with Banks Core (26-11 works well).
Do not log into your google account. Skip the setup, then go into settings, switch to ART, reboot.
You will get some FCs. Then, wipe cache and dalvik - it will take sometime on boot again, but the FCs will be gone.
This time you can log into your google account and start working properly
 

Codeseven

Senior Member
Dec 20, 2012
280
78
0
Coachella Valley, Ca
It worked, but it switched back to dalvik. This is my steps.

1. Installed latest nightly.
2. Booted up, switched to art.
3. Reboot
4. Go to recovery, flash gapps without flash.
5. Boot with FC
6. Go to recovery, factory reset (wipe cache, data, dalvik)
7. After boot I got setup with no fc, but in developers switched back to ART.

Did I made a mistake somewhere?
Know what? Mine switched back to dalvik as well. I just spent almost an hour trying to get ART to work and I had no luck! Play was FCing constantly, and I couldn't get the initial setup wizard to work. I had to stay with dalvik. Which isn't a bad thing, kitkat runs so much faster than anything I've seen.
 
Last edited:

overclockthesun

Senior Member
Jul 29, 2011
431
270
0
Mumbai (Bombay)
Sorry for silly question but why is this ART craze? What better it gives?

Sent from my MB526 using XDA Premium 4 mobile app
ART gives our Defy wings!!!!! :D

---------- Post added at 07:18 PM ---------- Previous post was at 06:46 PM ----------

Deleted .....

---------- Post added at 07:29 PM ---------- Previous post was at 07:18 PM ----------

For the benefit of some people who are still suffering while switching to ART I will post a little more detailed guide here.

1) Flash the rom.
2) reboot. Skip google setup if it shows up for you
3) you will come straight to the launcher main screen as you have not flashed Gapps....
4) Go to settings-> enable development settings.
5) select ART.......... your phone will reboot and continue with the optimizing process. After that you will be brought once again to the main screen. At this stage you should not get any FC's. If you do..... go back to recovery wipe Data+cache+system (alternatively format to ext4 in bootmenu) and start from step 1.
6) Now that you have switched to ART ....reboot .
7) Go to recovery and flash Banks Core Gapps.
8) DO NOT wipe cache/dalvik.
9) Reboot.
10) Once booted in, wait a while to make sure you don't have any FC's ..... if you do ...
11) Reboot .... go into recovery and Now wipe cache/dalvik (wiping cache/dalvik immediately after flashing Gapps will result in FC's system wide)
12) Reboot. You should have a fully working system now.
13) Go ahead and sign into Google accounts.... everything will work fine.

Optional
14) After signing into google, Use any root explorer and go to /system/lib.
15) Backup libart.so ..reboot
16) Flash the libart.so fix for whatsapp.
17) Reboot .....
18) install Whatsapp from Playstore.
19) Setup Whatsapp ... make sure you are all the way through to your contacts screen.
20) Go back into your favourite root explorer.....
21) copy back your original backed up libart.so file to /system/lib.
22) Set permissions to rw-r-r and Reboot.
23) Profit! :good::D

I get fc only on Messaging app. But that happens without ART too. So I just get rid off it and use Hangouts. Although I have not tried clearing its data and cache as yet.
 
Last edited:

okij

Senior Member
Oct 24, 2012
1,649
3,633
143
Düsseldorf
Fix for App2sd is working! - now as flashable zip

I already have the latest cm build's ramdisk decompiled here (comparing to slimkat for debugging), i'll upload in a few minutes :)

EDIT: Okay attached. remove the ".gz" (xda needs extension to upload). Added ",noemulatedsd" to the fstab file, that's it.
Thanks a lot for providing this ramdisk file! :)

I installed it manually in the 2ndboot dir and IT WORKS! :D:victory: App2sd is now possible under Kitkat.

@Quarx is working on his github today. Maybe he could now apply the necessary addition to the fstab file!? :)

Edit1: After some more tries I now managed to make a flashable zip, which I attached to this post. :cyclops:
All courtesy goes to Juansheng (for making this fix on a samsung device), @struq (for finding this fix and posting it here on our Defy development forum) and @TJKV (for providing the fixed ramdisk file). :highfive:

Edit2: Since 12-10 nightly, this fix isn't needed anymore. :)
 

Attachments

Last edited:

abhi.eternal

Senior Member
Jan 25, 2011
296
43
0
Bangalore
abhijeetdeb.com
I have used the phone for sometime but have noticed very little improvement over 4.3 builds. I am using Dalvik runtime as ART did not show much improvement when I tried it. Also, I have most of the apps restored from 4.3 and don't know if all of them will work with ART. Any suggestions?
 

overclockthesun

Senior Member
Jul 29, 2011
431
270
0
Mumbai (Bombay)
Thanks so much @overclockthesun! Do you by chance have the libart.so flashable zip handy?
Here you go.
http://forum.xda-developers.com/showthread.php?t=2527891

---------- Post added at 09:22 PM ---------- Previous post was at 09:20 PM ----------

Originally Posted by Ukolino
Good news everyone!

Whatsapp is now working under ART!
On The new build 4.4.1 ! Enjoy

Sent from my Nexus 4 using XDA Premium 4 mobile app


Looks like a lot of ART related problems will be solved when we get a taste of 4.4.1 too.
 
  • Like
Reactions: T_Pratik

slimshady76

Senior Member
Aug 11, 2009
297
222
0
Berisso
Thanks to @overclockthesun's comprehensive guide, i ALMOST got ART running. Everything went fine until I tried to open the Play Store, which started giving me FCs... I guess YMMV. I'll give it one more try and then I'll switch back to Dalvik, since I need the phone on my way back from work.
 

ithakaner

Member
Jun 1, 2008
35
25
0
Stuttgart
Titanium Backup -- Protect Backups fails

First of all: Thank you Quarx and all helpers for this amazing ROM and the recent nightlies

Since my Upgrade to KitKat there was need to protect a certain app-backup within TB, so I wasn't aware of this kind of problem.
But today I wanted to protect one and I get the following error flash:
Sorry, the operation failed.
My current backup location is "storage/sdcard0/TitaniumBackup" this is also detected by TB itself.

So far my searches indicates a problem with the permissions of TB for the SD-Card (where my backups are saved) depending on the used ROM:
http://forum.xda-developers.com/showthread.php?t=1993792
http://forum.xda-developers.com/showthread.php?t=2059240
http://forum.xda-developers.com/showthread.php?t=1990423

I tried so far:
A_# to move my backup location to one of these location:
  • mnt/sdcard/TitaniumBackup
  • sdcard/TitaniumBackup
  • storage/0/emulated/TitaniumBackup
  • storage/sdcard0/TitaniumBackup
with no luck...

B_# Add/Edit platform.xml >> WRITE_EXTERNAL_STORAGE >> <group gid="media_rw" />

C_# Also installing Titanium backup as system app brings this functionality back.


Has someone else a similar problem or solution? :fingers-crossed:
 

fairxda

Senior Member
Oct 5, 2012
99
94
0
Thanks a lot for providing this ramdisk file! :)

I installed it manually in the 2ndboot dir and IT WORKS! :D:victory: App2sd is now possible under Kitkat.

I also tried to make a flashable zip for the ramdisk file, but unfortunately without success. Maybe someone else is more skilled with this?

@Quarx is working on his github today. Maybe he could now apply the necessary addition to the fstab file!? :)
Yes, it works!
And:
With this ramdisk I had to activate and deactivate air mode after booting to get net connection.

But this didn't really matter because app2sd works now!

Thanks to TJKV and okij for trying!
 
Last edited:

sipe1

Senior Member
Jul 31, 2011
276
71
0
ART gives our Defy wings!!!!! :D

---------- Post added at 07:18 PM ---------- Previous post was at 06:46 PM ----------

Deleted .....

---------- Post added at 07:29 PM ---------- Previous post was at 07:18 PM ----------

For the benefit of some people who are still suffering while switching to ART I will post a little more detailed guide here.

1) Flash the rom.
2) reboot.
3) you will come straight to the launcher main screen as you have not flashed Gapps....
4) Go to settings-> enable development settings.
5) select ART.......... your phone will reboot and continue with the optimizing process. After that you will be brought once again to the main screen. At this stage you should not get any FC's. If you do..... go back to recovery wipe Data+cache+system and start from step 1.
6) Now that you have switched to ART ....reboot .
7) Go to recovery and flash Banks Core Gapps.
8) DO NOT wipe cache/dalvik.
9) Reboot.
10) Once booted in, wait a while to make sure you don't have any FC's ..... if you do ...
11) Reboot .... go into recovery and Now wipe cache/dalvik (wiping cache/dalvik immediately after flashing Gapps will result in FC's system wide)
12) Reboot. You should have a fully working system now.
13) Go ahead and sign into Google accounts.... everything will work fine.

Optional
14) After signing into google, Use any root explorer and go to /system/lib.
15) Backup libart.so ..reboot
16) Flash the libart.so fix for whatsapp.
17) Reboot .....
18) install Whatsapp from Playstore.
19) Setup Whatsapp ... make sure you are all the way through to your contacts screen.
20) Go back into your favourite root explorer.....
21) copy back your original backed up libart.so file to /system/lib.
22) Set permissions to rw-r-r and Reboot.
23) Profit! :good::D

I get fc only on Messaging app. But that happens without ART too. So I just get rid off it and use Hangouts. Although I have not tried clearing its data and cache as yet.
Thank you for very detailed instructions, but I again have FC.

I really don't know where problem is. Using Banks Core Gapps, everything step by step. FC.