yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] vlc_marcos:
but there are some ways. you should not possible to implement that on the kernel?
[Samsung Galaxy Nexus] jeff5347:
I don't know what my problem is. WiFi keeps disabling itself. I have tried this on orca and rootbox both the same problem. I have my WiFi se as static, all boxes in advanced unchecked, WiFi scan played with from 300-400... I have WiFi set to sleep when screen is off and it does disable itself. When screen is on WiFi will come on the disconnect itself after say 1-2 minutes and won't reconnect unless I manually do it. This seems to be on 35t5-6. If i jump to test 1 or lower I don't see the problem. Only think I can think is Linux version. My phone seems to be OK on 3.084 but not latest 3.085...?

Anyone else getting this. I have no sod or freezes either way.
[Samsung Galaxy Nexus] Handled:
Hey, sorry if this is noob-type of question but it's the first time I've experienced this flashing a kernel. I notice that when I flash the fancy kernel, my bootlader gets set to secure. Is there a reason for this? Never happened to me on lean or franco
[Samsung Galaxy Nexus] jsage:
Hi Boype,

20 hours on pre35-06 with no SODs, no performance issues and no excessive battery drain:

Toroplus

CM10.1.1

OnDemandPlus

pre35-06

No over/under-clocking

No over/under-volting

No settings changes other than Fancy "stock"

Smooth as butter!

Previously I received SODs on r34 thru pre35-03.

Thanks for the great kernel, and have a wonderful day,

John
[Samsung Galaxy Nexus] bolanrox:
first SOD on r34 (std version) odd. assuming just a fluke.
[Samsung Galaxy Nexus] jsage:
Hi Jeff,

This was happening to me just on pre35-04. Once I flashed pre35-05 the problem went away, and I haven't experienced it on pre35-06 either. What kernel version are you running?

Thanks,

John
[Samsung Galaxy Nexus] jeff5347:
On pre35-06 right now
[Samsung Galaxy Nexus] Sounava:
I assume you mean hispeed_freq tp 729.

Also what is MCP?

And 192 will be for Screen on too?
[Samsung Galaxy Nexus] Blackcrx:
MCP is multicore power saving. Found in trickster in the specific tab.

192 screen on also
[Samsung Galaxy Nexus] Sounava:
Thanks. I had guessed MCP to be that but still wanted to be sure, because Multicore Power Savings = MPS :P

Lets see how much screen time I get now :)
[Samsung Galaxy Nexus] splus:
These might be little low for some, but work perfectly for me.

I usually get around 3.5 hours SOT, sometimes 4 hours. No wifi, only 3G. But 3G only when screen is on, 2G when screen off (automatic Smart 3G from Cataclysm ROM).

Max CPU 1228, min 384 Mhz, interactive with hispeed 729 MHz, GPU 512 MHz, BFQ with 512 RAB, auto brightness with CAB off.

For example now I'm at 54% battery with 1:57h SOT...

What many people forget and which I've found important is to disable sync for wake lock hoggers. I only have enabled sync for App data, Contacts, Gmail and People details.

And all location reporting and sharing stuff in location settings is unchecked.

But I still have Facebook Messenger and Fancy Widget weather that regularly sync... Google+ sync and notifications are off.

Best kernel ever for my Gnex since year and a half I have it, and I tried a lot in this time...
[Samsung Galaxy Nexus] oli20021978:
Please keep in mind with your battery / sceen on time discussion that our toro brothers have a better battery. And if you are always on wifi you can get better values.

Gesendet von meinem Galaxy Nexus mit Tapatalk 4 Beta
[Samsung Galaxy Nexus] zoomy942:
Why are the gamma setting in cm greyed out with this kernel but not others? Just noticed.
[Samsung Galaxy Nexus] laureanop:
Was wondering the same thing although I use trickster mod.

The relentless pursuit of the perfect rom

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

I flashed the latest aokp momentarily yesterday and it's grayed out there too

