1. Are you ready for the Galaxy S20? Here is everything we know so far!

Homemade Install scripts fail :(

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

  1. truehybridx

    truehybridx Newbie
    Thread Starter

    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):
    3. ui_print("");
    4. ui_print("Nexus 7 Test Script");
    5. ui_print("");
    6. ui_print("");
    8. ui_print("Yadada");
    9. ui_print("Some more text");
    Nexus 7 Running 4.1.2 with CWM
    Any ideas?

    1. Download the Forums for Android™ app!


  2. azoller1

    azoller1 Android Expert

    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!

    In order to do anything useful, I would agree. However, I would think it should still display text
  4. truehybridx

    truehybridx Newbie
    Thread Starter

    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!

    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

    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