Decompiling framework-res.apk , bootloop - Nexus 4 Q&A, Help & Troubleshooting

Hey fellas ;
I'm trying to destroy the hideous crt screen off animation from my device on KOT49H build , i'm gonna try to explain what i did step by step
First I pulled the framework-res.apk from system/framework
then i installed it , apktool if framework-res.
then i decompiled it , apktool d framework-res.apk
then i edited , bools.xml entry "animatescreenlights" from false to true (rubbed me a little wrong , everybody said it should be the reverse , true to false but when i opened it , it was false , i checked like 6 times)
then recompiled it using apktool b framework-res framework-res.apk (i had moved the original file before this so no overwriting.)
Copied Meta-inf and android manifest from the original one to the edited one using 7zip
then i signed it using android multi-tool.
and Bootloop.
I actively used these and it used to work on my LG P920.
I used Xblast tools to get rid of the crt off animation , but it wouldn't work for some reason. (I'm not stupid , i activated the module , everything works just not that.)
I repeated these steps from android multi-tool GUI , install , decompile , edit , recompile , copy meta-inf and android manifest to the new one , sign.
Still bootloop.
My JDK is properly set up in the environment variables.
Using , regretfully , Windows 8.1 x64.
Any suggestions ?

Related

Change blink rate from notification LED - framework-res.apk

I need help to change blink rate from the notification LED in framework-res.apk
When decompile in folder res/values are file integers.xml
I've change defaultNotificationLedOff to 500 to make faster blinking.
When I recompile apk and flash to phone it doesnt boot.
Can someone help?
Im on Omega v5
I am tying to do the same thing on my Sony Xperia ZL.
I have been using Apk manager to de and re compile.
The problem with me was that the new edited integers.xml did not show in the new recompiled fie.
In order to see what I am saying, decompile the framework-res.apk, make the changes in the integers.xml and then recompile.
Now Decompile you own work and open the integers.xml, you will be surprised what you see.
The changes you made do not exist.
decompile I9500 framework-res.apk
ahgahg said:
I am tying to do the same thing on my Sony Xperia ZL.
I have been using Apk manager to de and re compile.
The problem with me was that the new edited integers.xml did not show in the new recompiled fie.
In order to see what I am saying, decompile the framework-res.apk, make the changes in the integers.xml and then recompile.
Now Decompile you own work and open the integers.xml, you will be surprised what you see.
The changes you made do not exist.
Click to expand...
Click to collapse
I met the same problem. When I decompile the samsung I9500 framework-res.apk, then modify nothing and recompile it. When I put the recompiled file into the system, the system will auto reboot and can't go to the lockscreen.
But when I doing the same thing on HTC device, it works well, so why this happen?

What am I doing wrong when I am trying to edit the LGSystemUI APK?!