The relentless pursuit of the perfect rom
[Samsung Galaxy Nexus] zoomy942:
If those can be un greyed out this will be my kernel forever.
[Samsung Galaxy Nexus] boype:
I did that on purpose, so the ROM won't override the kernels settings
[Samsung Galaxy Nexus] zoomy942:
Ah. Okay
[Samsung Galaxy Nexus] chikimonke:
See, I'm a "Toro Brother" and I was always under the impression that my Maguro brethren were the ones getting the better battery life because you don't have the super inefficient, battery hungry LTE and even CDMA radios sucking up all the juice. It's my understanding that GSM is much more battery friendly, is this not the case?
[Samsung Galaxy Nexus] parkson:
That pretty much sums it up. Toro user here as well.
[Samsung Galaxy Nexus] flybass:
I'm experiencing some slowdowns with test 6. Test 4 was smoothest for me. I use ondemandplus oc to 1420.
[Samsung Galaxy Nexus] Charmacas:
Test 6 feels a lot faster than test 5. But I will test more.
[Samsung Galaxy Nexus] parkson:
Same here. 35-06 is KILLING IT paired with kevdliu's FTL CM. Love the combo!
[Samsung Galaxy Nexus] jesssiii:
+1

Galaxy Nexus Toro (VZW)
[Samsung Galaxy Nexus] sym_m:
100% WiFi some 3g some game whatsapp pre 35-6
[Samsung Galaxy Nexus] Estherzilla:
I had no problem with r33, until recently (6 days apart from flashing it) I got black screen. i don't know if it's SOD. like when I play game or when I leave it alone, suddenly it turns black and I can still hear the music from the game, but I can't click power button so I have to pull battery

I don't do undervolt or overclock. I leave it as stock as possible. changes only rab 512 bfq/sioplus/row (I change it everytime the black screen came), governor interactive/ondemandplus (at first, i used ondemandplus, but when the black screen happens, I change it, but it still happens)

min 192 max 1344 max screen 537600 min screen 192 and hispeed freq 1344.

do you guys think there is a problem with my settings?

I'll try to flash pre35-6 after this.

r33 has given me a great battery life. it's my first fancy kernel, and compare to kernels that i used before, I'm really satisfied. :) until this happens :(

and I heard good response for 34-01 and 34-04 but I just knew that boype pulls the link every time he pushes the official built, I regret I didn't download it before :( ( I learnt my lesson)

maybe someone could give me the link of one of those pre34? just in case 35-06 doesn't work on my device...
[Samsung Galaxy Nexus] sajty:
Since memory mapping is implemented, my phone freezes a lot, even with pre06.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] laureanop:
Raise your screen on min to 384

The relentless pursuit of the perfect rom
[Samsung Galaxy Nexus] pcphobic:
[MENTION=3679738]AbhishekS[/MENTION] I am running Fancy Kernel Pre35-06 on LiquidSmooth ver.2.8. Everything seems fine, smooth and snappy. No SOD for me. I left the kernel at its default settings.
[Samsung Galaxy Nexus] im the doctor:
pre 35-6 is fine for me, stable, smooth and heavy battery drain (in idle) of 35-5 is fixed :good:
[Samsung Galaxy Nexus] un.droid:
35.6 is very good, phone feels very snappy without needing to reboot once in a while to regain smoothness. no issues whatsoever.
[Samsung Galaxy Nexus] Reginald476:
35.6 is working flawlessly on my Toro. Thanks for an awesome kernel!
[Samsung Galaxy Nexus] natezire71:
35-06 working well for me as well. I think most SODs are due to underclocking. If the min is at 192mHz, that would tend to cause SODs. I had changed my mins to 384mHz for a while and that got rid of the problem. I'm back to 192mHz on 35-06 and it's great. Fantastic job.
[Samsung Galaxy Nexus] BOY_:
I disagree, I ran pure stock settings on several of the test builds and still had sods. That said, I've played with both interactive and ondemandplus, sioplus and bfq schedulers, UV'ing and test06 has been SOLID.
[Samsung Galaxy Nexus] lesclark:
35-06 working great on my vzw gnex.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] zandander:
Same as pretty much anyone else. 35-06 is running quite well. Still in the process of setting up the particulars to try and maximize my battery life.
[Samsung Galaxy Nexus] klobkelosh:
35-6 had been flawless on Toro. I've even had good battery drain rate. Thx boype!
[Samsung Galaxy Nexus] Nemed:
35-6 is stable for me too
[Samsung Galaxy Nexus] splus:
Guys, it looks like 35-6 is better than 35-5 for everyone, but how's 35-6 running compared to 35-4?
[Samsung Galaxy Nexus] jesssiii:
I'm not noticing any difference.

