Sunday, February 24, 2013

How to run applications in background without backgrounder

I have been searching for a backgrounder alternative ever since jailbreak for ios6 came out. As there seems to be nothing existing, i did a little research and then started doing random searches on my iPhone. Luck was on my side as i found exactly what i was looking for.

This guide will walk you through a manual process to update configuration files using my particular example but i am going to make an assumption that this will also apply for other apps as well. I recommend backing up your iphone if you are not comfortable with any of the steps before beginning.

First, there are some prerequisites:
- iPhone (this should apply for any iPhone model)
- iOS 6 (this should apply for any sub version)
- jailbroken phone using Evasi0n
- iFile (search on cydia)

Once you have the prerequisites in place, its time to begin.
For my particular example, i play a game called Kingdom Conquest. This is an online game with active participation and communication with your online mates. But this game can take ages to load and when battling in game, time is of the essence, it is difficult to switch between applications knowing you have to reload the game every time you go back to it.

First, you need to locate the game on your iPhone. Launch iFile and use the search bar (may be a paid option) to find the application you are looking for. For my case, i searched for "kingdom". A long list of files should display. Open them up one by one until you find the location of the application you are looking for. This should be inside /var/mobile/Applications/[long string id]/[Application Name]. I will refer to this location as the application directory.




Inside the application directory, scroll down until you find the file Info.plist. Open this file and put the file in edit mode. Use the search bar to find the parameter, "UIApplicationExitsOnSuspend". There will be a key right below that will be set to true. Change this parameter to "False" and save the file. Example below.




That is it. Make sure the application is not running and give it a try. When switching between applications, it should stay running in the background.

Note: Using the home button to open another application will stop the application from running in the background.

- Posted using BlogPress from my iPhone

Location:Hong Kong

Wednesday, January 25, 2012

KakaoTalk Recovery to new iPhone

The process to recover KakoTalk is very similar to Awesome Note.  For more details about Awesome Note recovery, please refer to my previous post here

This is the third article in this series.  Hopefully, the last too.  But I will continue one by one until all my important apps with data stored locally are restored.

So I had a look at the system to see if I could find the KakaoTalk data.  And after a quick search found the files I was looking for. The process is similar to the previous restores, but only the directories and restore files are different. 

Requirements:

  • Jailbroken iPhones
  • OpenSSH on both old and new Jailbroken iPhones
  • KakaoTalk application installed on both iPhones
Backup Location:
  • Appears to be random but within a folder in /User/Applications/ directory.
Steps to recover your  KakaoTalk: 
  1. First, I would suggest to login to KakaoTalk on your old phone and update all the chats you have open.  
  2. Then close KakaoTalk on your old iPhone and new iPhone and make sure it is not running in the background.  If it is, double tap your home button and hold down any backgrounded app for 2 seconds to allow you to close the app.  
  3. Get the IP Address from your iPhones:  Settings => Wi-Fi => Click on Blue arrow on your Wi-Fi access point => DHCP => IP Address
  4. SSH to your old iPhone:
    • ssh root@[old iPhone IP Address]
  5. Locate your Awesome Note directory: 
    • find / -name '*kakao*' -print
    • The output should display /private/var/mobile/Applications/[kakao Directory]/Library/KakaoTalk.app
  6. Create a container (otherwise known as zip) of the application data.  This includes the preferences. 
    • tar cvf /private/var/mobile/Applications/[kakao Directory]/KakaoLibrary.tar /private/var/mobile/Applications/[kakao Directory]/Library
    • tar cvf /private/var/mobile/Applications/[kakao Directory]/KakaoDocuments.tar /private/var/mobile/Applications/[kakao Directory]/Documents
  7. Copy the files from old iPhone:
    • scp root@[old iPhone IP Address]:/private/var/mobile/Applications/[aNote Directory]/KakaoLibrary.tar .
    • scp root@[old iPhone IP Address]:/private/var/mobile/Applications/[aNote Directory]/KakaoDocuments.tar .
  8. SSH to your new iPhone:  
    • ssh root@[new iPhone IP Address]
  9. Locate your Awesome Note directory: 
    • find / -name '*kakao*' -print
    • The output should display /private/var/mobile/Applications/[kakao Directory]/Library/KakaoTalk.app
  10. Copy the files to your new iPhone: 
    • scp KakaoLibrary.tar root@[new iPhone IP Address]:/private/var/mobile/Applications/[kakao Directory]/KakaoLibrary.tar
    • scp KakaoDocuments.tar root@[new iPhone IP Address]:/private/var/mobile/Applications/[kakao Directory]/KakaoDocuments.tar
  11. Backup the original data directory: 
    • mv /private/var/mobile/Applications/[kakao Directory]/Library /private/var/mobile/Applications/[kakao Directory]/Library.old
    • mv /private/var/mobile/Applications/[kakao Directory]/Documents /private/var/mobile/Applications/[kakao Directory]/Documents.old 
  12. Unpack the container file: 
    • tar xvf /private/var/mobile/Applications/[kakao Directory]/KakaoLibrary.tar
    • tar xvf /private/var/mobile/Applications/[kakao Directory]/KakaoDocuments.tar
  13. Launch Kakao on your new iPhone and the application will optimize the data that you just imported and then ask to re-register your phone. 
  14. Done
