yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] DanielMod:
it is minimal gapps (only play installed).

I found a temporary solution which is modifying the governor in the recovery and set a bit more vsel on every clock and overclocking to 1.2 GHZ,it is temporary solution because it drains battery,and it still outperforming.

I remember the first boot when I did now installed gapps it worked flewless without any modification,can it even be related to the play store?.

And what nightly is the best till now?
[Defy Android Development] unixr0cket:
ok thanks, a defy+ battery of another defy helped me to flash the sbf and make the phone charged the battery
[Defy Android Development] NightLord:
Guys, has this BT bug been solved in the current build?
[Defy Android Development] hotdog125:
No.
[Defy Android Development] T_Pratik:
Sorry for late reply :p

I reduced size to 162 mb and installed clean but still same problem.

But it felt much faster than before. :D

Thank you for suggesting ;)
[Defy Android Development] Urdle:
Strangest thing happened tonight, I'm not sure if it is related or not to the behavour of the mobile data dropping.

I switched on "plane mode" before going to sleep and when I woke up, plane mode was still on as expected, mobile 2G/3G was still off but... wifi was displayed up and connected to my home wifi !

As I wasn't that awaken, I didn't have the presence of mind to actually test that the connection was actually working, but I'm pretty sure it was (the icon wasn't "stuck" or anything)

Good luck !
[Defy Android Development] okij:
Sounds really strange! :eek:

Can anyone confirm this behaviour, so that I should put it on the bug list? (I don't want to spam that list... :))
[Defy Android Development] Mister Ypsilon:
Are you 100% sure that you didn't accidently re-enable wifi after switching to plane mode?
[Defy Android Development] runeupo:
I'm not sure you should call it a bug; there are some planes offering wifi-service.

Atm I'm not in my country and am using Wifi of the hostel in plane mode.

[mb525red taki_jeden 09052013 [SlimBased]]
[Defy Android Development] abhi.eternal:
Loving this ROM so far. Two questions though.. Where is the Developer Options in Settings? I just want to use the 'Long press to kill' using the back button but can't find this option. Also, can't adjust brightness levels from quick settings. It only gives the slider and not pre-configured levels. Any help will be appreciated.
[Defy Android Development] hotdog125:
A simple search would have helped you. This question has been answered many times before. Tap build number in about phone 7 times.

About the brightness, use the power widget in the notification bar.

---------- Post added at 01:55 PM ---------- Previous post was at 01:52 PM ----------

Even I had a random bug where toggling the Airplane mode on and off made the signal bar indicator on the status bar disappear. Mobile data didn't work, only fix was to reboot.:confused:
[Defy Android Development] Urdle:
I surely was asleep :) Maybe something could have triggered it (night hours, etc) but I don't think so

Is this a normal behaviour ? I'm pretty sure that "plane mode" on a phone means "no long-range electromagnetic emission" (except, you know, light, and accidental radiations due to electronics in general). Wifi being "long-range" enough considering the size of a plane...

Edit : meeeh http://support.apple.com/kb/HT1355

Ok, my bad, you can switch wifi on in plane mode, but you shoud have to do it manually.

And still, I didn't touch my phone after switching to plane mode, except to stop the alarm.

I didn't set any "night hours" stuff or anything, but I do have titanium backup making backup, and so maybe it did have to stop wifi to backup wifi setting ?[re-edit : No, titanium doesn't re-enable wifi, so I still have no clue what triggered it]
[Defy Android Development] Proverbs2:
*delete*
[Defy Android Development] coolshahabaz:
Instead of using preconfigured levels..... Use the status bar option for brightness

Settings>interface>status bar..
[Defy Android Development] abhi.eternal:
This will work for now but selecting pre-configured values was easier for me. Oh well.. can't complain as the ROM rocks otherwise!
[Defy Android Development] AnTerNoZ:
Now that we got OTG support in kernel we can try this hack with the defy.

http://xdaforums.com/showthread.php?t=2220108
[Defy Android Development] ebol94:
What's the best configuration to the get maximun performance? I've already turned off animations and I don't have any wallpaper. Thxs :D
[Defy Android Development] unixr0cket:
how battery life is?
[Defy Android Development] okij:
Wifi identified as a culprit for battery drain

Last evening I had my Defy+ running with Wifi on, but without using it very much.

At night I turned Wifi off and just let 2G on.

I you look at the attached screenshots, you can clearly see that during the time that Wifi was on, the battery drained quickly (with about 6 %/hour), whereas with Wifi off the battery usage was very moderate (about 0,8 %/hour). :silly:

As you see on the third screenshot, there haven't been any suspicious wakelocks. (BTW, Google Now and Location History were turned off on my Defy+, because some suggested that they might have an influence on battery drain.)

Because of this behaviour I now think it's safe to say that Wifi is the culprit for the noticed battery drain.

[MENTION=513620]Quarx[/MENTION]: Besides the issues #14 and #15 of my summary of known bugs, battery drain seems to be a major bug of your current Wifi driver. Therefore IMHO it would be important to do some further debugging of the Wifi driver. :fingers-crossed:;)

Edit: Obviously I was wrong with my assumption, because in this post I now made out "ehci_pm" as the cause for bug #13, battery drain due to wakelocks.
[Defy Android Development] s_u_n:
WiFi and Camera issues are the major letdown. Else ROM is excellent

I am attaching a screenshot that I took a few days ago.

I cannot remember the exact calling and wifi usage, but calling was around 30 min and wifi was around 12 hours.

Note: My battery is quite new. The old battery gives me around 1 day of usage and drops to 15%.

What is not good for me:

1. Downloads do not complete many-a-times. There is no issue with my WiFi, but even 1.5 MB apps from Playstore get stuck after some KB/ MB is downloaded. I have to turn off WiFi and switch to 3G. The download then completes via 3G. Alternatively, I have switched from 3G to WiFi to complete the downloads in some cases.

2. Gallery crashes many times

3. Camera - setting to 720p for video recording, will not allow you to use the camera at all. I don't know how that setting was used, but one day when I tried to record a video, I realized that both Camera and Focal do not work at all. Then after coming back home, I managed to change the setting to something lower than 720p and then the camera started working well.

Other than this, the ROM is good in all respects.

View attachment 2300905
[Defy Android Development] abhi.eternal:
No widescreen mode in the Focal app or am I missing something?
[Defy Android Development] Hasuris:
I am running Slimbean 4.3 (based on 17.09.) and posted this bug there but nobody could reproduce it or help me:

I came from CM9, installed a Junebuild of CM10 first (for TWRP), wiped everything with Aromawiper and flashed Slimbean. After discovering the bug I tried a full wipe and flash again but still the same. Under performancesettings it reports that the phone is running at 1200mhz but SystemPanel shows 600mhz and Pstate 2 (the highest unchanged one) and the phone is aweful slow. CPU Spy plus show 80% Pstate 2 and 0% for Pstate 3 and 4 (the overclocked ones).

I've no idea what causes this and never heard of anything like it before.

//edit: just wiped everything again with Aromawiper and tried the costumbuild from 28.09. and the problem is still there. Overclocking isn't working right for me.
[Defy Android Development] coolshahabaz:
[MENTION=513620]Quarx[/MENTION] can you tell me how to get root access in terminal emulator??
[Defy Android Development] Mister Ypsilon:
Just run "su"
[Defy Android Development] hotdog125:
Have you tried editing the overclock.conf file?
[Defy Android Development] Antiga Prime:
Well, WiFi has always been responsible for high-battery drain, but yes, in these latest builds is gotten a lot worse. Back when I was on CM10, I could easily get 2 days of battery life with one charge (99% of my data consumption is with WiFi). Now with these new Aerokernels I'm lucky if I get 24 hours, with pretty much the same usage.

Something I've noticed is that, according to BBS, the awake time is always double the amount of "Screen on" time.

For instance, right now I've got an Awake time of 43 minutes, with a Screen On time of 30 minutes. Also, Kernel Wakelocks shows a whopping 1 hour and 12 minutes, and I've only had WiFi on for about 15 minutes, at the most!!! This is all in a 4 hour reference point (since boot), which means Kernel Wakelocks have used up a bit more than 25%.
[Defy Android Development] Hasuris:
Yes. Just tried the costumbuild from 28.09. after aromawiping everything. Overclocked via bootmenu and CPU Spy Plus shows 95% Pstate 2 with 600mhz and the two I edited (900/1200) aren't used at all :(
[Defy Android Development] Blechd0se:
Can you be more precise about your settings? Which governor are you using? Does this problem occur directly after boot up or after a while?

Do you have changed any other things?

Get me some logs, if you can reproduce it.

I am currently phasing an issue with the governor subsystem while developing the app.

For all; does the frequency get stuck on certain conditions? Like changing governor etc?

