Help with framework-res.apk Bootloop - Android Q&A, Help & Troubleshooting

Hello, Im having a hard time pushing framework-res.apk without getting a bootloop , i tried all methods but nothing works , the thing i want to do is disable the round icons on the pixel launcher ( i have a custom rom RROS ) , so i had to change a value in bools.xml, i tried all ways from signing apk to pasting the meta folder and manifest xml from original to the new one but i still getting bootloop . I need help please.

Related

[Q] Modifying apks [solved]

Hey have a proble. I decompiled Systemui apk to remowe black notification bar in miui ( thanks to sandy for his tut)
And decompiled framework-res.apk to add smooth spinners.
This is miui based cm9 from chotu and now have one problem:
I don't have cell network. There is no screen to enter pincode and reinstalling rom didn't help. Enabling and disabling flight mode didn't helped.
I just didn't ad semcuxpres.apk from system/framework to apktool cause it wasn't this apk in rom.
if reinstalling rom didn't help, there maybe something wrong with the rom.
no before modifying this too apps all was ok. I wanted to install it againg and try to change framework apk but I remid that wifi is not working there too. So I mark this thread as solved and will never go back to this rom. thanks

[Q] SystemUI.apk won't load - Jiayu G4 JB 4.2.2

Hi, I already took a look around this forum and searched for this problem on Google, but i can't find an useful solution that is not "reinstall the ROM"
and i would like to avoid it.
I'm trying to edit my SystemUI.apk, to make the status-bar background back to black. (right now it's trasparent and it's driving me crazy)
with apktool i installed the framework-res.apk and the systemui.apk, then i extracted the systemui.apk, modified it, i placed inside the resources.arsc then recompiled it, i took the apk into systemui/dist and placed back on my cellphone, then i replaced the original SystemUI.apk with fx root explorer and my jiayu rebooted by himself.
Then I saw that the status bar, notifications, wallpaper, everything, was disappeared, i can't toggle anymore my smartphone to the pc.
There was a backup of the systemui.apk, systemui.odex and framework-res.apk, so i placed back the systemui.apk and the systemui.odex (like always).
Then i rebooted the smartphone manually but the wallpaper/statusbar/etc. (all the informations inside systemui.apk) still won't load.
I tried replacing them again, shutting down, remove the battery, rebooting, replace the framework, i tried everything that was coming to mind to me.
On the internet i found a way to solve this problem with ADB toggle, but I can't find a way to make it work: it tells me that the application is installed on the SDCard where i don't even have an SDCard attached.
and i'm not able to install the SystemUI.apk using Terminal emulator either (another solution found on the internet).
Is there someone that knows how to solve this problem without installing the rom again? i would like to avoid the problem to put back in all of the stuff i have on my smartphone... there's maybe a way to regenerate the contents inside system/app without the entire rom.
Putting that stuff back in manually won't work...
-----------------
EDIT: Solved... Please delete this post and sorry for the troubles... The solution was easy: application list -> systemui -> delete updates and cache -> reboot.
Solved...

Help editing SystemUI (LineageOS)

Hi, i want to edit the systemui. I decompile the apk, then i edit the files, recompile and move META-INF and resources.arsc to the apk, no problems but when i replace in the phone i get bootloop no mather what i do, i tried various guides and nothing any help please?
Sorry for my english

Help with framework-res.apk

Hello, i have a custom rom ( rros 5), i wanted to disable the round icons , so i had to edit a value in framework-res.apk.
So i did the steps with apk tool, i also copied the original meta-inf , and manifest xml before pushing it, i got bootloop, but luckily i backed up the original apk, so basically i pushed it again , but the problem is , even after pushing the backed framework-res.apk, i still got bootloop ! Can someone help me ? i don't want to reflash the rom again .
Thread closed as per OP request.

stuck on logo after unpack and repack secsetting.apk from system

i unpack and edit and repack secsetting.apk from system folder and replace with root explorer and give right permissions, setting worked until phone not restarted, when i restart phone goes to logo and stuks on logo
i unpack and repack secsetting.apk by apktool last version 2.4.1,and just edit string.xml in xml folder and device_setting_info.xml in values folder
the secsetting.apk is successfully unpack and repack without any error
do my unpack and repack have a problem? or something else?
I just edit strings and add menu in phone about
i found service.jar and recompile and replace this code with original code in PackageManagerService.smali :
.method static compareSignatures
.locals 7
const/4 v0, 0x0
return v0
.end method
and problem solved and phone boot up, but secsetting2.apk not working say has stopped after recompile
any solution is there?
What are you actually trying to achieve?
danwood76 said:
What are you actually trying to achieve?
Click to expand...
Click to collapse
my phone is samsung a5108 (china version a5 2016) running official android 7.1.1
i want add about menu in setting by this guide:
https://forum.xda-developers.com/showthread.php?t=2341389
i have no problem in unpack and repack "secsettings.apk" on android 6.0.1, every things work fine
but problem in android 7.1.1 sdk 25
setting apk in android 7.1.1 is "secsetting2.apk"
when i add options and repack "secsetting2.apk" and put in priv-app in system folder by root explorer and set permissions like other apps(0755 for folder and 0644 for apk)
it is working fine and added options is ok until reboot phone but after reboot say settings keep stopped
i use APK Easy Tool v1.57:
https://forum.xda-developers.com/an...tool-apk-easy-tool-v1-02-windows-gui-t3333960
i use aapt2 to compile(without use aappt2 cannot compile)
and install framework-res and samsung-framework-res from framework folder
i tested by keep original sign in APK Easy Tool v1.57 setting it still has a problem
even unpack and repack without any change in xmls it still has a problem too
i think problem is in compile method or sign apk in android 7.1.1
i uploaded original secsettings2.apk and frameworks here:
https://gsmonline.ir/apk/
please help, i need this ???
asadace1 said:
please help, i need this
Click to expand...
Click to collapse
I don't have much experience in doing this.
Maybe the logs show you what error you are getting?
Are you able to simply decompile and then recompile/resign without making changes?
Regards,
Danny
danwood76 said:
I don't have much experience in doing this.
Maybe the logs show you what error you are getting?
Are you able to simply decompile and then recompile/resign without making changes?
Regards,
Danny
Click to expand...
Click to collapse
thanks for answering
yes i can decompile and recompile and resign on android 6.0.1 without any problem
in this android 7.1.1 when i recompile and compile secsetting2.apk(samsung android setting application)
the application not worked after add to system/priv-app and was stopped
how can i recompile correctly android 7.1.1 system apks??
if you have link please share to me
i think no way to decompile and recompile for secsetting2.apk from android 7.1.1 at this moment
i tesed many ways to decompile and recompile and didn't succeed and apk not working after recompile
but that is work in android 7.0
i search on xda forums and found many developers worked on a5 2016 and nobody port rom for a5108 or all available links are removed
i just need to edit secsetting2.apk
someone among all these developers not help?:crying::crying:
i finally managed to solve this problem. and compile and recompile system/priv apps and edit and work without any problem
i will explain all of this for android 7.1.1 in new thread as soon as passible:
1- how to deodex odex or oem roms(samsung sony lg) running android 7.1.1
2- how to full disable check signature for currently working edited system apks(if not fix this, phone stuck on logo or apk has been stoped)
2- how to decompile and recompile apk without problem
 for android 7.1.1 system or none system apks
3- how to add about menu and owner image in secsetting
2.apk
4- how to replace updated system apps or add apk to system folder in oem roms

Categories

Resources