Once done, you end up with all the settings from your previous iPhone including all the images and chats you had on your old iPhone.  

Let me know if you need clarification.  And as always, please comment if this procedure was useful for you.

Awesome Note Recovery to new iPhone

Restoring your iPhone manually sure is a pain.  But if you want to avoid any conflicts or issues with restoring backups to a new iPhone, you really have no choice.

I previously wrote a post about iBlacklist and this is the next in the series.  I will continue one by one until all my important apps with data stored locally are restored.

So I had a look at the system to see if I could find the Awesome Notes data.  And after a quick search found the files I was looking for. It was not quite as simple but was able to find the info I was looking for without too many difficulties.

Requirements:
  • Jailbroken iPhones
  • OpenSSH on both old and new Jailbroken iPhones
  • Awesome Note application installed on both iPhones
Backup Location:
  • Appears to be random but within a folder in /User/Applications/ directory.
Steps to recover your  Awesome Note: 
  1. Close Awesome Note on your new iPhone and make sure it is not running in the background.  If it is, double tap your home button and hold down any backgrounded app for 2 seconds to allow you to close the app.  
  2. Get the IP Address from your iPhones:  Settings => Wi-Fi => Click on Blue arrow on your Wi-Fi access point => DHCP => IP Address
  3. SSH to your old iPhone:
    • ssh root@[old iPhone IP Address]
  4. Locate your Awesome Note directory: 
    • find / -name '*aNote*' -print
    • The output should display /private/var/mobile/Applications/[aNote Directory]/Library/aNoteFolder
  5. Create a container (otherwise known as zip) of the application data.  This includes the preferences. 
    • tar cvf /private/var/mobile/Applications/[aNote Directory]/aNoteLibrary.tar /private/var/mobile/Applications/[aNote Directory]/Library
  6. Copy the files from old iPhone:
    • scp root@[old iPhone IP Address]:/private/var/mobile/Applications/[aNote Directory]/aNoteLibrary.tar .
  7. SSH to your new iPhone:  
    • ssh root@[new iPhone IP Address]
  8. Locate your Awesome Note directory: 
    • find / -name '*aNote*' -print
    • The output should display /private/var/mobile/Applications/[aNote Directory]/Library/aNoteFolder
  9. Copy the files to your new iPhone: 
    • scp aNoteLibrary.tar root@[new iPhone IP Address]:/private/var/mobile/Applications/[aNote Directory]/aNoteLibrary.tar
  10. Backup the original data directory: 
    • mv /private/var/mobile/Applications/[aNote Directory]/Library /private/var/mobile/Applications/[aNote Directory]/Library.old
  11. Unpack the container file: 
    • tar xvf /private/var/mobile/Applications/[aNote Directory]/aNoteLibrary.tar
  12. Launch Awesome Note on your new iPhone and confirm that everything is there. 
  13. Reset your passcodes for any folders that were passcode protected.  I am not sure why these settings were not carried over. 
  14. Done
Once done, you end up with all the settings from your previous phones including all the images and maps you had on your old iPhone.  

Let me know if you need clarification.  And as always, please comment if this procedure was useful for you.