Hi,
i have themed/edited Settings.apk, then i recompiled/signed/zipaligned without warnings with ApkTool, but once overwritten original Settings.apk and chmoded to 0644 i can't restart the phone, it is stuck on "Android starting" or "updating" (i can't remember the correct text showing). Now i resored the original Settings.apk and all is working fine.
Am i missing something? I have used framework-res and framework-res-htc.
I'm on rooted stock rom latest firmware, no xposed.
Thanks and sorry for my bad english.
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
In order to run a rebuilt application. You must resign the application. Android documentation can help with this.
Click to expand...
Click to collapse
and why the double post?
peteter said:
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
and why the double post?
Click to expand...
Click to collapse
I'm using "Advanced ApkTool v4.2.0", apktool.jar is a compatible version for marshmallow but i don't remember the version number, previously i themed various xperia themes for marshmallow without issues.
What do you mean with "you need to manually resign the rebuild apk in newer apktool versions"? Like i said i'm using Advanced ApkToo and it has sign command.
Double post is an error, i have requested the deletion.
Thank you
ah ok, thought you were using the standalone apktool from ibotpeaches, there you have to resign the rebuild apk yourself.
just check the link in the quote
Related
All,
I have been seen and search for the ways to completely de-odex ROM for One X, but unfortunately I didn't find any help on the issues faced. The problem are faced on the below mentioned apks.
- HTC Contacts
- Camera
- Phone
- Movie Editor
After spending some time I was able to overcome these problems except the Movie Editor which I am looking into.
To de-odexed the above except the Movie Editor, you will require additional dependencies and modified version of baksmali (all are attached).
For those of you using the dsixda kitchen. Follow the below steps.
1 - Copy the baksmali.jar to \tools\deodex_files.
2 - Rename the baksmali-1.3.2.jar to baksmali-1.3.2.jar.bak
3 - Rename the baksmali.jar to baksmali-1.3.2.jar
4 - Try deodexing via the kitchen menu.
5 - Few files will failed.
6 - Copy the dependencies to framework folder of your ROM (Make sure to back-up or rename the file if they already exists in the framework folder).
7 - Try Deodexing again from kitchen.
8 - You should only be left with MovieEditor.apk/MovieEditor.odex
9 - Delete the files extracted from the dependencies.zip and restore back-up if any.
Backup link
- http://depositfiles.com/files/crfw9cg2x
hey there, you're just the men...
i'm deodexing missing files , starting all from scratch ..
know what , i even deodexed MovieEditor.apk
keeping yuo inform ..
Mike has manually deodexed all apks since he was getting the errors. Not sure from which update was it/
ShyamSasi said:
Mike has manually deodexed all apks since he was getting the errors. Not sure from which update was it/
Click to expand...
Click to collapse
You still need the correct dependencies and baksmali even if you "manually" deodex. "Manually" just means going through each file, one by one... you still need the tools to do the actual deodexing
I never had any issue deodexing MovieEditor.apk
Apart from default bootclasspath from init.rc you need following combination of .jars in the bootclasspath:
com.android.location.provider.jar
com.google.android.maps.jar
com.htc.android.rosie.jar:com.htc.fusion.fx.jar
com.htc.android.rosie.jar:com.htc.fusion.fx.jar:com.htc.lockscreen.fusion.jar
com.htc.fusion.fx.jar
com.htc.fusion.fx.jar:com.htc.android.rosie.jar
com.htc.lockscreen.fusion.jar:com.htc.fusion.fx.jar
fmradioif.jar
javax.obex.jar
The only issues I had was with:
Camera.odex
(missing com/scalado/caps/hdrimage/HDRImage$Options)
HtcContacts+CRC_VIE_EVA_ENR_PRO_S40.odex
(missing orangelabs classes)
TrimIt.odex
(missing com/htc/wrap/com/android/vcard/HtcWrapVCardComposer)
BUT if those files are missing those classes and framework is missing those classes as well, that means that they were skipped during compiling process and I'm quite sure using -I switch while baksmaling is enough.
@theintelligent what did u change in baksmali.jar? I use the latest one from JF github.
mike1986. said:
I never had any issue deodexing MovieEditor.apk
Apart from default bootclasspath from init.rc you need following combination of .jars in the bootclasspath:
com.android.location.provider.jar
com.google.android.maps.jar
com.htc.android.rosie.jar:com.htc.fusion.fx.jar
com.htc.android.rosie.jar:com.htc.fusion.fx.jar:com.htc.lockscreen.fusion.jar
com.htc.fusion.fx.jar
com.htc.fusion.fx.jar:com.htc.android.rosie.jar
com.htc.lockscreen.fusion.jar:com.htc.fusion.fx.jar
fmradioif.jar
javax.obex.jar
The only issues I had was with:
Camera.odex
(missing com/scalado/caps/hdrimage/HDRImage$Options)
HtcContacts+CRC_VIE_EVA_ENR_PRO_S40.odex
(missing orangelabs classes)
TrimIt.odex
(missing com/htc/wrap/com/android/vcard/HtcWrapVCardComposer)
BUT if those files are missing those classes and framework is missing those classes as well, that means that they were skipped during compiling process and I'm quite sure using -I switch while baksmaling is enough.
@theintelligent what did u change in baksmali.jar? I use the latest one from JF github.
Click to expand...
Click to collapse
It actually fixed the issue of deodexing Phone.apk.
The bug was reported on JF and I have just recompiled it with the fix he has posted.
theintelligent said:
It actually fixed the issue of deodexing Phone.apk.
The bug was reported on JF and I have just recompiled it with the fix he has posted.
Click to expand...
Click to collapse
Strange, I also didn't have any issues deodexing phone.apk. Maybe because I'm using latest baksmali with the latest changes from May 13, 2012.
I had same apk missing dependencies as well as mike, soundhound, camera, trim it, HTC contacts. Cant remember last one but sure that there were 5.
Everything else was just a breeze.
Will try out the remainding this evening sometime.
Sent from my HTC One X using xda premium
mike1986. said:
Strange, I also didn't have any issues deodexing phone.apk. Maybe because I'm using latest baksmali with the latest changes from May 13, 2012.
Click to expand...
Click to collapse
The issue is with baksmali version 1.3.2 so if you are using latest one, you will not face any issue.
version 1.3.3 works like a charm for Sense 4 RUU and prior Sense version
If using kitchen, then the 1.3.3 needs to be renamed 1.3.2 and all jar/apk get deodex
I still got 4 apks erroring with 1.3.3
EddyOS said:
I still got 4 apks erroring with 1.3.3
Click to expand...
Click to collapse
Strange works fine for me.
Does it work then for you with the dependencies method proposed by theintelligent ?
I never tried it with the dependencies so that would probably sort it
Steve0007 said:
version 1.3.3 works like a charm for Sense 4 RUU and prior Sense version
If using kitchen, then the 1.3.3 needs to be renamed 1.3.2 and all jar/apk get deodex
Click to expand...
Click to collapse
I use 1.3.3 version got from http://leedroid.ftp.rshost.eu/share/ and I modify 'use_this_version.txt' to be 1.3.3 and all files to be de-odexed successfully.
EddyOS said:
I still got 4 apks erroring with 1.3.3
Click to expand...
Click to collapse
I still have 6 or 7 file need to be manually deodexed (within kitchen) but once manually did (with ignore parameter) but it works.
no more silent
try new lession now
Thanks. With all of your help, I was able to properly deodex the Rogers ROM which also experienced problems with the same 6 APK's as most of you.
Hello
I want to link to your kitchen one x
thank you
Thanks guys, I've linked this thread to the main kitchen thread, under 'HTC One X'.
every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?
Hello XDA,
I am trying to decompile settings.apk from stock GB rom to modify it as ICS settings & i know how to do it because i have done it before on other phones. My problem is Apk-Multi-Tool won't let me install SemcGenericUxp.apk, i installed framework-res.apk & SystemUI.apk.
When i try to decompile settings.apk with just framework-res.apk & SystemUI.apk install its says "Can't find framework resources...."
I tried to decompile with dependee apk using option "10" & drag the SemcGenericUxp.apk but i says "Sorry its not a dependee apk...."
Anyone having any type of knowledge please input some!
Thanks!!
Did you set up the frameworks (framework-res.apk and SemcGenericUxpRes.apk, if I recall correctly) with apktool using command
Code:
apktool if name-of-file.apk
Someguyfromhell said:
Did you set up the frameworks (framework-res.apk and SemcGenericUxpRes.apk, if I recall correctly) with apktool using command
Code:
apktool if name-of-file.apk
Click to expand...
Click to collapse
Thanks for the reply.
I am not using apk-tool but apk-multi-tool because its easy to do decompile/recompile with it & also chances of errors also decreases due to straight forward steps.
Any other help?
Try using framework-res.apk as dependee APK
Someguyfromhell said:
Try using framework-res.apk as dependee APK
Click to expand...
Click to collapse
Nope,
it says "Sorry its not a dependee file..." for both SemcGenericUxp.apk & framework-res.apk
Someguyfromhell said:
Try using framework-res.apk as dependee APK
Click to expand...
Click to collapse
Nope,
it says "Sorry its not a dependee file..."
I tried moding E10i Settings.apk from stock rom using apk-multi-tool and all went good, see http://forum.xda-developers.com/showthread.php?t=2754168
whats wrong with our SemcGenericUxp.apk?:crying:
I just found a work around!:laugh:
can someone help me please:crying:? i've been trying any apktool for decompile the settings.apk, but the result it's only failed and apktool always make progress like this "please install any framework files, see this on our forum" although i've been installed framework-res.apk first? why ya? that app is almost succesfuly decompile i can see all xml file has been decoding, but not all files decoding some files still can't be read with notepad++? and when i try to recompile again it's always say error although i'm never modified or remove any content from that app? why ya that happen? i still dizzy with that? settings.apk from C1905 4.3 Single Sim (deodexed) with stock framework, are that can be combine for decompile?
1) Any apps you wish to decompile coming from a Sony ROM you MUST install framework-res.apk AND SencGenericUxpRes.apk
2) Your framework files MUST be deodexed, meaning that if you are using framework-res.apk and you have a framework-res.odex file next to it you will have to deodex the framework files first.
3) The framework files MUST come from the same firmware as the app.
gamer649 said:
1) Any apps you wish to decompile coming from a Sony ROM you MUST install framework-res.apk AND SencGenericUxpRes.apk
2) Your framework files MUST be deodexed, meaning that if you are using framework-res.apk and you have a framework-res.odex file next to it you will have to deodex the framework files first.
3) The framework files MUST come from the same firmware as the app.
Click to expand...
Click to collapse
so you mean is? i need SemcGenericUxpRes.apk and framework-res.odex too. to deodex any files from sony rom? but how i can install SemcGenericUxpRes.apk? because in this selection this only must install framework first? is that you mean SemcGenericUxpRes.apk must i install to like install any framework files?
Nicklas Van Dam said:
so you mean is? i need SemcGenericUxpRes.apk and framework-res.odex too. to deodex any files from sony rom? but how i can install SemcGenericUxpRes.apk? because in this selection this only must install framework first? is that you mean SemcGenericUxpRes.apk must i install to like install any framework files?
Click to expand...
Click to collapse
You do NOT need any .odex files relating to the framework. HOWEVER, the framework MUST be fully deodexed (deodexing means repacking the .apk/.jar file in such a way that the .odex file and the .apk/.jar file are one and not two separate parts).
To install the SemcGenericUxpRes.apk you must install it as you would with any other framework file.
Two questions while I am here, what firmware are you on? And what is your native language?
gamer649 said:
You do NOT need any .odex files relating to the framework. HOWEVER, the framework MUST be fully deodexed (deodexing means repacking the .apk/.jar file in such a way that the .odex file and the .apk/.jar file are one and not two separate parts).
To install the SemcGenericUxpRes.apk you must install it as you would with any other framework file.
Two questions while I am here, what firmware are you on? And what is your native language?
Click to expand...
Click to collapse
i use C1905 15.4.A.1.9 Indonesia, and native language is English (CA), why? so i must rename SemcGenericUxpRes.apk and change to framework-res.apk? but how can be 2 framework installed?,
Nicklas Van Dam said:
i use C1905 15.4.A.1.9 Indonesia, and native language is English (CA), why? so i must rename SemcGenericUxpRes.apk and change to framework-res.apk? but how can be 2 framework installed?,
Click to expand...
Click to collapse
For your firmware I might be able to upload the two framework files you need to use, it depends on if and when I can get them. And for your native language I was thinking that it might be better for me to give my reply for you if you used a different language than English.
But no, you do not need to change the name of SemcGenericUpxRes.apk, all you need to do is install framework-res.apk and then immediately install SemcGenericUpxRes.apk (there is no name change needed). If you install them under different names they won't overwrite each other and thus won't give errors and two frameworks can be installed.
gamer649 said:
For your firmware I might be able to upload the two framework files you need to use, it depends on if and when I can get them. And for your native language I was thinking that it might be better for me to give my reply for you if you used a different language than English.
But no, you do not need to change the name of SemcGenericUpxRes.apk, all you need to do is install framework-res.apk and then immediately install SemcGenericUpxRes.apk (there is no name change needed). If you install them under different names they won't overwrite each other and thus won't give errors and two frameworks can be installed.
Click to expand...
Click to collapse
i download the stock rom in here https://mega.co.nz/#!29ww0Rpb!NVOkXyH1nEoIbZXtetmg1i_Sbf8raArFVQ7Yfn8DDks stock rom c1905 4.3, ok i will try to install framework file first. But my settings.apk is deodexed? for decompile i must use app that have been deodexed or not?
and after i install a framework-res.apk and SemcGenericUxpRes.apk to decompile setinggs.apk(deodexed) always happen like this
Log For : Settings.apk
Log Type : Decompiling
Log Recorded At : 09 2014-28- 11:01:05,83
Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak
------------------------------------------------------
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
------------------------------------------------------
why ya? :crying: i still dizzy with this kind, or the settings.apk must odexed first?
and this time the settings.apk is odexed, and i try again to decompile this files. but the result is always same like this
Log For : Settings.apk
Log Type : Decompiling
Log Recorded At : 09 2014-28- 11:06:38,76
Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak
------------------------------------------------------
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
------------------------------------------------------
Introduction
Google has updated Android System Webview for Lollipop, but is only exclusive for stock Nexus ROMs. The app is available in Play Store but renders unusable for non-Nexus ROMs. The 'framework-res.apk' contains a string that links the webview to the stock package 'com.android.webview,' and the updated webview uses the package name 'com.google.android.webview.' This mod replaces the link for the Webview from stock to the updated package.
An Xposed module is available but Xposed Framework is in its 'Super Alpha' stage for Android 5.1.1. This mod is for those who don't want to test an unstable build yet.
Instructions
NOTE: Ensure that a backup is available in case things get out of hand.
Download and install Android System Webview from Play Store or replace the stock webview with Delta GApps Webview Addon (flash).
Download the attached file and place it in the device's storage.
Flash the downloaded file through recovery.
Reboot the system.
DIY Tutorial
If you have other mods installed, you can apply this mod alongside them.
Requirements
Windows Platform
A PC
Modified framework-res.apk
Instructions
Go to iBotPeaches' Apktool website and follow the installation instructions for Apktool 2.x.
Place the modified framework-res.apk together with the previously downloaded files in the same folder.
Hold 'Ctrl' + 'Shift' and right-click inside the folder and select 'Open command window here'.
Type in:
Code:
apktool if framework-res.apk
This imports the framework, which is what the 'if' stands for.
Type in:
Code:
apktool d framework-res.apk -s
This decodes the apk. The '-s' variable makes it decode only the resources, which saves us more time in decompiling.
Navigate to 'framework-res\res\values'.
Open up strings.xml and find 'config_webViewPackageName'.
Replace 'com.android.webview' with 'com.google.android.webview' and save.
Type in:
Code:
apktool b framework-res -c
This rebuilds the apk, which is what the 'b' stands for. The variable '-c' copies the original AndroidManifest.xml and META-INF folder. These contain the signatures of the apk and are necessary to function properly.
The recompiled framework-res.apk will be placed in 'framework-res\dist'.
Overwrite the existing framework-res.apk manually or replace the one in the flashable zip with the newly modified framework-res.apk.
thanks for your guide bro
will try this soon, but what we know how this work, if we success install this mod?
Nicklas Van Dam said:
thanks for your guide bro
will try this soon, but what we know how this work, if we success install this mod?
Click to expand...
Click to collapse
The only way I found out it was working was when I removed/replaced the stock webview, Google apps didn't force close at boot. I haven't thought/found other ways on how to.
elmkzgirxp said:
The only way I found out it was working was when I removed/replaced the stock webview, Google apps didn't force close at boot. I haven't thought/found other ways on how to.
Click to expand...
Click to collapse
So I must deleted stock android web view?
Nicklas Van Dam said:
So I must deleted stock android web view?
Click to expand...
Click to collapse
It's not necessary as it is guaranteed to work. But if you really wanted to make sure, then you can go ahead and replace/remove the stock webview.
elmkzgirxp said:
It's not necessary as it is guaranteed to work. But if you really wanted to make sure, then you can go ahead and replace/remove the stock webview.
Click to expand...
Click to collapse
is this will make bootloop? i used cm and this very fragile for that thing
Nicklas Van Dam said:
is this will make bootloop? i used cm and this very fragile for that thing
Click to expand...
Click to collapse
No. You should consider the risk when dealing with these things. Otherwise don't attempt to do such modifications.
elmkzgirxp said:
No. You should consider the risk when dealing with these things. Otherwise don't attempt to do such modifications.
Click to expand...
Click to collapse
i'm not consider that -_-, but i'm very lazy to reflash again if this bootloop. ok thanks for suggest
i've do patch to core.jar from lucky patcher. that's why i lazy with that thing -_- . if reflash it take much time to patch it again
@elmkzgirxp
is there way to check if webview is working??
also there are three files related to webview in aosp ROMs at /system/lib folder
1)libwebviewchromium.so
2)libwebviewchromium_loader.so
3)libwebviewchromium_plat_support.so
do they need replacement as Google webview also has libwebviewchromium.so file
mepsilon2 said:
@elmkzgirxp
is there way to check if webview is working??
also there are three files related to webview in aosp ROMs at /system/lib folder
1)libwebviewchromium.so
2)libwebviewchromium_loader.so
3)libwebviewchromium_plat_support.so
do they need replacement as Google webview also has libwebviewchromium.so file
Click to expand...
Click to collapse
The only way I know is that it doesn't return error messages on certain apps in logcat.
If you're talking about AOSP, the three libraries are used by webview.apk, the stock one. If you are using 5.0+, then it's not necessary to remove them, as the libraries in the /system/app folder takes precedence. But if you're using 4.0+, then you have to replace them. Most flashable zips do this work for you, unless you're doing it manually.
elmkzgirxp said:
The only way I know is that it doesn't return error messages on certain apps in logcat.
If you're talking about AOSP, the three libraries are used by webview.apk, the stock one. If you are using 5.0+, then it's not necessary to remove them, as the libraries in the /system/app folder takes precedence. But if you're using 4.0+, then you have to replace them. Most flashable zips do this work for you, unless you're doing it manually.
Click to expand...
Click to collapse
thanks
I'm on 5.1.1. Google webview has it's own libwebviewchromium.so shouldn't it have it's own libwebviewchromium_plat_support.so and libwebviewchromium_loader.so also??
---------- Post added at 10:42 AM ---------- Previous post was at 10:28 AM ----------
I guess it shouldn't as stock webview also has only libwebviewchromium.so Other 2 lib files must be common for both webview
mepsilon2 said:
I guess it shouldn't as stock webview also has only libwebviewchromium.so Other 2 lib films must be common for both webview
Click to expand...
Click to collapse
Right, of course, I forgot. The other two libraries are still necessary for it to function, but they rely on different libwebviewchromium.so.
elmkzgirxp said:
Right, of course, I forgot. The other two libraries are still necessary for it to function, but they rely on different libwebviewchromium.so.
Click to expand...
Click to collapse
I don't know if people already know this or not. but There is now no need to compile and decompile framework. there is a new commit which support both type of webview. Here is link for SlimRom
https://github.com/SlimRoms/frameworks_base/commit/72556d08c5a50d01252c74e1cec361ee24edd6e6
This support I have found in CM and AICP ROM too but not in ParanoidAandroid
mepsilon2 said:
I don't know if people already know this or not. but There is now no need to compile and decompile framework. there is a new commit which support both type of webview. Here is link for SlimRom
https://github.com/SlimRoms/frameworks_base/commit/72556d08c5a50d01252c74e1cec361ee24edd6e6
This support I have found in CM and AICP ROM too but not in ParanoidAandroid
Click to expand...
Click to collapse
Yeah, this thread is actually outdated, but I am unable to delete it. This could just be for future reference.