Need Experts Help Modding Nougat Touchwiz Launcher - Samsung Galaxy S7 Themes, Apps, and Mods

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

Related

Decompiling Settings.apk on Xperia V - Android 4.3

I'm using android 4.3 stock version of framework-res.apk to decompile Settings.apk but Apktool 1.5.2 & Apktool 2.0 beta are giving me this error :
"Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info."
any help ?
Found the Problem & fixed apktool
apparently I needed to install SemcGenericUxpRes.apk before decompiling the Settings.apk file, another problem presented itself at this point..
installing SemcGenericUxpRes.apk using apktool 2.0 beta 7 resulted an error :
Exception in thread "main" brut.androlib.AndrolibException: Multiple types: <emp
ty>
at brut.androlib.res.data.ResPackage.addType(ResPackage.java:168)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
9)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:686)
at brut.androlib.Androlib.installFramework(Androlib.java:640)
at brut.apktool.Main.cmdInstallFramework(Main.java:249)
at brut.apktool.Main.main(Main.java:91)
so I did some research and fixed the 'Multiple types' bug in apktool (I'll attach the fixed version at the end of the post) ,and now every thing worked just fine ^_^
C:\apk>java -jar apktool-fixed.jar if framework-res.apk
I: Framework installed to: C:\Users\User\apktool\framework\1.apk
C:\apk>java -jar apktool-fixed.jar if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\User\apktool\framework\2.apk
C:\apk>java -jar apktool-fixed.jar d Settings.apk
I: Using Apktool 2.0.0-Beta7 on Settings.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\User\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\User\apktool\framework\2.apk
Cleaning up unclosed ZipFile for archive C:\Users\User\apktool\framework\2.apk
I: Loading resource table...
Cleaning up unclosed ZipFile for archive C:\Users\User\apktool\framework\1.apk
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
fixed apktool 2.0 beta 7 (remove spaces from the url) : http :// www . mediafire . com /?cnstb97sszm476y
delete as I found the answer, please ignore

[Q&A][LP][5.0.2]Decompile Settings.apk error

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 ?

APKTool errors / de- recompiling framework-res

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.

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.

Error on compile with apktool

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.

Categories

Resources