The Motorola Development Community


Go Back   MotorolaFans.com Forums > Motorola EZX Phones > A1200 General Chat > A1200 Applications
Notices

A1200 Applications A1200 complied application

Reply

MotoFans MODR

intermario_gr's Avatar

Join Date: Jul 2008
Posts: 200
Thanks: 20
Thanked 31 Times in 23 Posts
Location: Greece

Quote  
#1
09-26-2008
Default [APP] RunScript - PKG app that execute script code at boot-time

RunScript v1.0 - by intermario_gr

--- For those of you who don't have an autorun-capable firmware installed on their phone ---

Here is my solution...

This is a PKG application of mine that's meant to execute a specific script when your phone starts up. It is supposed to be used in conjunction with yan0's startup manager (thread link below). Yan0's app only makes PKG applications run at boot-time. If you use it with my app, you're able to execute script code as well (just as you would from the console).

[APP]yan0_start_V0.3.mpkg

On with the instructions...
  1. Install on your phone, preferably on your MMC
  2. Install yan0's startup manager
  3. Locate the autorun script (autorun.lin) in the folder where RunScript was deployed
  4. Add script code to this file using a text editor that DOESN'T insert its own special characters (definitely not Notepad!)
  5. Run yan0's startup manager and check RunScript along with any other PKG applications that you might want to get started when your phone boots.

You're ready! Now each time your phone boots, both selected apps and script code will be executed. No need to reflash your phone to a special autorun-enabled firmware!

NOTES:
  1. You can edit the script file whenever you wish.
  2. Try PSPad editor or Crimson Editor to edit the script. If you want to edit it straight from the phone, try this one --> Editor, notepad replacement.
  3. Each time RunScript is executed, it creates a debug log file in your phone's memory (/tmp/runscr.log). If you're unsure if it actually RUNS the autorun script, first delete the file mentioned above, run RunScript and check again if the file is present.

This is my very first attempt to make an application.
It is unbelievably simple but - to me - unbelievably useful.
Please hit the "Thank you!" button if you feel the same way

Many thanks to yan0 for the startup manager he's created.. Without him, I would've never created this!
Attached Files
File Type: zip RunScript.pkg.zip (3.1 KB, 310 views)

Last edited by intermario_gr; 09-30-2008 at 03:22 PM. Reason: Uploaded an updated version that fixes an issue
Reply With Quote


User Information
Current Phone: Motorola A1200e
Firmware: R541_G_11.52.12R_F4
Location: Greece

intermario_gr is online nowReport Post
The Following 5 Users Say Thank You to intermario_gr For This Useful Post:
gpxl (11-28-2008), lewrydiboys (1 Week Ago), novinsab (10-01-2008), Spidey (09-26-2008), xalibas (11-29-2008)
MotoFans XPRT

Spidey's Avatar

Join Date: Mar 2008
Posts: 344
Thanks: 110
Thanked 46 Times in 36 Posts
Location: God's own Country, INDIA.

Quote  
#2
09-26-2008
Default

That's great.

Thanks man. I was searching something like this only.

Won't it be more helpful if the debug log could be in the card (or in the runsrc folder itself).
__________________
When everything is coming your way, you're in the wrong lane

http://techiethakkar.blogspot.com
Reply With Quote


User Information
Current Phone: ROKR E6, Snoopy S9
Location: God's own Country, INDIA.

Spidey is offlineReport Post
MotoFans MODR

intermario_gr's Avatar

Join Date: Jul 2008
Posts: 200
Thanks: 20
Thanked 31 Times in 23 Posts
Location: Greece

Quote  
#3
09-26-2008
Default

Quote:
Originally Posted by thakkarnimesh View Post
Won't it be more helpful if the debug log could be in the card (or in the runsrc folder itself).
No problem, mate, no trouble at all. Here's a slightly modified version that creates the logfile in the memory card, in the folder where RunScript was installed (/mmc/mmca1/.system/QTDownLoad/RunScript). Uninstall previous version and try this one. Let me know should you have any trouble!
Attached Files
File Type: zip RunScript (log on MMC).pkg.zip (3.1 KB, 189 views)

Last edited by intermario_gr; 09-26-2008 at 09:08 PM.
Reply With Quote


User Information
Current Phone: Motorola A1200e
Firmware: R541_G_11.52.12R_F4
Location: Greece

intermario_gr is online nowReport Post
The Following 2 Users Say Thank You to intermario_gr For This Useful Post:
lewrydiboys (1 Week Ago), Spidey (09-26-2008)
MotoFans XPRT

Casper's Avatar

Join Date: Sep 2007
Posts: 356
Thanks: 1
Thanked 17 Times in 17 Posts
Location: Cape Town, South Africa

Send a message via MSN to Casper Send a message via Skype™ to Casper
Quote  
#4
09-27-2008
Default

Wow, this is super! gna test it out, some hints on scripts i could run to maybe give me a refreshed idea? thanks man!
Reply With Quote


User Information
Current Phone: Motorola E398, Motorola A1200(r), HTC (P3700) Touch Diamond
Firmware: Generic 25P
Location: Cape Town, South Africa