Galaxy Nexus Toro
[Samsung Galaxy Nexus] sajty:
So i am the only,who is facing random freezes with pre06?
[Samsung Galaxy Nexus] parkson:
Appears to be the case lol. Check your setup? No other kernel control apps, useless crossbreed mods, or init.d interference?
[Samsung Galaxy Nexus] chikimonke:
Unfortunately for you, that's looking to be the case. I know it's a bit of a hassle, but have you tried on a clean install? Maybe there's something on your setup that p35-06 doesn't like.
[Samsung Galaxy Nexus] laureanop:
35-6 is the best idle drain I've had with this phone. Period. Since the ics days

The relentless pursuit of the perfect rom

---------- Post added at 09:04 PM ---------- Previous post was at 09:02 PM ----------

Also, it's the first time that on demand outperforms interactive

The relentless pursuit of the perfect rom
[Samsung Galaxy Nexus] natezire71:
That's just like, your opinion man.

Jk. Everyone's phone is different. Glad that the latest is working well for you.
[Samsung Galaxy Nexus] Charmacas:
I also have to say that after 23 hours of online time my phone (maguro) is solid! No problems! REALLY great battery drain and performance smooth as butter in the sun. ;)

I really hope that problems which others have do come from a ROM or some misconfiguration.
[Samsung Galaxy Nexus] phishn:
This version 6 is excellent. I noticed skipping bluetooth music has gone away.
[Samsung Galaxy Nexus] flybass:
I read here that a lot of people are using bfq and interactive over ondemandplus and sioplus. Is there a particular reason? I've been using ondemandplus and sioplus since I know that boype created those the pair. What are the differences? Is ondemandplus a little better for battery?
[Samsung Galaxy Nexus] pcphobic:
best battery life idle drain of all pre35

I am glad to report that of all the pre35 that I have tested, pre35-06 has the best idle drain battery life.

After 9 hours + on 3G (not WiFi) with data sync enabled, it only drained 8%.

With other versions I lost 15% to 18% in 7 hours of idle drain.

Also in terms of performance pre35-06 is also the best. It is smooth and snappy.

I left everything on default kernel settings.

Overnight battery idle drain test result

Kernel: Fancy kernel pre35-06 on default settings

ROM: LiquidSmooth ver.2.8

Data Connection: 3G (no WiFi)

Data Sync: Enabled
[Samsung Galaxy Nexus] Blackcrx:
Agreed. I think 35-6 is the best fancy released to date
[Samsung Galaxy Nexus] motorazrv3:
My yesterday result on pre 35 06 using purity rom 5.7.1

My changed setting via trickster mod are:

rab 512, mcp 0, max screen off 384, min screen on 192, max 1036800,

interactive with deadline, osmosis color profile, other settings unchanged.

Very very impressive result. Thx boype for this masterpiece.
[Samsung Galaxy Nexus] Seraz007:
+1 to that :highfive:

Sent from my Katana
[Samsung Galaxy Nexus] im the doctor:
Oh.. my... God.. :good:

first full cycle pre 35-6
[Samsung Galaxy Nexus] madhavs:
Great that's Very Impressive,Which ROM you are using
[Samsung Galaxy Nexus] boype:
r35 up

Hi all,

after a very sunny week on the beach I finally got to build and release r35. Even though I did not post very much in the thread, I followed all the comments. r35 is pretty similar to pre35-06, which was reported to run really good. Here's the change log:

updated Linux to version 3.0.86

reverted "lowmemorykiller: Use asynchronous compaction when killing processes" (fixes SODs that were introduced with r34)

introduce Tuna optimized VMSPLIT of 2.5G/1.5G (what I used to call 'memory mapping optimization')

updated LZO compression to current upstream version

reverted a few commits that may have been responsible for higher battery drain

re-introduced 3.4 lowmemorykiller (rest of the staging driver stays 3.0 though!)

RAMdisk: fix interactive boostpulse permissions (thx to franco-c)

RAMdisk: tweak TCP buffer sizes the AOSP way (thx to franco-c)

