Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > Free Toolchain Software

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-30-2008, 12:40 PM
Former Bender's Avatar
Former Bender
Status: Offline
Guest
 
Join Date: Nov 1970
Posts: 3,501
Rep Power: 0
Former Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud of
Default

For all of you guys with Applications that crash, bug, quit to Springboard, freeze, don't save files, etc etc...

There is a simple solution to debug and see what's going on.

First, turn off the Auto-Lock feature in Settings > General > Auto-Lock.

Second, you must Install OpenSSH in your Phone (if not already installed by a Jailbreak application).
OpenSSH requires BSD Subsystem.

Open a SSH session from your computer to your phone.
You can use:
- Putty > ssh client for Windows available at putty.org
- Terminal > for OS X, already installed in /Applications/Utilities/Terminal.

Connect to your phone:

Quote:
ssh -l root x.x.x.x
x.x.x.x has to be changed to your iPhone IP Address.
To know your iPhone IP, go to Settings > Wifi > click the blue arrow where your phone is connected to.

If you see a message like this just type yes and press ENTER

Quote:
The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
Then you'll be asked to enter a password. Simply type alpine and press ENTER

Now you are connected in SSH.

Since 1.1.3, all the Apps are executed as mobile user from Springboard and because we are logged as root in the SSH session, we need to switch to mobile user.
Type this command and press ENTER.

Quote:
su mobile
You'll notice in the SSH session window, the # will change to $.

# = root
$ = mobile

To exit the mobile level simply type exit and press ENTER.
It will go back to the root level.

Now if you want to execute any app you must know its exact name (Case Sensitive).
You can use the "TAB" key to auto-complete the path/name.

For example, if you type:
Quote:
cd /A
and press TAB. It will complete to
Quote:
cd /Applications.
Type the following command:

Quote:
cd /Applications/X
X must be changed to the first letter of your app name.
All the applications name starts with a Capital Letter.

When you press tab, if you have several apps starting with the same letter, you'll be proposed several choices. Just complete the entry by the app name you want to execute and press ENTER. (don't forget the .app/ at the end of the name)

Now that you are in the application's package, you must execute its binary.

type this command and press ENTER:

Quote:
./Xxxxxxx
Xxxxxxx must be changed to the same name of your application package name except you don't need to add .app/ at the end.

Your app is now started and you should see several lines right after the last command you typed.

You can copy/paste them in your thread to let people help you.

Use CTRL + C keys to quit the application you started.

Most of the time the report messages are obvious enough to understand the source of the problem.

Since i'm checking every time i install/upgrade a 3rd party application, my phone never crash/freeze/hang or behave abnormally. I just don't keep apps that will report problems that can't be solved.

Last edited by Former Bender; 06-11-2008 at 07:05 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-30-2008, 05:03 PM
spyboy's Avatar
spyboy
Status: Offline
Senior Member
 
Join Date: Dec 2007
Posts: 454
Rep Power: 25
spyboy is on a distinguished road
Default

hmmm interesting
Running apps from Mobileterminal (no ssh) will obviously do the same thing (u can skip a few steps if u got it). that's how I was able to fix customize.

Last edited by spyboy; 06-13-2008 at 02:27 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-08-2008, 12:06 PM
lordofdaflies's Avatar
lordofdaflies
Status: Offline
Respected Member
 
Join Date: Dec 2007
Location: INDIA
Posts: 1,097
Rep Power: 69
lordofdaflies is a jewel in the roughlordofdaflies is a jewel in the roughlordofdaflies is a jewel in the rough
Default

Quote:
Originally Posted by XianLi View Post
First, turn off the Auto-Lock feature in Settings > General > Auto-Lock.
can i use insomnia or iAwake2??
__________________
:iphone: iPhone 8GB 1.0.2 OTB --> 2.1 Pwnage Tool
MacBook Pro OS X SNOW Leopard and Sony Vaio Windows XP :hack:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 06-08-2008, 10:07 PM
JSN1's Avatar
JSN1
Status: Offline
Developer
 
Join Date: Jul 2007
Location: localhost
Posts: 703
Rep Power: 48
JSN1 has a spectacular aura aboutJSN1 has a spectacular aura aboutJSN1 has a spectacular aura about
Default

Thanks XianLi!

Very Useful!
__________________
Did I help? You can help me buy a new iMac !!

PLEASE DONATE!!!

Your reputation to this post is appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 06-10-2008, 11:15 PM
OpTioNiGhT
Status: Offline
Junior Member
 
Join Date: Oct 2007
Posts: 22
Rep Power: 0
OpTioNiGhT is on a distinguished road
Default exit app???

How do I exit the app after running it? The ssh terminal window is not longer at the command line and the iPhone home button doesn't work!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 06-11-2008, 07:01 AM
Former Bender's Avatar
Former Bender
Status: Offline
Guest
 
Join Date: Nov 1970
Posts: 3,501
Rep Power: 0
Former Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud of
Default

you should have pressed CRTL + C before exiting the SSH session.

SSH again in the Phone and type top to see what is your application name.

Then CTRL + C to quit top and after you must use killall yourappname to close your app.

Last edited by Former Bender; 06-14-2008 at 06:50 AM. Reason: typo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 06-13-2008, 12:59 AM
MCHuertas's Avatar
MCHuertas
Status: Offline
Member
 
Join Date: Feb 2008
Posts: 34
Rep Power: 0
MCHuertas is on a distinguished road
Default

In 1.1.4 iChess doesn´t save games.

I tried this method, but doesn´t work with this app.

When I start the app (./iChess) in putty, doesn´t appear any lines (but in the iphone the app start, and with contrl+C it stops).

Any more ideas?

Thanks for all

(I always write the same: Sorry for my bad english, I´m Spanish)
__________________
Iphone: 8gb [1.1.2. OTB]
Firmware: 1.1.4 (full operative)
Bootloader: 4.6
Baseband: 04.04.05_g
Pwned iPhone -> SOLD

Now:
Iphone 3g: 16gb [2.0 OTB]
No unlock or jailbreak, using with contract
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 06-14-2008, 06:51 AM
Former Bender's Avatar
Former Bender
Status: Offline
Guest
 
Join Date: Nov 1970
Posts: 3,501
Rep Power: 0
Former Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud ofFormer Bender has much to be proud of
Default

You must check your app permissions/ownership

It may try to save in /var/root/ instead of /var/mobile/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 06-16-2008, 05:52 AM
DJ McG's Avatar
DJ McG
Status: Offline
Respected Member
 
Join Date: Dec 2007
Location: United States
Posts: 809
Rep Power: 54
DJ McG is a jewel in the roughDJ McG is a jewel in the roughDJ McG is a jewel in the rough
Default

I will have to try this with Customize 2.0, since it always crashes for me.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 06-17-2008, 12:38 PM
SR_Eyes
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
SR_Eyes is on a distinguished road
Default

Will the above commands fix the camera not saving photos while vWallpaper is installed but disabled?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 01:03 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105