[MOD][GUIDE]Enable Ripple Effect Samsung ICS ROMs - Android Software/Hacking General [Developers Only]

While trying to find any hidden features Samsung may have kept hidden in the stock ROM for my Galaxy Ace II X (GT-S7560M), I found some smali code for the lockscreen options, that removed the option to toggle the ripple effect! If you don`t know what the ripple effect is, view this video. It replaces the stock Samsung slide unlock with what looks like a body of water. When you touch the screen, it makes a ripple in the water. Anyways, on to the mod.
I do not know if this mod will work on other Samsung ICS ROMs. All this mod does is make the option appear, by deleting a line of code (that makes the toggle not there). You can be on either an odexed or deodexed ROM, but the SecSettings.apk should be from a deodexed ROM, to make the process a lot easier. You can reodex the SecSettings.apk easily using this app. I`m assuming that you know the basics of decompiling and recompiling .apk files. I am in no way responsible for any damage done to your hardware. Let`s start:
--> Decompile SecSettings.apk (I use apktool)
--> Navigate to /smali/com/android/settings
--> Open LockScreenSettings.smali with your preferred text editor (I use Notepad++)
--> Search `mRippleEffect`, and search until you find the line with `mRippleEffect` that is above a line with the phrase `removePreference` in it.
--> Remove 4 lines - that `removePreference` line, and the 3 lines above it.
--> Save, recompile, push to /system/app/.
--> Decompile framework-res.apk
--> Navigate to /res/values
--> Open bools.xml
--> Search `config_isWaterRippleEnabled`
--> Change value from `false` to `true`
--> Save, recompile, push to /system/framework/
--> Change the permissions to 0644 (rw-r--r--)
--> Reboot, and enjoy!
An example of which lines to remove (taken from my SecSettings.apk, so code may differ slightly):
Code:
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v5
iget-object v8, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
invoke-virtual {v5, v8}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
You should find the option to toggle the ripple lockscreen under Security > Lock screen options. Make sure that swipe unlock is enabled so you can access the Lock screen options.
You can also enable some other hidden lockscreen settings (like the Information Ticker, Camera Quick Access, Wakeup Command which requires S Voice, et cetera depending on whether or not Samsung has chosen to include certain features in the ROM. I can`t guarantee that there`ll be no bugs if you`re trying to enable another hidden option) by following this general method (of deleting code that is telling the device to hide the option). If you have any problems, questions, or comments, post them here! If you choose to include this mod in your ROM, please give me some thanks!

Can u tell me what is size of apk u got after recompiling.I got both apk are less in size by 6 mb than stock one.thanks
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2

25vikasp said:
Can u tell me what is size of apk u got after recompiling.I got both apk are less in size by 6 mb than stock one.thanks
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
Click to expand...
Click to collapse
There isn't a specific size, but it should be close to the size of the original apk. Have you used apktool before? You have to replace the AndroidManifest.xml and the META-INF folder with the ones from the original apk in this case. Make a backup of your stock ROM in case you get into a bootloop when you push the two modified apks to their respective locations. Set their permissions as rw-r-r (chmod 0644). If you still have problems afterwards, let me know and I'll willingly help you out.

Codename13 said:
There isn't a specific size, but it should be close to the size of the original apk. Have you used apktool before? You have to replace the AndroidManifest.xml and the META-INF folder with the ones from the original apk in this case. Make a backup of your stock ROM in case you get into a bootloop when you push the two modified apks to their respective locations. Set their permissions as rw-r-r (chmod 0644). If you still have problems afterwards, let me know and I'll willingly help you out.
Click to expand...
Click to collapse
I am new to apk tool but I read that tutorials and tried to do that.but I got error at the end when recompiling apk section.even I Got apk modded files then I placed those files to system and framework respectively.I got bootloop after that I recovered it by cwm package .ur codes are present in my smali files as u said so may be I can enable my ripple effects in my s duos.can u suggest any tutorial.I have Windows xp.thanks for ur reply mate
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2

25vikasp said:
I am new to apk tool but I read that tutorials and tried to do that.but I got error at the end when recompiling apk section.even I Got apk modded files then I placed those files to system and framework respectively.I got bootloop after that I recovered it by cwm package .ur codes are present in my smali files as u said so may be I can enable my ripple effects in my s duos.can u suggest any tutorial.I have Windows xp.thanks for ur reply mate
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
Click to expand...
Click to collapse
The most important tool in Android development has by far got to be reading error messages/logcat. Paste the complete wall of text from when you recompile with apktool. Also, which apk is the one that're you're having issues with? framework-res.apk or SecSettings.apk? And before you decompile either, you have to "apktool if" (command to install a framework) framework-res.apk and twframework-res.apk (found under /system/framework/), with a path that directs apktool to the apk.

