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

Root Anyone familiar with writing update-scripts?

Discussion in 'Android Devices' started by NYCHitman1, Jun 15, 2011.

  1. NYCHitman1

    NYCHitman1 Gun for Hire
    Thread Starter
    Rank:
    None
    Points:
    353
    Posts:
    6,538
    Joined:
    Oct 16, 2009

    Oct 16, 2009
    6,538
    1,761
    353
    Male
    EUSA
    Long Island, NY
    Title says it all. I'm trying to flash the HTC_IME keyboard for the MikG 1.04 ROM but unfortunately the zip doesn't have the script file sooooooo I'm searching to see if someone can do it for me.

    It would be greatly appreciated!
     

    Attached Files:


    Advertisement

  2. Granite1

    Granite1 Zercron Encrusted Tweezer
    Rank:
    None
    Points:
    833
    Posts:
    7,159
    Joined:
    Dec 27, 2010

    Dec 27, 2010
    7,159
    7,180
    833
    Male
    Highway Construction Inspection
    Pittsburgh, PA
    If you don't get any info I'd send aamikam over at XDA a pm and see if he can hook you up. I know a little about them for themeing, but not for what you're trying to do. :(
     
  3. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    easiest ways are to use titanium to create an update script, yes it will be for titanium but just pull out titanium apk and replace with what you want. Then sign it with auto sign tool and flash, or toggle signature off...

    You can also use someone elses script that is pushing an app to /system and replace the apk accordingly. no need to sign its already signed.

    I use 7 zip to manage archives because it you can just go up a folder and it will ask yo auto update the archive.

    Id make you one in half a sec but im at work right now and cannot file share.
     
  4. Granite1

    Granite1 Zercron Encrusted Tweezer
    Rank:
    None
    Points:
    833
    Posts:
    7,159
    Joined:
    Dec 27, 2010

    Dec 27, 2010
    7,159
    7,180
    833
    Male
    Highway Construction Inspection
    Pittsburgh, PA
    So in theory I could take a theme update, swap out my files for the ones in the original, then resign with 7 zip right?
    If that's it, I'm golden!
    I was making it a lot harder on myself.
     
  5. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    sort of depends on where it was flashing to...look in the update script it will tell you what its doing. It may be removing the app thats there. You have to be careful a bit i guess. go into meta inf/com/google/android and look at the update or updater script for anything, i just looked at one for a swype keyboard for instance, in his (chogardjr) it is mount system, extract package, unmount system., simple thats it. if i was trying to flash an app to system without replacing what was there this would work with anything...you follow...?
     
    Granite1 likes this.
  6. NYCHitman1

    NYCHitman1 Gun for Hire
    Thread Starter
    Rank:
    None
    Points:
    353
    Posts:
    6,538
    Joined:
    Oct 16, 2009

    Oct 16, 2009
    6,538
    1,761
    353
    Male
    EUSA
    Long Island, NY
    Worked like a charm, thanks!
     
  7. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    the script just tells recovery what to put (your /system/app files you are replacing) and where to put them (mount /system). Simple stuff, mount, unmount, cp, mv, delete recursive, etc...

    now open up a more complicated update script like one used to flash a rom...you wouldnt want to use that to flash an app, it starts simply enough by mounting system and unpacking and mounting data and unpacking then it starts creating symlinks and setting file permissions for everything. Unpacks your boot.img, unmounts, and bam its done flashing.

    NYC was just trying to flash an app, though in fairness the script to flash a theme wouldnt look much different as it will just unpack it from your /system/framework to /system so you could just use a simple update script. You can also write your own after you pull enough apart it will become second nature. If you are trying to create one for others you may want to do things like mount data and delete recursive for the dalvik cache then unmount data then mount system and unpackage then remount.

    Basically just pull a bunch apart and look at them, you know what they do to your phone, read the script and see how they made recovery do that to your phone...
     
  8. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    Glad you got it bud.

    you make one or just use someone elses script? just curious which was easier for you in case someone else asks.
     
  9. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    say someone themed kings r6, you could take his theme, swap his files out for yours, then autosign (i use autosign tool myself) then flash and yes it will work.

    What i prefer to do is pull the rom apart before I flash it and swap out my pngs and framwork and apks etc, then update and flash the rom, it will be the way you want on the first flash.
     
    Granite1 likes this.
  10. Granite1

    Granite1 Zercron Encrusted Tweezer
    Rank:
    None
    Points:
    833
    Posts:
    7,159
    Joined:
    Dec 27, 2010

    Dec 27, 2010
    7,159
    7,180
    833
    Male
    Highway Construction Inspection
    Pittsburgh, PA
    I've been working on doing the full rom update. I was working on Kings froyo roms, but now I'm hooked on MikG. I asked and aamikam gave me the thumbs up on themeing his stuff too! So now I'm back to square 1.
    I might pull apart one of the skins and see how they work, and run it that way. We'll see. :)
     
  11. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC

    Cool bro, I'll test it when ready :)
     
Tags:

Share This Page

Loading...