Best regards!
[Samsung Galaxy Nexus] zoomy942:
My wife thinks I'm crazy for checking your thread at 330 am but this proves it's totally worth it
[Samsung Galaxy Nexus] cmoG530:
This is my favorite kernel above all kernels and that'll never change. ")
[Samsung Galaxy Nexus] im the doctor:
is worth flash r35 or there is no difference with pre 35-6 ?

Rootbox last stable, btw i use a profile during night: airplane mode, no sync, all sounds muted (but alarm still on)
[Samsung Galaxy Nexus] Des-franco:
So far, So good! :highfive:
[Samsung Galaxy Nexus] Bl4ck3urn:
What are you waiting for? Flash it! :D
[Samsung Galaxy Nexus] im the doctor:
pre 35-6 for me is just... WOW :Q_

i'm sorry to change it xD
[Samsung Galaxy Nexus] zoomy942:
You won't be sorry :thumbup:
[Samsung Galaxy Nexus] kreindler:
4 boype

The first link>

is for the extended version:) found the standard version on the mirror from mediafire though :)

Thx 4 the updates:) you're awsome
[Samsung Galaxy Nexus] Seraz007:
Awesome runnin gr8 with stock settings

time to experiment ;) :D :D :D

Sent from my Katana
[Samsung Galaxy Nexus] x3m.zone:
r35ext with CPU 1.4Ghz + GPU 512Mhz.

Just wow...
[Samsung Galaxy Nexus] boype:
Just checked it and the link seems to be fine?!
[Samsung Galaxy Nexus] L-ViZ:
using r35, got wifi disc in sleepmode :(

the rest seems to be fine, gonna reflash anyways and see if it´s gonna work with another rom :)

had no problems with r33.
[Samsung Galaxy Nexus] boype:
The WiFi drops have nothing to do with the kernel. It's a common 4.2.x bug.

Are you aware of the WiFi workaround in this kernel? If not, check the OP's knowledge base
[Samsung Galaxy Nexus] GeekMcLeod:
If I remember correctly, there was no audio boost. I have recently flashed back to my fall back kernel because I experienced random sluggishness. Was running great, can't comment on battery life as I was still on the charger, but I randomly started being very slow while opening apps or unlocking the screen or.. Well it was slow with basically everything. I did like it for the time it was working good on my device, so I think I'll keep up with this thread and kernel.
[Samsung Galaxy Nexus] billouetaudrey:
Re: [KERNEL][4.2] Fancy Kernel (Rel. #1) (JAN-24-2013)

Great kernel !

Fast ! Now see battery life and stability...

For all ask it

No uv possibility

No volume boost

No vibrator modification...

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Samsung Galaxy Nexus] lost_:
Haven't had any SOD and it's been smooth stable for me with good screen-on battery life.

Any thought about adding imoseyon's custom SR tuning which would allow us to override the default minimum voltage for SR calibration? Trickster supports it too and it's much less headache than direct UV.
[Samsung Galaxy Nexus] boype:
I did not add volume boost, since I do not need it (and always wondered why people would find the phone not being loud enough). But I can add it, should not be much of a hassle...