Codename13 said:
The most important tool in Android development has by far got to be reading error messages/logcat. Paste the complete wall of text from when you recompile with apktool. Also, which apk is the one that're you're having issues with? framework-res.apk or SecSettings.apk? And before you decompile either, you have to "apktool if" (command to install a framework) framework-res.apk and twframework-res.apk (found under /system/framework/), with a path that directs apktool to the apk.
Click to expand...
Click to collapse
Ok I will post logcat here thanks.I got problem in both related apk.thanks for reply
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
---------- Post added at 04:01 PM ---------- Previous post was at 03:42 PM ----------
see my logcat for secsettings
C:\Documents and Settings\vikas>apktool
Apktool v1.5.1PR2. - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
with smali v1.4.1, and baksmali v1.4.1
Updated by @iBotPeaches <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
COMMANDs are:
d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.
OPTS:
-s, --no-src
Do not decode sources.
-r, --no-res
Do not decode resources.
-d, --debug
Decode in debug mode. Check project page for more info.
-b, --no-debug-info
Baksmali -- don't write out debug info (.local, .param, .line, etc.)
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--framework <dir>
Use the specified directory for framework files --keep-broken
-res
Use if there was an error and some resources were dropped, e.g.:
"Invalid config flags detected. Dropping resources", but you
want to decode them anyway, even with errors. You will have to
fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>.
It will automatically detect, whether files was changed and perform
needed steps only.
If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
will be used.
OPTS:
-f, --force-all
Skip changes detection and build all files.
-d, --debug
Build in debug mode. Check project page for more info.
if|install-framework <framework.apk> [<tag>]
Install framework file to your system.
For additional info, see: https://github.com/iBotPeaches/Apktool
For smali/baksmali info, see: http://code.google.com/p/smali/
C:\Documents and Settings\vikas>apktool if framework-res.apk
I: Framework installed to: C:\Documents and Settings\vikas\apktool\framework\1.a
pk
C:\Documents and Settings\vikas>apktool b secsettings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:181)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
C:\Documents and Settings\vikas>apktool d secsettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\vikas\apktool\fra
mework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Documents and Settings\vikas>apktool b secsettings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'crypt_keeper_button_text' has no default translation in C
:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_component_title' has no default translation in C:\D
ocuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_settings_summary' has no default translation in C:\
Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_settings_title' has no default translation in C:\Do
cuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_test' has no default translation in C:\Documents an
d Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_summary' has no default translation in C:\D
ocuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_title' has no default translation in C:\Doc
uments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_zero_summary' has no default translation in
C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'system_tutorial_list_item_summary' has no default transla
tion in C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'system_tutorial_list_item_title' has no default translati
on in C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'vibrate_title' has no default translation in C:\Documents
and Settings\vikas\secsettings\res; found: es pt
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
droid.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
C:\Documents and Settings\vikas>
i am giving u links for my original files u can edit it and give me just a request ok mate.i will try until success.thanks
https://www.dropbox.com/s/8pv8wqp32eclebi/SecSettings.apk
https://www.dropbox.com/s/ig48getu8l8w8y3/framework-res.apk

25vikasp said:
Ok I will post logcat here thanks.I got problem in both related apk.thanks for reply
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
---------- Post added at 04:01 PM ---------- Previous post was at 03:42 PM ----------
see my logcat for secsettings
C:\Documents and Settings\vikas>apktool
Apktool v1.5.1PR2. - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
with smali v1.4.1, and baksmali v1.4.1
Updated by @iBotPeaches <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
COMMANDs are:
d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.
OPTS:
-s, --no-src
Do not decode sources.
-r, --no-res
Do not decode resources.
-d, --debug
Decode in debug mode. Check project page for more info.
-b, --no-debug-info
Baksmali -- don't write out debug info (.local, .param, .line, etc.)
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--framework <dir>
Use the specified directory for framework files --keep-broken
-res
Use if there was an error and some resources were dropped, e.g.:
"Invalid config flags detected. Dropping resources", but you
want to decode them anyway, even with errors. You will have to
fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>.
It will automatically detect, whether files was changed and perform
needed steps only.
If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
will be used.
OPTS:
-f, --force-all
Skip changes detection and build all files.
-d, --debug
Build in debug mode. Check project page for more info.
if|install-framework <framework.apk> [<tag>]
Install framework file to your system.
For additional info, see: https://github.com/iBotPeaches/Apktool
For smali/baksmali info, see: http://code.google.com/p/smali/
C:\Documents and Settings\vikas>apktool if framework-res.apk
I: Framework installed to: C:\Documents and Settings\vikas\apktool\framework\1.a
pk
C:\Documents and Settings\vikas>apktool b secsettings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:181)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
C:\Documents and Settings\vikas>apktool d secsettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\vikas\apktool\fra
mework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Documents and Settings\vikas>apktool b secsettings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'crypt_keeper_button_text' has no default translation in C
:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_component_title' has no default translation in C:\D
ocuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_settings_summary' has no default translation in C:\
Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_settings_title' has no default translation in C:\Do
cuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_test' has no default translation in C:\Documents an
d Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_summary' has no default translation in C:\D
ocuments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_title' has no default translation in C:\Doc
uments and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'dream_timeout_zero_summary' has no default translation in
C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'system_tutorial_list_item_summary' has no default transla
tion in C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'system_tutorial_list_item_title' has no default translati
on in C:\Documents and Settings\vikas\secsettings\res; found: es pt
aapt: warning: string 'vibrate_title' has no default translation in C:\Documents
and Settings\vikas\secsettings\res; found: es pt
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
droid.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
C:\Documents and Settings\vikas>
i am giving u links for my original files u can edit it and give me just a request ok mate.i will try until success.thanks
https://www.dropbox.com/s/8pv8wqp32eclebi/SecSettings.apk
https://www.dropbox.com/s/ig48getu8l8w8y3/framework-res.apk
Click to expand...
Click to collapse
your problem is your not directing apktool to the settings folder.. use my QuickMod tool to decompile/compile it..

