The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Discussion
Reply
 
LinkBack (1) Thread Tools Display Modes
  #61  
Old 10-06-2008, 04:46 AM
What's Jailbreak?
 
Join Date: Sep 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

VSC:
Thanks!!!!!!
It works perfectly, the only problem is the icon, but i change it with the older icon (tnks nuxun).
I put the correct icon in airplane.zip.
VSC, any idea to put your work on Cydia??
Thanks!!!
Attached Images
 

Last edited by surfero; 10-06-2008 at 04:50 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #62  
Old 10-06-2008, 06:50 AM
What's Jailbreak?
 
Join Date: Aug 2008
Device + Firmware: iphone 3G 8GB, FW 2.2
Operating System: Windows Vista
Location: Italy
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts

When airplane mode is disable my iphone enables wi-fi even if wi-fi was not enabled before. It's possibile to respect wi-fi precedent configuration?

thank you!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #63  
Old 10-06-2008, 07:27 AM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

Somewhere along the way Apple changed their frameworks such that when I disable airplane mode WiFi didn't get reenabled (if it was enabled in the first place). I started forcing WiFi back on in this case. Clearly this isn't always the best idea if WiFi was off to start out with.

I'll look at this again and given that the frameworks have changed yet again maybe I'll see something I can take advantage of.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #64  
Old 10-06-2008, 06:05 PM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

Here is a fix for the daemon. It appears to respect the WiFi state. Give it a shot and report back your results.

Remember to set Airplane inactive or you might not be allowed to overwrite the file. Also you will need to purge the database and respring or the OS won't let this execute. Thus,

Code:
rm ~mobile/Library/Caches/com.apple.mobile.installation.plist
killall SpringBoard
Attached Files
File Type: zip Airplaned.zip (5.8 KB, 25 views)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to vsc For This Useful Post:
nuxun (10-08-2008)
  #65  
Old 10-08-2008, 02:15 AM
What's Jailbreak?
 
Join Date: Aug 2008
Device + Firmware: iphone 3G 8GB, FW 2.2
Operating System: Windows Vista
Location: Italy
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by vsc View Post
Give it a shot and report back your results.
Hei VSC,

now it's ok. No wi-fi before... non wi-fi after

thank you for rapid fixing!

Off Topic:

A little step beyond. What about a airplane pro commercial version with more features?

Something like:

* more action: not only airplane on/off but even silent mode on/off, ssh on/off, gps positioning on/off etc..

* more scheduling like native Clock application: airplane on/off during working day (7:00-23:00), airplane on/off during weekend 9:00-22:00 etc..

think about it, you can make a wonderful application!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #66  
Old 10-09-2008, 02:16 AM
What's Jailbreak?
 
Join Date: Aug 2008
Device + Firmware: iphone 3G 8GB, FW 2.2
Operating System: Windows Vista
Location: Italy
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by vsc View Post
Unfortunately launchctl must be setuid for the Airplane to function properly (e.g. chmod +s /bin/lauchctl).
Don't worry, look at this:

/private/var/stash/Applications.LujTA9/BossPrefs.app/launchctl*
-rwsr-xr-x 1 root wheel 59664 Jul 23 13:48

/bin/launchctl
-rwsr-xr-x 1 root wheel 59664 Aug 29 07:51 /bin/launchctl*

Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #67  
Old 10-09-2008, 06:52 AM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

Interesting solution to the problem. Release your own copy. I will switch over to something similar.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #68  
Old 10-09-2008, 08:16 PM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

Here is an update that included a fix to the icon that should work with and without Winterboard, as well as the updated daemon. Also there is no longer the need to setuid /bin/launchctl.
Attached Files
File Type: zip Airplane.zip (53.1 KB, 38 views)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to vsc For This Useful Post:
jrentzke (10-16-2008)
  #69  
Old 10-10-2008, 03:37 AM
What's Jailbreak?
 
Join Date: Sep 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks VSC!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #70  
Old 10-12-2008, 07:44 AM
What's Jailbreak?
 
Join Date: Aug 2008
Device + Firmware: iphone 3G 8GB, FW 2.2
Operating System: Windows Vista
Location: Italy
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by vsc View Post
Here is an update that included a fix to the icon that should work with and without Winterboard, as well as the updated daemon. Also there is no longer the need to setuid /bin/launchctl.
Sorry but it doesn't work for me. I have to setuid /Applications/Airplane.app/launchctl to make it work. After that everything it's ok.

