yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] [] AL []:
I have no clue on which revision they are exacly - but thank for reminding me to be a good xda forum member and to add a link to where I found those xml in my previous post ;)

In fact after trying those out, I went on and tried to extract the animations from the last CM10 build that I've tried [Quarx' Oct18th].

What can I say.. well, that didn't go too well as I took all of them and couldn't compile because some dependencies/definitions were missing.

After some cleaning up, I could compile but the results were not too good (visually speaking) and I went back to those few file from the other post.

But all I can say is that like so, at least the JB animations for opening/closing an app work and that they make more sense than the ICS/GB ones.

Hard to describe [edit: look at the video link at around 6-7 seconds from the start], but on opening, it is more like a zoom in from deep behind the screen as opposed to an overlay from forefront in CM9.

But we're far from having every animations from JB working.. you can have a look at this here as a comparison..

I might look into this again and try to figure out what could be missing...

But it won't be too high on my priority list...

Cheers,

/A

Edit: I just found another thread (http://xdaforums.com/showthread.php?t=1958181) where they give the exact same set of files and describe them as from 4.1...

Nice!!! But seriously, I've never heard a such an issue before.

I'd re-download, reflash a sbf and re-install from scratch again...

Good luck.
[Defy Android Development] bhupatib:
Having tried it myself, they're the same kind as mine. I was hoping for something newer/better :)

Now It's a personal preference but I think it's better to stick to ICS/default CM7.2 animations as without the "press aware" logic (where the app popped up from where you pressed it), JB transitions are almost like in the stock GB/CM7.1 only less optimized because of its backported nature. Also while trying out the recent 4.2 builds, I didn't notice a lot of difference from 4.1, except in task switcher (pointless for GB).

I will revert my mods to default ICS animations in the next update as they feel more integrated.
[Defy Android Development] bobbyphoenix:
So it was an app. Battery Doctor was doing it. BUT I have another issue, and it's not the app as I uninstalled it. Whenever the phone is plugged in to charge the screen comes on. I shut it off, but it comes right back on. Under development the "Stay awake when charging" is not checked, so I don't know what else to do. Any suggestions?

EDIT - So I'm watching the screen, and there seems to be a pattern. The charge light and indicator (Shows on lock screen "Charging . 70%) both flash on and off as if the phone charges for a second, and then stops charging, and then charges again for a second. It keeps doing this, so that is why the screen keeps coming on, but now I don't know why it won't steady charge. :(

EDIT 2 - Solved my mystery. It was the battery itself. Must have been going bad. I switched it out with my other one, and now the charge status is solid. Screen stays off, and for good measure I re-installed Battery Doctor. The beeping was it's connect sound, so what was happening was it kept beeping because the battery would charge, not charge, charge, etc. All is good, and I'm happy now. Sorry for all the confusion thinking it was the ROM or something. At least if someone else has something similar they will see my post, and maybe try a different battery.

PS - I was so mad lately too as to get a full charge took like 5 hours. HaHa now I know why. Stupid battery.
[Defy Android Development] [] AL []:
OK slightly O-T, but this pertains to cm7 anyway...

Is it possible to increase the maximum email attachment size?

I don't think that the restriction comes from the email service provider; for exampleHotmail is allowing 25MB email attachments and it seems that cm7 will not let you download anything close to that maximum. I did search xda and went through about 15 pages of search results one by one, but nothing on this; just people asking the same question over and over. So I decided to have a crack at it and thought that I've found out how, but results weren't there...

Here's what I thought would work:

In Email.apk\smali\com\android\email\Email.smali those 2 lines (29 & 31):

.field public static final MAX_ATTACHMENT_[B]DOWNLOAD_SIZE:I = 0x500000[/B]
.field public static final MAX_ATTACHMENT_[B]UPLOAD_SIZE:I = 0x500000[/B]

500000 hex value corresponds to 5,242,880 in decimal; so I've tried to change the d/l size to 0x1500000

[which I later realized that it isn't triple the original value but (~4x) 22,020,096 in decimal - but still...]

Recompiled, replace, re-send the email just in case: open it up with the stock Email app, stayed on the spinner for a looong time and then when page finally loaded up; still no "open" or "save" buttons showed... [pic]

The funny thing is that monitoring my network trafic, I could see that the whole file came in [or something over 10MB anyway...].

So any smali gurus here that could solve this? Maniac103?

I fully realize that large email attachments are not the best way to go nowadays with all the cloud storage/sharing (Dropbox and alike), but like someone said before: the point here is not if the question is applicable or valuable to you or not, but if you're ready to help improve things or not...

Cheers,

/A
[Defy Android Development] maniac103:
Static final ints are inlined automatically, so if you do something like:

static final int a = 1;
int b = a;

the small code will be the equivalent of:

static final int a = 1;
int b = 1;

That's why your change has no effect. I can check where the constant is used, though, and/or check whether Google had a special reason for that limit.

Gesendet von meinem MB525 mit Tapatalk 2
[Defy Android Development] [] AL []:
Thanks; that's exactly what I needed to read to keep me digging and...

Success!!

In addtion to:

Email.apk\smali\com\android\email\Email.smali

lines (29 & 31):

.field public static final MAX_ATTACHMENT_DOWNLOAD_SIZE:I = 0x500000
.field public static final MAX_ATTACHMENT_UPLOAD_SIZE:I = 0x500000

there is:

Email.apk\smali\com\android\email\activity\MessageCompose.smali

line 695

const-wide/32 v5, 0x500000

and:

Email.apk\smali\com\android\email\activity\MessageView.smali

line 849

const-wide/32 v11, 0x500000

So I changed those 4 integers to 5 times what their initial value was - so:

from:

500000 / (5,242,880)

to:

_ 1900000 / (26,214,400)

And I can now download and upload attachments up to 20+ MB !!

Or about anyway.. I always get confused with bites, bits, bytes...

--> just look at the first 3 screenshots and the numbers on attachment size are quite different there also..

I don't know whether Google had a special reason for that limit either, but my guess is that they just went with what was their GMail attachment limit at the time... just guessing here... But this worked from sending the 16GB mp4 from my desktop's Hotmail to the phone Gmail account.

Anyhow, one more thing done from my cm7 wishlist.

Zip attached !! :p

Cheers!

/AL
[Defy Android Development] juried:
Or, you could have used Attachments for Gmail from the play store, and send any file type and size.
[Defy Android Development] [] AL []:
Maybe but why exactly would I use the Gmail app AND an add-on when cm7 has a perfectly fine Email app that let me setup what? 8 different accounts!? and has specific settings for updates, notifications.. and even a color-coded unified inbox?

Furthermore, let me quote part of the description of the add-on you refer to:

Break restrictions , Share any file with your friends and family

Did you know you cannot attach any file other than pics and videos with your email ?

Now with the help of this app you'll be able to send your friends and family anything, be it a music file , a office document or a android application, you'll be able to select any file from a in built file manager and attach it to your email. You can even attach multiple files to a single email
​

Nice, but I've never had any problems (aside from files too big -fixed now- or corrupted) sending any file type of docs (word, mp3, pps, etc) with the 3 accounts I use on cm7 default Email [Yahoo, Hotmail and Gmail]. So their first selling point is irrelevant and why would I also want an extra 'built-in' file manager just for email attachments when a long press on any file from Astro give me the option to email it?

Beside, it much more fun to learn about Android amd cm7 than to fill my limited rom space with 2 unneeded apps ;)

Latest test to confirm this: I sent a (~20MB) mp3 from my phone's gmail account (not app) to my yahoo account: - no problem! :victory:
[Defy Android Development] popadic022:
Only problem on defy + is prox.sensor. everything else is ok.
[Defy Android Development] [] AL []:
Sorry, but you keep bringing this up but did you send maniac any logcats?

Only Juried did I think (at least posted here) and you an other Defy+ owners just ignored the request...

I wonder if that's what p_ _ _ _ d maniac off and why he's so quiet lately - hehehe

No offense plz - just saying.... ;)

