Dpi change broke System UI. Fix or flash? - Galaxy Note 4 Q&A, Help & Troubleshooting

Using MagMa 6.0.1, with RR DPI Changer system app.
I changed the dpi, and the phone immediately said System UI has stopped. Now I can't get use it. The last backup was a while ago.
Any way to use TWRP to remove the effects of the RR DPI Changer app?
I tried deleting the app, but I'm not sure a) if I'm deleting the right files, b) if I'm deleting all the files, and c) if just deleting the app is all I need to fix it anyway, since this obviously affects System UI.
Tried dirty-flashing. No help.
Other posts in similar scenarios suggest reflashing only System, but that doesn't seem to help here since I changed dpi through an app, not just through build.prop.
Is there any way to revert the dpi without just doing a clean flash?

O's said:
Using MagMa 6.0.1, with RR DPI Changer system app.
I changed the dpi, and the phone immediately said System UI has stopped. Now I can't get use it. The last backup was a while ago.
Any way to use TWRP to remove the effects of the RR DPI Changer app?
I tried deleting the app, but I'm not sure a) if I'm deleting the right files, b) if I'm deleting all the files, and c) if just deleting the app is all I need to fix it anyway, since this obviously affects System UI.
Tried dirty-flashing. No help.
Other posts in similar scenarios suggest reflashing only System, but that doesn't seem to help here since I changed dpi through an app, not just through build.prop.
Is there any way to revert the dpi without just doing a clean flash?
Click to expand...
Click to collapse
You could copy and edit the build prop file to your desired dpi. The default is 560, I think.

QuoPrimum said:
You could copy and edit the build prop file to your desired dpi. The default is 560, I think.
Click to expand...
Click to collapse
I wasn't sure if a dpi-changer app would override manual build.prop edits, but, worth a try. Thank you! Will report back.

QuoPrimum said:
You could copy and edit the build prop file to your desired dpi. The default is 560, I think.
Click to expand...
Click to collapse
ETA: Negative. Changed build.prop dpi to ro.sf.lcd_density=560 — no help. Used TWRP File Manager to delete as many dpi changer files I could find from system/app-priv and data/data, and wiped cache/dalvik — all no help. I have no idea why it wouldn't have reverted the dpi by now. There must be something else.

O's said:
ETA: Negative. Changed build.prop dpi to ro.sf.lcd_density=560 — no help. Used TWRP File Manager to delete as many dpi changer files I could find from system/app-priv and data/data, and wiped cache/dalvik — all no help. I have no idea why it wouldn't have reverted the dpi by now. There must be something else.
Click to expand...
Click to collapse
Sorry about that. Perhaps you could replace systemui itself?

QuoPrimum said:
Sorry about that. Perhaps you could replace systemui itself?
Click to expand...
Click to collapse
Not your fault, of course. Any thoughts welcome. I've tried to replace System UI with other UI mods, to no avail. I'm trying different combinations of wiping and restoring between this backup and past one from before the dpi debacle. Nothing so far, but it's a mission now. If it's fixable, I'm gonna do it.

you could do a dirty flash of same rom. After backup of course.

There is a guide on XDA to change dpi using adb, assuming your phone still boots.

I had the same issue in the past, cannot remember if I fixed it or just reflashed from zero : now I don't modify (whole system) dpi's anymore.
Any chance you can grab the RR DPI changer apk, and share it, to know the method used to change the dpi ?
Do you get bootloop ?
Or since SystemUI is "broken" it does finish boot, but ROM is unusable (notification bar appears, then disappear in loop ? Or lockscreen keep restarting ?)
Or is it the persistent "SystemUI has stopped working" that is preventing you to do any actions ?
May be flashing a dpi changer from TWRP could work... I know most of them just re-update the build.prop, but may be try the stock 480dpi from here :
https://forums.oneplus.com/threads/flashable-zips-to-change-your-dpi-on-android-6-0.401639/
Hope you'll solve this issue !

Related

dpi ? whats the deal?