ricky310711 said:
your problem is your not directing apktool to the settings folder.. use my QuickMod tool to decompile/compile it..
Click to expand...
Click to collapse
Oh I would love to try.thanks.any link for that
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2

25vikasp said:
Oh I would love to try.thanks.any link for that
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
Click to expand...
Click to collapse
click on my profile and view my threads to find quickmod tool

Hey mate I am using crt effects on off mod by xposed tweaking it is great.is there any way to make it default without xposed framework by modifying apks.
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2

ricky310711 said:
click on my profile and view my threads to find quickmod tool
Click to expand...
Click to collapse
25vikasp said:
Oh I would love to try.thanks.any link for that
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2
Click to expand...
Click to collapse
Niiiiiiiiiiiiiiiiiiiiiiice got it working on my GT-S7562 :good:
Thank you @ricky310711 for your great tool!! just had to edit two lines of the .bat to get it to sign the compiled apks (/%apk%/)
Thank you @Codename13 for this awesome idea

KlinkOnE said:
Niiiiiiiiiiiiiiiiiiiiiiice got it working on my GT-S7562 :good:
Thank you @ricky310711 for your great tool!! just had to edit two lines of the .bat to get it to sign the compiled apks (/%apk%/)
Thank you @Codename13 for this awesome idea
Click to expand...
Click to collapse
Oh worked.I am very thankful if u post step by step process in short here
Sent from my GT-S7562 modded ics 1.2 ghz using Tapatalk 2

followed instructions given
you got to edit the .bat of modtool to get the apks signed
it is explained in a post in the modtool thread search for /%apk%/
as i am lazy i put the signed apks in the zip of pmp_u_5.7.4 update package (replaced them)
installed through cwm et voila now it ripples
can explain more when back home
Sent from my GT-S7562 using xda app-developers app

works with galaxy s duos.thanks for quicktool

Sir if i permission Framework is dangerous because its going to bootloop my celpphone can u help me how to do that to avoid bootloop why changed permission the framework.

marvin14 said:
Sir if i permission Framework is dangerous because its going to bootloop my celpphone can u help me how to do that to avoid bootloop why changed permission the framework.
Click to expand...
Click to collapse
While changing bools nothing will happen to bootloop the device incase backup the Rom or make a flashable original framework
Sent from my GT-S7562 using xda app-developers app

A bit help........
Hey, trying hard to port CM 11 to Galaxy S Duos. Just need the Network working and dual-SIM... Further details are HERE. JUST take a look

@Codename13 So I'm trying to re-enable it with a GT S7560M like you have, however, when opening LockScreenSettings.smali, there are no instances of mRippleEffect in the file. I'm using this method of extracting the files from the APK, what am I doing wrong?

Team Fail said:
@Codename13 So I'm trying to re-enable it with a GT S7560M like you have, however, when opening LockScreenSettings.smali, there are no instances of mRippleEffect in the file. I'm using this method of extracting the files from the APK, what am I doing wrong?
Click to expand...
Click to collapse
A. Where'd you get the files from? Mod Pack II X has this already, so if the files are from there then that's why you can't find mRippleEffect instances.
B. Did you properly import the framework-res and the twframework-res with the decompiler tool?

Codename13 said:
A. Where'd you get the files from? Mod Pack II X has this already, so if the files are from there then that's why you can't find mRippleEffect instances.
B. Did you properly import the framework-res and the twframework-res with the decompiler tool?
Click to expand...
Click to collapse
A. I took the files directly from my phone. I'm on stock, without Mod Pack II X installed.
B. The instructions there said the TW framework to import was "framework_Res.apk", however it's different on my device (framework-res.apk) so I didn't. I'll try importing that one and re-decompile it and see how it goes.

Related

framework-res.apk from ics leak decomplie/recomplie

