[Q] Compiling cm7... Getting the most updated files.sh - G Tablet General

I have some questions about files.sh. Where they located (root/ system/ ?). Can I decompile them and add new drivers (using dsixda kitchen, adb, or other means). Also when adb pulling files.sh should I be stock rom original or 3991? cyanogen? can I be in recovery? Any info or links would be helpful thanks.

Related

[Q] "smali" files on the I727? Can they be edited without Baksmali (Deodex)?

[Q] "smali" files on the I727? Can they be edited without Baksmali (Deodex)?
I've been looking into the coding on this phone for a while. I've made a couple of posts trying to figure out how to get Nfc enabled on this phone with no luck. So I am trying to look into it a bit further myself. I'm learning as I go, but I am trying to compare other phones files (and custom ROM files) with working Nfc with the stock ROM files on the SkyRocket to try and find clues as to which files are needed to start working on this. One thing I notice (difference) is there doesn't seem to be any "smali" files or code on the SkyRocket stock ROM. Can someone please tell me where they are located (I am rooted and use Root Explorer) on the Stock ROM or which files are used in their place?
Thanks.
**Edit**
OK, I've done a little more research and found out the "smali" code in an Odexed ROM is located in the Odexes. In order to work on them I am guessing they would need to be DeOdexed? Or is there a way to view and edit them without Baksmali?
typically bc
an odex file is renamed to class.dex and combined into the same apk
deodexing basically works likethis
every apk needs a set of instructions
thats the odex
so by removing the odex and turning it to a classes.dex
file we can remove the unwanted odex file
and speed up access to the files instructions
opens faster closes and caches faster i do beleive i could be wrong
but i know the general idea

UOT Kitchen Help

UOT Kitchen states "you can now use kitchen with stock odexed roms (if you have .odex files in your rom - kitchen works for you too)". I'm running the stock OTA 2.3.6 ROM (odexed), rooted, with 3e Recovery on my SR. Trying to create a very simple battery icon and status bar mod using the Kitchen. Instructions say to upload your ROM's "framework-res.apk" and "systemUI.apk" files along with your theme changes... and Kitchen creates a cooked-up zip file you can flash. But have a few questions:
1) since it says it now supports odexed ROMs, do I also need to upload the "systemUI.odex" file along with "systemUI.apk" and "framework-res.apk files?
2) does the cooked up zip file contain "framework-res.apk", "systemUI.apk" and "systemUI.odex" files... or just the 2 apk files?
3) if only the apks, do I leave my original "systemUI.odex in /data/app folder... or move/delete it?
4) without CWM, can I extract the needed apks from the zip file created by the Kitchen and use Root Explorer to fix permissions and place files in their appropriate folders?
I posted these questions on the UOT Kitchen site, but they must be backed up as have not received any reply... hoping someone here on the SR Forum may have some experience with the UOT Kitchen and using odexed ROMs. Thx!
1. You need SystemUI.apk from /system/app, framework-res.apk from /system/framework, and twframework-res.apk from /system/framework
2.it will contain updates to framework-res.apk, twframework-res.apk, and systemui.apk and might add to the system/media or any other area you elect to modify
3. dont touch the odex files. they will be needed as is.
4. maybe, maybe not. I always use CWM to install. Sorry.

[Q] Mod Creating Question - Radio/Root