can someone take the time to school a noob on DPI? I change the dpi n my ro.build and I see no difference... pretty sure I am misunderstanding some part of it.
From my understanding you change the build.prop... save and exit the text editor (must be rooted) and restart the device... I've been using that method on my galaxy nexus and now nexus 7 and it works perfect... think of lowing the dpi as in tricking the OS into thinking you have a bigger screen than you actually have... thus making everything smaller and also triggering tablet mode
No I've been there and done this too. If you open and save the file... then open it back up, the changes are reverted. Yea I was rooted and was using root explorer. Once I flashed a custom rom, I could change it no problem. Maybe something with stock rom or something else not allowing the file to change, even though the folder is R/W and all that.
The file keeps reverting back after you save it.
Sent from my Nexus 7 using xda premium
player911 said:
No I've been there and done this too. If you open and save the file... then open it back up, the changes are reverted. Yea I was rooted and was using root explorer. Once I flashed a custom rom, I could change it no problem. Maybe something with stock rom or something else not allowing the file to change, even though the folder is R/W and all that.
The file keeps reverting back after you save it.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
It should work if the folder is R/W and you save and exit. Maybe you should try es Flie Explorer?
I was rushed while posting that and I believe I was completely unclear. I did edit the you Build.prop, I am on a custom rom sgt7 and the dpi and build.prop and DPI was 213 I think maybe 216, I changed it to 180 and I saw no difference at all. this is possibly because there are other modifications to the Rom that aren't dpi dependent or something.

[Q] Dead after playing with DPI. Stock build.prop?

I was playing with DPI and after reboot it just get stuck in black screen.
I have tried to adb push a stock build.prop I found in the forum, but it doesn't help.
I would not really like to have to reflash the phone.
I believe the only file changed with the DPI programs is build.prop. Should I look somewhere else? Can somebody upload me an stock build.prop file?
thanks
EDV11 said:
I was playing with DPI and after reboot it just get stuck in black screen.
I have tried to adb push a stock build.prop I found in the forum, but it doesn't help.
I would not really like to have to reflash the phone.
I believe the only file changed with the DPI programs is build.prop. Should I look somewhere else? Can somebody upload me an stock build.prop file?
thanks
Click to expand...
Click to collapse
You might look here to fix it with adb http://forum.xda-developers.com/showthread.php?t=1927198 or here http://forum.xda-developers.com/showthread.php?t=1797864 , haven`t used it myself. Good luck.
Thanks, you were right, it was a permission problem
Sent from my iPad using Tapatalk

Suddenly camera doesn't work!

Hello dudes.Please help me.Just today my camera doesn't work anymore.No one of my 4 camera apps,just black screen!Any idea?i reflashed squid and also coffee kernel but nothing!!!
Peace to all
Bytheway yesterday i edited my build.prop with some 3g and scrolling tweaks.and now i read that this conflicts with camera.i restored the backedup build.prop through builf.prop editor app,but the same result..
permissions was changed,so I had to change them again.thanks
Peace to all
kos25k said:
Bytheway yesterday i edited my build.prop with some 3g and scrolling tweaks.and now i read that this conflicts with camera.i restored the backedup build.prop through builf.prop editor app,but the same result..
permissions was changed,so I had to change them again.thanks
Peace to all
Click to expand...
Click to collapse
What ROM are you using? Either way, you'll probably need to re-flash the ROM. The same thing happened to me before. I edited the build.prop and it caused my camera to force close. Had to re-flash the ROM because restoring the build prop didn't work for me either.
Stock rom.after a lot of search and one step from reflashing the rom...i realized that the restored build.prop permissions from rw-r-r changed by it's own to rw!so i just set them back to default permissions and all is ok now!i wonder also if my camera f.close was causing also from this.(i mean with just editing the build.prop,not the restored one)i made the restore process with root explorer finally.before this i edited b.p with the b.p app from playstore.
Peace to all

