Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Hatman41
Old
#1  
Hatman41's Avatar
Senior Member - OP
Thanks Meter 134
Posts: 1,411
Join Date: Jun 2010
Location: Old Hickory

 
DONATE TO ME
Default Updater-script

I put together a theme that I want to be able to install on my phone. Issue is I am not 100% what updater-script to use nor how to have it setup so that it will put the files in the correct place...do I have to have a command to delete the .apk files that I am theming? Any help would be appreciated. I have attached my file. I am getting a status 6 error so I know that it cannot read something. Not sure what is wrong.
Attached Files
File Type: zip updater-script.zip - [Click for QR Code] (433 Bytes, 308 views)
---Current---

Phone: Rooted Samsung Galaxy Nexus Running BAMF ROM
Tablet: Rooted Samsung Nexus 10 Running AOKP PUB
 
HeyItsLou
Old
#2  
HeyItsLou's Avatar
Senior Member
Thanks Meter 120
Posts: 918
Join Date: Jun 2010

 
DONATE TO ME
Quote:
Originally Posted by Hatman41 View Post
I put together a theme that I want to be able to install on my phone. Issue is I am not 100% what updater-script to use nor how to have it setup so that it will put the files in the correct place...do I have to have a command to delete the .apk files that I am theming? Any help would be appreciated. I have attached my file. I am getting a status 6 error so I know that it cannot read something. Not sure what is wrong.
I use update-scripts mainly because if you do something wrong in the script it tells you what line you failed on and you can fix it. Also it's just what I learned on and what I'm comfortable with. If you're flashing a theme good rule of thumb is to make sure you wipe the dalvik cache you can do this with your script.

If you're working with windows don't use note pad it doesn't format the script properly. Try notepad++ if you're on linux just use gedit mac text wrangler.

Make sure you have the correct directory structure set up ie
META-INF/com/google/android/update-script then system/app and or framework.

Here's a simple script that will do the trick for you.....

Code:
show_progress 0.1 0

delete_recursive DATA:dalvik-cache

copy_dir PACKAGE:system SYSTEM:

show_progress 0.2 100
Hope this helps.
 
Hatman41
Old
#3  
Hatman41's Avatar
Senior Member - OP
Thanks Meter 134
Posts: 1,411
Join Date: Jun 2010
Location: Old Hickory

 
DONATE TO ME
Thanks Lou, but I am still getting the error Status 6...that means that it cannot read the file...I am using notepad ++ to edit it. I used only what you provided in the file and the path to the file is Themename\META-INF\com\google\android I also have an update-binary in that dir...do I delete that file?
---Current---

Phone: Rooted Samsung Galaxy Nexus Running BAMF ROM
Tablet: Rooted Samsung Nexus 10 Running AOKP PUB
 
touchpro247
Old
#4  
touchpro247's Avatar
Senior Member
Thanks Meter 273
Posts: 1,199
Join Date: Apr 2009

 
DONATE TO ME
Try this one.
Attached Files
File Type: zip updater-script.zip - [Click for QR Code] (149.3 KB, 241 views)
 
Hatman41
Old
#5  
Hatman41's Avatar
Senior Member - OP
Thanks Meter 134
Posts: 1,411
Join Date: Jun 2010
Location: Old Hickory

 
DONATE TO ME
Quote:
Originally Posted by touchpro247 View Post
Try this one.
I did not get any error this time and it said that it installed but when I boots up nothing was actually installed.
---Current---

Phone: Rooted Samsung Galaxy Nexus Running BAMF ROM
Tablet: Rooted Samsung Nexus 10 Running AOKP PUB
 
HeyItsLou
Old
#6  
HeyItsLou's Avatar
Senior Member
Thanks Meter 120
Posts: 918
Join Date: Jun 2010

 
DONATE TO ME
Quote:
Originally Posted by Hatman41 View Post
I did not get any error this time and it said that it installed but when I boots up nothing was actually installed.
You don't need an update-binary if you're using an update-script. When you zip up your folders make sure you only have at minimum to folders on your desktop that your compressing the META-INF and it's sub directories and the system folder and it's sub directories don't put those inside anything just select and compress them. Once they're zipped make sure to sign the folder.