No, maniac is back with a revenge: he has a whole page of new commits - nice!!
[Defy Android Development] popadic022:
Ofc I post logs and make video how prox sensor works :D
[Defy Android Development] TJKV:
Lol link fail, there is "http://https://", redirects to:

http://www.homeimprovement.com/github.com/maniac103?tab=activity

:D
[Defy Android Development] [] AL []:
You will or you did post logs/video?

...Anyhow, nevermind and like I said, I was not accusiing you or anything...

Just that I find a little sad that a dev offers help to solve an important bug and no one seems to do anything about it except writing about it...

So, here's a friendly reminder to Defy+ owners

that experience and would like to help solve the

proximity sensors issue during calls

:

read this post and go wild with logs :cool:

A Home depot redirection - nice! :laugh:

Thanks for pointing out this 'click before paste' mistake from me - link corrected! :highfive:

Btw - maybe you should consider adding entry lines to your phone and/or computer "hosts" file...

Check/try this page out as I've previously refered to here :good:

- - - -

Edit, to save one post in the Q/A question...:

Is it possible to easily (or not) change the 5 seconds display time off on the lockscreen to something else - let's say 8 seconds ??
[Defy Android Development] popadic022:
I was make and post video/logs to help developers to fix ;D cheers
[Defy Android Development] TJKV:
Oh already doing that, with an app though cos I'm too lazy to add this to the already long list of mods I make before flashing an update :P

