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.
Related
Everything works like a charm when I decompile other APKS but when I tried settings.apk it didn't work saying this error.
I have installed everything like deodexed systemui.apk and framework-res.apk.
I dont know weather its with SemcGenericUxpRes or some stuff.
C:\apktool>apktool d settings.apk
I: Using Apktool 2.0.0 on settings.apk
I: Loading resource table...
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\m0rpheus\apktool\framework\1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Help anyone!
Its fixed now I installed com.sonyericsson.uxp.apk to framework files and its working now.
Mod please delete this thread
HOW
how can you installer the com.sonyericsson.uxp.apk to framework ?
I'm having issues trying to decompile an APK using apktool i get the following errorr.
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\unknown\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010104aa
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:502)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:135)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
does anyone know how to resolve this, i've tried googling my issue with no success. i installed all the frameworks ( however i did find them on the internet )
XDA Visitor said:
I'm having issues trying to decompile an APK using apktool i get the following errorr.
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\unknown\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010104aa
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:502)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:135)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
does anyone know how to resolve this, i've tried googling my issue with no success. i installed all the frameworks ( however i did find them on the internet )
Click to expand...
Click to collapse
Hello,
I would recommend you to visit here and read the thread thoroughly.
Also, you could register for a XDA account in order to post in the forum threads and get expertise help.
-Vatsal
I need to de- / recompile framework-res.apk for some modifications. I use APKTool 2.0.3 (http://ibotpeaches.github.io/Apktool/) but I have some serious problems. I tried it with SystemUI.apk before, but it dont work. I want to resize navbar, this thing takes 1/10 on MM of the screen size.
Code:
C:\Users\alphatact1cs\Desktop\apktool>java -jar apktool.jar if framework-res.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Framework installed to: C:\Users\alphatact1cs\apktool\framework\1.apk
C:\Users\alphatact1cs\Desktop\apktool>java -jar apktool.jar d framework-res.apk
I: Using Apktool 2.0.3 on framework-res.apk
I: Loading resource table...
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010802e7
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060002
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
C:\Users\alphatact1cs\Desktop\apktool>java -jar apktool.jar b framework-res
I: Using Apktool 2.0.3
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:263)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:105)
at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
... 4 more
C:\Users\alphatact1cs\Desktop\apktool>
How can I solve this?
alphatact1cs
You need to install some other frameworks. Why not just install Xposed and use Gravitybox?
Mr_Bartek said:
You need to install some other frameworks. Why not just install Xposed and use Gravitybox?
Click to expand...
Click to collapse
Xposed doesnt work the way it should on Z5 an Android 6.0. I have some problems with the camera app. It was really bad on Lollipop, but now it opens and goes into landscape mode. I can rotate my phone like I want, it doesnt change the orientation.
I use Xposed on MM and have no issues with camera. Rotation works fine too.
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 Version -2.6.1
Operating System -Windows
APK From -ROM android 12
log from apk easy tool:
[all log](https://github.com/iBotPeaches/Apktool/files/8921654/RecentLog-Instance1.txt)
```
I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\mor\Documents\APK Easy Tool\1-Decompiled APKs\MtkSettings\res\values\attrs.xml:55: error: duplicate symbol '@null'.
```
Frameworks:
framework-res.apk
framework dolder
APK:
https://drive.google.com/file/d/1XA3UTWS91GeF72Gdfj852ZLQIZc5kWkw/view?usp=sharing (settings app)
Thanks.