I did not implement it because I thought 'if the SR values run good, why bother implementing custom voltage?'. Again, this could easily be integrated for the next build.
[Samsung Galaxy Nexus] Doomhamma:
I have vibrator modification in Trickster Mod ...
[Samsung Galaxy Nexus] logi43:
Re: [KERNEL][4.2] Fancy Kernel (Rel. #1) (JAN-24-2013)

I thank you for your work, the kernel is working well in 017 xylon 8h.34min resting. 2g consumption was only 2% interactivex / rw, default frequencies

If you include the audio option would increase greatly appreciated.
[Samsung Galaxy Nexus] wai10691:
Re: [KERNEL][4.2] Fancy Kernel (Rel. #1) (JAN-24-2013)

It's not implemented in this kernel
[Samsung Galaxy Nexus] billouetaudrey:
Re: [KERNEL][4.2] Fancy Kernel (Rel. #1) (JAN-24-2013)

Of course... Sorry

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Samsung Galaxy Nexus] ux50jp:
Fancy kernel(#1) is the best match with Xylon017 for me.

Tested with Franco361, Lean V5.8 and AK540.

Excellent work!!!
[Samsung Galaxy Nexus] Doomhamma:
I can't belive this thing LOL! After 17h on battery - 40 mins of screen on time - 10 mins of phone calls - I've only waisted 15 % of my battery!!!! Holy mother of a cow :S GREAT!
[Samsung Galaxy Nexus] boki2911:
default settings?? or
[Samsung Galaxy Nexus] Doomhamma:
Default settings + max cpu on 1.4 Ghz - TCP - Cubic - I\O scheduler - Row - Governor - Pegasusq

And it's flyiiiing!
[Samsung Galaxy Nexus] boki2911:
I am currently on StarKissed Kangerade,but would like to try this but if you say you flying
[Samsung Galaxy Nexus] sergeroyal:
Excellent Battery Life !!

I can assure that the battery life is freaking amazing ... 4 hours + screen on time with moderate usage! Also pretty smooth and stable ... Excellent work !:good::good::laugh:

PS: Default settings
[Samsung Galaxy Nexus] larkhillv:
File says Tuna but will this work for Verizon GNex aka Toro?
[Samsung Galaxy Nexus] boype:
That's a good question... As I haven't read very much about the Toro, I am not sure of that. Is there anybody here who knows a little more than I do? Since the CM10.1 kernel base's name is 'tuna' (which includes both maguro and toro AFAIK), I suppose it could work. But maybe another kernel config for compilation is needed. I'll write the research regarding this matter on my 'to-do-list'.

To the folks reporting good battery life: I'm glad it works out for you too :)

[EDIT] I'll be working on the sound-boost and custom voltage stuff soonish.
[Samsung Galaxy Nexus] Doomhamma:
Your Gnexus wont fly away from you, if that's what you thought :P

But really, I'm impressed by this kernel ... I really am ... I'd upload you pictures right now, but that'd reset my battery stats since I'd have to plug my phone in ... Just wait a few days till my battery drains out LOLOLOLOLOL!
[Samsung Galaxy Nexus] albsat:
Re: [KERNEL][4.2] Fancy Kernel (Rel. #1) (JAN-24-2013)

I am giving this kernel a shot. Post feedback later. Glad to see another kernel in xda.

---------- Post added at 01:04 PM ---------- Previous post was at 12:25 PM ----------

Had the first sod on an missing call. I am on akop 2 now. Raised the minimum frequency to 384. Lets see.
[Samsung Galaxy Nexus] boype:
New release

Hello fellas,

I have just updated the OP with the new release. I also added a changelog at the bottom of the OP.

Anyhow, I'll post the changes here as well:

added Ezekeel sound control (high performance sound, volume boost; controllable through Trickster MOD)

added ARM CPU topology and enabled it by default (saves battery by scheduling load among the CPU cores in multi-core devices)

applied some patches to pegasusq governor

updated kernel to version 3.0.61

a few minor tweaks 'under the hood' (check the source if interested)

Thank you for your interest and best regards!
[Samsung Galaxy Nexus] pageniao:
Re: [KERNEL][4.2.x] Fancy Kernel (Rel. #2) (JAN-26-2013)

on new release

can i custom uv?
[Samsung Galaxy Nexus] RAD1XS:
Re: [KERNEL][4.2.x] Fancy Kernel (r7) (FEB-23-2013)

Try to install r7 version ;)

Enviado desde mi Galaxy Nexus usando Tapatalk 2
[Samsung Galaxy Nexus] AznInertia:
What causes WOD issues? Usually SOD (Sleep of death) issues arises from voltages being too low (from my understanding). Correct me if I am wrong. Going to flash this over Leankernel 6, phone gets too hot during a call...
[Samsung Galaxy Nexus] gwindlord:
W-Fi drivers sound promising, just to ensure if they will work on 4.2.1 - not everyone is aimed on cutting edge like AK ;)
[Samsung Galaxy Nexus] Fenvarien:
AW: [KERNEL][4.2.x] Fancy Kernel (r7) (FEB-23-2013)

Yes, I forgot about the tethering problems back then... But losing WEP was a huge problem for some users too, which have to use this insecure protocol for compatibility reasons.

R7 runs great here, I really like the performance, options and battery life of this kernel! :good: :)
[Samsung Galaxy Nexus] boype:
I think sticking to the 3.0 Wifi driver is the way to go. I favor stability over experimental stuff...
[Samsung Galaxy Nexus] 7175:
Really enjoying fancy r7. Battery life is consistently excellent just like previous releases. I've recently been retesting my phone's limits for custom undervoltage with MPU=OFF. I last ran tests 1.5 months ago on franco kernel on 4.2.1. It seems that I can run my phone with more undervoltage now! There's enough difference from SmartReflex to give some noticable battery life improvements. With screen-on use, there's about 1-2% less battery consumption per hour. Including regulator undervoltage, it ends up being about 2-4% less battery per hour.

These are the current voltages I've been using, stable so far. CORE and IVA are left at default with SR=ON.

//Fancy r7 kernel on liquidjb-v2.1-rc1 4.2.2) with trickster mod

//MPU SR-OFF ([freq]: volt_setting||~volt_measured --- "" Fancy's_stock_with_SR-ON)
[1420]: 1200||~? --- 1275||~1270
[1228]: 1150||~? --- 1225||~1210
[1036]: 1050||~? --- 1150||~1110
[729]: 890||~? --- 1050||~990-1000
[537]: 860||~? --- 900||~890
[384]: 810||~? --- 850||~850
[192]: 780||~? --- 800||~800

//Regulator (UV'd---Fancy stock---[default stock])
VAUX3_6030: 2500---3100---[3100]
VMMC: 1200---1800---[1800]
[Samsung Galaxy Nexus] lippol94:
R: [KERNEL][4.2.x] Fancy Kernel (r7) (FEB-23-2013)

Thank you so much!! I'm trying your settings and so far they're extremely stable! :)

Cheers!!

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] ptmax13:
@Boype

