1. Download our Official Android App: Forums for Android!

Root Homemade Install scripts fail :(

Discussion in 'Android Devices' started by truehybridx, Jan 12, 2013.

  1. truehybridx

    truehybridx Newbie
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    16
    Joined:
    Mar 1, 2012

    Mar 1, 2012
    16
    3
    36
    Ive been trying to make my own install zip, for use in CWM recovery.

    But it always fails with now real reason, it'll say
    Checking Update
    Installing Update
    Installation Aborted


    Even a seemingly simple script does that
    Code (Text):
    1.  
    2.  
    3. ui_print("");
    4. ui_print("Nexus 7 Test Script");
    5. ui_print("");
    6. ui_print("");
    7.  
    8. ui_print("Yadada");
    9. ui_print("Some more text");
    10.  
    Nexus 7 Running 4.1.2 with CWM 6.0.2.3
    Any ideas?
     

    Advertisement

  2. azoller1

    azoller1 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,074
    Joined:
    Jul 16, 2012

    Jul 16, 2012
    1,074
    643
    213
    Well it has to install something I'm pretty sure you can't just have a ui print line saying something you need just to install a simple text file or whatever
     
  3. palmtree5

    palmtree5 Sunny Vacation Supporter!
    Moderator
    Rank:
     #35
    Points:
    633
    Posts:
    4,580
    Joined:
    May 2, 2012

    May 2, 2012
    4,580
    3,498
    633
    Male
    Student
    USA
    In order to do anything useful, I would agree. However, I would think it should still display text
     
  4. truehybridx

    truehybridx Newbie
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    16
    Joined:
    Mar 1, 2012

    Mar 1, 2012
    16
    3
    36
    Well the reason i bring this up is i was trying to set up the BootUnlocker Script shown here http://forum.xda-developers.com/showthread.php?t=2068207

    But i cant even get the prints to come out first -_-

    I didnt want to ask over there yet in case i was doing something entirely wrong not related to their script at all, you know?

    UPDATE: ok well it does look like whatever txt editor i currently try screw with the script :(
     
  5. palmtree5

    palmtree5 Sunny Vacation Supporter!
    Moderator
    Rank:
     #35
    Points:
    633
    Posts:
    4,580
    Joined:
    May 2, 2012

    May 2, 2012
    4,580
    3,498
    633
    Male
    Student
    USA
    What editor are you using? If you're writing the script in Windows (particularly Notepad), make sure the updater-script has no file extension. Windows likes to append a default extension to files and that's my guess on what's wrong here
     
  6. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #10
    Points:
    2,138
    Posts:
    22,319
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,319
    23,814
    2,138
    Male
    space alien ;)
    Indy
    I had this same issue when I was testing my OTA Verifier app.

    If it is the same issue, it's most likely because you have a carriage-return and linefeed at the end of each line. The updater-binary will not like that.

    You need to make sure you've only got newlines (linefeeds) at the end of each line.

    If you have Unix / Linux, it's trivial to use tr or sed, etc. to remove them (the carriage returns):

    Linux Commando: Delete Windows/DOS carriage return characters from text files

    If you are on Windows, the easiest way might be to find a DOS version of the tr utility (lots out there) and then use this command format to remove the carriage returns:

    Code (Text):
    1. [B]tr -d '\r' < input.txt > output.txt[/B]
    Hope that helps.

    Cheers! :)
     

Share This Page

Loading...