• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Anyone familiar with writing update-scripts?

NYCHitman1

Gun for Hire
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!
 

Attachments

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!

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. :(
 
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.
 
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.
 
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...?
 
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...
 
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.

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


Cool bro, I'll test it when ready :)
 
Back
Top Bottom