Can't Modify SecContacts_M_OSup_Note_Legacy_USA.apk

Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
ForestCat said:
Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
Click to expand...
Click to collapse
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
I don't know if 7-zip has this option, but with winrar you can change the compression to "store". You should know right away whether or not it worked. You'll see the little phone icon in the bottom left of the lock screen. You may still have to do a factory reset to see your changes (probably not though) but the app should work without it.
By the way, you can swap those image files for .png files if you'd like. Just delete the corresponding .qmg or .pio file.
I saw your post in the rom thread about theming TouchWiz. You should check out @supergrobi94's theming threads. He's put together an impressive collection of options for 6.0.1 and 5.1.1 and there's also a [how to] section that uses the vrtheme zip that will modify the res folder of a specific app without having to break it down. I'm not sure how active he is these days but he's always been very helpful with requests and questions in the past if you need it.
Supergrobi94's theming threads:
This one has all the themes
This is the [how to] thread
kevintm78 said:
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
Click to expand...
Click to collapse
Ah, that makes perfect sense. But I'd never have figured it out myself, lol.
I'll dig into those theming threads, thanks.
kevintm78 said:
☆☆Edge Panel for ModestRom v11☆☆
DOWNLOAD-This will change your Contacts app to the S6 version and the IncallUI app to the Note 7 version because the people stripe will not work with the N4 contacts.
Click to expand...
Click to collapse
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
ForestCat said:
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
Click to expand...
Click to collapse
No, it doesn't look like I ever made an easy way to go back. I had thought I did but I'm either overlooking it or it's not there. Feel free to rifle through my androidfilehost folders if you want to double check. All of my stuff is very organized so it could be buried in there somewhere.
If you still need a recovery zip let me know and I'll get one together. I'm actually going to make one anyway but if you need it right away I can get on it. I didn't realize that there wasn't a way back to stock.
ForestCat said:
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
Click to expand...
Click to collapse
That is strange that they are not coming back. You may just want to double check your permissions and that there isn't two of the same apps in your folder. At the time of making that Edge zip I was still using other programs to make zips for me and the major downside to that is having to name the new apps the exact same as the old so it would get overwritten so if it doesn't match you'll end up with two active apps in one folder.
Now I think the best way to do that is to use a binary script (osm0sis has great tutorials for this) to change the app getting replaced to a .bak file and then just copy the new app to the system, set perms, and reboot (dalvik cache/ cache needs to be wiped if it's a framework .jar file). But to each their own. If you can get the job done a better way then I would use what you're comfortable with.
My system to test apps isn't much difference than yours. I think the only thing I do differently is change the app to be replaced to .bak instead of .foo although I can't imagine there's much difference. There's been a few apps like the Contacts app that gave me a bunch of trouble when modifying them but I can't remember ever having trouble bringing back the stock app. I wish I had more insight on that situation for you. If push comes to shove I would reflash the rom zip over factory reset only because the factory reset won't correct the system partition problem, if that's what's going on in this case.
kevintm78 said:
If you still need a recovery zip let me know and I'll get one together..
Click to expand...
Click to collapse
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
ForestCat said:
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
Click to expand...
Click to collapse
I'm not exactly sure what's going on with your contacts app not showing back up. Ever since modestrom v8 (I think) I've been doing the multi dpi on SecContacts_M_OSup_Note_Legacy_USA and every time I would test it doing the same as your way. After a reboot if the modified app was no good, then I would just delete that new app and change the name of the old app back to .apk, reboot and it would work again. I can't remember running in to any problems where I would have to factory reset or reflash the rom to get things working again.
There has been a couple times where I've had to factory reset to get a color change to show up or if you're adding toggles to the QS drop down that also (sometimes) requires a factory reset to show up.
As far as the post you linked, that is exactly how I do it except I use winrar to open the newly compiled app and drag the changes to the original. When I drag the changes over I change the compression method from "normal" to "store". If I don't change the compression the app doesn't work for me. The apps that I've ran into where I had to change the compression are: secContacts, secCamera, secSettings, and framework-res.apk. Any other app that I've worked on can be dragged and dropped without compression changes.
Jar files don't need an original signature though (so long as signature verification has been disabled, which it has in modestrom). They can be decompiled, edited, recompiled, and copied to the system. It does require a dalvik cache/cache wipe though on all framework files except for the framework-res.apk and twframework-res.apk
If you get a chance, you should start using apktool to decompile/recompile. It will make things easier for you in the long run and most of the time if you've made any mistakes in your edits apktool will catch it. If you're not familiar with apktool you can try using Tickle My Android or Advanced Apktool. You may also want to get Apktool by itself. I use all three of them. Android can be fickle and sometimes what works with one app won't work with another. What's nice about TMA and Advanced Apktool is that they'll do the drag and drop method for you, but when the compression needs to be changed that's when I use apktool by itself.
Sorry for the word vomit. Hopefully, this all makes sense.

Replacing/Changing Emoji Font

Hello all,
I have a rooted OP8P running Magisk 21.0 (21000), and using Magisk Manager 8.0.2 (307)(11). My OS build is Oxygen OS 10.5.13.IN11AA(enhanced by xXx_NoLimits_ 12.1). I've only recently owned this phone and have taken my time with getting root access and getting other miscellaneous things set up. I'm pretty much all set to go save for one thing; I want to change the emojis to the old blob style, like the ones from Android 6.0 Marshmallow.
I have the appropriate NotoColorEmoji.ttf file that I want to overwrite the current one with, I've also backed up the current one as well. However, much to my dismay, I have learned that the system partition for devices running Android 10 is read only. To add insult to injury, I also found out that there is no way to mount it manually. The only cited way to be able to modify the system partition that I have found is to create a Magisk module, something I have no clue how to start doing.
Now, correct me if I'm wrong, but it seems that the Magisk modules that may have been created to circumvent this are now defunct(namely FontChanger by John Fawkes), and sadly have no resemblance of making a return.
So my question is, does anyone know of a way that I can overwrite the current emoji font .ttf file with the desired one? If not can someone point me to a resource that can give me a crash course on how to create a Magisk module so I can make it? I know this may seem like an insignificant gripe to get caught up on, but I am at a loss right now.
Thanks for any help offered!
You can use my iOS 14 emoji module.
Just replace the ttf file with yours and flash it in the Magisk Manager.
Also make sure to clear the cache of the keyboard which you are using.
https://www.dropbox.com/s/o9zxjh8ed73zgro/iOS14BetaEmojis.zip?dl=1
laura almeida said:
You can use my iOS 14 emoji module.
Just replace the ttf file with yours and flash it in the Magisk Manager.
Also make sure to clear the cache of the keyboard which you are using.
https://www.dropbox.com/s/o9zxjh8ed73zgro/iOS14BetaEmojis.zip?dl=1
Click to expand...
Click to collapse
Hello, thanks for your generous assistance! When you say "clear the cache", that would be covered by me simply restarting the phone correct? Or is there something else I need to do?
[Edit]
I just tried flashing your module after replacing the .ttf file with mine, and it returned an error stating that "This zip is not a Magisk Module! Installation failed". Any Idea why?
KingKazmaOfficial said:
Hello, thanks for your generous assistance! When you say "clear the cache", that would be covered by me simply restarting the phone correct? Or is there something else I need to do?
[Edit]
I just tried flashing your module after replacing the .ttf file with mine, and it returned an error stating that "This zip is not a Magisk Module! Installation failed". Any Idea why?
Click to expand...
Click to collapse
When you are repacking the zip make sure set the compression level as normal and use Magisk Manager to flash, not TWRP.
If you are using Gboard keyboard, make sure to clean the cache of the Gboard app from the app settings.
laura almeida said:
When you are repacking the zip make sure set the compression level as normal and use Magisk Manager to flash, not TWRP.
If you are using Gboard keyboard, make sure to clean the cache of the Gboard app from the app settings.
Click to expand...
Click to collapse
Any program in particular I should use? WinRAR ok?
[Edit]
I tried to recompress using WinRAR I set the compression level to normal and made sure it was a .zip file. Unfortunately, I still get the same result. Not sure what I am doing wrong here.

Categories

Resources