Stuck at logo after modify xml of SecSettings2 - Samsung Galaxy S7 Edge Questions and Answers

Hi every body.
Im so sorry about my English...
I have a Samsung Galaxy S7 Edge SC-02H (Docomo) Nougat
I just flash recovery TWRP and root with SuperSU 2.79 SR3
And trying to add language package to system app, everything seem fine
I have some app and add language package (res/value-xx) Everything working fine
But when i try to modify xml to add a item in setting.
Add this code in xml/device_info_settings.xml
Code:
<PreferenceScreen android:title="@string/develop_info" android:summary="@string/develop_info_details">
<intent android:action="android.intent.action.VIEW" android:data="http://link.to.something" />
</PreferenceScreen>
Replace apk then restart phone, it seem fine but my phone stuck on logo after wipe data
I think maybe Android Nougat checking APK (except resources.arsc because language package is in this file)
My boot.img was patched by SuperSU 2.79 SR3
And i try to unpack with Android Kitchen but it still stuck
Someone have any idea for me?
Thank you

Related

[Q] [Solved]Deleted System Font. Stuck at Boot Logo!!

I know I shouldn't have done this. But somehow I managed to "cut" the system fonts instead of copying them. And when I realized it, I tried to put the fonts back. but everything messed up and fonts started disappearing from every app. So I restarted the phone and boom. Stuck at Samsung boot animation.
Now, I've searched for this issue and now know that I've to replace system fonts with a genuine one for my device. So do I need to replace just the Roboto-regular.ttf or every font that was present in /system/fonts?
Secondly, I'm rooted and have Philz recovery installed. But I'm not able to use adb when phone is booting in normal mode. It says device unauthorized (I believe we need to authorize a pc for the first time).
Again, I can't push files using adb in recovery to /system/fonts because su right is not available. It says access denied.
And the data is important. So any method except RESET would be welcome.
Ok, I got it working partially. I'm able to push files to system partition. I pushed roboto regular ttf file. The phone boots now but systemui keeps on crashing. So can someone just provide me the stock fonts folder dump? I will try to push every font to see if the crashes still occur or not.
Edit: Finally solved it. What I was missing was the permissions. I was just pushing the font file but never bothered to think about permissions. So it could help someone in future. Push the font file to /system/fonts and change the permission to rw-r--r-- . I used aroma file manager for this purpose in philz recovery. I think you can also change the permission using adb.

Dual Booting - S5/duos ktle/klteduos (need help)

