ICS 9.4.2.13 - Deodexed System Dump - Asus Eee Pad Transformer Prime

Ok boys & girls...
This is a full system dump of the newest Ice Cream Sandwhich update, 9.4.2.11.1 9.4.2.13.
I did a full de-odex on the app & framework folders; everything except those damn Bluetooth and Dictionary .apks, which would not de-odex (so you'll still see the .odex file for them in the app folder).
Here's the fun part...
So I thought I'd give a few of the .apk files a whirl and try decompling. Yeah, there where errors left & right. Tried both the manual apktool way & the latest version of Apk Manager (now called Apk Multi-tool).
Turns out, after I did some research, that apktool (which Apk Manager also uses) has not been updated to decompile & recomplie ICS apk files.
So after some digging I found moded apktool files, installed them, installed new ICS framework from the system dump, on my pc, and BAM it worked!
Also, as I have said, I don't have my Prime yet, so I can't actually push these files, and make sure they work in "reality". So use at your own risk. They theme just fine on the computer though.
So first, before you plan on downloading a 278mb 154mb system dump that will be useless, you'll need to go here, grab the files in the OP and follow his directions:
http://forum.xda-developers.com/showthread.php?t=1427959
These files will allow you to decompile/recompile the ICS apks, and thus theme them in general.
UPDATED (2/9/2012)
Here are the links to the 9.4.2.13 De-odexed System Dump:
MediaFire (2 parts - sorry size limits):
Part 1: http://www.mediafire.com/?sesdx22ohuz469r
Part 2: http://www.mediafire.com/?h0vbh384c079dy3
or
My DropBox:
http://db.tt/roTk56o0
Also, I have yet to be able to recomplie the SystemUI.apk. It decomplies just fine, but recompile is a no go; I have some feelers out here now, trying to figure it out. Framework-res.apk decompiles/recompiles just fine.
Thanks go out to:
Noxious Ninja
indiscriminant
& stars2 from the Nexus thread
*Remember, I take no responsibility if this hard bricks, soft bricks, explodes, implodes, etc. your new tablet... you choose to install it.

I just noticed that update file was actually labelled 9.4.2.11.1. People have been able to flash it, though, which means it's signed and legit. No idea what the differences are from the OTA 9.4.2.11.

You are welcome!

Dropbox link is up... MediaFire to come later this afternoon when I get home.

How did you extract the blob file?
With the regular tool can't extract this blob.
Any help or direction?...
Thank you.
Sent from my Transformer TF101 using Tapatalk

EDIT: Updated with the appropriate info.
---
Alright, here's the details on the signed blob format.
The format looks like this:
Code:
#define SIGNED_MAGIC "-SIGNED-BY-SIGNBLOB-"
#define SIGNED_MAGIC_SIZE 20
typedef struct
{
unsigned char magic[SIGNED_MAGIC_SIZE];
uint32_t data_length;
uint32_t signature_length;
} signed_header_type;
The signing header totals 28 bytes.
The signing header is followed by data_length bytes which constitute the actual blob file.
The blob file is followed by signature_length bytes containing the signature.
All you have to do is strip off the extra data added by the signing tool and you will be able to unpack the blob.

Can someone upload only mms.apk from the ICS rom dump.
Thanks...

Updated OP with newest de-odexed system dump for you early bird themers out there.

trip007in said:
Can someone upload only mms.apk from the ICS rom dump.
Thanks...
Click to expand...
Click to collapse
See attached.
If you need the .odex as well lmk.

Sorry im a noob
What does system dump do?
Sent from my Transformer Prime TF201 using xda premium

oduca said:
Sorry im a noob
What does system dump do?
Sent from my Transformer Prime TF201 using xda premium
Click to expand...
Click to collapse
It's a dump of everything that goes in the /system folder on a phone/tablet.

Are there any development working on CM9 port for example?
Sent from my IDEOS S7 Slim using XDA App

Jon2555 said:
Are there any development working on CM9 port for example?
Sent from my IDEOS S7 Slim using XDA App
Click to expand...
Click to collapse
I am no expert but I believe there will be no roms developed until the bootloader is unlocked. Couldn't flash anything until that is done.
Sent through mental telepathy...or a TF201

Noxious Ninja said:
All you have to do is strip off the extra data added by the signing tool and you will be able to unpack the blob.
Click to expand...
Click to collapse
Thanks for the very useful insight! Using this info, I was able to take the 9.4.2.13 update blob and extract it using the blobtools.
For future reference if anyone else wants to do this, try this:
Code:
# mkdir tmp
# dd if=blob skip=1 ibs=28 of=newblob
# blobunpack newblob (unpacks into newblob{.APP,.EBT,.LNX,.PT,.SOS files)
# mount -t ext4 -o loop newblob.APP tmp
# cd tmp
# ls
app bin build.prop etc fonts framework lib media scripts tts usr vendor xbin
This is the entire /system partition. I was able to pull some of the original apk/odex files that I had forgotten to backup prior to my .14 update.

Related

[CM7v1-v5/v12][1.1.0 NOOTERED][TEMP FIX]Fix for Apps Force Closing on Launch

Hi all! This is to address the issue with many apps force closing on launch. Just a temporary fix until CM7 is fully ironed out by the devs.
I'm running CM7 nightly v3 and Stock 1.1.0 Nootered on dualboot setup by Rookie1.
I see alot of people are still having issues with their apps force closing on them. And I just wanted to to see if what I did to modify my framework.jar has any aspect as to why some of my apps like Market, Pandora, Live Holdem Poker, Gameloft games & even the XDA app that people said can't survive a login is now running like normal for me without the FC'ing issue.
**Credit goes to the original devs who came up with the original patch**
clockworx
brut.all
Decad3nce for the great write up
Cyanogen
I took the TelephonyManager.patch from http://forum.xda-developers.com/showthread.php?t=955847 and modified some lines to correspond to the framework.jar from the CM7 Rom when patched.
I then backed up my original framework.jar file and replaced it with the new one. And after rebooting. Most (Maps 5.1.0 is still crashing on me / I just used a backup of my Maps 5.0.0 and it works fine), if not all of my apps that were FC'ing before is now running as normal.
I believe the nook doesn't have an AndroidID/IMEI#. And I believe that this is the reason for the apps to FC on launch as it is looking for one and doesn't see it. This patch will generate a false AndroidID/IMEI#
**As stated. This is a temp fix. This does not store the AndroidID/IMEI# It generates a new one on each request**
**Please use my experience as a guide and always do a backup before you try anything new. You are solely responsible for anything that happens to your device**
**Edit: 2/23 - I noticed that when unzipping in OSX. It would unzip the .jar file as well and give you a classes.dex file. I've re-zipped it within a folder. Just download, unzip and use the file within the folder. Make sure to rename and set correct permissions.**
**2/23 - I've added my patched framework.jar from my Stock Rooted 1.1.0 if anyone ones to give that a try as well. Follow same instructions. Make sure you use the correct framework for your system. Also remember to set correct permissions after replacing your file.**
**2/25 Please only use patch. For CM7 up to v5 only. The CM team is working on a permanent fix. If you decide to use. Use at your own risks. Thank you guys!!!**
**3/5 I know this still isn't a solution, but it will at least give everyone the wonderful experience to keep using their XDA app on their nook for the time being.
-Remember to set correct permissions for the framework.jar file and rename the old one to framework.jar.bak just in case it doesn't work for you. Reboot after replacing framework file. Then wipe Dalvik-Cache (I used Root Explorer and just deleted all the files in Dalvik Cache folder / only because I'm on dualboot, if you're on EMMC just wipe dalvik-cache with CWM), Fix permissions with Rom Manager (with CWM if you're on EMMC). And do another reboot. The reboots will take a while because its rebuilding the Dalvik Cache.
-Thank you devs for all your hard work at no cost to us. But of course we look forward to "donating' when we can.**
Rename the file you just downloaded to framework.jar and place it in your adb folder.
Code:
adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system
adb shell mv /system/framework/framework.jar /system/framework/framework.jar.bak
adb push framework.jar /system/framework/framework.jar
adb shell chmod 6755 /system/framework/framework.jar
adb reboot
Or you can just use Root Explorer to copy it over and set the correct permissions.
Just my experience. Hope this helps in someway, if not i'll edit accordingly.
Please let me know if it works or not.
Thank you to all the devs for all the hard work you've put in to get this running!
Can you clarify something? I've seen other hacks that generate a random one each boot -- Does this one do that, or does this one generate one and store it somewhere, or is that even possible?
computercarl said:
Can you clarify something? I've seen other hacks that generate a random one each boot -- Does this one do that, or does this one generate one and store it somewhere, or is that even possible?
Click to expand...
Click to collapse
Unfortunately yes, it generates a new one on each boot. I'll see if there is a workaround for this. If anyone has any suggestions please feel free to add to this.
Sent from my NookColor using XDA App
Cool, Gun Bros is finally installing.
I used this on the v4 nightly in conjunction with the build.prop hack.
thank you!!
no more FC with the XDA app.
Did you use root explorer or ADB? I tried with Root Explorer but when I rebooted it just hangs at the android screen I had to restore am I missing some permissions?Just want to get Gun Bros working thanks.
bigbob580 said:
Did you use root explorer or ADB? I tried with Root Explorer but when I rebooted it just hangs at the android screen I had to restore am I missing some permissions?Just want to get Gun Bros working thanks.
Click to expand...
Click to collapse
Did you set the correct permissions as the original framework file?
Did you rename the framework_patched.jar file to framework.jar?
Sorry if it seems obvious to you. But sometimes its the simplest things that are most overlooked.
Sent from my NookColor using XDA App
racks11479 said:
Did you set the correct permissions as the original framework file?
Did you rename the framework_patched.jar file to framework.jar?
Sorry if it seems obvious to you. But sometimes its the simplest things that are most overlooked.
Sent from my NookColor using XDA App
Click to expand...
Click to collapse
Thank you forgot to change permissions working great thanks a lot
bigbob580 said:
Thank you forgot to change permissions working great thanks a lot
Click to expand...
Click to collapse
Not a problem.
Sent from my NookColor using XDA App
Why patch? when you can code?
Easy fix for TelephonyManager.getPhoneType():
Add to /system/build.prop:
gsm.current.phone-type=0 (for PHONE_TYPE_NONE)
or
gsm.current.phone-type=1 (for PHONE_TYPE_GSM)
Fix for TelephonyManger.getDeviceId():
public String getDeviceId() {
try {
return getSubscriberInfo().getDeviceId();
} catch (RemoteException ex) {
return SystemProperties.get("custom.deviceid");
} catch (NullPointerException ex) {
return SystemProperties.get("custom.deviceid");
}
}
Then add to /system/build.prop
custom.deviceid="133701337"
Just throwing out ideas... will try this soon. Any specific app that you can point me to to test this with?
racks11479 said:
Unfortunately yes, it generates a new one on each boot. I'll see if there is a workaround for this. If anyone has any suggestions please feel free to add to this.
Sent from my NookColor using XDA App
Click to expand...
Click to collapse
j4mm3r said:
Why patch? when you can code?
Easy fix for TelephonyManager.getPhoneType():
Add to /system/build.prop:
gsm.current.phone-type=0 (for PHONE_TYPE_NONE)
or
gsm.current.phone-type=1 (for PHONE_TYPE_GSM)
Fix for TelephonyManger.getDeviceId():
public String getDeviceId() {
try {
return getSubscriberInfo().getDeviceId();
} catch (RemoteException ex) {
return SystemProperties.get("custom.deviceid");
} catch (NullPointerException ex) {
return SystemProperties.get("custom.deviceid");
}
}
Then add to /system/build.prop
custom.deviceid="133701337"
Just throwing out ideas... will try this soon. Any specific app that you can point me to to test this with?
Click to expand...
Click to collapse
Hmmm... Well that would be a pretty simple and straight forward approach to it. That would be awesome if it works. Since then it won't generate a new one on each boot? Which I understand some apps end up thinking its running for the first time and needs some extra files to be downloaded to run.
Regarding apps, most of the gameloft games would FC on me before the patch. But those are paid....??? How about the XDA app. Before the patch, it would run fine without a login. But once I do and enter a thread and exit it would crash on me. Now it seems fine?
-Pandora
-Gun Bros
-XM Sirius
Just some I know that wasn't working, but now are after the patch.
j4mm3r said:
Why patch? when you can code?
Easy fix for TelephonyManager.getPhoneType():
Add to /system/build.prop:
gsm.current.phone-type=0 (for PHONE_TYPE_NONE)
or
gsm.current.phone-type=1 (for PHONE_TYPE_GSM)
Fix for TelephonyManger.getDeviceId():
public String getDeviceId() {
try {
return getSubscriberInfo().getDeviceId();
} catch (RemoteException ex) {
return SystemProperties.get("custom.deviceid");
} catch (NullPointerException ex) {
return SystemProperties.get("custom.deviceid");
}
}
Then add to /system/build.prop
custom.deviceid="133701337"
Just throwing out ideas... will try this soon. Any specific app that you can point me to to test this with?
Click to expand...
Click to collapse
Connect to the market while running logcat and see if you get any imei error. I'm going to try this on froyo.... Thanks for the info.
So i assume this part goes in the framework.jar.
public String getDeviceId() {
try {
return getSubscriberInfo().getDeviceId();
} catch (RemoteException ex) {
return SystemProperties.get("custom.deviceid");
} catch (NullPointerException ex) {
return SystemProperties.get("custom.deviceid");
}
}
I would like to have the proper static imie / serial number from nook color firmware, as this is what i have full version of rockplayer reg'd to.
please confirm...because I spent all night trying to get my nook running again..Does this zip file need to be extracted once before renaming? And does there need to be a Meta-info folder inside? Lastly, my permissions "matched", but I am concerned whether they are all correct in the first place. What SHOULD the permissions be in this folder? Thanks in advance!
Sent from my LogicPD Zoom2 using Tapatalk
mazook98 said:
please confirm...because I spent all night trying to get my nook running again..Does this zip file need to be extracted once before renaming? And does there need to be a Meta-info folder inside? Lastly, my permissions "matched", but I am concerned whether they are all correct in the first place. What SHOULD the permissions be in this folder? Thanks in advance!
Sent from my LogicPD Zoom2 using Tapatalk
Click to expand...
Click to collapse
Yes, you would first need to unzip it. But I noticed that when unzipping the file in OSX it would unzip the .jar file as well and give you a classes.dex file when it shouldn't. So I've re-zipped the file within a folder.
-Before you do anything, please make sure you perform a nandroid backup
-Download the new zip and unzip it. In there you will see the framework_patch.jar file.
-Rename the file to framework.jar
-Copy over to /system/framework
-Set correct permissions.
-Reboot
Sorry you had to go through restoring your setup.
Thanks for the quick reply... I'll let you know how it goes!
Sent from my PC36100
by setting the correct permissions, do you guys mean going through the settings and hitting where it says permissions, etc? I just want to have every base covered
Does the framework change effect the market force close when purchasing?
bassrebel said:
by setting the correct permissions, do you guys mean going through the settings and hitting where it says permissions, etc? I just want to have every base covered
Click to expand...
Click to collapse
Yes, just make sure you're giving the exact same permissions as your original framework.jar file
I need to know, if anyone is sure, whether this can be used with hc4 emmc as well (with same partitions as cm7)..last hurdle...
Sent from my PC36100