Casper is online nowReport Post
MotoFans XPRT

Spidey's Avatar

Join Date: Mar 2008
Posts: 344
Thanks: 110
Thanked 46 Times in 36 Posts
Location: God's own Country, INDIA.

Quote  
#5
09-27-2008
Default

I wish I could use it but currently I'm unable to start Yan0's start program. I don't know what's the problem.
__________________
When everything is coming your way, you're in the wrong lane

http://techiethakkar.blogspot.com
Reply With Quote


User Information
Current Phone: ROKR E6, Snoopy S9
Location: God's own Country, INDIA.

Spidey is offlineReport Post
MotoFans MODR

intermario_gr's Avatar

Join Date: Jul 2008
Posts: 200
Thanks: 20
Thanked 31 Times in 23 Posts
Location: Greece

Quote  
#6
09-27-2008
Default

Quote:
Originally Posted by danielbrits View Post
Wow, this is super! gna test it out, some hints on scripts i could run to maybe give me a refreshed idea? thanks man!
Personally, I use it in order to make FoxAlarm (this alarm rocks!) function correctly. You have to execute a mount command every time you power on your phone so that FoxAlarm integrates properly with the phone's default alarm function. That's only just for now, I'm sure it will come in handy later on. If not required by other applications, some file works (copying, uncompressing etc) can be done easily this way without needing a special PKG app to do the job. PS. I'd appreciate it if you thanked me by pressing the "Thank you!" button too!

Quote:
Originally Posted by thakkarnimesh View Post
I wish I could use it but currently I'm unable to start Yan0's start program. I don't know what's the problem.
Make sure you don't change a thing once you install it (including the app's name)! That's right, I'm only mentioning it because for some strange reason, if I change its original name (which strangely appears as 4 squares on my phone) to anything else, it won't work! Other than that, I can only imagine it's your firmware's fault or it's the super utility you're using (I use SmartAsst).

Last edited by intermario_gr; 09-27-2008 at 06:46 PM.
Reply With Quote


User Information
Current Phone: Motorola A1200e
Firmware: R541_G_11.52.12R_F4
Location: Greece

intermario_gr is online nowReport Post
MotoFans NWBE

Join Date: Aug 2008
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Location: Colombia

Quote  
#7
09-27-2008
Default

I do not worked
Reply With Quote


User Information
Current Phone: a1200 e6 a1600
Location: Colombia

latino18hvm is offlineReport Post
MotoFans MODR

intermario_gr's Avatar

Join Date: Jul 2008
Posts: 200
Thanks: 20
Thanked 31 Times in 23 Posts
Location: Greece

Quote  
#8
09-28-2008
Default

Quote:
Originally Posted by latino18hvm View Post
I do not worked
Most probably, your phone can't run *.lin scripts. If you use SmartAssistant though, it can.
Reply With Quote


User Information
Current Phone: Motorola A1200e
Firmware: R541_G_11.52.12R_F4
Location: Greece

intermario_gr is online nowReport Post
MotoFans XPRT

Casper's Avatar

Join Date: Sep 2007
Posts: 356
Thanks: 1
Thanked 17 Times in 17 Posts
Location: Cape Town, South Africa

Send a message via MSN to Casper Send a message via Skype™ to Casper
Quote  
#9
09-28-2008
Default

I would click the "thank you" button, but I can't find it - I'm using my cell's browser. Oh yes, that yanO's startup is strange - I also tried changing the name a few times and it then refuses to run.
Reply With Quote


User Information
Current Phone: Motorola E398, Motorola A1200(r), HTC (P3700) Touch Diamond
Firmware: Generic 25P
Location: Cape Town, South Africa

Casper is online nowReport Post
MotoFans XPRT

Spidey's Avatar

Join Date: Mar 2008
Posts: 344
Thanks: 110
Thanked 46 Times in 36 Posts
Location: God's own Country, INDIA.

Quote  
#10
09-28-2008
Default

@intermario: Yes. It worked after installing it thru SmartAsst.

And your script also ran.

Thanks buddy.
__________________
When everything is coming your way, you're in the wrong lane

http://techiethakkar.blogspot.com
Reply With Quote


User Information
Current Phone: ROKR E6, Snoopy S9
Location: God's own Country, INDIA.

Spidey is offlineReport Post
Reply

Tags
app, autorun, boottime, code, execute, pkg, runscript, script

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[APP] PKG script for changing all 4 shortcuts on Home screen vikram A1200 Applications 13 04-07-2008 07:51 AM
APP: Say Time.pkg dellsonic E6 General Chat 25 03-06-2008 04:40 PM
APP: NewMenu.pkg - Creates new Categories in App Manager dellsonic E6 Applications 30 02-14-2008 01:35 PM
[APP] PKG script for Volume fix (increase) for A1200 drfun A1200 Applications 308 02-09-2008 07:07 AM
how to execute a script from a database douring start up? ycyas E680 General Chat 14 06-22-2005 07:52 AM


All times are GMT. The time now is 02:14 AM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.