[Guide + Mods]Modify System apk on Oreo without Computer - Sony Xperia X Compact Guides, News, & Discussion

Been messing around trying to figure this out for a while, and finally got it, (O is kind of a different animal than previous versions), so thought I'd share...
Need:
- root
- deodexed apps, (maybe). Apktool needs framework-res and SystemUI to be imported as framework, in order to function properly. I deodexed my SystemUI apk for that purpose, but might not be necessary. As far as modifying, Apktool can decompile resources of an odex apk which you can modify and recompile. You can replace whatever particular apps you want with deodexed ones, if odex isn't working out. TOAD deodexer by Ticklefish works great for O.
- superuser mod, (disable signature verification). Typically not hard to do with Xposed, but no working Xposed for us atm, so need to patch services.jar. There's more than one way to do it, but simplest thing at this point is probably smali.patcher Magisk module. I attached my services.jar, but be aware that it is deodexed, so if you are using it on stock odex rom, (like I am), you need to copy the file to your phone storage, then go to recovery file manager, and delete your services.jar, and also services.odex, services.vdex, and services.art from /system/framework/oat/arm64. Then copy the new services.jar to /system/framework, and set permissions 644. I'm pretty sure smali patcher can do it on odex no problem.
- Selinux permissive. More than one way to do it. I used Magisk module.
-ApktoolX 8 installer by Androblack - https://androidfilehost.com/?fid=1322778262904013039
- Mixplorer, with archive and signer add-ons.
- good text editor. Mixplorer has a pretty good code editor built in, but still not as solid as QuickEdit by Rhinosoft.
1. Install ApktoolX installer. First thing that pops up when you open it is 'install ApktoolX', so then do that. Then open the app, and go to settings, and check 'root', then exit the app, and reopen it, and grant root. Then go back to settings and select 'install openjdk'. After it installs, open it and you will see a message 'openjdk is running'.
2. Make a directory somewhere called 'apktool' or something, and copy /system/framework/framework-res.apk and /system/priv-app/SystemUI/SystemUI.apk to it, plus any other apks you want to modify. Open ApktoolX, go to apktool directory, and click on framework-res.apk and SystemUI.apk and select 'import as framework'. Now Apktool is set up.
3. Decompile, modify, and recompile whatever you want. After recompile, you will get a new apk called (app)_src.apk. This needs to be signed.
4. Open Mixplorer, and long-press on the ...src.apk app and choose 'sign > auto' from the three-dot menu. There will be a new apk created called (app)_src_sign.apk. This is ready to push to system. Note that ApktoolX also has a signing feature, which might do the same thing. I don't know for sure what signature it uses or if it's the same as what Mixplorer does. Test it if you want.
5. Delete your stock app, (back it up first if you're smart), and replace it with the new one. Rename the new one to the same as the original, (just because). Best to do this in recovery, but you can actually replace system apps while booted, (except for framework res), and just force stop the app in Settings and reopen it.
I've attached deodexed SystemUI and patched Services.jar, (including superuser mod, and signature spoof for MicroG), both from 34.4.A.118
Also, here's my dark-mod apks if anyone wants, (see screenshots). Note that there may be some bugs, (mainly some dark-on-dark icons, but I also know that 'system icons' option in display settings causes fc, because of some framework-res mod, [not really a problem since SystemUI tuner works fine]). I may or may not bother trying to fix them. Use as-is if you want.
Update - fixed most of the black-on-black, and fixed the System Icons Settings function. New zip linked
https://mega.nz/#!l10wFaqA!GfZEPcSwo3Ek3gZyCE64JXj2U45Yp3qhCxvDxIMDtbc
Apks are deodexed, so if you're replacing your odexed ones, make sure to delete oat folder.

Hi
I have the xperia x compact, some idea to put superusermod. You know how to put the lockscreen of the xz2. I can be a tester. I have root magisk and recovery.

Chinoulp11 said:
I have the xperia x compact, some idea to put superusermod. You know how to put the lockscreen of the xz2. I can be a tester. I have root magisk and recovery.
Click to expand...
Click to collapse
What about the lock screen are you looking for? Clock widget or live wallpaper or...?

Clock widget of xz2 for lockscreen and superusermod compilation (.118)
---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------
My english is bad.

Chinoulp11 said:
Clock widget of xz2 for lockscreen and superusermod compilation (.118)
---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------
My english is bad.
Click to expand...
Click to collapse
I was able to get the home screen widget from taking the widget apk from eXistenZ zip, but I think the lock screen probably needs some smali work. I'll see if I can figure it out.

unfortunately failed became

I will wait no problem. It is possible that we can have the ambient display of the xz2 for the x compact. Tomate your time I will be your tester
---------- Post added at 06:18 AM ---------- Previous post was at 06:17 AM ----------
and how can I be superusermod with magisk in the compact x

Chinoulp11 said:
---------- Post added at 06:18 AM ---------- Previous post was at 06:17 AM ----------
[/COLOR]and how can I be superusermod with magisk in the compact x
Click to expand...
Click to collapse
Modify Services jar. You can use smali patcher module here - https://www.google.com/url?sa=t&sou...ABAB&usg=AOvVaw0_1eRo81ZlvmN-nIVmTugf&ampcf=1 - or follow instructions in first post. I attached a services jar file you can use...

Related

x10 Mini Pro New Modified Framework-res.apk

Changes
New Corners
notification area
popup color
new XPERIA MINI like lockscreen
new glossy buttons
new battery icon
Instructions
PHONE MUST BE ROOTED
THIS IS ONLY FOR ANDROID 2.1-update-1
BUILD NUMBER 2.1.1.A.0.6
1. Download attached framework-res.7z.
2. Extract using 7-zip.
3. Copy framework-res.apk to your sd card.
4. Now using root explorer move framework-res.apk to system folder.(system/)
5. Change permissions like this
* *
*
*
rw-r--r--
6. Now finally move the changed framework-res.apk to framework folder.(system/framework/)
7. Reboot your phone.
screenshots?
Pranav, can you make one like this for 2.3.5 ROM's(generic that will work on ALL 2.3.5 roms)??
Can you make it black, not rainbow coloured? Like in your arcminiv14 =D
---------- Post added at 03:09 PM ---------- Previous post was at 02:53 PM ----------
**** just realised this was made in july, and put this on arcmini v14, fked up my phone, luckily i backed up...
but anyway, prana, is this available on arcminiv14?
Anyone tested? With the stock rom, works well?

[Dev Help][Emergency]Regarding Modifying AndroidManifest.xml and signing system apps

I am trying to modify AndroidManifest.xml of settings.apk
But as we all know, if we modify that AndroidManifest.xml, we have to sign the apk so when I modify the AndroidManifest.xml and sign the settings.apk and push it then it doesnt get installed and I get a error in logcat saying there is a mismatch in signatures of the apk and system uid.
Then I tried restoring stock signatures but it still doesnt get installed and in log it says the apk has no signatures because I modified AndroidManifest.xml.
Do anyone have solution for this to sign system apps properly or any other workaround?
I came to know that every system apk and framework apk must be batch signed incase of editing the manifest xml.
I don't think that every apk needs to be re-signed. I've never done this, but my thought was that any apk that has an AndroidManifest.xml with the same original modified dates (you can check the dates with 7-zip) need to re-signed together. Won't it mess up some other apks that don't need to be re-signed if you were to re-sign everything? Please let me know if I am way off..
Also, note that there are other ways to invert the colors in apks besides editing the AndroidManifest... (i.e. edit the /values/styles.xml, /layout/*.xml, etc... can be a pain, but it works) - Sorry, but I guess I am assuming that that's what you are going after by editing the AndroidManifest in the Settings.apk... again, anyone feel free to correct me if I'm wrong on anything here - I am all for learning and sharing!
^^No I dont want to theme it or colorize it
I am adding new functionality for which some new permissions and activity declaration is needed in Manifest file
But if I modify Manifest and use stock signature files it doesnt install and if I resign it then it say signature mismatch with system uid.
Bump!!
I have edited the AndroidManifest.xml in the Settings.apk (for theme color change), and I did not re-sign it after compiling, I retained the originals.
And, it worked fine when I put it on my phone alone (with a flashable zip package), BUT (this is a big but), - it did not get installed when I put it in a ROM package together with all the system files. That's when the signatures become an issue... you need to then re-sign all, or nearly all apps and framework.
At least that's my experience...
Check out this thread.. http://forum.xda-developers.com/showpost.php?p=28475720&postcount=63
Sent from my phone's mind
Oh then I have to sign all system apks
Any other way?
Do you know how to sign with system key which will match system uid?
Only for AOSP ROMs you can resign and apks work. Samsung use closed source.....how could you ever match signatures? Also don't change the Manifest. Leave it. Who says you have to change it?
Note that its via the public.xml that you need to add these listings as to what the apk is now doing. No the manifest. Is it going to market? No so don't change manifest simple. If it is then it shouldn't really be a system app. Also you can disable signature checking within your ROM if that is all you are worried about. I have signed apks from the market that I have themed and then installed them to system and they work fine. Its the apks you use that have dependencies that WON'T work. I.e. apks like Samsung TWiz apks that listen for the system vold boot complete proprietary to Samsung or say an ASOP apk that is trying to chime into something that is framework related in a non-asop ROM.....this then becomes a permissions issue
---------- Post added at 05:09 AM ---------- Previous post was at 05:05 AM ----------
PS: I have edited androidmanifest anyway and apks still work fine.... upgraded the SNS apk to ensure it was fit for use above and beyond SDK 10
varun.chitre15 said:
I am trying to modify AndroidManifest.xml of settings.apk
But as we all know, if we modify that AndroidManifest.xml, we have to sign the apk so when I modify the AndroidManifest.xml and sign the settings.apk and push it then it doesnt get installed and I get a error in logcat saying there is a mismatch in signatures of the apk and system uid.
Then I tried restoring stock signatures but it still doesnt get installed and in log it says the apk has no signatures because I modified AndroidManifest.xml.
Do anyone have solution for this to sign system apps properly or any other workaround?
Click to expand...
Click to collapse
Did you figure out in the end? Still stuck with same problem as you

[REQ] TouchWiz30Launcher

Hi guys, I'm new to this forum and if its possible I'm gonna ask for help here.
I'm losing hope with this, I followed all the guides regarding in modifying touchwiz however whenever I edit an xml file even just a letter and recompile it again, it won't work. I set the permissions to rwx-rxx-rxx in the /system/app but still its not listed as an installed application in all application lists. TB shows it as an uninstalled app/orphan. I already managed to deodexed my touchwiz so I don't know the problem anymore. What I'm trying mod with my touchwiz is as follows:
*5 icons dock (original icons) /no dock background or some line above dock just like original
*5 rows homescreen
*application_name=Samsung home to Home
*transparent menu_background
*fly in effect
*launcher:defaultScreenCount = 1
*automatically sorting apps to alphabetical
*disable homescreen app labels
I downloaded an already modded touchwiz3 to set as my model for editing, its perfect however what I don't like in it is the line above the dockbar and whenever I set the homescreen number to only 1, the homescreen icons/widgets are scrolling. I uploaded the 3 files (original/downloaded/my modded), could someone check what I'm missing in my work? BTW, I'm on a stock S5300DXLF2.
I'll appreciate all the help in advance, thanks.
set permission to.rw-r--r--.
MANYGREEEEEEEETZ!!!
---------- Post added at 01:05 AM ---------- Previous post was at 12:59 AM ----------
edit.how did u named the apk?
MANYGREEEEEEEETZ!!!
Yes, I set the permissions to rw-r--r-- but still its not showing up as an installed application. I deodexed the original touchwiz using this guide http://forum.xda-developers.com/showthread.php?t=1600805 but still it won't let me edit a single line in an xml file. What could be the problem?
Regarding your question about how did I named the apk, are you talking about the filename.apk (TouchWiz30Launcher.apk)? I didn't change that in the /system/app directory.
try to sign the apk
I finally managed to make it work, I copied all the files I edited from the new compiled apk to the original apk and I pushed back the original apk. However the application name and the menu background transparency didn't change at all. Since I don't know where the values folder goes after recompiling an apk, I don't know where to copy it from the new apk to paste to the original apk.
DarkEyes23 said:
I finally managed to make it work, I copied all the files I edited from the new compiled apk to the original apk and I pushed back the original apk. However the application name and the menu background transparency didn't change at all. Since I don't know where the values folder goes after recompiling an apk, I don't know where to copy it from the new apk to paste to the original apk.
Click to expand...
Click to collapse
This is the problem of signing the app... use vts to compile, decompile and signing... I guess it will work...
Sent from......... I guess you know it...
I tried using VTS, but that didn't help either changing the application name. I'm having another problem adding rows to homescreen, I changed the longaxiscells to 5 but I'm getting FC.
how is it .. is it good ?
Any of this is like the one in JellyBlastV3 rom??? With the transperant dock and stuff??? And I just push it using root explorer??? And set permissions??
Sent by a Payphone

I replaced 4 icons in theme. Theme now fails to install

I replaced 4 icons in the Orion theme by Jasonevil. The icons have exactly the same name and same dimensions (48x48 / 60x60).
The APK won't install. I renamed it to zip and tried to install it in CWM. I the "check for signing" was disabled. This didn't work.
I have signed the zipfile with APKSigner from the Google Market but this didn't help either.
What do I do wrong?
As far as I know,It won't work if what you have edited is system app
if you did edit the system app,you'd better have backuped them. then you need to set the framework-res.apk in apktool before you edit the system app
looking for a rom whose mms has buble in conversation
---------- Post added at 03:07 AM ---------- Previous post was at 02:56 AM ----------
if not system app, there maight be only one reason to my memory,that is, you have changed the signature .
Uninstall the old apps before you install the new ones
looking for a rom whose mms has buble in conversation
Renaming an apk to zip wont work, as a zip for flashing needs to be setup with an install script inside, that is why that failed....
Sent from my Legend using xda app-developers app
Thank you for your explanation

#$#$#$# Change\Customize Default Contact Image #$#$#$#

~WARNING~
This is working on Sprint S5 MOAR ROM.
Use these methods at YOUR OWN RISK!!!!!!!
I get sick of looking at the default android contact images and thought I would change them ALL. The image I decided to use is Bob Dobbs of The Church of the SubGenius. Yes Slack is good, and we need to be reminded of that when we communicate with the other degenerates in our lives. A little more Slack ain't not be hurts no-ones mayne.........
I have made changes to almost all contact related images in the following: InCallUI.apk, SecContacts.apk, SecTeleService.apk, and SecMms_Blue.apk. Its been a couple of days now and I am getting no errors + loving the way the Contacts and Messaging look.
Click tab above for Screenshots.
~~~~~~~~~DISCLAIMER!!!!!!!!!~~~~~~~~~
If you get warts, if your newborn pops out with a foot on its forehead, if your teenage daughter runs off with the meth-head biker from down the street, you find your wife having Gang-Sex with cut-throat multi-nationals, or if your phone takes a GIANT **** on you: You are just plain fuct. I will brook no (read: ZERO) responsibillity.
Let The Slack Flow...
That being said, If you love Slack you can use the attached Apks to update the way your contacts display.
First off you will need a root browser like RootExplorer, or whatever you deem worthy.
Next transfer the updated Apks to your SD Card.
Open RootExplorer and navigate to wherever you put the Apks. Select copy-move InCallUI.apk then back out to the root of your phone's file system.
Make sure you are mounted RW (in RootExplorer the tab is located up top). Open "system\app" and then select "Move-Copy here" When asked if you want to replace-overwrite existing app select yes. After the file has transferred you need to scroll down and long-press on it to change permissions to RW-R-R.
Now copy or move the remaining three Apks into "system\priv-app" and change the permissions on those to RW-R-R as well.
Now back out to the root of your file system again and select Refresh from in RootExplorer settings. Reboot and WipeCache\Dalvik. Enjoy much Slack.
ALTERNATE IMAGE METHOD~~~
For those of you not into Slack-ing off whom wish to use their favorite picture of Early Cuyler or Tipper Gore and Janet Reno doing the chilli-dog or whatever, you can use the images in the two folders in the Update Contacts.zip from the download link below as templates. You will need to use whatever image editor you like (GIMP, Paint.net, etc...) to make changes to ALL the image files in both of the folders I have included, and then re-save them to the same folder for easy access.
!!!DO NOT GO CHANGING ANY NAMES OF ANYTHING!!!
Before you make changes in the Apks. Open the folder you saved your edited images in and make note of the names of the files you will be changing imagery in for each Apk.
Open each Apk with whatever archive tool you have (I used winrar). Navigate to each folder you need to update images in and select "add files to archive." Navigate to the folder containing your updated images and hit "ok."
Hokay.
Now place your edited Apks on your phone and overwrite the old Apks, Change permissions & Refresh.
Reboot recovery and wipe your cache-dalvik.
Enjoy...........
DOWNLOADS:
Updated Apks, Templates zip-
http://www.mediafire.com/download/bi7n40tezi6dev6/Contacts_Update.7z
RootExplorer-
http://www.mediafire.com/download/r6iry2sofx918b5/rootexplorer.apk
XDA:DevDB Information
.:android monsters:., Theme for the Samsung Galaxy S 5
Contributors
.:android monsters:.
Version Information
Status: Beta
Created 2014-11-30
Last Updated 2014-12-1
Reserved
Something is missing?
sebdigital said:
Something is missing?
Click to expand...
Click to collapse
Link?
Inviato dal mio SM-G900F utilizzando Tapatalk
+1 link???
SS...
G900F __ abym
Sorry. Links, screenshots, and instructions are up now.
I just edited the SecContact.apk a little bit, but when I pushed the new back to replace the old one, chmod 644, reflashed, clear the cache and reboot... Finally the contacts and the dialer app icon never showes in my app list, who can tell why?
PS: if I deal with SecMms_Blue.apk in the same way, it works!
Sent from my SM-G900F using XDA Free mobile app
---------- Post added at 01:58 AM ---------- Previous post was at 01:49 AM ----------
What else, the stock apk always works fine when I pushed it back to the phone.
So, what is in the way?
Sent from my SM-G900F using XDA Free mobile app
Sorry, been out of it for a while.
What is the error adb is giving you?
Did you try using Root Explorer to replace/chmod SecContacts.apk. Also try placing both SecMms_Blue.apk and SecContacts.apk in system/app AND system/priv app. If that does not work send me a log of the additional edits and I will track it down for you. Again, sorry for the deplorable response time.
PM me if you need to.
screenshot please

Categories

Resources