I hope I'm not creating a repeat thread...
Recent convert to android as a whole, and trying to use dsixda's Android Kitchen to create a mod based on the 4.0.3 leak. I took the fully bloated version from mhx, and romracer's unsecured kernel, and dug into it.
After changing everything around, I've gotten several things to work right, but I can't get a data connection or superuser access to work. Do I need to add the UCALC4 modem into the kitchen files? Also, I'm assuming that I need to drop the .apk files for superuser into the /system/app directory in order for them to work correctly...is this right?
Thanks for helping a nooblet
Edit: Never mind, I'm a big stupid idiot-head...carry on
burgeswe said:
I hope I'm not creating a repeat thread...
Recent convert to android as a whole, and trying to use dsixda's Android Kitchen to create a mod based on the 4.0.3 leak. I took the fully bloated version from mhx, and romracer's unsecured kernel, and dug into it.
After changing everything around, I've gotten several things to work right, but I can't get a data connection or superuser access to work. Do I need to add the UCALC4 modem into the kitchen files? Also, I'm assuming that I need to drop the .apk files for superuser into the /system/app directory in order for them to work correctly...is this right?
Thanks for helping a nooblet
Edit: Never mind, I'm a big stupid idiot-head...carry on
Click to expand...
Click to collapse
In my experience, the best way to find out what needs to be done to add things to a rom is to init a GIT repo in the kitchen's working folder. This way after each option you can see what files are changed and what lines are added to the updater-script. This is the best way to learn and you can then do it without the kitchen.
You cant use the kitchen in ics. It does not work. Sammy made major changes with how systemui framework-res and twframework-res. Are used. They also used alot more xmls for the themeing. Vs gingerbread which was alot more pngs. Find a good setup of apktools. To decompile/recompile your apps for changes. Download notepad ++ to edit xmls. Smali/baksmali but there are good setups u can find. That include smali/baksmali. And several apktool jar files. Because ics apks. Recompile/decompile differently for everyone. So u will have to find the versions that work for you.
---------- Post added at 11:04 PM ---------- Previous post was at 10:57 PM ----------
My mistake. I thought u were talking about the uot theme kitchen..
The rom kitchen i have no idea about. But to me it seems like more of a hassle then learning to make a rom yourself to me.

[Q] Services.jar changes, even simply deodexing the file prevents phone from booting

I am trying to make a minor change to my services.jar and so far have no been successful.
I deodexed the file with xultimate2.3.3 , extracted the classes.dex with 7zip 9.2, I used apktool 1.4.3 to "expand" the contents, made the change, repacked the dex file and put it back into services.jar and the phone cannot compelete boot. I made sure to change the permissions, owner a group to match the previous file.
I then tried using Xultimate to deodex the file and put it back on the phone and this also keeps it from booting.
I then tried using the already deodexed file from another rom (2.2.1 vs 2.2.2) and it had the same issue.
So far I have to reflash my phone with Odin every time and I am getting tired of making the same mistake over and over.
edit: Maybe I should ask - what is the appropraite way to move the file over? I am doing it by going into root explorer, deleting /system/framework/services.jar+services.odex, using adb push to put the file on the sdcard, using root explorer to move it from sdcard to /system/framework then changing the permissions in root explorer to match the previous file before finally running "chown root.root /system/framework/services.jar" from adb shell
Either my method for copying the file is bad or xultimate 2.3.3 is messing up the deodex. Any advice on another tool to use to deodex this file?
You should be using baksmali/smali to decompile/recompile classes.dex, not apktool :/
Apktool can decompile .jars too
I use it and works fine
@OP
After deodexing decompile the jar using Virtuous Ten Studio by Diamondback(Google it)
Burned from my laser torch using pencil cells
Thank you for the replies. I will try these suggestions.
As a side note I also tried to use Xultimate to deodex the file, then ran dexopt-wrapper on the output to reodex the unchanged file and the phone is stuck in a boot loop.
You can read about re-odexing files here http://themikmik.com/showthread.php...w-About-adb-odex-themes-etc&p=75225#post75225
Can you give suggestions on another tool to de-odex the services.jar file? I think xultimate is the problem. It is the only common denominator.
I forgot to add that the original services.odex is a different size and has different contents from the new services.odex created by xultimate+dexopt-wrapper
I didn't expect it to work but I took the modified/deodex services.jar from a 2.2.1 rom and put it into my 2.2.2 rom and it had the same non boot issue.
The newest version of xUltimate i could find.
Enjoy
http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip

Need Help with update-script

hi all i've been trying to deodex my stock 28 rom i have deodexed system/app & system/framework but i cant use adb to push them into my rom so i tried to make a flashable zip to flash them in cwm. but ive never made one before i have the file structure right i think but cant get the update-script right could some one please tell me where ive gone wrong or write it for me. if it gets done then it will also be an easy way for other users to deodex aswell. heres my atempt: https://dl.dropbox.com/u/90938124/deodex_xj-signed.zip
Edit: i tried to learn from here: http://forum.xda-developers.com/showthread.php?t=732957

Categories

Resources