If the script didn't give you any errors it sounds like you may have put the META-INF and the system folders inside another folder before you zipped it which may be why nothing installed.
 
jermaine151
Old
#7  
jermaine151's Avatar
Senior Member
Thanks Meter 2264
Posts: 3,599
Join Date: Jun 2010

 
DONATE TO ME
Quote:
Originally Posted by HeyItsLou View Post
I use update-scripts mainly because if you do something wrong in the script it tells you what line you failed on and you can fix it. Also it's just what I learned on and what I'm comfortable with. If you're flashing a theme good rule of thumb is to make sure you wipe the dalvik cache you can do this with your script.

If you're working with windows don't use note pad it doesn't format the script properly. Try notepad++ if you're on linux just use gedit mac text wrangler.

Make sure you have the correct directory structure set up ie
META-INF/com/google/android/update-script then system/app and or framework.

Here's a simple script that will do the trick for you.....

Code:
show_progress 0.1 0

delete_recursive DATA:dalvik-cache

copy_dir PACKAGE:system SYSTEM:

show_progress 0.2 100
Hope this helps.
+1 I had the error 6 when I made one in notepad and switched to notepadd++. I think I also had to stop using windows explorer to copy it to my phone, but rather adb pushed it. Windows is kinda quirky like that, sometimes.
You can find me @jdlogan151
 
Hatman41
Old
(Last edited by Hatman41; 5th November 2010 at 02:02 PM.)
#8  
Hatman41's Avatar
Senior Member - OP
Thanks Meter 134
Posts: 1,411
Join Date: Jun 2010
Location: Old Hickory

 
DONATE TO ME
Quote:
Originally Posted by HeyItsLou View Post
You don't need an update-binary if you're using an update-script. When you zip up your folders make sure you only have at minimum to folders on your desktop that your compressing the META-INF and it's sub directories and the system folder and it's sub directories don't put those inside anything just select and compress them. Once they're zipped make sure to sign the folder.

If the script didn't give you any errors it sounds like you may have put the META-INF and the system folders inside another folder before you zipped it which may be why nothing installed.
Ok so I took both the META-INF folder and the system folder and moved them both to the root of C and then I zipped both and then signed the zip...now it does nothing...I go into recovery....then I select the zip file and the screen just flashes and nothing happens.

If you want to see what I have done you can get the theme file here. This is for SkyRaider 3.3.3 with the Ucommon pack and all credit for the .png files goes to RUJELUS22, Riptide9, Defitism, Jascias and of course to Ihtfp69 for making the ROM

Download --->> http://bit.ly/aGP66D
---Current---

Phone: Rooted Samsung Galaxy Nexus Running BAMF ROM
Tablet: Rooted Samsung Nexus 10 Running AOKP PUB
 
touchpro247
Old
#9  
touchpro247's Avatar
Senior Member
Thanks Meter 273
Posts: 1,199
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by Hatman41 View Post
I did not get any error this time and it said that it installed but when I boots up nothing was actually installed.
I'll try flashing your theme and let you know.
 
Hatman41
Old
#10  
Hatman41's Avatar
Senior Member - OP
Thanks Meter 134
Posts: 1,411
Join Date: Jun 2010
Location: Old Hickory

 
DONATE TO ME
Quote:
Originally Posted by touchpro247 View Post
I'll try flashing your theme and let you know.
Ok...i forgot to include that it is for the uncommon theme pack for SkyRaider 3.3.3 as it has a custom Rosie that is themed.
---Current---

Phone: Rooted Samsung Galaxy Nexus Running BAMF ROM
Tablet: Rooted Samsung Nexus 10 Running AOKP PUB

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more