Not too sure why you mentioned that though, but thanks anyway :P

Oh and mine was the last reply on that thread :cowboy:
[Defy Android Development] avi_tandel:
CM7 with 2nd Boot & Custom Kernels

Dear Quarks / Dev's

As all of know that at present only CM7 is stable rom. CM 9, 9.1, 10, 10.1 are still requires some tuning / development.

I have defy 525 green lense on which defy plus sbf have been flashed, so it s BL 7. ( means GB without camera )

Off course camera is working fine on Quarks 2nd boot roms & kayants slim bean,:laugh: but these roms requires development :silly:.

If u spend ur valuable time on CM7 / GB rom to make it 2nd boot with custom kernels it will be super fine!!

This is a request on behalf of thousands of defy users who have accidentally flashed defy plus sbf.

Pls....:good:

Thanks in Advance

Avi Tandel
[Defy Android Development] measel:
thousands of users asked you to request this? wow, quite a famous guy...

No, seriously: There already is CM7 kernel developement. Epsylon3 created a nightly with a custom kernel BUT wifi didn't work yet.

CM72-20121126-NIGHTLY-Defy.zip: http://defy.wdscript.fr/jordan-nightly/
[Defy Android Development] Kaffeekranz:
I flashed this one about two days ago, though I've read before that wifi wasn't supposed to work.

Funnily enough, it does work for me, at least on my home wifi where I've tried it.
[Defy Android Development] bobbyphoenix:
Wi-Fi works for me too. Didn't even know it wasn't supposed to. LOL
[Defy Android Development] Llamatron:
New maniac builds seem to have been uploaded
[Defy Android Development] maniac103:
Right...but I forgot to do the MMS change we talked about :(

But I guess you already have a changed Mms.apk, right? If not, I can upload one.
[Defy Android Development] Llamatron:
Yup I got a Mms.apk, even with the option to use the default android method or mine in settings :)
[Defy Android Development] balllee:
this build support two way boot,both 2ndinit

and 2ndboot are supported,in 2ndinit statu,everything works ofcourse,but if u change to 2nd boot(default is 2ndinit...) in bootmenu,wifi will not work
[Defy Android Development] oSandmaNo:
I don't think so!

The 2nd boot folder doesn't have a kernel inside it so I think this is a 2nd init only ROM
[Defy Android Development] measel:
no 2nd-boot, yet. only eppys build has it.
[Defy Android Development] rsk_kelkar:
change logs?

Guys any idea how do we know what changes have been made in the maniacs builds?? i mean is there any changelog anywhere from maniac himself?? skanky builds have theirs
[Defy Android Development] measel:
github or cm7 update thread maintained by me.
[Defy Android Development] jasonnew:
I came back to CM7.2 after been tried the CM9 CM10. which still not stable enough at this stage.

Like the speed and stability of the CM7.2.

thanks for good work
[Defy Android Development] XJeFX:
I'm finally back on cm7 (from cm10).

Procedure (for red lens defy with a defy+ sbf):

1 - wipe (factory reset) from stock recovery.

2 - install cm7 from custom recovery (cm10 recovery).

3 - restart the phone, enter bootmenu (cm7 bootmenu) and then custom recovery.

4 - on cm7 recovery, install full wipe zip, install cm9 kernel (gb-kernel), install cm7 defy+ rom, install gapps.

Note: my battery was not detected on SO, it shows only a ? symbol.

This is how i fixed it:

1 - install Fix batt Mokee&ME722.zip from recovery

2 - install 4.5.2-109_DHT-22-kernel_Defy+.zip from recovery.

Link to baterry fix files: https://dl.dropbox.com/u/96319933/batt_fix_redlens_Defy+SBF.rar

Just my two cents! hope someone finds it usefull.