Send from my Nexus 4
[Defy Android Development] Hasuris:
I just restored my slimbeanbackup :(

The problem is there right after flashing as soon as I try to overclock. Tried with boosted, interactive and ondemand, all the same. I'll pm you some logs (when I figured out how to get them xD)
[Defy Android Development] Blechd0se:
Look at my Server, there is a how to for logs/problems :)

Does it occur without oc? I really want to fix those kernel issues, i release a first alpha of my app soon, so debugging of different settings will be easier.

Sent from my Nexus 4
[Defy Android Development] coolshahabaz:
Ty...it's working...actually I am used to "sudo" on my "Elementry OS" that's y asked :angel:
[Defy Android Development] pl4yeR:
Maybe stupid but have you already ... Settings, WiFi,advanced,look for WiFi networks even with WiFi off (or something like that) --> check it off.

I don't remember the exact name since my build is not in English .

Enviado desde mi MB526 usando Tapatalk 2
[Defy Android Development] coolshahabaz:
that's location via WiFi....
[Defy Android Development] su8044:
Maybe something here can help on the battery draining issue? http://xdaforums.com/showthread.php?t=2449655
[Defy Android Development] Antiga Prime:
Yes, no problem there. Regardless, I turn off Wifi manually before turning the screen off. And when I don't and/or I forget, DS Battery Saver turns it off 10 seconds after I turn the screen off anyway.
[Defy Android Development] Hasuris:
Without OC everything is fine. Here is a log: http://pastie.org/8377751 somewhere in the middle is the juicy part I think: "overclock: cpufreq_stats_table address not configured, aborting action"

The log is taken right after bootup. Overclocking done via Bootmenü.
[Defy Android Development] atulclassic:
I believe CPU spy has 300/600/800/1000 as vsels defined for capturing data and oc at 900/1200 would not enable CPU spy to capture data.

Also, toggle airplane mode once and see if you are able to capture any data through CPU spy
[Defy Android Development] Hasuris:
It's not an issue of CPU Spy. It has worked before on pre 4.3-roms just fine. It reads the values of overclocking.conf, that's all. SystemPanel reports the same.
[Defy Android Development] ldiomedi:
That's true. In 4.2 roms, cpu spy works just fine. In every flavor of 4.3 I tested (mokee, PA, sb, cm10.2) happened the same overclocking. The frequencies changed get in zero. But the overclock does work, cause others apps showing the cpu activity shows the values changed

Enviado desde mi MB526 usando Tapatalk 4
[Defy Android Development] Antiga Prime:
+1 on this. It's even happened before on other CM10 and CM10.1 builds. Overclock is working fine, only that apps aren't able to read those non-default settings.

On a different topic regarding someone reporting that the memory leak was fixed, attached are screenshots which show how system_server starts consuming more and more RAM as time goes by. Killing it off (Aka. Hotboot) fixes this issue.

Also, regarding battery life, even though I do believe that WiFi does cause an unnecessary battery drain, there are also screenshots attached that show that even with WiFi off, something in the kernel still keeps the phone awake.

This was only in a 25 minute timeframe; in a full day of usage those 96 seconds turn into MUCH MORE, considering that it keeps the phone awake 5 times more than what WiFi was spent on, and 10 times more than the screen on time.
[Defy Android Development] Hasuris:
Ok, I gave OC another try and now it seems to work. But I am pretty sure there are issues with it cause I saw some errors concerning frequencychanges in ADB, they are gone now and I can't reproduce them. And I remember Kingdom Rush Frontiers was unplayable some days ago when I had my phone overclocked and that's what made me investigate the matter. Now it works good. Will report back when I figure out what was going on -.-
[Defy Android Development] Blechd0se:
Thank you for the log! It looks clean to me. Anyway we should probably redesign the OC feature. Quarx also mentioned a while ago

that we shouldn't use a module for this and more over this code hasn't been touched for ages as far as i know.

If its just the app, then don't care about it. You can always ask the kernel how often each freq has been used (someting like /sys/device/system/cpu/cpu0/cpufreq/stats).

I came to the same conclusion. I know there is a bug list where the memory problem is marked as solved, but not for me personally.

I have fixed quite many memory leaks, though. However i know that there are still some left. Just a excerpt.

Some of them are maybe in the kernel and fixable, but some are in userspace or the Android OS itself and i can't fix them.

They are really hard to debug anyway.

I will investigate this as soon as my alpha is somehow published :)
[Defy Android Development] Hasuris:
http://pastie.org/8378130

