Join Today
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
Like Tree8Likes

Thread: [APP] RunScript - PKG app that execute script code at boot-time

  1. #1
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    298

    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).

    http://www.motorolafans.com/forums/a...tml#post160639

    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 --> http://www.motorolafans.com/forums/a...placement.html.
    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 Attached Files
    Last edited by intermario_gr; 09-30-2008 at 02:22 PM. Reason: Uploaded an updated version that fixes an issue

  2. #2
    Join Date
    Mar 2008
    Location
    God's own Country, INDIA.
    Posts
    370

    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).

  3. #3
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    298

    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 Attached Files
    Last edited by intermario_gr; 09-26-2008 at 08:08 PM.
    lewrydiboys and Spidey like this.

  4. #4
    Join Date
    Sep 2007
    Location
    Cape Town, South Africa
    Posts
    622

    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!

  5. #5
    Join Date
    Mar 2008
    Location
    God's own Country, INDIA.
    Posts
    370

    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.

  6. #6
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    298

    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 05:46 PM.

  7. #7
    Join Date
    Aug 2008
    Location
    Colombia
    Posts
    13

    Default

    I do not worked

  8. #8
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    298

    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.

  9. #9
    Join Date
    Sep 2007
    Location
    Cape Town, South Africa
    Posts
    622

    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.

  10. #10
    Join Date
    Mar 2008
    Location
    God's own Country, INDIA.
    Posts
    370

    Default

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

    And your script also ran.

    Thanks buddy.


 
+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. [APP] PKG script for Volume fix (increase) for A1200
    By drfun in forum A1200 Applications
    Replies: 311
    Last Post: 01-29-2010, 10:56 AM
  2. APP: NewMenu.pkg - Creates new Categories in App Manager
    By dellsonic in forum E6 Applications
    Replies: 32
    Last Post: 02-13-2009, 12:41 PM
  3. [APP] PKG script for changing all 4 shortcuts on Home screen
    By vikram in forum A1200 Applications
    Replies: 13
    Last Post: 04-07-2008, 06:51 AM
  4. APP: Say Time.pkg
    By dellsonic in forum E6 General Chat
    Replies: 25
    Last Post: 03-06-2008, 04:40 PM
  5. how to execute a script from a database douring start up?
    By ycyas in forum E680 General Chat
    Replies: 14
    Last Post: 06-22-2005, 06:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1