[GUIDE][MOD] Transparent Dialer/Incoming Call [WINDOWS][NooB Fiendly] - Android Themes

Introduction:
We all know that Android from ICS+ provides big beautiful contact images that are visible, obviously when someone calls us...
While all this is good... I noticed multiple ROM's extending the black screen below the animation over the image to display the subtle call accept/reject animation. And now that's not a good thing... bear with me, "personal opinion"... So here is a guide to get rid of this...
Preview:
Still don't understand what I mean? Have you seen the below happening...?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yes that's exactly what I mean... The right image shows what happens... The left is the solved image...
So here goes...
Requirements:
Java Development Kit
APKTool
AAPT
Notepad++
A Brain [Necessary]
Android SDK [Not Necessary]
Steps:
Done on Samsung Galaxy S GT-I900 Running Slim Bean v2.1
Install JDK and prepare system. [Doubts Click Me]
Prepare a folder with apktool.jar and aapt.exe, Lets say C:\APKTOOL
Extract the framework-res.apk and Phone.apk from the ROM package and move to the same folder.
Right-click while holding the shift button in the folder to open command prompt in the target folder.
Or navigate to the folder you are currently working using
Code:
C:\Users\mnazim\> cd C:\APKTOOL
Install the framework by using the below command.
Code:
C:\APKTOOL\> java -jar apktool.jar if framework-res.apk
Decode the Phone.apk using the following command
Code:
C:\APKTOOL\> java -jar apktool.jar d Phone.apk
Wait...mmm... K...
Navigate to the folder thus created
C:\APKTOOL\Phone\res\layout
Click to expand...
Click to collapse
Open the file with notepad++
incall_touch_ui.xml
Click to expand...
Click to collapse
Go to the part that starts with the tag
Code:
[B]com.android.internal.widget.multiwaveview.GlowPadView[/B]
Check for the property [Probably on the first line itself]
Code:
[B]android:background[/B]
Change the value from
Code:
[B]@android:color/black[/B]
to
Code:
[B]@color:incall_call_banner_background[/B]
Save and close file
Navigate to the following folder.
C:\APKTOOL\Phone\res\values
Click to expand...
Click to collapse
Open the file
colors.xml
Click to expand...
Click to collapse
Open the file with Notepad++
Go to the line that says
Code:
incall_call_banner_background
If not present create a new line with the following details:
Code:
<color name="incall_call_banner_background">#a0000000</color>
Save and exit.
Re-Build the Phone app with the following command from the same Command Prompt Window. [Notice the "b" for build, previously it was "d"]
Code:
C:\APKTOOL\> java -jar apktool.jar b Phone
Wait...mmm...mmm...mmm... K...
The output apk will be in the following folder.
C:\APKTOOL\Phone\dist\Phone.apk
Click to expand...
Click to collapse
Copy the apk to /system set permissions and reboot. [Create backup in case. Rename the old one to "Phone.apk.bak" ]
Or make a flashable ZIP and flash from recovery. Use this as a reference.
Done.
Credits:
Android Theming Guide
And a couple of Trial and Errors.

reserved

Very good guide, thank you.. however i was wondering can i just replace the Phone.apk with another from another rom ?
Im also getting the below
C:\APKTOOL>java -jar apktool.jar b Phone
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\APKTOOL\Phone\res/drawable-ldrtl-xhdpi
invalid resource directory name: C:\APKTOOL\Phone\res/mipmap-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 18, --target-sdk-version, 18, -F, C:\Users\hgeorge\AppData\Local\Te
mp\APKTOOL3068328470076333316.tmp, -I, C:\Users\hgeorge\apktool\framework\1.apk,
-S, C:\APKTOOL\Phone\res, -M, C:\APKTOOL\Phone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, C:
\Users\hgeorge\AppData\Local\Temp\APKTOOL3068328470076333316.tmp, -I, C:\Users\h
george\apktool\framework\1.apk, -S, C:\APKTOOL\Phone\res, -M, C:\APKTOOL\Phone\A
ndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 18, --target-sdk-version, 18, -F, C:\Users\hgeorge\AppData\Local\Temp
\APKTOOL3068328470076333316.tmp, -I, C:\Users\hgeorge\apktool\framework\1.apk, -
S, C:\APKTOOL\Phone\res, -M, C:\APKTOOL\Phone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\APKTOOL>

Cool was looking for something like this in a long time
Sent from my H100 using xda app-developers app

Hey, I have flashed the zip that you made on my HTC One V running CyanogenMod 10 based Omega Reborn 2.5.0 ROM but this mod is not working as I cannot open my dialer because it constantly says that "Dialer has stopped working". I have restored my old Phone.apk and now the dialer is working fine but I really want that transparent incoming call mod. Please, tell me how to fix it.

Related

Signing made easy.... [ Updated July/2009 ]