got it! This error is flooding my ADB right now. Worked well for ~2hrs but now right out of the blue, I was starting a game and my ADB goes bananas.
[Defy Android Development] frozenwaverider:
Could this be the reason for major random slow downs?

MB525 Red lense
[Defy Android Development] Hasuris:
I guess. It wouldn't stop, I got rid of it by changeing the governor. I think if this happens unnoticed, it kind of breaks the whole thing and gets stuck on whatever frequency it is. Don't know if this is a problem of boosted or affects other governors as well.
[Defy Android Development] hotdog125:
I made a post about this long ago. If we change governor using settings, the phone will get stuck at a particular frequency.
[Defy Android Development] atulclassic:
HALO))));

OT:

Can anyone port HALO to CM10.2..i love quarx roms and i don't have enough knowledge to compile and port.

to all devs..thanks in advance
[Defy Android Development] rtk217:
android 4.3.1 just rolled out to nexus... just saying, but i guess quarx is back porting from CM
[Defy Android Development] YetAnotherForumUser:
Get rid of annoying BATTD log spam

This (cosmetic) bug seems to have been present for a long time: connect the phone to the wall charger and the log is spammed every other second by battd, complaining it can not read the charger model name:

03-20 13:29:01.280 I/BATTD (1304): BATTD: Read of Path /sys/class/power_supply/ac/model_name, Failed
03-20 13:29:01.280 I/BATTD (1304): Could not open '/sys/class/power_supply/ac/model_name'
...
... (ad infinitum et delirium)

This patch (to be applied to jordan-kernel) solves the problem by giving the charger a name ('charger') when it is plugged in:

diff --git a/drivers/power/cpcap-battery.c b/drivers/power/cpcap-battery.c
index 4ee52d1..f9c35d7 100755
--- a/drivers/power/cpcap-battery.c
+++ b/drivers/power/cpcap-battery.c
@@ -99,7 +99,8 @@ static enum power_supply_property cpcap_batt_props[] = {

static enum power_supply_property cpcap_batt_ac_props[] =
{
- POWER_SUPPLY_PROP_ONLINE
+ POWER_SUPPLY_PROP_ONLINE,
+ POWER_SUPPLY_PROP_MODEL_NAME
};

static enum power_supply_property cpcap_batt_usb_props[] =
@@ -318,6 +319,10 @@ static int cpcap_batt_ioctl(struct inode *inode,
return ret;
}

+static char *cpcap_batt_ac_models[] = {
+ "none", "charger"
+};
+
static int cpcap_batt_ac_get_property(struct power_supply *psy,
enum power_supply_property psp,
union power_supply_propval *val)
@@ -330,6 +335,9 @@ static int cpcap_batt_ac_get_property(struct power_supply *psy,
case POWER_SUPPLY_PROP_ONLINE:
val->intval = sply->ac_state.online;
break;
+ case POWER_SUPPLY_PROP_MODEL_NAME:
+ val->strval = cpcap_batt_ac_models[sply->ac_state.online];
+ break;
default:
ret = -EINVAL;
break;

The battery daemon seems to be able to discern between different types of charger ('CHARGER', 'INDUCTIVE CHARGER' and 'SMARTDOCK CHARGER') but the current kernel driver does not name the ac charger. This patch fixes that. With the patch applied you'll get the following - and nothing more than the following - log message from battd:

I/BATTD ( 1275): Battd CHARGER INSERT = Success
I/BATTD ( 1275): set_charge_current=1800

The last log line ('set_charge_current=1800') is somewhat surprising as the Motorola wall wart charger can to my knowledge not provide that much current. Oh well, it seems to charge fine, the charger is not getting warm nor does it emit noxious odours or magic smoke (yet).
[Defy Android Development] TJKV:
Was wondering why that message appears when I was trying to fix usb charging on sb. Thanks!
[Defy Android Development] ibtihaaz:
device not turning on

Hi Defy users ... i have a situation .. please help

http://xdaforums.com/showthread.php?t=2470994
[Defy Android Development] Blechd0se:
Aero Control App

So i had some more time and have something to present to you.

Its a first public preview version of the upcoming Aero Control. Before you download it and test it keep in mind

i had nearly zero experience in Android App development, so bear with me. I spent the last few weeks with reading and learning java.

The little app is the result so far.

Requirements;

BusyBox

Root

Android 4.x

An working debug environment (for bug reports)

For non-so-technical-users;

Please download it and install it. Tell me everything what might bug you, what i could do better and what doesn't look good.

Tell me how you would use it, if its to complicated to use or whatever. I focused on a really simple to use User Interface

with some eye candy.

For advanced users;

Tell me if i forgot something, if something is really needed or if i should do things the other way.

Tell me also if all the things that should work are even working. Basically shoot out everything

to me which might be not done right.

For Developers;

I will release this app probably under the GPL licence. I played for a short while with the thought to sell this app, but

it doesn't sound right to me. The truth is i spent many hours on this small project, if anybody wants to donate to this work

there is a donate button. I don't want to lockout any users.

By design this app uses the new Navigation Drawer by Google with some additions from me. Each app-page is a new fragment.

Each fragment has different entries which are loaded most time dynamically at startup. It features a small backend which can

communicate with the kernel and get/set all relevant informations. Thats the reason why this app can theoretically work on

different devices as well (thanks to the linux kernel).

While getting feedback i continue working on this app. I have also asked [MENTION=1892363]xdaid[/MENTION] if he wants to join this little project and he said

yes, so this could even furthermore enhance the app. Someday it should replace the in-build DefyParts in the rom and will

give you full control over your device :)

I will probably open up a new thread soon and push my code to github, but for now i am using a private repo. If anybody

is interested in joining this little project send me a pm.

Download.

Have a nice weekend!
[Defy Android Development] Fight4Music:
Will we see aero control in the playstore? :)
[Defy Android Development] dkv2222:
Just installed the app and as soon as I opened GPU control it force closed. I'll give further feedback tomorrow.
[Defy Android Development] hotdog125:
[MENTION=4855459]Blechd0se[/MENTION], it being your first app, it is neat and very well designed. Very very easy to use and has a simple, clean UI. Thanks for utilising your spare time to improve the Defy.:)