anyone else had luck w decomplie and recomplie the stock framework-res file with apktool
It works if i start messing with other apks in the rom but not the framework.
I am missing something?
apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /root/tools-apk/framework-res/res/drawable-sw600dp-hdpi
invalid resource directory name: /root/tools-apk/framework-res/res/values-w720dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw600dp-land
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw600dp-w1024dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw360dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-w480dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw600dp-w1280dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw600dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-sw400dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-w500dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-w360dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-h720dp
invalid resource directory name: /root/tools-apk/framework-res/res/layout-w600dp
invalid resource directory name: /root/tools-apk/framework-res/res/values-w600dp
invalid resource directory name: /root/tools-apk/framework-res/res/layout-sw400dp
invalid resource directory name: /root/tools-apk/framework-res/res/layout-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2832548951564014427.tmp, -x, -S, /root/tools-apk/framework-res/res, -M, /root/tools-apk/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2832548951564014427.tmp, -x, -S, /root/tools-apk/framework-res/res, -M, /root/tools-apk/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:191)
... 6 more
http://www.hive11.com/android/framework-res.apk heres the file
Works perfectly fine for me...
Sent from my Liberty using XDA
what version of apktool are you using
Newest, I believe
Sent from my Liberty using XDA
yeah this ones tricky...
lets call one oldapktool.jar and one apktool.jar
get in a directory with oldapktool.jar and framework-res.apk
rename oldapktool.jar to apktool.jar
install ur framework "apktool if framework-res.apk"
decompile ur framework "apktool d framework-res.apk"
????
overwrite apktool.jar with newer one (its 1.4.3)
compile ur framework "apktool b framework-res"
dont ask me why the older one does it. i have too many copies of apktool and aapt that i have to mix and match to take apart and put togeather apks.
still not working and aapt is there and the path is set right dont get it
mhx said:
still not working and aapt is there and the path is set right dont get it
Click to expand...
Click to collapse
are you on windows?
no linux ubuntu
Try with apktool 1.4.1
I have successfully decompiled it and all ICS apks I'm at school. im on windows though I have a procedure to do it
Sent from my SAMSUNG-SGH-I727 using xda premium
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\mike>cd Desktop\forum
C:\Users\mike\Desktop\forum>dir
Volume in drive C has no label.
Volume Serial Number is 1E40-0F67
Directory of C:\Users\mike\Desktop\forum
03/29/2012 05:48 PM <DIR> .
03/29/2012 05:48 PM <DIR> ..
12/07/2011 09:38 PM 3,090,514 apktool.jar
03/29/2012 05:05 PM 8,272,966 framework-res.apk
03/29/2012 05:18 PM 2,676,027 oldapktool.jar
3 File(s) 14,039,507 bytes
2 Dir(s) 63,445,483,520 bytes free
C:\Users\mike\Desktop\forum>java -jar oldapktool.jar if framework-res.apk
I: Framework installed to: C:\Users\mike\apktool\framework\1.apk
C:\Users\mike\Desktop\forum>java -jar oldapktool.jar d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\mike\Desktop\forum>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'gps_assisted_data_download' has no default translation in
C:\Users\mike\Desktop\forum\framework-res\res; found: ko
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in
C:\Users\mike\Desktop\forum\framework-res\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in
C:\Users\mike\Desktop\forum\framework-res\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in C:\Users\mike\Desktop\forum\framework-res\res; found: es
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in C:\Users\mike\Desktop\forum\framework-res\res; found: es
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in C:\Users\mike\Desktop\forum\framework-res\res; found: es
I: Building apk file...
C:\Users\mike\Desktop\forum>
so forget the aapt.exe and .bat from the zip i gave you.
for me its defaulting to the one in my system32 dir which is the latest from the android sdk. dont use any of the aapt from apktool. update your aapt via android sdk (for me its using sdk manager.exe which grabs all the sdk tools, not sure on ubnix)
then try it again
---------- Post added at 11:17 PM ---------- Previous post was at 11:10 PM ----------
M0D1441 said:
Try with apktool 1.4.1
I have successfully decompiled it and all ICS apks I'm at school. im on windows though I have a procedure to do it
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
the one included in the zip i gave him is actually apktool1.4.2.31e6dc5 (oldapktool.jar)
i found i have to mix and match apktools and aapts depending on ics or gb apks and framework and systemui are even worse
It's weird it works for any other file in the rom except for this 1
compile with 1.4.3 and decompile with 1.4.2
i havent been able to decompile crap...
i got it working in windows but not linux
http://forum.xda-developers.com/showthread.php?t=1427959
yeah full time linux user here. I only fire up the windows machine if i need ODIN.
i use windows for desktop and do most of my dev work on a dedicated linux colo or my cloud server
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i need lots bw!
mhx said:
i use windows for desktop and do most of my dev work on a dedicated linux colo or my cloud server
i need lots bw!
Click to expand...
Click to collapse
did you delete classes.dex before decompiling?

Need Experts Help Modding Nougat Touchwiz Launcher

Hey guys Tanvir here,As the thread title says I am modifing the nougat touchwiz launcher using Apktool 2.2.2.
here are the steps i'm doing:
1. Modified the (res/values/dimens.xml) file and edited the size of the icon labels of 4x4 grid and resize the icon 48.0dp to 55.0dp of 4x5 grid.
2. Recompiled it.
3. Signed it with (SignApk) don't remember where i downloaded from.
4. Copied modded signed file to (system/Priv-app/TouchWizHome_2016C) and set right permissions (rw-r-r) using root explorer and rebooted device.
After reboot getting fc (TouchWizHome has stopped).
What excatly I want to modify?
Reduce the size of labels of 4x4 grid size.
Increase the size of icons but not label size of 4x5 grid size.
And and make grid 5x5 to grid size of 4x6 with smaller label size.
Experts here please help me.
No Reply Yet
Wipe cache and dalvik
Sent from my Galaxy S7 using XDA Labs
Not Worked
Copied Modded File and and in recovery wiped Dalvic/Art Cache and Cache rebooted still fc also getting this error while recompiling.
C:\Users\Tanveer Ahmed\Downloads\New folder>apktool if framework-res.apk
I: Framework installed to: C:\Users\Tanveer Ahmed \AppData\Local\apktool\framework\1.apk
C:\Users\Tanveer Ahmed\Downloads\New folder>apktool d Touch.apk
I: Using Apktool 2.2.2 on Touch.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Tanveer Ahmed\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Tanveer Ahmed\Downloads\New folder>apktool b Touch
I: Using Apktool 2.2.2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
These are errors i didn't touched these files.
---------------------------------------------------------------------------------------
W: warning: string 'disable_uninstall_title' has no default translation.
W: warning: string 'folder_color_grey' has no default translation.
W: warning: string 'folder_hint_text' has no default translation.
W: warning: string 'market' has no default translation.
W: warning: string 'permdesc_write_settings' has no default translation.
W: warning: string 'permlab_write_settings' has no default translation.
W: warning: string 'quickoptions_force_stop' has no default translation.
W: warning: string 'quickoptions_force_stop_alert' has no default translation.
------------------------------------------------------------------------------------------------
I: Building apk file...
I: Copying unknown files/dir...
C:\Users\Tanveer Ahmed\Downloads\New folder>java -jar signapk.jar certificate.pem key.pk8 TouchWiz.apk TouchWizHome_2016C.apk
C:\Users\Tanveer Ahmed\Downloads\New folder>
Check the permissions too !
I already add permissions (rw-r-r) not worked