Sup XDA,
So i want to dual boot my phone (S5 duos) using dual boot patcher but i am getting problems
My problem: when flashing the patched rom i will get an error of system not being read able file system.
Firstly (for duos users) :
If you patch a rom for dual booting you might get an error 7
The problem is that klteduos is not a supported device by dual boot patcher but
there is cheeky way to get around that...if u still get the error then your device id is klte just use the original patched file
Lets get into it:
Disclaimer : I am not responsible for any damage to the phone.
Ok so first u will need to move the pached rom file to your computer.
Then you have to extract it.
Then open the folder "multiboot" you will find three file find the one with updater something like that(it will have # in the starting of most of the lines use notepad ++)
Open that file you will find a list of devices under that there is a line without # instead of klte change it to klteduos
Just put the files back in a zip archive and you are done.
i am trying remount thing if it works i will edit
i as installing aroma rom so inapp installation didnt work, asked to do it on recovery when installing on recovery it didnt work either

Can't seem to make write changes to system

EDIT: Fixed by flashing latest factory images via fastboot, then the latest TWRP, then MagiskSU.
Hi there,
I'm rooted on stock 7.1.1 but I can't seem to make write changes consistently on the system partition. I was trying to rename NotoColorEmoji.ttf in /system/fonts so I could copy across the version with the iOS emojis, and somehow the rename worked so it's now named NotoColorEmojiOld.ttf - I managed to do this with root permissions in Solid Explorer. However, when I try and copy across the new NotoColorEmoji.ttf to the fonts folder, Solid Explorer says it's unable to do so. I've tried rebooting into TWRP, mounting system and using the file manager but it fails with Error 1. What's worse is I can't seem to rename NotoColorEmojiOld.ttf back to NotoColorEmoji.ttf either - neither Solid Explorer nor TWRP work for this despite both obviously having root access, both throw errors. As a result I have no emoji font file so all my emojis are blank boxes.
Any help in fixing this would be appreciated!
Try flashing a zip version of notocolor in twrp
CarteNoir said:
Hi there,
I'm rooted on stock 7.1.1 but I can't seem to make write changes consistently on the system partition. I was trying to rename NotoColorEmoji.ttf in /system/fonts so I could copy across the version with the iOS emojis, and somehow the rename worked so it's now named NotoColorEmojiOld.ttf - I managed to do this with root permissions in Solid Explorer. However, when I try and copy across the new NotoColorEmoji.ttf to the fonts folder, Solid Explorer says it's unable to do so. I've tried rebooting into TWRP, mounting system and using the file manager but it fails with Error 1. What's worse is I can't seem to rename NotoColorEmojiOld.ttf back to NotoColorEmoji.ttf either - neither Solid Explorer nor TWRP work for this despite both obviously having root access, both throw errors. As a result I have no emoji font file so all my emojis are blank boxes.
Any help in fixing this would be appreciated!
Click to expand...
Click to collapse
Are you using either phh superuser or magisksu?
Try changing your SELinux to Permissive with this app https://forum.xda-developers.com/showthread.php?t=2524485
bozinsky73 said:
Try flashing a zip version of notocolor in twrp
Click to expand...
Click to collapse
I get "set_perm: some changes failed, Updater process ended with ERROR: 7" and it doesn't work.
blitzkriegger said:
Are you using either phh superuser or magisksu?
Click to expand...
Click to collapse
Nope, just plain old systemless SuperSU.
collinjames said:
Try changing your SELinux to Permissive with this app https://forum.xda-developers.com/showthread.php?t=2524485
Click to expand...
Click to collapse
For some reason the app claims I don't have root permission despite the SuperSU dialog popping up and me granting it root.
CarteNoir said:
I get "set_perm: some changes failed, Updater process ended with ERROR: 7" and it doesn't work.
Nope, just plain old systemless SuperSU.
For some reason the app claims I don't have root permission despite the SuperSU dialog popping up and me granting it root.
Click to expand...
Click to collapse
Selinux didn't work for me at first on 7.1.1, I got the same error as you. But I went into twrp made sure system mounted, go into twrp terminal and cd into /system/bin and /system/xbin and in both of these directories type in (touch su) with out parenthesis. Reboot and see if that makes selinux changer works now.
Fe Mike said:
Selinux didn't work for me at first on 7.1.1, I got the same error as you. But I went into twrp made sure system mounted, go into twrp terminal and cd into /system/bin and /system/xbin and in both of these directories type in (touch su) with out parenthesis. Reboot and see if that makes selinux changer works now.
Click to expand...
Click to collapse
That got the app working and I was able to change SELinux to permissive, but I still can't make lasting changes to /system unfortunately.
Bumping - anyone else have any ideas? I'm not so much concerned with not being able to change emoji fonts as I am concerned with the ramifications of not having system write access - if anything breaks or comes up in the future that I need rw system for, I won't be able to fix stuff unless I sort this out.

OP5 upgraded to Android 10 and rooted with Magisk, system changes don't stick

Hi,
Just upgraded my OP5 to Android 10 official stable version. Rooted successfully with Magisk 20.4
Now I'm trying to do some changes to the system folder but they revert back when I reboot.
1- Trying to replace the emoji with another ttf file, as I always did in Pie but the file gets reverted upon restart.
2- Trying to apply hosts file for ad blocking, same issue the file gets reverted as soon as I restart.
it looks like my system partition is reverting itself for some reason, does anyone know why this happens and how to make the changes stick?
PS: I don't want to enable (Systemless hosts in Magisk) because I'm planning to unroot after doing these changes.
thanks..
medo159 said:
Hi,
Just upgraded my OP5 to Android 10 official stable version. Rooted successfully with Magisk 20.4
Now I'm trying to do some changes to the system folder but they revert back when I reboot.
1- Trying to replace the emoji with another ttf file, as I always did in Pie but the file gets reverted upon restart.
2- Trying to apply hosts file for ad blocking, same issue the file gets reverted as soon as I restart.
it looks like my system partition is reverting itself for some reason, does anyone know why this happens and how to make the changes stick?
PS: I don't want to enable (Systemless hosts in Magisk) because I'm planning to unroot after doing these changes.
thanks..
Click to expand...
Click to collapse
Just forget to change hosts file manualy, use the better Adbloacker Rootless, Blokada
medo159 said:
QUOTE
Click to expand...
Click to collapse
Hi Mate,
Ensure to give proper permissions as follows: rw-r--r-- (0644) to the file. If it is a folder, the permissions are: rwxr-xr-x (0755)
medo159 said:
Hi,
Just upgraded my OP5 to Android 10 official stable version. Rooted successfully with Magisk 20.4
Now I'm trying to do some changes to the system folder but they revert back when I reboot.
1- Trying to replace the emoji with another ttf file, as I always did in Pie but the file gets reverted upon restart.
2- Trying to apply hosts file for ad blocking, same issue the file gets reverted as soon as I restart.
it looks like my system partition is reverting itself for some reason, does anyone know why this happens and how to make the changes stick?
PS: I don't want to enable (Systemless hosts in Magisk) because I'm planning to unroot after doing these changes.
thanks..
Click to expand...
Click to collapse
You can't mount the system partition as rw directly in Android 10. Here's a thread by topjohnwu (slightly technical, but give it a read) on why: https://twitter.com/topjohnwu/status/1259039809361739776

Buildprop cannot write changes

Lineage 17 and last version Magisk installed.
Buildprop last version installed.
Buildprop shows SuperUser rights
I want the entry then
ro.product.system.brand
change from samsung to htc
Why? To get the Samsung Wear app working for Watch 3 ...
But I got an error.
Report from BuildProp:
Please ensure the app has root ...
But they are there and are displayed under properties ...
What am I doing wrong?
Problem solved with a workaround.
Finding: You don't need a BuildProp ...
After installing MagisK you have root rights.
As a file manager you take the TotalCommander and give it root rights.
You can then access the build.prop file in the system directory and change it with the integrated text editor.
Just stupid:
My SamsungWear app still does not start.
But this is another story...

Categories

Resources