Note, this will not work if your SDK or the path that you place this in has any spaces in the dir name!
An Example of this is c:\users\Nikki and Stephen\sdk\tools
Try to put the SDK and the contents of the zip in a dir where the names are all together and not like the one above.
Ok, so I have made a batch file that will automate the entire process of setting up to use the signing tool made by JF. This batch file will set the CLASSPATH, set the PATH, install the registries, let you sign the files manually, and let you push/pull files to the phone.
In order to use this you should have downloaded the sdk already. Simply extract all of the files into the tools dir of your sdk, and run autosign.bat follow the instructions and go through the options one by one, starting with 1 working through 4. You can however, put the contents of this zip anywhere on your computer and it will work. It is just better to put them into the tools dir of your SDK. Especially for the consideration of future versions.
Enjoy,
Stericson
Autosign .zip: http://www.DroidBin.com/Androidstuff/signing.zip
You are one hard working, man.
Thanks.
awesome sir! looking foward to using this great tool....in a virtual machine...with windows xp.....on my mac.....ha ha
Please let me know how it works. It works for me, but there are so many different computer configurations. This is also only tested and expected to work for xp and vista....I don't know if it will work for other o/s versions.
Stericson
will give it a whirl as soon as my cupcake is done baking.
Doesn't work for me on vista, running a 64bit machine, I think it has something to do with how my computer is set up though because of the error message I get
can you be specific as too the error message and what you are doing when it happens?
Stericson
This is badass! Ive been playing with it this morning and all I can say is........
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now no one has an excuse to not be able to create their own theme!
yeah, it's a great tool, thanks for the help in getting it all work stericson.
Thanks for the autosign batch. It seems like it would make things easier. Now if I could just get it to work....
Here is the error I am getting when running it. (Either via right click or manually through the bat file)
**************
Signing File!
**************
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I have it installed in my c:\and_sdk\tools\ folder
Any ideas?
EDIT: Updating Java to most recent version fixed the problem.
Thanks!
tinpusher1 said:
Thanks for the autosign batch. It seems like it would make things easier. Now if I could just get it to work....
Here is the error I am getting when running it. (Either via right click or manually through the bat file)
**************
Signing File!
**************
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I have it installed in my c:\and_sdk\tools\ folder
Any ideas?
EDIT: Updating Java to most recent version fixed the problem.
Thanks!
Click to expand...
Click to collapse
I downloaded j2re-1_4_2_19-windows-i586-p.exe but still gives me error...
------------------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError: testsign (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
File signed successfully if no Errors above.
-------------------------------
Anyone have any idea?
Awesome work! Thank You! I got this to work the first time, and I can finally start to make a theme now. At least I had time to come up with some ideas.
I just want to mention that it was brandenk's thread that got me to look into this. Thanks to all that put in the hard work. Thank you Stericson.
Why isn't this a sticky?
Mac OS X?
Hi all,
There are a few Mac OS X users on this site that would like to do this as well. Obviously we can't use BAT and EXE files in our native environment, but we can use a UNIX-based approach. Does anyone have an intelligible or pre-packaged version of how to do this in UNIX? (I say intelligible because the Google document on this is pretty unintelligible.)
Question, I have a theme in my folder c:\sdk\tools. Do I need to leave the in a zipped file or extract it? The theme would be c:\sdk\tools\update.zip?
Leave it zipped and just sign the update.
I would love to be able to sign my new theme in Ubuntu 9.04.. Anyone know how?
p.s have been searching/reading until 2:30 am am and since 8 am this morning. Driving me nuts.
problem flashing update.zip
I am having some issues flashing my update.zip files. I am getting an error of not being able to find the update path. I am trying to flash a font that I found online. I noticed after signing the zip with the .bat file provided that there is a new folder titled "META-INF". From downloading other signed fonts this looks correct but the ones I have downloaded contain another tree of folders within META-INF that eventually lead to a file titled "update-script". I am assuming that is what is missing from my signed file. What am I doing wrong?
hmmm should be other files inside of the meta folder yes.....just do this, copy the folders from those other font upddates, assuming they are only font updates, and put them in your current meta folder. the update script should be the same.....
if any other problems just post your update.zip...one of us will take a look at it.
Stericson
im on vista and i keep getting an error saying
'java' is not recognized as an internal or external command, operable program or batch file.
can anyone help me with this?

[THEMES] Super Swiftkey (140+ added free themes) updated May 05 2016

[THEMES] Super Swiftkey (140+ added free themes) THREAD CLOSED!
Thread is Closed!!!!
No longer supporting this mod here due to users not wanting to be patient and not following forum rules!
I may keep updating but no longer here!!! Thank those who can't read rules and think my time is theirs to dictate!!!!!!
I DON'T EVEN USE THIS MOD!
BYE!
DJ
TEAMBLACKOUT
SUPER SWIFTKEY​
Hello Everyone,
Super Swiftkey is a version of Swiftkey which includes custom themes by me, @sonnysekhon and other very helpful xda members/developers.
We will keep it up to date by posting our modified version in the TBO updater as soon as an update to Swiftkey hits our Play Store.
I will update when TIME allows.
DO NOT REPOST THIS ANYWHERE...MANY DEVELOPERS GAVE US PERMISSION TO DISTRIBUTE..PLEASE HONOR THEM.
Beta will be updated only for research not every one will get themed.
ATTENTION EVERYONE:
FOLLOW XDA RULES...DO NOT ASK FOR ETA .........WE FOLLOW THEM ON PUSHBULLET....I GET NOTIFIED RIGHT AWAY....:highfive::good:....So if it's not a hard update it should only take a few min to check if anything changed in themes and drop our goodies in. Longer if they changed things or I have other obligations. I will report what's up. Ok now the education is over go have fun. [emoji14]
Updated = June 24 2016
Stable SuperSwiftkey:
*****Notice******
New versions for MM and N also arm64 so PAY ATTENTION please!
ALSO:
******If you are on LP M or N and it fails install you'll need to uninstall the old apk then install the new....They change the certificates from LP MM and N to the old one due to making it cross api.
*******NEW******* 6/24/2016
Uploads will now be in the TeamBlackout Updater
Here: TeamBlackOut Updater This is v6.2.1 with Firebase notifications, so No need for pushbullet anymore!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Zip's to flash = "Fixes sync and will help with system installed SwiftKey." "BACKUP FIRST" Flash in recovery.
PAY ATTENTION TO THE ZIP LABLES!!!!!!!!! no label is for older devices.......... LP-Lollipop. MM-Marshmallow N-??
SuperSwiftkey folder for the older ones=
"Depreciated
https://www.androidfilehost.com/?w=files&flid=19897"
If you want older ones from the updater go here: TBO Resources
Click to expand...
Click to collapse
Small Change Log:
Updated stable apk's and zips!
Don't wanna wait for us or want beta updates...then you can self update, remove unwanted themes here http://forum.xda-developers.com/showthread.php?t=2958328 for personal use ONLY! NO posting it...Only post YOUR themes YOU create not others.
If we can keep this fun we will keep it updated....So don't be a party pooper...Just relax and enjoy SuperSwiftKey!
Also remember we theme it NOT mod it, please keep this thread on theming NOT modding it. - we will NOT recreate paid themes so don't even ask! Ok now that's covered.....
Enjoy!
DJ, Sonny and all the contributors!
A few sample screens below...MANY more inside!!!
wow looks real sweet, too bad I missed the free offer.
You are my hero
excellent! i hope more people mod this now, i dont really like the dark theme on the Swiftkey Beta.
look good but possible to add few more colors? i want green
I thank you for your hard work. Hope to see more colors coming during your free time. Cheers.
will this work on the swiftkey beta?
I've got an error when compiling using apk manager:
"res\drawable-mdpi\sym_keyboard_search.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\D3V1L\AppData\Local\Temp\A
PKTOOL7988472857239820988.tmp, -I, C:\Users\D3V1L\apktool\framework\1.apk, -S, C
:\Users\D3V1L\Desktop\android-sdk-windows\apk_manager\other\..\projects\Swift.ap
k\res, -M, C:\Users\D3V1L\Desktop\android-sdk-windows\apk_manager\other\..\proje
cts\Swift.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\D3V1L\AppData\Local\Temp\APKTOOL7988472857239820988.tmp, -I, C:\Users\D3V1L
\apktool\framework\1.apk, -S, C:\Users\D3V1L\Desktop\android-sdk-windows\apk_man
ager\other\..\projects\Swift.apk\res, -M, C:\Users\D3V1L\Desktop\android-sdk-win
dows\apk_manager\other\..\projects\Swift.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Press any key to continue . . ."
Any Guess??
finsmaniac02 said:
will this work on the swiftkey beta?
Click to expand...
Click to collapse
Probably not, this is for the version shown in the pics.
rinxas said:
I've got an error when compiling using apk manager:
"res\drawable-mdpi\sym_keyboard_search.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\D3V1L\AppData\Local\Temp\A
PKTOOL7988472857239820988.tmp, -I, C:\Users\D3V1L\apktool\framework\1.apk, -S, C
:\Users\D3V1L\Desktop\android-sdk-windows\apk_manager\other\..\projects\Swift.ap
k\res, -M, C:\Users\D3V1L\Desktop\android-sdk-windows\apk_manager\other\..\proje
cts\Swift.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\D3V1L\AppData\Local\Temp\APKTOOL7988472857239820988.tmp, -I, C:\Users\D3V1L
\apktool\framework\1.apk, -S, C:\Users\D3V1L\Desktop\android-sdk-windows\apk_man
ager\other\..\projects\Swift.apk\res, -M, C:\Users\D3V1L\Desktop\android-sdk-win
dows\apk_manager\other\..\projects\Swift.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Press any key to continue . . ."
Any Guess??
Click to expand...
Click to collapse
Did you replace entire folders in Apkmanager? If so, just replace the contents of the folders.
same error here
replaced all files except the fonts, but when compiling an error occurs
idea?
edit:worked for me
you dont have to change the whole folders,just the files inside.the it will work...
thx
Hi, after modding, the sizes of the alphabets appear over-sized. Upon checking, I realize that the mdpi-4 you had had some oversized icons. For instance, the "abc_icon.png" should be 50x50, however the mdpi-4 had 60x55. I am a little helpless here. The same problem applies with the drawables.
I will list out specifically the icons, and hope that it will help you save time:
These icons in both drawable and drawable-mdpi:
Size should be in 50x50 for the following:
abc_icon.png
alt_icon.png
delete_icon_preview.png
done_icon_preview.png
go_icon_preview.png
menu_icon_preview.png
mode_icon.png
mode_icon_preview.png
next_icon_preview.png
send_icon_preview.png
shift_icon.png
shift_icon_active.png
smiley_icon_preview.png
Size should be in 32x52 for the following:
btn_popup_key_normal.9.png
btn_popup_key_blank.9.png
I sincerely thank you for your time.
hey bro, its giving me some java errors and i even tried re-installing java to my computer so pretty much cant gewt it to work.... any ways you could explain about the process a little more. or maybe a pm with a file lol
thanks anyways
JokerAce said:
Hi, after modding, the sizes of the alphabets appear over-sized. Upon checking, I realize that the mdpi-4 you had had some oversized icons. For instance, the "abc_icon.png" should be 50x50, however the mdpi-4 had 60x55. I am a little helpless here. The same problem applies with the drawables.
I will list out specifically the icons, and hope that it will help you save time:
These icons in both drawable and drawable-mdpi:
Size should be in 50x50 for the following:
abc_icon.png
alt_icon.png
delete_icon_preview.png
done_icon_preview.png
go_icon_preview.png
menu_icon_preview.png
mode_icon.png
mode_icon_preview.png
next_icon_preview.png
send_icon_preview.png
shift_icon.png
shift_icon_active.png
smiley_icon_preview.png
Size should be in 32x52 for the following:
btn_popup_key_normal.9.png
btn_popup_key_blank.9.png
I sincerely thank you for your time.
Click to expand...
Click to collapse
Sorry about that, I overlooked those since I have a hdpi device.
You can resize all those images at http://pixlr.com/editor/, go to Image/Image Size.
I will update the OP to say that the MOD is for HDPI devices only.
sonnysekhon said:
Sorry about that, I overlooked those since I have a hdpi device.
You can resize all those images at http://pixlr.com/editor/, go to Image/Image Size.
I will update the OP to say that the MOD is for HDPI devices only.
Click to expand...
Click to collapse
I can also apply changes in size to the .9.png as well?
JokerAce said:
I can also apply changes in size to the .9.png as well?
Click to expand...
Click to collapse
Yes, also make sure you change other .9 images and keyboard background images. Basically I left it all untouched except for the preview images because those are shared in the hdpi folders as well.
sonnysekhon said:
Yes, also make sure you change other .9 images and keyboard background images. Basically I left it all untouched except for the preview images because those are shared in the hdpi folders as well.
Click to expand...
Click to collapse
I do not have to use any 9.png compiler right?
JokerAce said:
I do not have to use any 9.png compiler right?
Click to expand...
Click to collapse
Okay I tried. It failed to compile the .9.png files. I am really helpless with .9.png files. Could you please help me? Just those 2 files, in 32x52.
JokerAce said:
Okay I tried. It failed to compile the .9.png files. I am really helpless with .9.png files. Could you please help me? Just those 2 files, in 32x52.
Click to expand...
Click to collapse
Ok, I just tried resizing them. The problem is that upon resizing the black border is compromised. You have to recolor it again.
And it's not just the 2 images, you have to replace all the images in mdpi and with my WP7 images and resize them all. Then recolor the black border.
It's a lot of work. Get started I will try to help out when I have some free tome tomorrow .
i resized all the icons to work for mdpi, however i dunno how to edit the values in the public file in the values folder, and i get a error when i try and recompile the apk cuz it says the file sizes dont match up, any idea how to fix this? it seems to be all thats stopping me from having a full mdpi version of this skin
twilightvanquisher said:
i resized all the icons to work for mdpi, however i dunno how to edit the values in the public file in the values folder, and i get a error when i try and recompile the apk cuz it says the file sizes dont match up, any idea how to fix this? it seems to be all thats stopping me from having a full mdpi version of this skin
Click to expand...
Click to collapse
Can you post your edited images and I will be able to see what's causing the error.
Also, you don't have to edit the public.xml.

[APK][MOD][Xposed] ResXploit : Theming your android the easiest way!!! No Kidding!!!

This would be my second public-released xposed module...
Original Thread: http://forum.xda-developers.com/showthread.php?t=2400369
I did not expect that my WisdomSky Xploit would be a big hit.
I'm just an Amateur developer who just started delving into android development 3months ago and I didn't expect that much appreciation from my work... XD
But all of these would not be made possible if not because of sir @rovo89 and sir @Tungstwenty and their Xposed Framework, right? That's why I thank them a lot...
REQUIREMENTS
Xposed framework must be pre-installed before installing this.
What does the ResXploit do?
ResXploit has two parts:
the Removable part, terminal
and the main star, engine
The terminal is where you enter the commands(I'll discuss it later). These commands will then be interpreted by the engine and then passed to Xposed framework...
Flow:
TERMINAL >> ENGINE >> XPOSED FRAMEWORK
I have provided a variety of modules:
ResXploit (Terminal + Engine) (RECOMMENDED FOR NEWBIES)
ResXploit Terminal (Terminal Only)
ResXploit Engine (Engine Only)
You might be wondering why I made one which has both terminal and engine... and other two which are separated...
ROM Chefs, Themers and some others would understand directly why...
All the commands are interpreted by the Engine right? so that would mean that once you have entered all the desired commands, the terminal will now end up as useless... so you will just delete so no one can touch the engine...
If you are a ROM Chef or a themer, you can theme all the apps you need to theme using ResXploit and then remove the terminal, so end-user interaction of the engine is prevented after you have released your ROMs to the world.
FOR NEWBIES!
I recommend you to use the ResXploit (Terminal + Engine)...
It is very smart..
I included 99% accurate error-checking system,
line numbering system,
and also Xposed module prioritization(which is first implemented on ResXploit for better module performance).
COMMANDSd
We have five basic commands in the ResXploit, the apk, drawable, string, color, and boolean.
apk - A prerequisite command. This command is very vital whenever you using the ResXploit. This will define the target application by using the package name of the target application. You need to include this before you enter any command or else your command will not know which application is targeted and end up in lost island.
Code:
[B]format[/B]: [I]apk <package name>[/I]
[B]example[/B]: apk com.android.systemui
drawable(also drw) - The most often used command. The command which will change icons/images (png drawables) of an application. You can either overlay the existing image with your favorite color or completely replaced it with a .png image from your sdcard.
Code:
[B]format1[/B]: [I]drawable <target application's drawable name> <image path, no need to include /sdcard> <transparency, 0 to 255>[/I]
[B]example1[/B]: drawable status_background_color my_image/bg.png 255
[B]format2[/B]: [I]drawable <target application's drawable name> <HEX RGB color code> <transparency, 0 to 255>[/I]
[B]example2[/B]: drawable status_background_color #fff00ff 255
string(also str) - This command will change string(text) values of the application. The predefined string values are usually located in res/values/strings.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer. But there is a way to identify them. I will include it later.
Code:
[B]format[/B]: [I]string <target application's string value holder name> <replacement string>[/I]
[B]example[/B]: string app_name My App
color(also clr) - This command will change color values of the application. The predefined color values are usually located in res/values/colors.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer as well.
Code:
[B]format[/B]: [I]string <target application's color value holder name> <replacement color in HEX RGB Format>[/I]
[B]example[/B]: color holo_background_dark #ffffff
boolean(also bln) - This command will change boolean values of the application. The predefined boolean values are usually located in res/values/bools.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer as well.
Code:
[B]format[/B]: [I]string <target application's boolean value holder name> <replacement boolean value, either [B]true[/B] or [B]false[/B] only>[/I]
[B]example[/B]: color allowNumberNotifications true
Some simple examples screenshots:
drawable and string commands in action
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ResXploit UI screenshots:
If you find my ResXploit module interesting,
Please hit THANKS!!! XD:angel:
Please help me buy a new Android Phone.. Y_Y
Pretty awesome, gonna have to give this a try
Sent from my SPH-L710 using Tapatalk 4
This sounds amazing! are you planning on creating a GUI based frontend?
ReelFiles said:
This sounds amazing! are you planning on creating a GUI based frontend?
Click to expand...
Click to collapse
Maybe not for now.... but if it turns out good in the future, then why not? XD
and also.....
Please refer to the original thread,
this duplicate thread is not updated anymore... XD
the original thread link is mentoned at the very top.....
Interesting, sounds like a concept similar to Ninjamorph.
A couple of quick questions:
Is this able to apply folders or just single png's?
Also do you need extract png's from apks in order to apply or does it extract and apply automatically?
:good:
Edit : just seen the above post referencing other thread, maybe get this removed or locked.
Works perfect on my htc sxl...tnx bro
Any way to replace files in assets directory?
Incredible ... Keep up the good work

Porting the Google dialer

I thought I might put this on this forum for any of the developers to help out with porting this dialer to other devices
Enclosed in the zip is the files I have obtained from from the Nexus 5 that supports caller-id lookup and business lookup on the dialer. Although the google dialer works, it will not handle calls with the teleservice.apk that is included with CM11. If you make or receive calls with the the google dialer, it will still use the old dialer for call handling, incoming or outgoing. You cannot delete the original dialer because you have no way to answer or end calls.
The biggest reason I decided to make a push for this port is the incoming caller-id business lookup. This will be expanded to G+ information on Caller-ID in January and who knows what's next.
EDIT: New Information as follows:
In the package I've downloaded, Nexus 5 Experience for Nexus 4 and NONE of the MD5's matched the files I have. So, I decided to make a flashable zip of Teleservice.apk and the odex file in system\priv-app and telephonyprovider.apk and the odex file in system/app as well as the GoogleDialer.apk and odex file in system\priv-app.
The Nexus 5 Stock DOES use TelephonyProvider.
Although the com.android.phone hangs relentlessly, HOWEVER!!! I do get a Verizon Wireless' signal until I finish the FC with the "OK" button.
Any help with this? I think I am getting close.
This is what happens if I flash the dialer AFTER I've already established cellular service by flashing CM11, booting into the system, rebooting and flashing the dialer.
Code:
[ 11-23 20:26:56.699 2585: 2585 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.android.phone, PID: 2585
android.database.sqlite.SQLiteException: Can't downgrade database from version 589832 to 524296
at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:188)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:465)
at android.content.ContentProvider.query(ContentProvider.java:855)
at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
at android.content.ContentResolver.query(ContentResolver.java:461)
at android.content.ContentResolver.query(ContentResolver.java:404)
at com.android.internal.telephony.dataconnection.DcTracker.createAllApnList(DcTracker.java:1910)
at com.android.internal.telephony.dataconnection.DcTracker.onRecordsLoaded(DcTracker.java:1257)
at com.android.internal.telephony.dataconnection.DcTracker.handleMessage(DcTracker.java:2139)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5062)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
This is what happens if I flash the dialer at the same time I flash the rom.
Code:
[ 11-23 15:44:14.477 7986: 7986 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.android.phone, PID: 7986
java.lang.RuntimeException: Unable to create application com.android.phone.PhoneApp: java.lang.SecurityException: Permission Denial: broadcast asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4392)
at android.app.ActivityThread.access$1400(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1467)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5062)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Permission Denial: broadcast asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.readException(Parcel.java:1461)
at android.os.Parcel.readException(Parcel.java:1415)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2382)
at android.app.ActivityManagerNative.broadcastStickyIntent(ActivityManagerNative.java:96)
at com.android.internal.telephony.uicc.IccCardProxy.broadcastIccStateChangedIntent(IccCardProxy.java:344)
at com.android.internal.telephony.uicc.IccCardProxy.setExternalState(IccCardProxy.java:387)
at com.android.internal.telephony.uicc.IccCardProxy.setExternalState(IccCardProxy.java:393)
at com.android.internal.telephony.uicc.IccCardProxy.<init>(IccCardProxy.java:117)
at com.android.internal.telephony.PhoneProxy.<init>(PhoneProxy.java:85)
at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java:141)
at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java:59)
at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:391)
at com.android.phone.PhoneApp.onCreate(PhoneApp.java:38)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4389)
... 10 more
I also included a full logcat of each type of instance and the files I am flashing.
http://www.tinozplace.com/moto-kitkat/GoogleDialerProject-NotFlashable.zip
Thanks to anyone getting involved. If you can't help, please at least try to turn some developers onto this post.
I've done a bit of apk reverse engineering before (disassembled smali code and what not). Do you have any background info on what's happening with it now? Crashes at certain points, lockups, or just general "it doesn't do what it's supposed to and there is no feedback"?
djuniah said:
I've done a bit of apk reverse engineering before (disassembled smali code and what not). Do you have any background info on what's happening with it now? Crashes at certain points, lockups, or just general "it doesn't do what it's supposed to and there is no feedback"?
Click to expand...
Click to collapse
Here is what I know so far from my own experiences and research:
- If you flash the dialer alone, it works well.
- If you flash the dialer and the Teleservices.apk (odex too) it will force close or possibly cause a bootloop.
My research:
-Teleservice calls googledialer up to prompt the user to answer the call, includes business caller id, etc.
-TelephonyProvider is a thing of the past with the google dialer.
My decompile showed differences in about 10-15 files and about 10-20 additions/subtractions of smali files to the apk.
I'd be more than willing to give you an adb logcat.
abuttino said:
Here is what I know so far from my own experiences and research:
- If you flash the dialer alone, it works well.
- If you flash the dialer and the Teleservices.apk (odex too) it will force close or possibly cause a bootloop.
My research:
-Teleservice calls googledialer up to prompt the user to answer the call, includes business caller id, etc.
-TelephonyProvider is a thing of the past with the google dialer.
My decompile showed differences in about 10-15 files and about 10-20 additions/subtractions of smali files to the apk.
I'd be more than willing to give you an adb logcat.
Click to expand...
Click to collapse
Ok, i'll see if i can dig into it over the weekend. Man, this is one of the things i miss about safestrap. I always had one slot for testing things like this. Made it a lot more painless.
I'll see about getting it on github and I'll continue to try to get more attention to this thread
EDIT: It's on github...
https://github.com/abuttino/teleservice.apk
First post edited.
abuttino said:
First post edited.
Click to expand...
Click to collapse
More explorations on this..
I tried a ROM with no teleservice.apk, telephonyprovider.apk and googledialer.apk, then installed them once I got into the system. Unfortunately that didn't work to pick cell service back up, and any phone settings I tried just crashed the dialer.
Here is the crash:
Code:
I/ActivityManager( 833): START u0 {act=android.intent.action.MAIN flg=0x4000000 cmp=com.android.phone/.CallFeaturesSetting} from pid 2190
E/AndroidRuntime( 2190): FATAL EXCEPTION: main
E/AndroidRuntime( 2190): Process: com.google.android.dialer, PID: 2190
E/AndroidRuntime( 2190): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.phone/com.android.phone.CallFeaturesSetting}; have you declared this activity in your AndroidManifest.xml?
E/AndroidRuntime( 2190): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
E/AndroidRuntime( 2190): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
E/AndroidRuntime( 2190): at android.app.Activity.startActivityForResult(Activity.java:3423)
E/AndroidRuntime( 2190): at android.app.Activity.startActivityForResult(Activity.java:3384)
E/AndroidRuntime( 2190): at android.app.Activity.startActivity(Activity.java:3626)
E/AndroidRuntime( 2190): at android.app.Activity.startActivity(Activity.java:3594)
E/AndroidRuntime( 2190): at android.preference.PreferenceActivity.onHeaderClick(PreferenceActivity.java:1058)
E/AndroidRuntime( 2190): at android.preference.PreferenceActivity.onListItemClick(PreferenceActivity.java:1030)
E/AndroidRuntime( 2190): at android.app.ListActivity$2.onItemClick(ListActivity.java:319)
E/AndroidRuntime( 2190): at android.widget.AdapterView.performItemClick(AdapterView.java:298)
E/AndroidRuntime( 2190): at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
E/AndroidRuntime( 2190): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2904)
E/AndroidRuntime( 2190): at android.widget.AbsListView$3.run(AbsListView.java:3638)
E/AndroidRuntime( 2190): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime( 2190): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 2190): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2190): at android.app.ActivityThread.main(ActivityThread.java:5062)
E/AndroidRuntime( 2190): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2190): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2190): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 2190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 2190): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 833): Force finishing activity com.google.android.dialer/.settings.GoogleDialerSettingsActivity
D/wpa_supplicant( 1006): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c
D/wpa_supplicant( 1006): wlan0: Control interface command 'SIGNAL_POLL'
D/wpa_supplicant( 1006): nl80211: survey data missing!
W/ActivityManager( 833): Activity pause timeout for ActivityRecord{41da0018 u0 com.google.android.dialer/.settings.GoogleDialerSettingsActivity t2 f}
Once I cleared data, the com.android.phone was just relentlessly hanging with the permission problem stated in the main post.
I would hope that some developers are looking at this thread and this helps out.
Don't remember where I found this ( somewhere on xda) but flash this it will keep your regular dialer apk also so you'll see your old one in app drawer too.
https://copy.com/MFw1d
Sent from my MB886 using Tapatalk
tember1214 said:
Don't remember where I found this ( somewhere on xda) but flash this it will keep your regular dialer apk also so you'll see your old one in app drawer too.
https://copy.com/MFw1d
Sent from my MB886 using Tapatalk
Click to expand...
Click to collapse
The dialer also comes with Caller-ID lookup through google businesses (Places) and Google+. This is the purpose of the porting project, to have the dialer "fully functional" instead of just the business search for dialing.
abuttino said:
The dialer also comes with Caller-ID lookup through google businesses (Places) and Google+. This is the purpose of the porting project, to have the dialer "fully functional" instead of just the business search for dialing.
Click to expand...
Click to collapse
You mean this? Correct?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my MB886 using Tapatalk
Yes. But it doesn't actually function because the telephonyprovider.apk and teleservices.apk only talk to the aosp dialer.
Sent from my XT926 using Tapatalk
Oh got ya I don't think I've even got a phone call since I've flashed this. Sorry thought I could maybe help.
Sent from my MB886 using Tapatalk
If you know of any developers or can do a small social networking outreach (a post on Google+ or Twitter) that would help.
Sent from my XT926 using Tapatalk
It can be ported because Google has got it working on both Nexus 5 and Nexus 4 already. But I really don't know how to do it.
mushan3420 said:
It can be ported because Google has got it working on both Nexus 5 and Nexus 4 already. But I really don't know how to do it.
Click to expand...
Click to collapse
Thank you for at least taking a look at it. I appreciate it.
Do you have any idea of where to start?
Sent from my XT926 using Tapatalk
abuttino said:
Thank you for at least taking a look at it. I appreciate it.
Do you have any idea of where to start?
Sent from my XT926 using Tapatalk
Click to expand...
Click to collapse
Please compare TeleService.apk in Nexus 4 with Nexus 5. Google has aready did an example porting it from one phone to another.
mushan3420 said:
Please compare TeleService.apk in Nexus 4 with Nexus 5. Google has aready did an example porting it from one phone to another.
Click to expand...
Click to collapse
There are NO differences in the SMALI code, none at all. I compared two bone stock versions from the Nexus 5 and Nexus 4
Here are the differences in the apk.
abuttino said:
There are NO differences in the SMALI code, none at all. I compared two bone stock versions from the Nexus 5 and Nexus 4
Here are the differences in the apk.
Click to expand...
Click to collapse
So the difference is the DPI? OK. Just change the DPI of images, and sign the modified apk with Android Platform Key.
And then, if it still doesn't work, please compare the teleservice.apk from Nexus 4 or 5 with the one from AOSP.
I am not sure if this will help, but please kindly have a try.
mushan3420 said:
So the difference is the DPI? OK. Just change the DPI of images, and sign the modified apk with Android Platform Key.
And then, if it still doesn't work, please compare the teleservice.apk from Nexus 4 or 5 with the one from AOSP.
I am not sure if this will help, but please kindly have a try.
Click to expand...
Click to collapse
I have already compared the Nexus 5 to AOSP and there are at least 10 smali files with differences that add/subtract hundreds of lines of code, and add/subtract serveral DPI files.
Compared the Nexus 5 to the Moto X as well.. About the same amount of difference..
EDIT.
abuttino said:
I have already compared the Nexus 5 to AOSP and there are at least 10 smali files with differences that add/subtract hundreds of lines of code, and add/subtract serveral DPI files.
Compared the Nexus 5 to the Moto X as well.. About the same amount of difference..
EDIT.
Click to expand...
Click to collapse
Ok, I separated the smali files with differences in two folders, one for CM11/AOSP and one for Nexus 5. There were also file count differences. I notated them in a text file as well as the png I just posted.
http://www.tinozplace.com/moto-kitkat/TeleserviceDiff.zip
Thanks for helping!