Apktool SecSettings2 Recompile Issue

I tried recompiling Samsung SecSettings2.apk, it compiled but when I put it on my phone it bootloops. I tried signing it, but that didn't work either. Can anyone solve this? This is the decompile and recompile output:
c:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Acer\AppData\Local\apktool\framework\1.apk
c:\apktool>apktool if samsung-framework-res.apk
I: Framework installed to: C:\Users\Acer\AppData\Local\apktool\framework\2.apk
c:\apktool>apktool d SecSettings2.apk
I: Using Apktool 2.3.1 on SecSettings2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Acer\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
c:\apktool>apktool b SecSettings2
I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'block_accidental_touches_summary' has no default translation.
W: warning: string 'block_accidental_touches_title' has no default translation.
W: warning: string 'credentials_configure_lock_screen_hint_directionlock_with_pattern' has no default translation.
W: warning: string 'credentials_configure_lock_screen_hint_fingerprint_iris_with_pattern' has no default translation.
W: warning: string 'credentials_configure_lock_screen_hint_fingerprint_with_pattern' has no default translation.
W: warning: string 'credentials_configure_lock_screen_hint_with_pattern' has no default translation.
W: warning: string 'locked_to_sprint_or_international_sims' has no default translation.
W: warning: string 'locked_to_sprint_sims_only' has no default translation.
W: warning: string 'navigationbar_hide_bar_apps_description' has no default translation.
W: warning: string 'unlocked_for_any_sim_card' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...
c:\apktool>
xX_Kale_Xx said:
I tried recompiling Samsung SecSettings2.apk, it compiled but when I put it on my phone it bootloops. I tried signing it, but that didn't work either. Can anyone solve this?...
Click to expand...
Click to collapse
I've never needed to modify this app but, the following Github links reflect the same/similar issues that were reported on iBotPeaches Apktool page and they are still open issues.
https://github.com/iBotPeaches/Apktool/issues/1259
https://github.com/iBotPeaches/Apktool/issues/1649
Maybe they can help you to figure out your issue or you can provide your additional information on one of them to further help with resolving this issue.
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Ibuprophen said:
I've never needed to modify this app but, the following Github links reflect the same/similar issues that were reported on iBotPeaches Apktool page and they are still open issues.
https://github.com/iBotPeaches/Apktool/issues/1259
https://github.com/iBotPeaches/Apktool/issues/1649
Maybe they can help you to figure out your issue or you can provide your additional information on one of them to further help with resolving this issue.
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Click to expand...
Click to collapse
Thanks, I found a solution by copying the files that I edited to the original apk using 7zip.

EMERGENCY, please help with Apk Easy Tool, trying to compile an app but it shows this

07/09/2019 18:20:25
Compiling APK file... (CMD mode: WriteLine)
/c "java -Xmx1024m -jar "C:\Program Files (x86)\APK Easy Tool\Apktool\apktool_2.4.0.jar" b -f -o "C:\Users\madani\Desktop\APK Easy Tool\recompiled\tyblate-recompiled.apk" "C:\Users\madani\Desktop\APK Easy Tool\decompiled\tyblate" "
I: Using Apktool 2.4.0
I: Smaling smali folder into classes.dex...
I: Building resources...
S: WARNING: Could not write to (C:\Users\madani\AppData\Local\apktool\framework), using C:\Users\madani\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: ERROR: 'C:\Users\madani\AppData\Local\Temp\APKTOOL7465868708093004443.tmp' exists (use '-f' to force overwrite)
brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty
------------------------------------------

Apktool.jar common errors and solutions