What is the next best thing after "ondemandplus" in terms of performance/battery usage ratio....

I found "ondemandplus" a little bit laggy where with "interactive" the phone seems more snappy.
[Samsung Galaxy Nexus] boype:
You can try ondemandplus with these two tuneables:

echo 30 > /sys/devices/system/cpu/cpufreq/ondemandplus/down_differential

echo 1 > /sys/devices/system/cpu/cpufreq/ondemandplus/inter_staycycles

Or you can tweak interactive to be a little more aggressive...
[Samsung Galaxy Nexus] lost_:
UV

Awesome. Everyone needs to understand that not all chips and boards are equal. What works with on one may not on others. Mine goes lower in some, but I keep some points higher for stability with certain apps:

MPU
[1420]: I don't use
[1228]: 1180
[1036]: 1060
[729]: 940
[537]: 820
[384]: 780
[192]: 720

Regulator
VAUX3_6030: 2600
VMMC: 1300

Core
v1, v2, v3 - fancy stock
v4 820

IVA
v1, v2 - fancy stock
v3 1090
v4 820

Compared to yours, more conservatively on the higher frequencies, and more aggressively on lower frequencies, and more conservative regulator. No SOD and as I mentioned in the earlier days fancy release, this kernel can tolerate UV much better than others.

These are UV values that I've kept from earlier releases. r7 seems to be even more tolerant

---------- Post added at 10:24 AM ---------- Previous post was at 10:16 AM ----------

Boype, great writeup.

What are the default values of the above tuneables? I understand if you don't want to document them if you think they might change from one release to the next.
[Samsung Galaxy Nexus] boype:
You can check them with either a file browser under the path /sys/devices/system/cpu/cpufreq/ondemandplus/ or you can take a look at lines 88 - 115 at https://github.com/boype/kernel_tuna_jb42/blob/fancykernel/drivers/cpufreq/cpufreq_ondemandplus.c
[Samsung Galaxy Nexus] larkhillv:
R7 was lagtastic. Went back to r5. Seems to be the best release, IMO.
[Samsung Galaxy Nexus] pageniao:
Re: [KERNEL][4.2.x] Fancy Kernel (r7) (FEB-23-2013)

new trickstor mod

http://d2tvn.com/thuanle/trickster/TricksterMOD_20130225.apk
[Samsung Galaxy Nexus] 3c:
Nice APK, can I ask how the ADB over WiFi is controlled ? I'd like to add a toggle widget for that in my app.
[Samsung Galaxy Nexus] thuanle:
You should have link to the G+ post.

You need to call three commands in order to do that:\

setprop service.adb.tcp.port <x>
stop adbd
start adbd

with x is either the port number or blank string to start adb wireless on x port or stop adb wireless respectively.

The toggles widget in Trickster is a donated feature.