One thing I didn't get is what we should enter in the input box when we want to switch on/off zram, zcache, etc.
[Defy Android Development] niksy+:
Lorem ipsum is random text in Latin used throughout history for various purposes, like print testing and setting up etc... It's dummy text, so I guess you've stumbled upon a non-finished part of the app :)
[Defy Android Development] TJKV:
[MENTION=4855459]Blechd0se[/MENTION]

Very cool, love the layout. The overview page text should not be italics. But I'm nitpicking :) Apart from the text styles and the placeholder text everywhere I think the layout is very much complete. Anything more that is added will only be fluff, like backgrounds, shadows which IMHO isn't always needed to make an app pretty.

A feature request for later: option to enable the kmemleak logging, if it is still enabled in the kernel. For me every 16-32 hours system_server ends up using around 160MB of ram, leaving 0MB available for caching even.
[Defy Android Development] DEFIER:
Play Store missing despite installing gapps

Hi Guys,

I installed the 20130917 build and installed gapps meant for 4.3 "gapps-jb-20130813-signed.zip" (87.4 MB) downloaded from goo.im.

I have done this exercise thrice now but google play does not appear in my app menu. Under installed apps I can see "Google Play Service" and "Sound search for Google Play". But where is play??

Also, till CM10.1 I used to get the google account setup/login screen on fresh install. This time its CyanogenMod login screen.

Any ideas whats happening here?

Thanks
[Defy Android Development] guidoido004:
this gapps doesnt properly install due memory issues in the system partition, install minimal gapps instead. ^^
[Defy Android Development] DEFIER:
oh.. strange. Do you have the right link to the minimal gapps for the CM10.2?

I had only followed the link that's at the start of this thread.
[Defy Android Development] TJKV:
Look at the first post of the thread again, the link is there ;)
[Defy Android Development] DEFIER:
Amazingly, i have have tried all gapps on fresh installs of cm10.2 (not just factory reset) and it seems no apps are being installed!!!!!

Any possibility of resolving this before I switch back to CM10.1??
[Defy Android Development] measel:
delete stuff from rom before installing it to make room for gapps.
[Defy Android Development] SlugZero:
Not sure if it's really related, but the patch makes use of the same data counters in the kernel that are also used to display the data up/down arrows. Maybe this is the reason why it does not work properly. I can't test it anymore, because I changed my network provider last year and do not have any data connectivity issues since. I attached a fixed kernel with working data arrows, so for everyone with connectivity issues, please try and report if this also helps with data connectivity.

Thanks, this pointed to the right direction. The xt_qtaguid version we use was simply too old.
[Defy Android Development] Husi10:
First, data arrow are working fine (wifi & mobile network) !

Secondly, I find data connectivity better. I didn't move from home but I didn't notice any connectivity issues. I will try tomorrow to see if it's better when moving.

Great Job !