[Mod][Tool] Gingerscript - Framework mod tool

I dusted off a script I had been working on to allow easy customization on my original EVO.
It all still works on my rooted Evo 3D without many changes!
The script automates the use of adb. Downloads and decompiles the frameworks from your evo/evo 3d. Then you can make any desired changes (examples provided). Recompiles and uploads back to device.
Offering it for people to play with. I also included precompiled framework-res.apk and SystemUI.apk for those that like my choices. Otherwise use the script and create your own.
Enjoy
NEW! 1.1 Beta. Now creates flashable update zips
Beta update posted for new OTA
After recompiling your frameworks select option 5 from the Main Menu. An update.zip will be created in a directory called "flash" Try it out and please give feedback.
1 - Extract GingerScript to a folder on your desktop.
2 - Connect your phone via USB cable to your computer.
3 - Open the GingerScript folder you created and doubleclick on GingerScript.bat.
4 - Select item 1. (Process Framework-res.apk) This will download your framework-res.apk as well as create a back up in the /tools folder. When prompted, select yes to decompile this framework. This will create a folder called extracted-framework.res.
5 - This is where it gets tricky. Inside the extracted-framework.res folder, there is a folder called res. Inside THAT folder are multiple directories. The two you are concerned with are marked drawable and drawable-hdpi. *NOTE* In some builds the "drawable-hdpi" folder is named "drawable-hdpi-v4" Thats why it's best to modify your own framework.
6 - In the GingerScript folder, we will work with the Example.Icon.Framework-res.Circle.Battery folder. In this folder, you will find two directories: drawable and drawable-hdpi. Copy and paste the contents of the two directories from the Example folde into the corresponding folders in the extracted-framework.res/res directory. This may overwrite some of the files in each directory. This is okay!
7 - Go back to the script; it should still be on the gray screen. Select option 3 - recompile framework. This will take a minute or two so go grab a drink while it does its magic. It will seem to be hung; I don't have a progress bar created in the script so just hold tight while it finishes.
8 - Next, select option 4 - Upload new framework to phone. This will prompt you to put the phone in recovery mode; I'm not going to explain that part. Once the phone is in recovery mode Mount the /system partition using the recovery mount feature then press any key in the script window to push the file to your phone.
9 - At this point, clear the Dalvik Cache at a minimum and press a key once finished. the phone will reboot. Now, this provides the battery mod. To modify the other status bar icons, return to the main Menu and select option 3 to modify the systemUI.apk. The process is EXACTLY the same as the framework-res.apk but it uses the contents of the Example.Icons.SystemUI.mod directory. If problems occur, recover the backups from the /tools directory and push them to your phone.
I hope this helps. If you are still running into issues, please post what step you having issues with and remember, black and white goes with everything! *grin*
Do you install the apps or push them with abd, a little more clarity on how to install
Sent from my PG86100 using XDA App
dog44 said:
Do you install the apps or push them with abd, a little more clarity on how to install
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
Extract the Gingerscript.zip on your Windows PC with your phone connected via USB.
Inside the folder double click on Gingerscript.bat. It's fairly easy to figure out from there, It creates a backup of the files before modification as a safety precaution. This just makes all of the framework compiliing/decompiling less of a hassle
Everything needed is in the zip file so you will need nothing except a text editor and a program to manipulate the png images. There are example folders in the zip that contain my modified png images and edited xml files
Note: The script references the use of Clockwork Mod Recovery, but TWRP works just as well. Just clear the Dalvik cache after uploading the framework. Then Reboot. I'll clean up the scripts wording at a later date
I will give it a shot here in a minute, and I will let you know how well it works.
I like your icons. Which APK does what?
The framework-res.apk contains the battery mod and a few minor icons. The rest of the status bar icons are in the SystemUI.apk.
The com-htc.resource.apk wasn't modified in my example, but it does contain images.
I wish there was a easy way to determine what resources are used but there isn't. Some status icons are located in the individual applications resource file as well (My script can't handle those)
I'm going to give this a go in a little bit when I can. Can anyone else confirm their success and any additional steps required (eg - clearing cache and dalvik). Thanks.
Can you please make a clear taskbar...thanxs
Can you make it simple zip file? so I can just flash it.
Thx
one up on this i like your blue battery ya got there, can ya make a zip for us
to flash please?
justwonder said:
Can you make it simple zip file? so I can just flash it.
Thx
Click to expand...
Click to collapse
That didnt work
Can you make a stock % battery?
Send from my Rooted HTC Evo 3D
nabbed said:
That didnt work
Click to expand...
Click to collapse
What part of "That" didn't work?
townsenk said:
What part of "That" didn't work?
Click to expand...
Click to collapse
After pushing the files, wiping dalvik cache, and rebooting, there was no status bar at all.
This is viper rom rc1.1, netarchy test3 kernel.
jayjay7411 said:
one up on this i like your blue battery ya got there, can ya make a zip for us
to flash please?
Click to expand...
Click to collapse
I've never been successfull creating a update.zip. I can never seem to get the syntax correct on the update-script.
If someone more experienced wants to create one, I'd love to take a look at it and see what I'm doing wrong.
nabbed said:
After pushing the files, wiping dalvik cache, and rebooting, there was no status bar at all.
This is viper rom rc1.1, netarchy test3 kernel.
Click to expand...
Click to collapse
Did you modify *Your* framework files or use the ones provided? The ones I used as examples are from a stock rom that is still odexed
I recommend you modify a copy of your own framework files since there may have been changes in the viper rom. It should still work. If you want you can send me a copy of your unaltered framework files and I can take a look.
mexiking713 said:
Can you make a stock % battery?
Send from my Rooted HTC Evo 3D
Click to expand...
Click to collapse
That requires the creation of about 60 new icons.
Easier method. Find me the icons..or even a Original Evo mod package and I can extract the icons from that.
townsenk said:
Did you modify *Your* framework files or use the ones provided? The ones I used as examples are from a stock rom that is still odexed
I recommend you modify a copy of your own framework files since there may have been changes in the viper rom. It should still work. If you want you can send me a copy of your unaltered framework files and I can take a look.
Click to expand...
Click to collapse
Ah! Viper is deodexed, so there's the problem right there.
Ill try to modify...
I have stock rom, if I do Push command and restart it should work right?
adb push new_SystemUI.apk /system/app/SystemUI.apk
adb push new_framework-res.apk /system/framework/framework-res.apk
justwonder said:
I have stock rom, if I do Push command and restart it should work right?
adb push new_SystemUI.apk /system/app/SystemUI.apk
adb push new_framework-res.apk /system/framework/framework-res.apk
Click to expand...
Click to collapse
That is correct - You'll still have to wipe the Dalvik and let it rebuild on boot
Let me know if it works for you