[MODULE] Secure Flag Patcher

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Secure Flag Patcher - Magisk Edition
THIS TOOL HAS BEEN MERGED INTO SMALI PATCHER, ALL FUTURE UPDATES WILL BE MADE THERE.
​
DESCRIPTION ::
Allow screenshots/screensharing in secure apps.
PATCHING PROCESS ::
Decompiles JAR file.
Patch the nessisary files.
Recompile JAR file.
Download's the latest magisk module template from github.
Generate a magisk module .zip for you to flash in recovery !
PRECAUTIONS / TERMS OF USE ::
You must backup your device prior to flashing the module, I am not responsible or providing support to recover any devices stuck in bootloops.
REQUIREMENTS ::
.NET Framework 4.6 or later installed.
Java JRE 1.8 or later installed.
Deodexed "services.jar", the patcher will do absolutely nothing if used on a odexed "services.jar".. Let me clarify, you can be running a odexed rom that is absolutely fine, however in order for the patcher to work you must target a deodexed "services.jar". If your running a odexed/stock rom and need to deodex I highly recommend using: Fulmics Deodexer.
Open Fulmic deodexer settings and set baksmali/smali.jar path.
Extract "/system" folder from rom zip installation file to your desktop.
Set /system path in fulmics deodexer and start deodex process.
You can also deodex using baksmali/smali:
Code:
java -jar baksmali.jar x services.odex -d framework\arm64 -o tmp
*** "framework\arm64" assuming your device is arm64 ***
*** otherwise try "framework\arm", if that also fails try just "framework" ***
java -jar smali.jar a tmp -o classes.dex
java -jar apktool.jar d services.jar
*** Cut and paste "classes.dex" into decompiled directory ***
java -jar apktool.jar b services.jar.out
If you don't want to use apktool, alternatively you can open the odexed "services.jar" with a zip archiver program (7zip, WinZip etc.) and add "classes.dex" to the JAR.
INSTRUCTIONS ::
Backup device.
Run "SecureFlagPatcher.exe", First startup will download the latest nessisary binary's.
Select your deodexed "services.jar". Easiest way to extract this file is by pulling it from your deodexed rom .ZIP file, you can find it in "/system/framework/".
Hit "Patch JAR".
Once the process has completed, magisk module will be generated in the same directory as "SecureFlagPatcher.exe".
Flash module in recovery.
CHANGELOG ::
0.1 ::
Initial release
CREDIT ::
edzamber
Cheers,
Great work! I was excited when I saw this.
Although, I get a "stopped working" during decompilation.
I went to the Mock Mock Locations patcher and saw APKTool had an issue with Nougat (though was apparently fixed?), is this the same issue here?
I apologize, I was unclear on it.
Ariac Konrel said:
Great work! I was excited when I saw this.
Although, I get a "stopped working" during decompilation.
I went to the Mock Mock Locations patcher and saw APKTool had an issue with Nougat (though was apparently fixed?), is this the same issue here?
I apologize, I was unclear on it.
Click to expand...
Click to collapse
Make sure your using the latest .NET framework & java framework.. a user reported that they were using a outdated java framework which was causing crashes..
Crashing when it begins decompiling sounds like a java framework issue to me..
I really should code in a framework version check, I've just been preoccupied with other projects lately tho.
I just had a thought.. I might consider merging the two projects if I find any other tweaks in services.jar that may be useful.. a single patcher, generating one module, with customizable tweaks.. I like it.
fOmey said:
Make sure your using the latest .NET framework & java framework.. a user reported that they were using a outdated java framework which was causing crashes..
Crashing when it begins decompiling sounds like a java framework issue to me..
I really should code in a framework version check, I've just been preoccupied with other projects lately tho.
I just had a thought.. I might consider merging the two projects if I find any other tweaks in services.jar that may be useful.. a single patcher, generating one module, with customizable tweaks.. I like it.
Click to expand...
Click to collapse
I am using Windows 10, the .NET framework is up to date (I even tried to install it again from the Microsoft website).
As for the JRE, I originally started off with the x64 JRE. That didn't work so I reinstalled it. That also didn't work.
I installed the x86 JRE alongside the x64 JRE and I am still getting the crash.
Any other ideas?
Attached is the deodexed services.jar I pulled from my ROM. I don't know if it's just that somehow? Is there anything else I could check?
Thanks for your reply!
Ariac Konrel said:
I am using Windows 10, the .NET framework is up to date (I even tried to install it again from the Microsoft website).
As for the JRE, I originally started off with the x64 JRE. That didn't work so I reinstalled it. That also didn't work.
I installed the x86 JRE alongside the x64 JRE and I am still getting the crash.
Any other ideas?
Attached is the deodexed services.jar I pulled from my ROM. I don't know if it's just that somehow? Is there anything else I could check?
Thanks for your reply!
Click to expand...
Click to collapse
Sound's like you did all the troubleshooting you can on your end..
I'll take a look after work.. could be the patcher just not playing nice with your jar.
Thanks for uploading that.. I'll keep you posted.
EDIT: @Ariac Konrel Seems to work fine for me.. no crash..
Try decompile it with apktool manually... you'll find "apktool.jar" in the folder named "bin", navigate a cmd prompt there (cd command) and enter the following:
Code:
java -jar apktool.jar -d services.jar
fOmey said:
EDIT: @Ariac Konrel Seems to work fine for me.. no crash..
Try decompile it with apktool manually... you'll find "apktool.jar" in the folder named "bin", navigate a cmd prompt there (cd command) and enter the following:
Code:
java -jar apktool.jar -d services.jar
Click to expand...
Click to collapse
That didn't work either. I actually didn't find the issue until Power Shell gave me a little bit of detail (I used to cmd and nothing was recognized).
It was something with Java's path not being set, although now this worked perfectly. Well, it says complete. It had a few things in the log such as:
Code:
I: Copying unknown files...
I: Copying unknown files/dir...
W: Could not find resources
Although, it seems to have decompiled and all fine.
I will leave the link to where I found my solution in this post just in case anyone else runs into the issue. Here it is.
Thanks for your help and a great tool. Also, I didn't reply to this earlier (I was really tired at the time of writing my original reply to it a few messages back), but I think merging the projects is an excellent idea. Keeps it as one tool with one support thread. Just seems cleaner, dunno. Either way, thanks a ton for your work.
EDIT: The patcher worked perfectly for my device, despite that logging.
Successfully patched my Zenfone 2 (Z00A) services.jar, thanks @fOmey for your tool.:good:
fOmey said:
Make sure your using the latest .NET framework & java framework.. a user reported that they were using a outdated java framework which was causing crashes..
Crashing when it begins decompiling sounds like a java framework issue to me..
I really should code in a framework version check, I've just been preoccupied with other projects lately tho.
I just had a thought.. I might consider merging the two projects if I find any other tweaks in services.jar that may be useful.. a single patcher, generating one module, with customizable tweaks.. I like it.
Click to expand...
Click to collapse
can it be used alongside mock mock locations?
Sent from my SM-G955F using Tapatalk
innit said:
can it be used alongside mock mock locations?
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
Absolutely, just extract the services.jar from the mock locations module zip and patch that !
EDIT: @innit forgot to mention, if you extract the services.jar from the mock locations module you no longer need the mock locations module to be activated/installed as the generated secure flag patcher module will contain the mock locations patch also ! So make sure you uninstall the mock locations module.
fOmey said:
Absolutely, just extract the services.jar from the mock locations module zip and patch that !
EDIT: @innit forgot to mention, if you extract the services.jar from the mock locations module you no longer need the mock locations module to be activated/installed as the generated secure flag patcher module will contain the mock locations patch also ! So make sure you uninstall the mock locations module.
Click to expand...
Click to collapse
hi, thanks for the quick reply. will do as instructed [emoji106]
Sent from my SM-G955F using Tapatalk
@fOmey
Hey ! Thanks bro, good work [emoji2]

Categories

Resources