Here are the steps I have been following -
Get APKTool
Extracted framework-res.apk and lge-res.apk from the device and installed the frameworks using apktool.
Decompiled the LGSystemUI.apk
Made a simple change or two (Swapped an image round on the nav buttons or something).
Recompiled it back up
Signed the APK.
Uploaded it back to system/app and chmod it to 644.
Am I missing something?
Anyone?
I just got Apk tool installed today but won't have time to play with it till the weekend.
One thing I read that I did not see in ur list of steps was something about taking the AndroidManifest.xml (think that's it) and META file from the original apk and copying it to the modified apk using 7zip.
Sent from Verizon logo plastered G2 bastard

[Q]decompile settings.apk [SOLVED}

Hello,
Yesterday night I was trying to decompile Settings.apk with apktool...
Bt it was being unsuccessful on every try...
Showing errors, see attachments.
plz guide..
LINK: http://d-h.st/mk9
Try with another apk decompiling tools.
aniket.lamba said:
Try with another apk decompiling tools.
Click to expand...
Click to collapse
tried with apkmanager... not wrking..
EDIT: Can I give u the apk to decompile.. as im noob in these things
Did you import "framework-res.apk" and "twframework-res.apk"?
If yes then are you using the same framework from the same rom of the "settings.apk" or your using settings.apk of other rom?
Sent from my GT-S5360 using Tapatalk 2
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
-CALIBAN666- said:
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
Click to expand...
Click to collapse
WTF, giving error while uploading zip.. :/
your first screenshot shows that you have not placed framework-res.apk in the location your command prompt is at
in other words you did not place framework-res.apk in the location c:\new folder
just as a tip - when working with dos prompt - never put a space in folder or file names - it doesnt like it
marcussmith2626 said:
your first screenshot shows that you have not placed framework-res.apk in the location your command prompt is at
in other words you did not place framework-res.apk in the location c:\new folder
just as a tip - when working with dos prompt - never put a space in folder or file names - it doesnt like it
Click to expand...
Click to collapse
No, Ive placed two folders named 'apktool' and 'new folder'...
'apktool ' includes apkmultitool and new folder includes PY-APKTOOL, I found that here http:// http://forum.xda-developers.com/showpost.php?p=39697820&postcount=4 respectively.
Ive used apkmultitool as:
I renamed framework-res.apk as apktool if framework-res.apk and tried to decompile it. Bit i ve faced an error.
I could not install framework-res.apk in my computer..
Framework-res.apk:
I followed guide to decompile framework-res.apk from here [URL=" http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1" ] http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1 [/URL]
And done my modifications in framework-res.apk and installed it successfully.
While I was trying to decompile settings.apk, the errors were occuring..
crazysuraj said:
No, Ive placed two folders named 'apktool' and 'new folder'...
'apktool ' includes apkmultitool and new folder includes PY-APKTOOL, I found that here http:// http://forum.xda-developers.com/showpost.php?p=39697820&postcount=4 respectively.
Ive used apkmultitool as:
I renamed framework-res.apk as apktool if framework-res.apk and tried to decompile it. Bit i ve faced an error.
I could not install framework-res.apk in my computer..
Framework-res.apk:
I followed guide to decompile framework-res.apk from here [URL=" http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1" ] http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1 [/URL]
And done my modifications in framework-res.apk and installed it successfully.
While I was trying to decompile settings.apk, the errors were occuring..
Click to expand...
Click to collapse
I dont understand what you are doing with importing the framework
just do this
create a folder called apktool in the root of c: - in other words create a folder apktool so its location is c:\apktool
place framework-res.apk from the rom zip along with the apk you wish to decompile - in this case settings.apk in the folder apktool you have just created
open a command prompt as admin
type the following
cd c:\apktool
apktool if framework-res.apk
apktool d settings.apk settingsdecompiled
-CALIBAN666- said:
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
Click to expand...
Click to collapse
Ive uploaded apks
Google Drive :LINKS REMOVED
UPDATED LINK: http://d-h.st/mk9
Thank You!
crazysuraj said:
Ive uploaded apks
Google Drive :LINKS REMOVED
UPDATED LINK: http://d-h.st/mk9
Thank You!
Click to expand...
Click to collapse
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
marcussmith2626 said:
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
Click to expand...
Click to collapse
Yes Sir,
Here, its my fault and I should have knowledge if I love modding
I have to learn more things about how to use apktool : rolleyes:
Thank You...!
regards.
marcussmith2626 said:
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
Click to expand...
Click to collapse
What is this ??
crazysuraj said:
What is this ??
Click to expand...
Click to collapse
it means you havent installed apktool correctly and/or not got java jdk installed as well
Java development tools (JDK)
http://www.oracle.com/technetwork/ja...ads/index.html
Apktool
http://code.google.com/p/android-apktool/downloads/list
Place both apktool files in C:\Windows\
see my thread here for a full picture guide to using apktool
http://forum.xda-developers.com/showthread.php?t=2206938
also why have you renamed your apks to apktool if framework-res and so on in your screenshot thats a big no - do not rename your apk files
they should just be called framework-res.apk settings.apk and twframework.apk
you have renamed them to commands you type into a command prompt and I dont understand why you have done that!
you type in the command prompt apktool if framework-res.apk - you do not rename any files
marcussmith2626 said:
it means you havent installed apktool correctly and/or not got java jdk installed as well
Java development tools (JDK)
http://www.oracle.com/technetwork/ja...ads/index.html
Apktool
http://code.google.com/p/android-apktool/downloads/list
Place both apktool files in C:\Windows\
see my thread here for a full picture guide to using apktool
http://forum.xda-developers.com/showthread.php?t=2206938
also why have you renamed your apks to apktool if framework-res and so on in your screenshot thats a big no - do not rename your apk files
they should just be called framework-res.apk settings.apk and twframework.apk
you have renamed them to commands you type into a command prompt and I dont understand why you have done that!
you type in the command prompt apktool if framework-res.apk - you do not rename any files
Click to expand...
Click to collapse
OMG!
crazysuraj said:
OMG!
Click to expand...
Click to collapse
well done you have decompiled settings.apk to a folder called settings
make sure you use notepad++ to edit any xml files (different from windows notepad)
http://notepad-plus-plus.org/download/v6.6.3.html
to recompile just type
apktool b settings newsettings.apk
and it will recompile the folder to an apk called newsettings.apk (assuming no errors have been made in modding files)
you can then rename this apk back to settings.apk and sign it if required (if you have edited the androidmanifest you need to sign the apk) - you can use zipsigner from the playstore to sign apks if you need to - use a testkey for non system apps and a platform key for system apps

signing modified touchwiz

hii all..
I used to theme touchwiz for my S3 to look like s6..
after themeing I used to compile it with apktool and then zipalign and finally sign it with signApk..
it used to work fine..
Now I am trying to theme TouchWiz for my G900H.. but when I recompile, zipalign and sign the final apk as I used to do earlier it doesnt work.. Touchwiz doesnt install in recovery nor after I push it manually and set permissions..
where can be the problem ? what am I missing ?
P.S: I also used Advanced APK Tool v4.1 but same result..
please help if u can..
thanks
any help ??
Open the apk in 7zip, open original unmodified apk in 7zip as well, drag the unmodified apk's meta-inf folder to the modified one, should install now.
Sent from my SAMSUNG-SM-G900A using Tapatalk

[LG G3 KK 4.4.2] Decompiling lge-res.apk with Tickle my Android

So, since decompiling the framework-res.apk is a cinch with TickleMyAndroid , I decided:
"Let's try lge-res.,apk aswell and look at some .xml files"
Decompiling it... works !
Recompiling it (with original Signature) ? No dice.... will error out (and I haven't even changed *any* files in the lge-res.apk to begin with, it is UNTOUCHED....
(I even retried the whole process, purging the TMA dir, reinstalling the framework-res.apk and using the newest available apktool 2.2.0, no results.
Any ideas on this ? I find this rather weird, as the framework-res.apk worked like a charm
Maybe my lge-res.apk is botched (but then my phone wouldn't work... right ?
Thanks in advance for any lge-res.apk stock files and/or suggestions on how to get the da#n lge-res.apk to de and REcompile.
-Rye-
EDIT: https://github.com/iBotPeaches/Apktool/issues/1307

Categories

Resources