How to zip a ROM to be flashed

Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
packaging up a ROM is fairly simple.
for a ROM .zip there are a few main components:
1) *required* /system directory (contains all your ROM files)
2) *required* META-INF/com/google/android/ with two files, updater-script and update-binary. updater-script file instructs the update-binary on how to process/install your ROM. the custom recovery will look for these two files and execute them.
3) *optional* a kernel in the .zip to be flashed
hope that helps! good luck on publishing your ROM!
joeykrim said:
packaging up a ROM is fairly simple.
for a ROM .zip there are a few main components:
1) *required* /system directory (contains all your ROM files)
2) *required* META-INF/com/google/android/ with two files, updater-script and update-binary. updater-script file instructs the update-binary on how to process/install your ROM. the custom recovery will look for these two files and execute them.
3) *optional* a kernel in the .zip to be flashed
hope that helps! good luck on publishing your ROM!
Click to expand...
Click to collapse
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
Usually, at least from what I know...
The more In depth stuff is done with the ROM Kitchen through a computer!
youngpro83 said:
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
yes, you could take a ROM and only replace certain files / apps with the ones you've modified.
the ROM "cool stuff" while it flashes is all done in the updater-script file i mentioned in #2 of the required ROM files in my previous post above.
the ROM I maintan and publish for EVO 3D is 100% stock with root/su binary added, busybox and a bunch of linux arm developer binaries in /system/xbin.
my stock ROM would be a great base for you to start modifying and experimenting with!
1) swap out the apk/files in the .zip with the ones you've modified.
2) modify the updater-script file with your syntax
3) let us know how it goes!
[ROM] joeykrim-original-1.2.0 Odex *Stock Rooted 2.08.651.2* Aug 21st 2011
on windows, 7zip is a great GUI application for swap/editing files inside a .zip without having to extract the whole thing.
on linux, i'd just unzip the whole .zip to a directory and then swap out the files/edit the files in that directory, then zip up. also, i think ubuntu archive manager (default GUI for .zip files) lets you modify/edit files inside the .zip without having to extract the whole thing.
hope that helps!
joeykrim said:
yes, you could take a ROM and only replace certain files / apps with the ones you've modified.
the ROM "cool stuff" while it flashes is all done in the updater-script file i mentioned in #2 of the required ROM files in my previous post above.
the ROM I maintan and publish for EVO 3D is 100% stock with root/su binary added, busybox and a bunch of linux arm developer binaries in /system/xbin.
my stock ROM would be a great base for you to start modifying and experimenting with!
1) swap out the apk/files in the .zip with the ones you've modified.
2) modify the updater-script file with your syntax
3) let us know how it goes!
[ROM] joeykrim-original-1.2.0 Odex *Stock Rooted 2.08.651.2* Aug 21st 2011
on windows, 7zip is a great GUI application for swap/editing files inside a .zip without having to extract the whole thing.
on linux, i'd just unzip the whole .zip to a directory and then swap out the files/edit the files in that directory, then zip up. also, i think ubuntu archive manager (default GUI for .zip files) lets you modify/edit files inside the .zip without having to extract the whole thing.
hope that helps!
Click to expand...
Click to collapse
Thanks a lot. So ill experiment with ur base. What is syntax?
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
Thanks a lot. So ill experiment with ur base. What is syntax?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
fancy word i used in place of code/text. you can open the updater-script inside of the .zip file with a text editor. the updater-script file uses the edify scripting language.
there are a lot of guides on how to use edify and what each phrase means. google the terms, "edify android guide" and there should be a bunch of results. one of the results which looks fairly decent - Edify Script Syntax Explained
hope that helps! good luck!
youngpro83 said:
Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
Cool man! Good luck! Hope to see ya on the dev page.
Sent from my SPH-P100 using xda premium
Alright so progress is being made and its going very well. Only things Im stuck on now is:
1. How do I add certain apps like astro or ES file explorer WITHOUT putting them into the system/apps folder??
2. How do I change the background at boot so that its not the colorful flares that Sprint has on there.
3. How do I remove the 3D apps game apk?
Once I have those figured out I think my ROM will be ready for the public.
youngpro83 said:
Alright so progress is being made and its going very well. Only things Im stuck on now is:
1. How do I add certain apps like astro or ES file explorer WITHOUT putting them into the system/apps folder??
2. How do I change the background at boot so that its not the colorful flares that Sprint has on there.
3. How do I remove the 3D apps game apk?
Once I have those figured out I think my ROM will be ready for the public.
Click to expand...
Click to collapse
1. android package manager monitors two locations for .apk files and will install them as soon as they appear in these two directories: /system/app and /data/app. if you want your rom to install .apk files to /data/app, you'll need to add the package_extract_dir command to your updater-script for /data and also create a data/app directory in the ROM zip file and put whatever apk files you want added in the data/app dir of the ROM zip file.
2. For Android boot animations the system looks in 3 locations in this order. 1) /data/local/bootanimation.zip, 2) /system/media/bootanimation.zip and 3) framework-res.apk . Since there are no bootanimation.zip files on our device, I'm assuming the sprint boot animation is stored in the framework-res.apk file. No worries, as placing any bootanimation file in either /data/local or /system/media will take priority over the Sprint animation in framework-res.apk.
3. 3D Games apk file is located here: /system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk . Simply remove that apk file from /system/app inside the ROM .zip and it will not be loaded.
Let us know if you have any other questions. Hope that helps and good luck in the publishing!
joeykrim said:
1. android package manager monitors two locations for .apk files and will install them as soon as they appear in these two directories: /system/app and /data/app. if you want your rom to install .apk files to /data/app, you'll need to add the package_extract_dir command to your updater-script for /data and also create a data/app directory in the ROM zip file and put whatever apk files you want added in the data/app dir of the ROM zip file.
2. For Android boot animations the system looks in 3 locations in this order. 1) /data/local/bootanimation.zip, 2) /system/media/bootanimation.zip and 3) framework-res.apk . Since there are no bootanimation.zip files on our device, I'm assuming the sprint boot animation is stored in the framework-res.apk file. No worries, as placing any bootanimation file in either /data/local or /system/media will take priority over the Sprint animation in framework-res.apk.
3. 3D Games apk file is located here: /system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk . Simply remove that apk file from /system/app inside the ROM .zip and it will not be loaded.
Let us know if you have any other questions. Hope that helps and good luck in the publishing!
Click to expand...
Click to collapse
Man you are the BOMB.COM!!!!
And for 2. I wasnt looking to replace the boot animation. I kinda like the Sprint one. I was trying to replace the actual wallpaper that the phone boots into. So at the home screen I can have my own wallpaper that I choose for my ROM.
Also for 1. Do I need to create a unmount script like the one for /system? Or do I just add the script you mentioned and that is it?
Thanks so much for your help man. I dont think I would have gotten this far without you!!
youngpro83 said:
Man you are the BOMB.COM!!!!
And for 2. I wasnt looking to replace the boot animation. I kinda like the Sprint one. I was trying to replace the actual wallpaper that the phone boots into. So at the home screen I can have my own wallpaper that I choose for my ROM.
Also for 1. Do I need to create a unmount script like the one for /system? Or do I just add the script you mentioned and that is it?
Thanks so much for your help man. I dont think I would have gotten this far without you!!
Click to expand...
Click to collapse
Oh, I misunderstood for 2. For the actual wallpaper .. I did a few quick google searches and haven't come up with anything super helpful. Based on this blog post Appears there are two possible locations for the default wallpaper images to be stored, either in the Launcher.apk or in /system/frameworks/framework.jar. Unfortunately, I'm not able to experiment on the device and search more thoroughly. If nobody posts back a better answer I'll look into this tonight.
1. Yea, it would be best practice to mount data, package extract dir /data and then unmount data. You should be able to copy the mount/unmount commands used for system and change the mount points to data and for the mount command change the device point for data .. off the top of my head I think its one number higher, but not positive. cat /proc/partitions to see the exact device mount point.
Hope that helps!
joeykrim said:
Oh, I misunderstood for 2. For the actual wallpaper .. I did a few quick google searches and haven't come up with anything super helpful. Based on this blog post Appears there are two possible locations for the default wallpaper images to be stored, either in the Launcher.apk or in /system/frameworks/framework.jar. Unfortunately, I'm not able to experiment on the device and search more thoroughly. If nobody posts back a better answer I'll look into this tonight.
1. Yea, it would be best practice to mount data, package extract dir /data and then unmount data. You should be able to copy the mount/unmount commands used for system and change the mount points to data and for the mount command change the device point for data .. off the top of my head I think its one number higher, but not positive. cat /proc/partitions to see the exact device mount point.
Hope that helps!
Click to expand...
Click to collapse
Helps a bunch!!! I will have to dig deeper because I tried flashing after creating those scripts and I got error 6 when trying to flash. Ill add the mount/unmount commands and see if that fixes it.
youngpro83 said:
Helps a bunch!!! I will have to dig deeper because I tried flashing after creating those scripts and I got error 6 when trying to flash. Ill add the mount/unmount commands and see if that fixes it.
Click to expand...
Click to collapse
To debug flashing errors while in the recovery, open adb shell and type:
Code:
cat /tmp/recovery.log
The recovery log has more details and usually the exact line of code where it failed. Feel free to paste this into pastebin and link up here, or paste into the thread and we can help troubleshoot.
Another step deeper into troubleshooting and debugging land of ROM development! Hope that helps!
Joeykrim, learned more from this thread then searching chefs central..
life64x said:
Joeykrim, learned more from this thread then searching chefs central..
Click to expand...
Click to collapse
I Agree... This Thread could be on its way to being a little STICKY, Lol!
Nah but Good Thread guys!