My two cent hint: your application don't affect battery almost at all. I have some problem with battery drain so I tried to disable and re-enable some daemons to find the cause. In 8 hours of usage with "auto airplane mode" active and no usage of iphone, battery remain at 100%. Not the some for other program that cause me a 16% battery lost with the same test :/. It was quickgold to eat my battery but seams that version 1.3.1 resolves the battery issue. By the way, thank you another time for your battery safer application

Last edited by nuxun; 10-12-2008 at 07:47 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #71  
Old 10-12-2008, 07:53 AM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

Maybe I wasn't clear in my prior posting. All that I did was capture the launchctl application into the Airplane bundle. The private version of launchctl still needs to be suid. That said the zip I built had suid set for launchctl. Perhaps that was lost when it was unpacked on your system, or when it was uploaded to the iPhone.

Clearly when the iPhone has the radios off and no application(s) eating into the battery life, the iPhone's battery life in this state is very long. Depending on your location with respect to the cell tower, battery life with the GMS (or CDMA in the 3G case) radio on can be very poor. What I mean is that if you are in an area of poor coverage the iPhone consumes a great deal of power transmitting to the cell tower.

If an application is well written it shouldn't consume much power at all when running in background. Airplane's daemon is one such application that sits in background and only runs when an event occurs. Unfortunately how this is done is poorly documented by Apple or for that matter anywhere else on the web from my experience.

Here is a out the box reason I wrote Airplane... I didn't want the phone ringing at night. And still in the morning it's like an alarm clock...

Last edited by vsc; 10-12-2008 at 07:56 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #72  
Old 10-14-2008, 07:01 AM
What's Jailbreak?
 
Join Date: Aug 2008
Device + Firmware: iphone 3G 8GB, FW 2.2
Operating System: Windows Vista
Location: Italy
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts

I love your application for two things:

-no ring at night
-battery life: at home in 8 hours of stand-by with radio module on my iphone eats 5% of battery (with airplane mode active almost 0%) too much for me

thanks
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #73  
Old 10-14-2008, 04:06 PM
What's Jailbreak?
 
Join Date: Sep 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

VSC:
Your aplication is VERY important for the iphone comunity, please release it on cydia or appstore (if apple permits).

THANkS!!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #74  
Old 10-16-2008, 07:28 AM
jrentzke's Avatar
iPhoneaholic
 
Join Date: Sep 2007
Device + Firmware: iPhone 3GS 3.1.2 32G
Operating System: Mac 10.5.8
Posts: 410
Thanks: 72
Thanked 54 Times in 39 Posts

vsc, thanks for porting this to v2.

I am experiencing a weirdness though with the settings. I want it disabled at 5:59 am and enabled at 11:00 pm. I can set the disabled part no problem, but with enable, I'm only able to select 12 from the hours list (the rest are grey). The minutes selection is fine. With AM/PM I can only select PM. When select AM, it just jumps back to PM. I ended up editing the values in the .plist.

Also, I don't actually know if it's working or not. It says it's active, but when I set my system clock to 10:59 pm, and wait for 11:00 pm, airplane mode doesn't kick in. And when I manually switch on airplane mode, then set my system clock to 5:58 am, airplane mode doesn't disable when it reaches 5:59 am. I'll wait for tonight to see what happens at 11:00 pm.

What command could I run to see if the deamon is active or not?

Last edited by jrentzke; 10-16-2008 at 08:01 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #75  
Old 10-17-2008, 08:09 PM
vsc vsc is offline
Green Apple
 
Join Date: Aug 2007
Posts: 40
Thanks: 0
Thanked 10 Times in 8 Posts

When you start the app if the active button is highlighted then the daemon is in fact running. The app queries the OS.

You always can do a "ps -A" and look for Airplaned

Otherwise I just got back to town and will look at this in the morning.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to vsc For This Useful Post:
jrentzke (10-18-2008)
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://modmyi.com/forums/native-iphone-ipod-touch-app-discussion/31875-how-release-app.html
Posted By For Type Date
?????????????????2.2 Airplane ?? - iPhone??·????? - WeiPhone??? iPhone ??|iPod Touch ??|Palm Pre ??|Android Gphone|???iPhone - Powered by Discuz! This thread Refback 07-22-2009 10:31 AM


Go to Top
ModMyI

All times are GMT -6. The time now is 06:36 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top