As I'm no longer modding, this thread will not be updated anymore. Please refer to apktool issues https://github.com/iBotPeaches/Apktool/issues?q=is:issue++ and discussions https://github.com/iBotPeaches/Apktool/discussions for latest infomation
Since many got apktool.jar errors and don't know how to search or solve themself, I decided to explain and provide solutions here with links to Github. I have a friend who sometime can help me with this.
I will do my best to get much info. Feel free to post your thoughts
Know your error:
There’s a wide range of error messages you may encounter when decompiling and compiling your app. Depending on the kind of error you encounter, apktool.jar will always display the error message. Spotting error messages is easy
For example this log:
Code:
I: Using Apktool 2.4.1
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building resources...
W: D:\xxx\AndroidManifest.xml:15: Tag <uses-permission> attribute name has invalid character ' '.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\evildog1\AppData\Local\Temp\brut_util_Jar_2200487015856364895.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 19227, --version-name, 4.1.1, --no-version-vectors, -F, C:\Users\evildog1\AppData\Local\Temp\APKTOOL3877124333918122178.tmp, -e, C:\Users\evildog1\AppData\Local\Temp\APKTOOL2736431752124554942.tmp, -0, arsc, -I, C:\Users\evildog1\AppData\Local\apktool\framework\1.apk, -S, D:\xxx\res, -M, D:\xxx\AndroidManifest.xml]
If you think could not exec is your error, it's actually not, the real error is actually a 'warning'
Code:
W: D:\APK Easy Tool\1-Decompiled APKs\xxx\AndroidManifest.xml:15: Tag <uses-permission> attribute name has invalid character ' '
The good thing it tells you which line it occured AndroidManifest.xml:15:. it's line 15 in AndroidManifest.xml
This was caused by a space in a permission tag. Removing it will fix the compiling error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It's not always a simple fix. This always depending
Check the APK file:
Sometimes APK is obfuscated in many ways.
Open the APK using 7-zip and WinRar and see if the first classes.dex is smaller than 500 KB or way bigger than 10 MB. If so, it a sign it's encrypted. Decompiling and compiling the big dex file will result in a smaller size and it will fail to decrypt due to missing encrypted block
Decompile and check if smali files and codes are obfuscated. This is an example of Netflix app that is obfuscated
Don't ask me how to break protected APK, I'm not a reverser so I can't help you with it.
Troubleshooting:
Sometime those troubleshooting tricks helps fixing errors. Please try one or more of the following below
- If you are using any 3rd party GUI tools, please try the actual apktool.jar with CMD first
- Use latest version of apktool.jar: https://ibotpeaches.github.io/Apktool/ and test
- If you are using latest version, try use older version of apktool.jar. Sometimes it can mitigate the issue
- Clear framework apktool empty-framework-dir --force and decompile the APK again.
- Decompile APK with --only-main-classes (Only disasemble dex classes in root (classes[0-9].dex). Prevents disasemble dex from assets folder) (apktool 2.4.1 and up only)
- Decompile APK with --no-res if you are only editing Java (smali) (--no-res will prevent the decompile of resources. This keeps the resources.arsc intact without any decode.)
- Decompile APK with --no-src if you are only editing the resources (xml) (--no-src will prevent the disassembly of the dex file(s). This keeps the apk dex file(s) and simply moves it during build.)
- Compile with --use-aapt2 (Use the aapt2 binary instead of appt)
Errors list:
Tip: Press CTRL + F and find the words
If there is no error you are looking for, search it on following Github issue pages
Apktool: https://github.com/iBotPeaches/Apktool/issues
Baksmali/smali: https://github.com/JesusFreke/smali/issues
Deompile errors:
* Exception in thread "main" java.lang.NullPointerException (XML related)
This is an issue with apktool 2.4.1. Downgrade to 2.4.0 or below (2.3.4 is better)
* Exception in thread "main" org.jf.dexlib2.dexbacked.DexBackedDexFile$NotADexFile: Not a valid dex magic value: (xx xx xx xx xx xx xx xx)
Rare issue, it usally caused if it tries to decompile encrypted dex from assets folder
Decompile APK with --only-main-classes
* Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: res
This is a trick to prevent decompiling on Windows. Open the APK file using 7zip or Winrar and delete the unnamed file from res folder
Or use Mac/Linux until then
See: https://github.com/iBotPeaches/Apktool/issues/1460
* Invalid debug offset
These are legitimate warnings about inconsistencies in the dex file. The invalid debug offset is otherwise ignored and the classes are successfully disassembled.
Compile errors:
* brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515)
This was an issue with Java 8 32-bit on Apktool 2.4.0. Install 64-bit of Java or switch to other version
See: https://github.com/iBotPeaches/Apktool/issues/2141
* Cant find 9patch chunk in file: (...). Renaming it to *.png.
APK is Obfuscated
See: https://forum.xda-developers.com/showpost.php?p=81088145&postcount=619
* Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
Not a bug. This means the default application that is copied to tmp and executed, could not be done. Therefore it relied on the aapt binary being accessible in the $PATH variable.
* Class (...) has already been interned
Decompile APK with --only-main-classes (apktool 2.4.1 and up only)
* Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
apktool.yml does not exist, because APK did not decompiled completely. Decompile again
* Float types not allowed
Remove the decimal from version number maybe?
Reported issue: https://forum.xda-developers.com/showpost.php?p=82840671&postcount=699
* Invalid resource directory name
Currently unknown. Try clear framework if you don't work with system apps
* Invalid file name: must contain only (...). Ignoring...
See: https://github.com/iBotPeaches/Apktool/issues/2282
* JAXP 1.5 Support is required to validate XML
Update apktool.jar to the latest version
* No resource identifier found for attribute 'isSplitRequired' in package 'android'
Split APK is not supported yet. See https://github.com/iBotPeaches/Apktool/issues/2218
If you are following some tutorials how to merge split apks into one, then remove the attribute android:isSplitRequired="true" from AndroidManifest.xml, save and compile again
* No resource identifier found for attribute (...) in package (...)
There are many reasons why. Please refer to these issues for more infomation: https://github.com/iBotPeaches/Apktool/issues?q=No+resource+identifier+found+for+attribute+
Try clear framework if you don't work with system apps
Sometimes, removing the attribute will fix the error and the app would run fine without it. Always test if the app is working fine or not
* No resource found that matches the given name
There are many reasons why. This is not always easy to fix
See issues
https://github.com/iBotPeaches/Apktool/issues/2365
https://github.com/iBotPeaches/Apktool/issues/2362
https://github.com/iBotPeaches/Apktool/issues/2339
https://github.com/iBotPeaches/Apktool/issues/2422
Try clear framework if you don't work with system apps
If you are working with system apps, you may need framework installed.
* Tag (...) missing required attribute name.
Not an easy fix, but you can try --use-aapt2 or don't decode resources (-r, --no-res) if you don't need
https://github.com/iBotPeaches/Apktool/issues/1880
Tag <uses-permission> attribute name has invalid character ' '
This was caused by a space in an attribute name. Removing it will fix the compiling error
Example, change:
Code:
<uses-permission android:name="com.google.android.finsky.permission.CHECK_LICENSE "/>
to
Code:
<uses-permission android:name="com.google.android.finsky.permission.CHECK_LICENSE"/>
* Unsupported res type name for bags
See: https://github.com/iBotPeaches/Apktool/issues/1719
* Unsigned short value out of range: 65536
You have too many methods. The method index can't fit into an unsigned 16-bit value each dex
Simply move your codes to smali_classes(X) or create new one. For example if smali_classes2 is the latest, move code to smali_classes3
Full error log:
Code:
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Lcom/mintegral/msdk/thrid/okhttp/internal/publicsuffix/PublicSuffixDatabase;->findMatchingRule([Ljava/lang/String;)[Ljava/lang/String;
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:1046)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:345)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:300)
at org.jf.smali.Smali.assemble(Smali.java:131)
at org.jf.smali.AssembleCommand.run(AssembleCommand.java:96)
at org.jf.smali.Main.main(Main.java:100)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x52
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1319)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:1042)
... 5 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65536
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:356)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1279)
... 6 more
* warning: found plain 'id' attribute; did you mean the new 'android:id' name?
See: https://github.com/iBotPeaches/Apktool/issues/2188
* warning: string (...) has no default translation.
Those are warnings, they are fine.
* WARNING: Could not write to (C:\Users\(username)\AppData\Local\apktool\framework), using C:\Users\(username)\AppData\Local\Temp\ instead...
Use the --frame-path [folder] parameter and describing the folder you want the framework resources to reside.
This warning can be ignored if you don't use framework
Others:
* 'java' is not recognized as an internal or external command
Install/Re-install latest version of Java 8 https://java.com/en/download/ or set the enviorment path manually
* APKTOOL_DUMMY
If you get APKTOOL_DUMMY that's generally because apktool can't decode some of the information in the original APK and creates a 'dummy' value instead. Because there's no things called APKTOOL_DUMMY in public.xml, the APK can't be recompiled. It's likely because you try to compile splitted APK with some missing infomation
* Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Increase the java heap size like:
java -Xmx4096m -jar apktool.jar
java -Xmx4g -jar apktool.jar
If your system is Windows and is 64-bit, please uninstall 32-bit version and install 64-bit version (Windows Offline (64-bit)) https://java.com/en/download/manual.jsp
* Unsupported major.minor version (...)
Upgrade java to the latest version https://java.com/en/download/
ppst reserved 2
Updated. If you found more errors, please let me know
i have res relative problem, can anyone solve this
evildog1 said:
Updated. If you found more errors, please let me know
Click to expand...
Click to collapse
why I get this type of error
lokesh.Dewangan said:
why I get this type of error
Click to expand...
Click to collapse
Try
Code:
--use-aapt2
i get this error when decompile classes.dex :
Lcom/ano/gshell/AnoApplication;-><clinit>()V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;-><init>()V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->dec(Ljava/lang/String;)Ljava/lang/String;: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->dec(Ljava/lang/String;)Ljava/lang/String;: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->attachBaseContext(Landroid/content/Context;)V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->attachBaseContext(Landroid/content/Context;)V: Invalid debug offset
and then after recompile the app and install the app works then exit in lobby
but when i use --no-src the app work without crash but i cant edit smali like that.
this is the app link try decompile and recompile dex file.
Download
I have a little problem described here, would you look at it?
Thx
Hello, when I try to compile I get an error, could you please help me.
Thank you
Code:
Checking for update...
Compiling APK file... (Press ESC to cancel)
Executing command: java.exe -jar "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\Apktool\apktool_2.5.0.jar" b -d -f --use-aapt2 -o "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\2-Recompiled APKs\Teba_19.3.apk" "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3"
I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Building resources...
I: Using aapt2 - setting 'debuggable' attribute to 'true' in AndroidManifest.xml
W: C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\res: error: failed to open directory: El sistema no puede encontrar el archivo especificado. (2).
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\JOSAND~1\AppData\Local\Temp\brut_util_Jar_131902690237150689966905402769991619447.tmp, compile, --dir, C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\res, --legacy, -o, C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\build\resources.zip]
Compile failed. Please read the log
When you write:
"Sometimes, removing the attribute will fix the error and the app would run fine without it. Always test if the app is working fine or not"
where i can do it, removing the attribute ?
My error is:
W: C:\Users\Marco\Documents\APK Easy Tool\1-Decompiled APKs\XRecorder_v2.1.1.1__Arm7_Pro__UserUpload.Net\res\layout\a0.xml:2: error: No resource identifier found for attribute 'paddingBottomNoButtons' in package 'videoeditor.videorecorder.screenrecorder'
etc...
Thank
Hispa
Sorry for very late reply guys
tahooo said:
i get this error when decompile classes.dex :
Lcom/ano/gshell/AnoApplication;-><clinit>()V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;-><init>()V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->dec(Ljava/lang/String;)Ljava/lang/String;: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->dec(Ljava/lang/String;)Ljava/lang/String;: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->attachBaseContext(Landroid/content/Context;)V: Invalid debug offset
Lcom/ano/gshell/AnoApplication;->attachBaseContext(Landroid/content/Context;)V: Invalid debug offset
and then after recompile the app and install the app works then exit in lobby
but when i use --no-src the app work without crash but i cant edit smali like that.
this is the app link try decompile and recompile dex file.
Download
Click to expand...
Click to collapse
Sounds like the app has a protection against tampering. I cannot help with that
gidano said:
I have a little problem described here, would you look at it?
Thx
Click to expand...
Click to collapse
I believe it has been fixed https://github.com/iBotPeaches/Apktool/pull/2650
Try using latest commit of apktool.jar (Requires Github account to download) https://github.com/iBotPeaches/Apktool/actions/runs/1712896706
Jaloga said:
Hello, when I try to compile I get an error, could you please help me.
Thank you
Code:
Checking for update...
Compiling APK file... (Press ESC to cancel)
Executing command: java.exe -jar "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\Apktool\apktool_2.5.0.jar" b -d -f --use-aapt2 -o "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\2-Recompiled APKs\Teba_19.3.apk" "C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3"
I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Building resources...
I: Using aapt2 - setting 'debuggable' attribute to 'true' in AndroidManifest.xml
W: C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\res: error: failed to open directory: El sistema no puede encontrar el archivo especificado. (2).
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\JOSAND~1\AppData\Local\Temp\brut_util_Jar_131902690237150689966905402769991619447.tmp, compile, --dir, C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\res, --legacy, -o, C:\Users\José Andrés\Desktop\PÒRTABLE EASY\1-Decompiled APKs\Teba_19.3\build\resources.zip]
Compile failed. Please read the log
Click to expand...
Click to collapse
Try enable aapt2
hispanico957 said:
When you write:
"Sometimes, removing the attribute will fix the error and the app would run fine without it. Always test if the app is working fine or not"
where i can do it, removing the attribute ?
My error is:
W: C:\Users\Marco\Documents\APK Easy Tool\1-Decompiled APKs\XRecorder_v2.1.1.1__Arm7_Pro__UserUpload.Net\res\layout\a0.xml:2: error: No resource identifier found for attribute 'paddingBottomNoButtons' in package 'videoeditor.videorecorder.screenrecorder'
etc...
Thank
Hispa
Click to expand...
Click to collapse
By editing the xml if you know how. I won't cover it here
Otherwise report issue to https://github.com/iBotPeaches/Apktool/issues
How to prevent apktool from merging res folders?
Example:
color
color-v11
get merged into
color
gcrutchr said:
How to prevent apktool from merging res folders?
Example:
color
color-v11
get merged into
color
Click to expand...
Click to collapse
Sorry, didn't saw this post. I think this is a feature. You should contact iBotPeaches
evildog1 said:
Sorry, didn't saw this post. I think this is a feature. You should contact iBotPeaches
Click to expand...
Click to collapse
It can't be a feature. SystemUI.apk won't work without res/**.xml-v??
When I change the Minimum SDK Version using ApkTool. The apk it's Crashing.
Just a heads-up.
If you like modifying Android core files (like framework.jar) on Android 10 or greater (API 29+) using apktool 2.6.1 it's not going to work so nicely even if it doesn't bomb on an error.
Code:
Error occurred while disassembling class Landroid.util.proto.HapiProto; - skipping class
java.lang.ArrayIndexOutOfBoundsException: 6
at org.jf.dexlib2.HiddenApiRestriction.getAllFlags(HiddenApiRestriction.java:108)
It will make a mish-mash of the new hidden API modifiers (whitelist, greylist, greylist-max-o...)
@iBotPeaches has this already in sight and is trying to resolve it.
https://github.com/iBotPeaches/Apktool/issues/2918
On a bit of a tangent, in the interim I tried the "nuclear option".
I was working on a framework.jar and couldn't "round-trip" it, so I edited out all the hidden API modifiers.
It builds fine, but the logcat was a train wreck.
Anybody know why?
Edit: I gave up on nuking all hidden API modifiers.
apktool d works fine so I can disassemble at least, but I don't think there are any options to show the file addresses of the instructions.
So I wrote a work-in-progress to disassemble with file addresses:
Code:
C:\>dexdump classes.dex /cKeyboardEntryMap /mgenerateMap
KeyboardEntryMap
002eebec generateMap
002eebfc const-string/jumbo
002eec02 invoke-static
002eec08 move-result-object
...
002eec62 invoke-interface
002eec68 goto
002eec6a return-void
Then I just need some judicious hex editing to nops or return-void.
Exception in thread "main" java.lang.ClassCastException: class brut.androlib.res.data.value.ResStringValue cannot be cast to class brut.androlib.res.data.value.ResIntValue (brut.
androlib.res.data.value.ResStringValue and brut.androlib.res.data.value.ResIntValue are in unnamed module of loader 'app')
Anyone know anything about this?

Categories

Resources