[Dev]Files of interest in the system

Alright, just got my hands on a system dump courtesy of loglud so I will be posting files (text files will include content that peaked my interest) here so me and other devs can see what we are able to toy with.
systemdump download link: http://dl.dropbox.com/u/15069134/SystemDump.zip
Current list:
/system/media/bnapps_icons\ <-- we can mod the app icons that come with the device so we can make it less-sucky.
/system/etc/bluetooth/blacklist.conf <-- referencing the bluetooth chip meaning we just have to find a way to activate it
/system/app/settings.apk <-- anyone think they can actually replace this with another gingerbread apk or decompile and discover if there is a custom intent? Warning: It does NOT work at all. I suggest against swapping the apk's out as it causes a force close.
/system/bin/bootanimation *Was told where it searches for bootanimations first so goto this thread for a new bootanimation: http://forum.xda-developers.com/showthread.php?t=1361735
Indirect said:
Alright, just got my hands on a system dump courtesy of loglud so I will be posting files (text files will include content that peaked my interest) here so me and other devs can see what we are able to toy with.
Current list:
/system/media/bnapps_icons\ <-- we can mod the app icons that come with the device so we can make it less-sucky.
/system/etc/bluetooth/blacklist.conf <-- referencing the bluetooth chip meaning we just have to find a way to activate it
/system/app/settings.apk <-- anyone think they can actually replace this with another gingerbread apk or decompile and discover if there is a custom intent?
Click to expand...
Click to collapse
Nice finds. Bluetooth will be intesting to test (about to do it right now).
As you know the Nook has a heavily modified framework, so I don't know if the stock settings app will work (but I'm about to find out and probably fark up my tablet).
Let me know how it goes anlog.
Indirect said:
/system/app/settings.apk <-- anyone think they can actually replace this with another gingerbread apk or decompile and discover if there is a custom intent?
Click to expand...
Click to collapse
Hmm . . . let me get a hold of it and I'll look at it tomorrow, I've already taken the rest of the week off (Diablo III beta key came in tonight).
You may not need to change out the settings.apk but just add another one to it.
I decided to hold off on swapping the settings.apk. Losing access to the real settings app with all of the Nook options might not be a good idea.
The main reason I wanted a full settings menu was to be able to get into the accounts sync settings, but I found an app to launch it.
Warning: It does NOT work at all. I suggest against swapping the apk's out as it causes a force close.
Indirect said:
A
/system/bin/bootanimation <-- It's not a .zip or anything, just a file...anyone know how we can edit this?
Click to expand...
Click to collapse
It's a binary file. This app executes bootanimation resources.
Example: on T-Mobile MyTouch 4G resources are in /system/customize//resource/htc_bootanimation.zip
You should search for bootanimation.zip and you can edit this archive
Indirect said:
Warning: It does NOT work at all. I suggest against swapping the apk's out as it causes a force close.
Click to expand...
Click to collapse
I read note, if you want edit system apps like Settings.apk you should sign them by personal keys only...
I was looking through and couldnt find a bootanimation.zip in the system so I'm checking the data folders now.
edit: What the hell, still can't find it.
Indirect said:
I was looking through and couldnt find a bootanimation.zip in the system so I'm checking the data folders now.
edit: What the hell, still can't find it.
Click to expand...
Click to collapse
I was using Absolite system to see if I could replace the bootanimation because I couldn't find it either. I did manage to make it go away and just had the splash screen. I'll look into this further today as well. I'm starting to get ideas as to which files you can and can't replace right now. Some will force an immediate reboot and get stuck in a boot loop. I also am trying to find what triggers and handles the home button menu, I am sure it is in the framework. I have framework.jar and services.jar decompiled and going through those as well. Reviewing logcats to see what I can track down. I have some other interesting stuff going as well
romified said:
I was using Absolite system to see if I could replace the bootanimation because I couldn't find it either.
Click to expand...
Click to collapse
Hmmm... Usually bootanimation is in /data/local/ or /system/media. May be it has different name?
/system/bin/bootanimation is the program that actually displays the bootanimation.
Normally it plays the contents of /system/media/bootanimation.zip, but it can also be hardcoded to play a fixed animation or designed to play a completely different format. (Such as on Samsung devices, where it only plays Samsung's QMG format until you replace the program.)
conundrum768 said:
I've already taken the rest of the week off (Diablo III beta key came in tonight).
Click to expand...
Click to collapse
conundrum768
Don't take this the wrong way, but I really hate you right now!
I tried getting in on the Diablo III beta, no luck!
Here is a file of some interest, it it looks to be encrypted because it would be of interest.
/system/recovery-from-boot.p
.p files are encrypted .m files. Not sure if anything exists out there to crack into that one, but I am sure it would tell some very interesting information and possibly allow hi-jacking the factory restore process?
Anyone familiar with .p files (pcode files) ?
---------- Post added at 12:20 PM ---------- Previous post was at 12:08 PM ----------
Also of interest are some .xem3 files under /system/lib/ducati
base_image_app_m3.xem3 --- 57 mb
base_image_sys_m3.xem3 --- 1.5 mb
I think could be system image files possibly from the little bit of research I have done. Due to the size of one of these (57 mb) and the name of the file, I was thinking maybe this is where the restore was getting it's base image from, but until I dig further I am not sure of that. The size of the file is what got my attention, much larger than other files in lib. That's half the size of CM7 in just one file.
Edit: These now look to be possibly drivers/firmware/images for Ducati and/or Pandaboard ? That's a large driver file....
The .p file is very much of interest I would think.
conundrum768 said:
Hmm . . . let me get a hold of it and I'll look at it tomorrow, I've already taken the rest of the week off (Diablo III beta key came in tonight).
Click to expand...
Click to collapse
It looks like the normal XML files are not controlling the layout and it is done through the smali files to get the custom actions and layout. A separate app to access development may be best for now, as we have been doing.
Unless someone edits the smali files of course, that's possible but will prove tedious and time consuming unless you have a lot of experience with these.
If you review the logcats from going into settings, you will see which smali files are involved.
I have almost a full system dump on an ftp so ill see about letting it be accessed.
Sent by breaking the sound barrier
Please upload full system dump from Nook Tablet
Please upload full system dump from Nook Tablet
How-to
1. Get root
2. Run terminal (enter su if symbol $ -> it will be changed to #)
3. Execute command mount
4. From list of partitions search for /system
Code:
Example: /dev/block/mmcblk0p27 /system ext4 ro,relatime
5. Dump it to sdcard with command dd
Code:
Example: dd if=/dev/block/mmcblk0p27 of=/sdcard/system.img
It dumps only system image not personal data...
I'll just upload a .zip to dropbox.
Is there a sanim.zip anywhere? If so, that's the bootani. If not, ill sink back to silence lol
Sent from my Samsung Legendary 4G, a Universe UTES phone, running "two.three.five"
I looked through and there are only a few .zip files but none of them actually contained a bootanimation. It really is annoying lol. This device is such a bastardized version of android, I can't wait to get past the bootloader. lol.

[zip] Empty Flashable Zip Template

Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
lol nice idea i have never thought about making one for people I forget people dont know how
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
ljbaumer said:
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
Agreed. This is pretty sweet and actually an idea I was going to ask someone for once (I had no idea how to do these).
And MrSmith, now I can try to get all the boot anims updated with flashables also so that everyone will have different options. Thanks!!
Thanks for dropping this. Already have one, but this helps anyone trying to learn. You may have given the next big developer a good first tool. Congrats.....
Sent from my ADR6425LVW using Tapatalk
Thanks. I'll give this a go on cleanrom.
Sent from my ADR6425LVW using xda premium
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
ShaneMA said:
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
Click to expand...
Click to collapse
this is just a flashible zip only you will need to add your files to the right folders to make it theme
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
bal1985 said:
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
Click to expand...
Click to collapse
The three things you've listed are items that can be freely transferred via USB. This is more for theme elements and applications.
However to answer your question, stock ringtones and notifications are in /system/media/audio/ringtones and /system/media/audio/notifications . The stock wallpapers are stored in /system/customize/resource.
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Good idea.. I have my own templates I use. Never thought to post.. kinda nervous that someone out there would brick their phone and blame me...been busy as hell past month, hopefully soon I'll get some time to port over some of my previous work over to the rezound, since now all the issues with compiling and decompiling have been figured out.. I got some catching up to do
Sent from my ADR6425LVW using Tapatalk
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
mjh68 said:
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
Click to expand...
Click to collapse
You got it. As long as you get the structure down right, flashing the zip will drop the files in the proper directory on your phone/device.
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Nighthound said:
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Click to expand...
Click to collapse
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
MrSmith317 said:
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
Click to expand...
Click to collapse
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Nighthound said:
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Click to expand...
Click to collapse
haha that too.
MrSmith317 said:
Come a day there won't be room for naughty men like us to slip about at all.
This job goes south, there well may not be another.
So here is us, on the raggedy edge. Don't push me, and I won't push you.
Dong le ma?
Click to expand...
Click to collapse
Shiny!
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
funnyangrykid said:
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
Click to expand...
Click to collapse
Yeah man, that's what this blank flashable zip does
You can put as many files in the 'app' or 'framework' folder and it will flash them all

Categories

Resources