Cheers! :D
[Defy Android Development] [] AL []:
I have a few issues with your procedure/fix:

At step1: if you really wipe from STOCK recovery, then I believe that you'd lose SU and have to flash a sbf, root and install 2ndInit again - so step 2 would be after doing those. If not, then why would you install cm7 at step 2 and then do it again at step 4??

Anyhow, what ever works for you; but my understanding was that you have to wipe in stock recovery in order to reformat in ext3 (if from ext4 on JB) then follow the regular install process starting -like I wrote- from sbf flashing and so on.

Battery fix:

- I'm not sure why your fix has a /data/ folder with those two files: "battery_89F87B184600508A" and "battery_data"; as far as I know, only: "\bin\battd" and "\lib\libbattd.so" are needed... and in your fix, those two files are different than the ones I've been using.

- battery fix updater-script: the script of the fix is not even mounting sytem before extracting and replacing files and it has "unmount system"...

For consistency, it should first mount system with:

mount("ext3", "EMMC", "/dev/block/mmcblk1p21", "/system");

- the fix's update-binary file seems also quite different than the one from maniacs's latest builds; I'd repladce that file within the zip also the minimize potential problems...

Finally, to increase your chances of avoiding the infamous battery drops, I'd strongly suggest you to verify that

both the folder

"/pds/public/battd"

and the 3 files within

have their ownership as 1000:1000 (system-system) see pic. Easiest way to check that is to use RootExplorer and long press on each of those, scroll down to the last option: "Change owner" and set accordingly.

Otherwise, you can also try this fix I'm attaching it seems to work ok for me...

edit: although I do still experience drops...on a fairly new battery also I might say...

Cheers
[Defy Android Development] XJeFX:
Well, when you wipe from stock recovery (or any recovery) you just format data and cache partitions, so system is not formated (and recovery, root, etc. stills there).

I was trying to install CM7 since 3 weeks ago and only today I was able to do it.

I tried every wipes possible, even i tried from a fresh sbf installation>root>recovery>install cm7, but CM7 just doesn't want to boot at all.

About battery Fix, the one i posted is the only one i could install from recovery, any other battery fix's just gives me error on installation.

Battery charged till 85% then jumps to 100%, but now its discharging without drops till now (77%)
[Defy Android Development] [] AL []:
Fine, like I said: what ever works for you :good:

All I can say is that I had no real issue coming back to cm7 the last time I've tried CM10 -although I can't remember exactly if I did re-flash my froyo sbf and/or the GB kernel or not..

About your problem trying other battery 'fixes'; that is because all those are probably zips from before cm7 TLS support implementation (last September); hence my original comment about the update-binary. If you want to try those, just replace that file and re-sign the zips and they'll flash properly.

Since I'm here.. - the O-T part ;):

Most simple tweak ever!! (1 character change only)

*** Enable screen rotation of lockscreen ***

Simply decompile [or backsmali classes.dex of] android.policy.jar ] [\system\framework\]

@line#448 of smali\com\android\internal\policy\impl\KeyguardViewManager.smali

- const/4 v1, 0x5
+ const/4 v1, 0x2

--> This looks OK but: the music player's album art kinda get small [pic 2] and if you choose to display all the other lockscreen options (battery level, next calendar entry and alarm), then it overlapses the last line [pic 3]. Also, the "lense" lockscreen type doesn't rotate and make no sense in landscape.

What the heck: attached my modded file -as usual-: rename original, replace + set permissions and reboot.
[Defy Android Development] FINEEEEE:
Sound Recorder bug is back for me..on the old builds..was fixed..but in the two new builds is back :(...

otherwise...the black screen after call is fixed ;)..great job
[Defy Android Development] [] AL []:
I'm curious; you got more details on that Soundrecorder bug? [sorry I forgot -if you did explain it before..]

Got logs to provide?

I know that for me [like previously mentioned while still using my old sd card], most of the time it just chops the last 3-4 seconds of each recording and that on any cm7 I've used...

In/off-call proxy problem fixed? Just from your experience or you got more details/commit details to refer to?

- - - - -

O-T part again!!: :p

Whooaah! this thread has seen busier days than lately...

Is cm7 slowly dying by chewing candies attack/competition?

Anyhow, not that I ain't trying to bring life back to it, but I'm surprised of the lack of response sometimes here...

Well here are two more things for you to contemplate silently:

1- Faster screen orientation rotation tweak:

Cm7 screen rotation isn't that bad, but it can sometimes lag a little..

So this tweak aims at reducing that waiting time before rotation occur and overall improve reactivity.

I did not take the stopwatch and test it thoroughly, but to me, it sure feels faster/smooter ;)

And if I get this right, this removes 200ms on each orientation change which is not negligeable.

So on a portrait-to-landscape-and-back, that means almost half a second less!!

HOWTO:

--> Baksmali classes.dex of framework.jar [in \system\framework\] and at line #70 of

smali\classout\android\view\WindowOrientationListener.smali, just above:

invoke-direct {p0, p1, v0}, Landroid/view/WindowOrientationListener;-><init>(Landroid/content/Context;I)V]

change:

const/4 v0, 0x3

to:

const/4 v0, 0x0

Then smali, replace into framework.jar, push on system and reboot.

I won't give a flashable zip because framework.jar might change in a future nightly making such a zip obsolete or problem maker...

But here's maniac103's Dec7th build file already moddified like so.

2- Zip Align at boot:

I don't really know if it is really needed with cm7 or not [maybe maniac103 could attest or not..]

-I doubt that it'll do harm anyway- but here's a flashable zip to set a script that will zipalign apps

[only if needed -for new installs- after the first run] at each boot.

Enjoy!

Message to moderators:

if sharing things like the above or other topics I've posted about lately such as these:

7 lines/no smiley tweak and new mms apk layout

Pdroid tips & tricks

Bigger contact pics in dialer

ICS layout in statusbar expanded howto

25MB download limit to stock Email.apk

JB transition animations to cm7

Enable lockscreen rotation tweak

in this thread is too "off-topic", please let me know and I'll kindly stop doing so.

I'm just sharing what I find and learn in the hope of getting more general interest in cooking.

And a few posts in a what? 17-18k -replies thread is better than opening new threads each time

for (sometimes) known old trics no..!?

And I've seen too many threads with 10 pages of replies from guys that only changed 2 "bubble style"

[baddly compiled I might add] patch-9 pngs from a messaging app called "[MOD]" ...

it makes me :D a little.
[Defy Android Development] measel:
not totally dead, quarx added maniac on github to gb custom kernel.

no bugs no feedback i guess. thanks to all.

not sober right now. ;)
[Defy Android Development] ofmb:
maniac has branched Qkernel for gb :silly:
[Defy Android Development] maniac103:
Don't hold your breath ;)

I'm experimenting with it, mainly to see whether I can get it working stably.

At least it's booting already ;)

Gesendet von meinem MB525 mit Tapatalk 2
[Defy Android Development] Perilla_:
Hi again here, I have another phone and had this "forgotten". I have cm7 installed, and from the very first version, my sensor doesnt work good. Green lens. It sometimes (the most) stuck at 0, and only sliding my finger through the sensor 'reenable' it.

Suggestions?
[Defy Android Development] avi_tandel:
Is there any Update on GB 2nd Boot Rom Development?

Dear Developers,

Is there any update on development on GB 2nd boot Rom ?? :confused:

Currently using Epsy 2nd Boot GB Rom CM72-20121126 ** Only WIFI is not working otherwise its fantastic...:laugh:

I have came to know that Maniac & Walter are also working on 2nd Boot GB Rom, any update?

It will be as good as second birth to those Defys on which Defy+ SBF have been flashed & with custom kernels we will be using other functions as well... Let us know in case of any latest update on the same..

By the way wishing u best of luck for all you hard work in Development of Defy.:good:

Thanks... Avi Tandel
[Defy Android Development] Kayant:
Your answer was the last post on the last page :confused: just read a little more ;)
[Defy Android Development] fbugnon:
Baseband switch causing problems

Hi,

I'm using the Maniac's nighly build of 2012-12-07 (CM7) on my Defy red lens and I found something weird related to the Baseband.

After flashing the ROM, the Baseband was set to

Central Europe 3.4.2-145

and it worked fine, but I thought it was a good idea to switch accordinly to

America > Brazil > Vivo 3.4.2-107-9

, which is my region and carrier.

After the switch, the phone signal became weaker and, although I could make and receive calls, there was no sound apart from the ringing (I could not hear the person on the line, neither was heard by them).

Switching back the Baseband to Central Europe 3.4.2-145 solved the problem.

Just as a note, before flashing this excelent ROM I was using the official release of CM7 and did't had any problem of this nature.

Hope this helps.