Hello, i wanted to create a custom rom, so i edited framework-res.jar using apktool 1.4.2 (The lastest version didnt wanted to recompile!)
There was no problem for rebuilding (except some errors saying it miss some locales or idk) and the building was complete, i had my apk.
But he was 3MB lighter than the original. Whatever thought i first.
but when i flashed my rom, the boot didnt end. I checked logcat, and it was infinite repat ! So here is the logcat, without the repeats : http://pastebin.com/NtLbjqUD
Thanks to the helpers
Related
Hi,
I have a HTC incredible s with sensitive buttons not working. So I decided to install ICS on it (I have virtous quattro ) and to enable On Screen Buttons.
I tried to get the apktool working, it decompiles, but when trying to build I' ve got all kind of errors. Maybe it's something in my config that went wrong but anyway, I give up on this.
I would like someone to modify this file and rebuild it for me so I can install it on my phone.
I tried to follow these instructions
Thank you
i never got apktoolkit to work with "the latest" jar on ics files. you'll find dozens of people complain all over the net about this. the fix is simple, decompile your framework with an older version. decompile and compile apks with the latest. i have no idea why, it just worked, after spending days on this.
the problem right now is, i have no idea whom to credit for this, i found the info on a page somewhere in the net, he even included the tools. and since im not on my computer i cant give you the correct version numbers. maybe later if you haven't found it by yourself then.
---------- Post added at 05:21 PM ---------- Previous post was at 05:14 PM ----------
okay, looked it up. you need 1.4.2 (!) for decompiling the framework-res. you need 1.4.3 (!) for decompiling everything but, and compiling.
this is from memory, there could be errors. install framework, decompile it and put it back together.
apktool142 if framework-res.apk
apktool142 d framework-res.apk
apktool143 b framework-res
update,
just by searching for the version numbers right now i found somethig interesting on rootzwiki: http://rootzwiki.com/topic/16728-how-to-random-mods-for-the-do-it-yourself-er/page__st__10 this could reduce the hassle. i'll use it myself if it works.
Ok i'll try when getting back home.
Thank you
this version really works: http://dl.dropbox.com/u/405475/working-apktool.zip
i got it from the linked rw thread. it seems to fix two major issues:
- you needed 1.4.2 & 1.4.3 to compile ICS apk's - not anymore
- you needed to run apktool in the same folder in which your apk is located - put it whereever you want
it's the first time that tool doesn't give me a major headache. although i do recognize how much work it must have been to write it, i only whish it had error checking in it, stupid little things like having the jar file in the same folder cost me days to figure out because the error messages just blurb about nothing at all. whatever, now it works ... happy modding!
edit:
seems like aapt.exe still needs to be present locally in the same folder for whatever reason.
I'm trying that righ now. It builds OK. I didn't realized that it was so complicated to put the framework back in the phone
wow. incredible. I managed to get my lazy ass to understand and put all that back on the phone. Everything seems ok except when I build I have this lil warning "W: Could not find sources".
Put that on the phone via adb push and reboot, nothing ! It's like I've done nothing !
I've been able to modify framework-res.apk successfully using this set of instructions:
http://forum.xda-developers.com/showthread.php?t=1525045
It will be my try for tomorrow. Thank you !
for ics or gingerbread??
ICS. I'm on virtuous quattro
Hi i'm create a ROM based on cyanogenmod7 for tattoo and i'm i modified the graphic on site uot dakra,after download the package integreated to my ROM,and install to my device,only ok, after seeing the graphics I decided to change some things in here bootanimation, download the package again and back into regular ROM adding the Data folder (the folder that was not there before) containing bootanimation happens here and the odd fact, after the installation of the ROM,which is successful, the device restarts the bootanimation not start, I thought that went into conflict with those contained in the Media folder (with the first ever discharged package from uot dakra) , so I tried deleting the bootanimation in media folder, but nothing, I tried deleting the Data folder, but nothing, I tried to replace the bootanimation Date of moving in Media but nothing, so I tried to restore a functional ROM but also This is not incredibly went faster, but I thought a Brick cyanogenmod7 restoring from backup system is up, may depend on what the problem with my ROM? and how do I fix?
I've seen previously that you can modify 'more_keys_for_smiley' in LatinIME.apk to modify the predefined smilies in the keyboard ( http://forum.xda-developers.com/showthread.php?p=23362533 ).
I'm trying to do this for LatinImeGoogle.apk.
I've got it decompiled with apktool, but I can't seem to find where 'more_keys_for_smiley' is defined to change it. The only reference to it inside of that apk is in key_styles_common.xml where it has:
<key-style latin:moreKeys="!text/more_keys_for_smiley" latin:backgroundType="functional" latin:keyOutputText=" " latin:keyLabel="" latin:keyLabelFlags="hasPopupHint" latin:styleName="enterKeyStyle" />
Can anyone help me locate more_keys_for_smiley so I can modify it? Does the "!text" refer to a different package?
Thanks in advance for any help.
Ok, thanks to someone's help I was able to figure out that the string is now located in the odex file for the keyboard. I was able to deodex LatinImeGoogle.odex using baksmali and edited the file com/android/inputmethod/keyboard/internal/KeyboardTextsSet.smali. I then used smali to recreate the odex file, but pushing it to my device and rebooting causes the keyboard to not load. Do I need to do anything special with this new odex file?
I tried following tutorials ( http://forum.xda-developers.com/showthread.php?t=1208320 ) and using automatic batch scripts ( http://forum.xda-developers.com/showthread.php?p=31360029 ) for recreating the new odex file and copying the signature from the old one, but I could not get it to work. At best I got the keyboard to load and instantly crash, at worst it wouldn't even load the keyboard upon boot.
Anyone want to offer some advice or take a stab at this?
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
PrettyPistol555 said:
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
Click to expand...
Click to collapse
Yes, you should be able to modify KeyboardTextsSet.smali and then recompile and install the keyboard. I never achieved any success because I'm on an odexed ROM and couldn't get reodexing to work properly.
Tried but no joy, then realized it could be because the apk was from a previous nightly (couple days) than the one currently installed. Crossing my fingers that it's the reason it didn't work.
I'll try again.
sent from my vzw Galaxy Nexus / CM10.1 (nightlies)
*******************************************************************************************************************************************************************************
Solution found see here
*******************************************************************************************************************************************************************************
Hello all,
So I've been searching for a way to change the boot animation on my S3, all I was able to find were ~year old or older tutorials...
(Currently have version 4.4.2, model i747M)
Now I've got no boot animation at all, (sound is still there), and I'm just looking to get it back. (Or if possible a custom one but I'll settle for anything at this point.)
I used the following tutorial to try and change it:
http://forum.xda-developers.com/showthread.php?t=2063280
I believe, (based off the files used in the tutorial), that the problem may be in/with the following:
/system/bin/bootanimation (exe)
or
/system/bin/samsungani (exe)
or
/system/bin/sh (text file)
Any help would be amazing.
*******************************************************************************************************************************************************************************
These have NOT worked for me, but hopefully anyone else experiencing this problem could benefit from them:
http://forum.xda-developers.com/gal...-to-restore-s3-samsung-bootanimation-t2288545 (credit to @thenookieforlife3)
http://forum.xda-developers.com/showthread.php?p=34815984&highlight=bootanimation#post34815984 (directed to specific post)
http://forum.xda-developers.com/galaxy-s3-att/help/trying-to-create-boot-animation-cm11-t2818466 (short thread with a "walkthrough")
*******************************************************************************************************************************************************************************
Hello there, @JamPro,
To restore your boot animation, check out the tutorial here.
Hey @thenookieforlife3,
I've already tried this, (and just tried it again), and sadly it didn't work.
I believe the problem may be with/in:
/system/bin/bootanimation (exe)
or
/system/bin/samsungani (exe)
or
/system/bin/sh (text file)
They were altered/used with the original tutorial that I tried.
Thank you very much for trying though
Do you have a custom rom or just rooted stock? Samsung uses qmg files for the stock and custom ones are in zip format typically.
es0tericcha0s said:
Do you have a custom rom or just rooted stock? Samsung uses qmg files for the stock and custom ones are in zip format typically.
Click to expand...
Click to collapse
I just have rooted stock. The tutorial I used uses .zip's, but, I think, it might have been a work around instead of using .qmg files.
Either way, I have my original bootsamsung.qmg and bootsamsumgloop.qmg files, but it won't display the stock animation...
I've added some potential fixes in my original post. None of them worked for me, but anyone looking for a potential fix should give them a look.
HELP!!
Is my first time porting a rom using Android Kitchen (i already customized roms in the past, but i only did superficial changes, like change default background, remove .apk form app and priv-app, change the bootanimation and name of the rom), and when i check the updater-script he says that have 44 issues, but these issues is because he don't recognize the then & endif commands. When i try to install, the TWRP says that the installation fails because of the "error 6". I'm trying to port a Android 4.4.4 MIUI rom made for S3 Mini rom ( https://forum.xda-developers.com/t/rom-4-4-4-miuiv5-4-10-21-gt-i8190-01-01-2015.2990602/ ) to a Galaxy Trend Lite, because the S3 Mini is the only good Android phone that have a 233 ppi screen. I tried to modify the phone model in build.prop, but without success...
If ANYONE have idea of what can be the problem, or want the updater-script to see what's the problem, please send a comment here. I will try to download other base rom for the Trend to see if this can be the problem.
Bye
------------------------------------------------------------------------------------------------------------------------------
Edit:
Right after i posted the thread, i have an idea of what the error can be, i think it can be happening because the file are bigger than it was supposed to be. I will try to fix it and edit this post if it worked or not.
------------------------------------------------------------------------------------------------------------------------------
Edit 2:
Looking and comparing the commands in updater-script, i noticed the command to format and mount /data doesn't show the /data location, so i modified it putting the commands of the base to replace the wrong commands, i think now at least part of the problem is solved