{
"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]
Related
This is the noob-proof multiuser enabler guide for the CM10.1 - GS3 only!!
Want to enable multiuser on your galaxy S3 under CM10.1?? This is the easiest way to do it.
Updates - based on cm-10.1-2013XXXX-NIGHTLY-i9300.zip:
Multi_20130306
Multi_20130303
Multi_20130302
Multi_20130222
This is very simple: just flash the zip file and you're done!! just need to create the users under settings!! Can create up to 8 users!!
P.S. You need to reflash it for every new nightly installed!!!!
IMPORTANT INFORMATION!!!
I just found out a way to reduce FC in secondary user. Create 2 other users... delete the second, reboot and the third user should now be the second but without the FCs... well it should, it worked for me...
Screenshots:
{
"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"
}
Next is the tool I used to create the flashable mod zip. In case you wanna try for yourself or need to remake the mod for futures nightlies just download and follow the steps:
Links:
. JDK and JRE for windows 32bits - (are you under windows x64? Install the 32bits javas anyway)
. FrameworkFlasher Adapted from the wesf90 Original Thread and Updated from iBotPeaches Original Thread to run on CM10.1
1) Install JDK and JRE and Unzip FrameworkFlasher
2) copy your phone's framework-res.apk to the folder "place-framework-res-here"
3) run "RunMe.bat"
4) press 1 to decompile
5) Make the necessary changes under the folder "files-to-edit" ****
6) run 2 to recompile
7) run 3 and 4 to sign and zip the apk
8) Just flash your new zip and be happy!
**** In order to enable multiuser, it's necessery to change some xml file inside framework-res.apk and this is only possible by doing this decompile/compile process...
The files you need to change are:
. framework-res.apk\res\values\integers.xml
look for config_multiuserMaximumUsers and change the number of users (min 2)
Code:
<integer name="config_multiuserMaximumUsers">8</integer>
. framework-res.apk\res\layout-port\keyguard_host_view.xml
need to add this after the second </FrameLayout>
Code:
<FrameLayout androidprv:paddingTop="7.0dip" androidprv:layout_width="fill_parent" androidprv:layout_height="wrap_content">
<include androidprv:layout_gravity="top|center" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_multi_user_selector" />
</FrameLayout>
I made more changes than this so I advice to use mine own keyguard_host_view.xml
Thanks for the great work.... it worked perfectly. However, I have a feedback:
Few findings
- Unable to find option "Enable USB Debugging
- Unable to add facebook contact sync for secondary user
- Facebook sync not working
santoshtalluri
Unfortunetly multiuser feature still very limited and buggy... not my fault, it's Android/Cm10.1 fault... you also cant make/receive calls and themes cause fc in a secundary user...
santoshtalluri said:
Thanks for the great work.... it worked perfectly. However, I have a feedback:
Few findings
- Unable to find option "Enable USB Debugging
- Unable to add facebook contact sync for secondary user
- Facebook sync not working
Click to expand...
Click to collapse
Try tapping on the "Build Number" in settings 7-8 times to enable Developer Options.
Developer options only in primary user
help with decompile
I get the following failure when trying to decomile my apk. I am on the Sprint GS3 and d2spr CM10.1 2013-01-31 nightly. Any help would be appreciated. Also, I am making the leap that the same technique here works for any SG3 framework-res.apk and not just for the i9300. If that is an invalide assumption, then please set me straight. Thanks in advance...
---------------------------------------------------------------------
| Log - Sat 02/02/2013 -- 17:34:26.62 | Documents\Desktop\FrameworkFlasher-1.1.4\LogSimple.txt
---------------------------------------------------------------------
THE LOG BELOW IS FOR YOUR MOST RECENT PROCESS ONLY.
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080293 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
@ swiggs98
Yes... probably works for your phone too....
The compile/decompile process can cause several erros when one or more conditions are not satisfied, so make sure:
1. Latest Java JDK/JRE 32 bits are installed
2. FrameworkFlasher is updated (the one I posted is updated, so use mine)
3. The folder name where FrameworkFlasher is running should not have spaces
4. framework-res.apk is not corrupted (I use WIFI file explorer to download framework-res.apk to my PC)
5. Wrong changes in framework-res files also ruins the process
Re: [MOD][CM10.1][4.2.1][GUIDE] Enable Multiuser (for noobs)
rfmalta said:
@ swiggs98
Yes... probably works for your phone too....
The compile/decompile process can cause several erros when one or more conditions are not satisfied, so make sure:
1. Latest Java JDK/JRE 32 bits are installed
2. FrameworkFlasher is updated (the one I posted is updated, so use mine)
3. The folder name where FrameworkFlasher is running should not have spaces
4. framework-res.apk is not corrupted (I use WIFI file explorer to download framework-res.apk to my PC)
5. Wrong changes in framework-res files also ruins the process
Click to expand...
Click to collapse
Thx. It was the version I had. Same version number but from the original forum.
bootlooping when after flashing the zip!
@ varund7726
according to your signature you're running AOKP ROM with a custom kernel Syiah... my mod is made for official CM10.1 ROM only...
rfmalta said:
This is the noob-proof multiuser enabler guide for the CM10.1 - GS3 only!!
Want to enable multiuser on your galaxy S3 under CM10.1?? This is the easiest way to do it.
Update 1 (based on build cm-10.1-20130204-NIGHTLY-i9300.zip)
1. Multi_user
This is very simple: just flash the zip file and you're done!! just need to create the users under settings!! Can create up to 5 users!!
P.S. You need to reflash these zips for every new nightly installed!!!!
Screenshots:
Next is the tool I used to create these flashable mods zips. In case you wanna try for yourself or need to remake the mods for futures nightlies just download and follow the steps:
Links:
2. JDK and JRE for windows 32bits - (are you under windows x64? Install the 32bits javas anyway)
3. FrameworkFlasher Adapted from the wesf90 Original Thread and Updated from iBotPeaches Original Thread to run on CM10.1
1) Install JDK and JRE and Unzip FrameworkFlasher
2) copy your phone's framework-res.apk to the folder "place-framework-res-here"
3) run "RunMe.bat"
4) press 1 to decompile
5) Make the necessary changes under the folder "files-to-edit" ****
6) run 2 to recompile
7) run 3 and 4 to sign and zip the apk
8) Just flash your new zip and be happy!
**** In order to enable multiuser, it's necessery to change some xml file inside framework-res.apk and this is only possible by doing this decompile/compile process...
The files you need to change are:
. framework-res.apk\res\values\integers.xml
look for config_multiuserMaximumUsers and change the number of users (min 2)
. framework-res.apk\res\layout-port\keyguard_host_view.xml
need to add <include layout="@layout/keyguard_multi_user_selector" /> before the second </FrameLayout> ---in my mods there are more changes than this so I advice to copy and paste this file from my mod to this new one---
Click to expand...
Click to collapse
My S3 (CM10.1 updated, stock kernel) is having FC with everything with a new user. The "Setup Wizard" can't start.
lucasdeeiroz
some native apps crash a lot but apps from play should work as I installed several games and facebook at my secondary user... so try removing second user and create it again...
rfmalta said:
lucasdeeiroz
some native apps crash a lot but apps from play should work as I installed several games and facebook at my secondary user... so try removing second user and create it again...
Click to expand...
Click to collapse
but i can't use anything with the new user: i can't configure it and i can't do anything 'cause the FC window appear for Wizard Setup, Contacts, Apollo, and it never stops. The only thing I can do is tap ok for FCs (no one app starts, neither launcher) and go to lockscreen to switch to original user.
Maybe the latest nightly release is not compatible with the old mod... so I have updated it to match 20130206... remove your secondary user under settings and reflash the new mod... create the new user and then you tell me if it works
rfmalta said:
Maybe the latest nightly release is not compatible with the old mod... so I have updated it to match 20130206... remove your secondary user under settings and reflash the new mod... create the new user and then you tell me if it works
Click to expand...
Click to collapse
tried wiping cache, fixing permissions, reflashing ROM AND MOD, deleting and recreating the user, but nothing works. the same FC problem. even the new 07/02's ROM and MOD.
it can be the gapps? the new user can't open the Wizard Setup (and I think it's part of gapps). I really want the multi user on my S3, so thanks for your work on it.
SOLVED! The problem is with the system theme. With the default theme, it worked!.
We can't apply themes to the system with multi user
Yes... themes cause FCs on secondary users... great to know it worked for you
rfmalta said:
Yes... themes cause FCs on secondary users... great to know it worked for you
Click to expand...
Click to collapse
superuser don't work on second user. is it a known issue or it never will work?
It's a known issue and its up to superuser developer to fix
Re: [MOD][CM10.1][4.2.1][GUIDE] Enable Multiuser (for noobs)
Will this work with aosp
Sent from my GT-I9300 using xda premium
@ sharingan92
maybe yes, maybe no... you gonna have to try... remember to backup first
Hi Geeks
Want to Theme your Phone at Runtime? Did you try Xposed Framework and Xtheme Engine Yet?
Here i present to you a tool that'll port CynogenMod Themes to Ones supported by Xtheme Engine just in one Click!
To start making your own themes,go to post #2
1.PortCx
{
"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"
}
Requirements:
1.Windows Machine
2.Java JRE 7
3.Notepad ++
4:Some Commom sense
Click to expand...
Click to collapse
Instructions:
1.Need to have Xposed Framework and Xtheme Engine Installed and modules updated
2.Download the Tool and Extract
3.Copy your framework-res.apk to Portx_Madaditya/bin/resources/
4.Open /bin/.JavaPath using Notepad++ and define Java path in /bin/.JavaPath as Shown(Find your path)
Make sure the same path exists in your System Variables as described here How to add PATH Env variable
Try this if you have Java errors Link to post
5.*Run Setup.cmd to choose the tool to use
6.For PortCx,place your .apk (apk name should be w/o spaces) in PlaceApksHere_PortCx
7.Run PortCx.cmd,enter few choices and soon you'll have a Xtheme Supported .apk in Output Directory! :good:
8.Read the Script as you go,mayb you'll learn porting
Click to expand...
Click to collapse
2.PortCx_Mini
Use this ONLY if PortCx gives you Java errors
Dosen't use Java ,Requires MANUAL De/Recompiling and removing errors if any.
Click to expand...
Click to collapse
Instructions:
1.Decompile the Theme You want using any ApkTool,
and follow instructions as in the picture
Click to expand...
Click to collapse
Downloads:
Go to the Second Post
Click to expand...
Click to collapse
Thanks to:
1.gu5t3r for his base Cygwin Goptimizer Pack!
2.Dully79 for an awesome tutorial [Guide] Porting CM10/.1 themes to XTheme
3.rovo89 for Xposed Framework! Its Amazing!
4.ruqqq for Xtheme Engine!
5.pier10 for hiw work for touchwiz themes.Have used his generic redirections for touchwiz
Valuable Work :good:
Click to expand...
Click to collapse
Note:
1.Do Not Share Themes if you dont have the permissions of the Theme Dev
2.Sharing Paid Themes without permissions will not be encouraged and is against the rules of Xda
3.If you have errors,please try with this framework-res.apk
4.If reporting errors,provied the apktool.log, theme name and link if possible
5.Very Few themes are NOT compatible and give you a 'FAILED TO APPLY'. Working on them
6.Touchwiz Themes is in Beta,please report with screenshots and also if possible the related png's which are not themed
Click to expand...
Click to collapse
Hit Thanks and Rate Good if you find it helpful and Motivate
Changelog:
V 1.0
Initial Release
V 1.1
Made script more smart,it'll start again IF recompilation fails
Keeps previous Error apktool.log as apktool_old.log
More readable and Easy Instructions:Check Screenie
Cleanup PlaceApkHere folder when succesfull
V 1.2
Now can add multiple themes to port(No 1 apk restriction)
Made backup optional
Changed PlaceApkHere to PlaceApksHere
Added Working Directory to make things simple
V 2.0
Added touchwiz Xtheme support BETA. Thanx to pier10 for his work
Combined PortCx and ImageRx and save you some bandwidth XD
Added one more script CopyX: to copy images from /Source to /Destination only if present in /Destionation(Useful for theme ports)
Updated to Apktool v2 Beta 8 . Thanx to gu5t3r's Goptimizer update
Added a Setup option to select Scripts
Removed backup option for POrtCx,coz apk's in PlaceApkHere_portCx remain untouched
V 2.1
Added PortCxMini for ones facing Java Issues
Uses the Genius of PortCx,requires no Java but MANUAL De/Recompiling of the Theme
V 2.2
Added Extra touchwiz redirections
Feedback welcomed! and report Errors,I'll Be happy to Help
ImageRx for NICS Themer
Want to make your own Mini-Themes?
Head here [Guide][NICS Themer] Create Your Own Themed apk & Become a Themer Yourself by saqib nazm
Another script ImageRx that would
1.Add the required prefix to image name and Rename them
2.Also create the required redirection xml
So this Would Automate renaming multiple images with same prefix as needed for NICS themer
Download
ToolsX_Madaditya v2.2
OldImageRx_Madaditya[/HIDE]
Click to expand...
Click to collapse
Thanks to:
1.@saqib nazm-For this Awesome guide
Click to expand...
Click to collapse
Hope this will be helpful :good:
Since this is my first script might have errors.Please report
i tried it but it got no files in output
Frankie_Ho said:
i tried it but it got no files in output
Click to expand...
Click to collapse
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Nooby question here (root explorer is doing a search but I am impatient) where do the APKs download from a Theme from the Plays Store?
Madaditya said:
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Click to expand...
Click to collapse
I did all that and it has no error in the log
I will post the screen later
btw when it tells there re errors in apktool, is that i just need to use notepad++ to go into apktool and delete that line? that's wt i do to solve the error.
Sent from my LG-E988 using Tapatalk
Madaditya said:
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Click to expand...
Click to collapse
It worked! But not on the first try. Okay, so I ported this cm theme:
http://forum.xda-developers.com/showthread.php?t=2434721
The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer
My apk xtheme is in the attachments.
Also dev, you need to post pre-requested tools in op. Like the tools the user needs:
Java JRE7
Notepad++
Awesome Good!!!
BTW, Should make a noob script for Decompiling and Recompile SystemUI.apk And Framework-res.apk. Alot of people do the steps wrong and end up with bootloop. Its simple but useful
arDroid.99 said:
It worked! But not on the first try. Okay, so I ported this cm theme:
http://forum.xda-developers.com/showthread.php?t=2434721
The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer
My apk xtheme is in the attachments.
Also dev, you need to post pre-requested tools in op. Like the tools the user needs:
Java JRE7
Notepad++
Awesome Good!!!
Click to expand...
Click to collapse
Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:
and hope you have permissions from the dev to share?
What about scripts for compiling and de compiling?
Madaditya said:
Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:
What about scripts for compiling and de compiling?
Click to expand...
Click to collapse
Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool. For some reason it wont fully decompile hybrid rom system apks
arDroid.99 said:
Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool. For some reason it wont fully decompile hybrid rom system apks
Click to expand...
Click to collapse
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
mrbig012 said:
Nooby question here (root explorer is doing a search but I am impatient) where do the APKs download from a Theme from the Plays Store?
Click to expand...
Click to collapse
Try using android assistant to backup apks,and then you'll find them on your sdcard
post your feedback :thumbup:
Frankie_Ho said:
I did all that and it has no error in the log
I will post the screen later
btw when it tells there re errors in apktool, is that i just need to use notepad++ to go into apktool and delete that line? that's wt i do to solve the error.
Sent from my LG-E988 using Tapatalk
Click to expand...
Click to collapse
You mean you have no recompilation errors? In /tmp/apktool.log and you find nothing in output?
Did you clean the 'PlaceApkHere' folder and placed just one apk there before you could start?
exactly,when it says
"Script will wait till you remover errors
CONTINE?"
just browse to that xml and line,delete it or modify if you can,dont leave a blank line and continue...
If you still have errors,tellme the ThemeName,i'll try
arDroid.99 said:
Thanks dude! I'm making a rom for the N4, and this tool just made my day!!!
Click to expand...
Click to collapse
thanks mate
And that's a good news!
Madaditya said:
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
Click to expand...
Click to collapse
Thanks dude! I'm making a rom for the N4, and this tool just made my day!!!
Madaditya said:
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
Try using android assistant to backup apks,and then you'll find them on your sdcard
post your feedback :thumbup:
You mean you have no recompilation errors? In /tmp/apktool.log and you find nothing in output?
Did you clean the 'PlaceApkHere' folder and placed just one apk there before you could start?
exactly,when it says
"Script will wait till you remover errors
CONTINE?"
just browse to that xml and line,delete it or modify if you can,dont leave a blank line and continue...
If you still have errors,tellme the ThemeName,i'll try
thanks mate
And that's a good news!
Click to expand...
Click to collapse
i do clean the folder and i m sure that after i delete the line, i got nth in the apktool.log
Frankie_Ho said:
i do clean the folder and i m sure that after i delete the line, i got nth in the apktool.log
Click to expand...
Click to collapse
What Theme?!
Madaditya said:
What Theme?!
Click to expand...
Click to collapse
Gem flat
Sent from my LG-E988 using Tapatalk
Frankie_Ho said:
Gem flat
Sent from my LG-E988 using Tapatalk
Click to expand...
Click to collapse
I Did Port it succesfully
when you see this part
Minimize the Cmd Window
Go to /PlaceApkHere/GemFlat/res/values
Open Styles.xml with Notepad++
Remove Line #96,dont keep an empty line
Hit enter on the script..and you'll be good to go :good:
Madaditya said:
I Did Port it succesfully
when you see this part
Minimize the Cmd Window
Go to /PlaceApkHere/GemFlat/res/values
Open Strings.xml with Notepad++
Remove Line #96,dont keep an empty line
Hit enter on the script..and you'll be good to go :good:
Click to expand...
Click to collapse
i dun see the file values in res
PLease Redownload V 1.1
Updated 8:45 pm
Fixed some errors
Frankie_Ho said:
i dun see the file values in res
Click to expand...
Click to collapse
Try with the Updated version,and accept recompilation only if your apktool.log is empty/has no errors
Should Work :good:
Please port neon multi color cm theme
vishal11in said:
Please port neon multi color cm theme
Click to expand...
Click to collapse
Its a Paid Theme,Nothing Unless we have The Dev's Permissions
Can also try yourself,that was the purpose of this tool
Hello guys,
I am here with an easy to use application about creating your own keystore to sign APKs and align them.
Requirements:
JDK - Download from www.java.com
sign.jar - Download HERE - APK-Signer 1.8.3 by Hai Bison - working link as of 05/03/2016
Please note that you need to have JDK installed in system for jar files to work.
INITIAL SETUPS
Assuming that you have JDK installed, download sign.jar and extract in anywhere you can navigate easy.
I have it in "C:/apktool"
Open Command Prompt (click Start > type cmd in search box and press enter)
Navigate to folder where you extracted jar file, in my case "c:\>cd apktool".
Type, "java -jar sign.jar"
The writing things ends here and you will see application opened in GUI - as follows
{
"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"
}
CREATE KEYSTORE
Now, we will need to first create a keystore file,
Click on "Save As" in Target Tab and name the file anything, i named it "signedOne"
Click on Save Button
Now We will need to fill the form a little,
In Password, type any password you may remember
in Alias, type any name, usually that should be similar to your UNSIGNED apk file name
Give an Alias Password (for ease, keep it same as password above)
In Name field, Type your first and last name,
This is the minimum required in form, if you want to fill full form, thats upto you.
Click on Button "Generate Keyfile"
Wait until message appears, "Keyfile Generated Successfully". Press OK
SIGN APK
Now its time to sign the APK. - Click on "Signer" Tab.
First, Click on button "Load Keyfile"
Browse for the same keystore file you created, in our case, if you kept the name same as mine, that will be "signedOne.keystore"
Type the password you gave while creating the keystore file.
You will see alias name appearing automatically below if password was correct.
type the alias password you gave earlier.
Click on "Load Target File" and browse for the APK file you want to sign. In my case "whatsapp.apk"
Click on "Sign" button
Wait until the dialog appears, "File Signed"
You will see a new file whatsapp_SIGNED_UNALIGNED.apk in the same folder where whatsapp.apk was already present
ALIGN APK
Click on APK Alignment Tab
Click on "Load APK file" button
Browse for "whatsapp_SIGNED_UNALIGNED.apk
Click on "Align" button
Wait until the message appears "Alignment done, output file: "whatsapp_SIGNED_ALIGNED.apk"
Optional - If you want to verify the alignment, click on "whatsapp_SIGNED_UNALIGNED" button - note that after the alignment, the button name remained same
browse for "whatsapp_SIGNED_ALIGNED.apk
Click on button verify
it will give you a message, "Verification succesful"
TROUBLESHOOTING
If you get java,util exception error, you need to use JDK-6 or lower and give its path in JDK target adress bar
JDK-7 and plus have changed something for which APK signer doesnt sign APKs
Plz click Thanks buttong if it helped u
???
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?
delete
seraphim5 said:
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?
Click to expand...
Click to collapse
Its better to compile the apk back using apktool.
If you are first time using this tutorial above, maybe youare are not creating the keystore file. Can you post the apk here for me to look at it?
Sent from my GT-I9100 using xda app-developers app
Download Zipsigner from playstore . It will help you to sign your app through your mob. device .
Sent from my GT-S7562 using XDA Premium 4 mobile app
hello
broken apk signer link fixed.
thanks
Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?
bwarrington85 said:
Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?
Click to expand...
Click to collapse
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app
munnibhai said:
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
Well I followed the directions above.. Hmm
bwar85 said:
Well I followed the directions above.. Hmm
Click to expand...
Click to collapse
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app
munnibhai said:
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?
munnibhai said:
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?
Click to expand...
Click to collapse
I used apktool. I give up on trying to edit apks. There are no tutorials that work.
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
bwar85 said:
I used apktool. I give up on trying to edit apks. There are no tutorials that work.
Click to expand...
Click to collapse
I am sorry to hear about that, well, apk editing isnt diffictult, apart from decoding java files and then actually coding them again (lets leave it to java programmers)
About editing graphics and XMLs in apk, its easy, ask me anything you want.
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work
munnibhai said:
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work
Click to expand...
Click to collapse
I was using either 8 or 7.
I will try 6 and post results
bwar85 said:
I was using either 8 or 7.
I will try 6 and post results
Click to expand...
Click to collapse
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...
bwar85 said:
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...
Click to expand...
Click to collapse
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.
munnibhai said:
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.
Click to expand...
Click to collapse
It was the .9.pngs. Messed up the black lines... Fixed and it all works! Thanks for the cool jar!
Please help "FileNotFoundException: .x509.pem"
Thank you, your method works well good for all app.
But for this application "Advanced Permission Manager" by steelworks on google playstore.
Signed process working well, app initially runs good but app main function not working after repacking apk and signed.
It will throw exception "FileNotFoundException: .x509.pem"
What is that exception? I tried every method, I searched whole internet no single solution.
Collection of modules for @topjohnwu's Magisk!
General Information
I wanted to make a single thread where everyone can contribute and add modules to serve as a one stop shop for modules until the Magisk Manager gets an xposed-like module downloader. All files are attached in the order that they are introduced.
My Modules
Busybox Installer - Credits: YasadSharaf for the binaries
The installer detects what architecture (ARM/ARM64, x86/x86_64, MIPS/MIPS64) your device uses and installs the correct busybox binary accordingly.
Better Battery Stats Installer - Credits: @JudgeDread11
The installer systemless-ly installs the Better Battery Stats app.
Screen Density Changer - Credits: @JudgeDread11
The zip changes your screen density systemless-ly, extract the zip to set the value that you would like.
Debloater - Credits: @JudgeDread11
The zip debloats your ROM, he uses for Asus Zenfone 2 could probably be adapted to many more devices.
Mount Magisk
The simple script mounts the magisk.img to /magisk to allow it to be edited in case a module or script is causing a bootloop.
ViPER4Android Installer - Credits: @topjohnwu edit by me
The installer systemless-ly installs the ViPER4Android app as well as the driver. Detects and supports the x86 V4A driver. It uses the material design version 2.3.4.0 because it is of higher quality than 2.4.0.1. Two zips, one for dark theme and other for light theme.
Ad-Block Installer
The installer systemless-ly installs my ad-blocker, which supports updating by running hosts as root in terminal. The updater utilizes a wget port to android. The entire hosts file is 18 MB and has over 600k unique entries. Hosts is located at GitHub.
Liveboot Installer - Credits: @topjohnwu edit by me
The installer systemless-ly installs the LiveBoot app and script. Credits to @topjohnwu for this one I just edited the settings to the way I prefer it. Two zips, one with boot logs and one without both have 60 lines as default.
Credits & Thanks: Mainly @osm0sis for his awesome odds & ends thread that I used as a template and @topjohnwu for Magisk. Also everyone else who has contributed in any way to installer scripts for various mods, I've tried to include your name by the module you contributed to.
Disclaimer: Naturally, you take all the responsibility for what happens to your device when you start messing around with things.
Contributing: Post a reply with your module attached or a link to it with a short description. I'll add it to the OP with credits and a link to your post. Or even post ideas for modules!
Source Code:Working on it.
These are all very simple modules, but good for noobs like me, who would like some examples.
A better battery stats systemless system app
The sample from the magisk thread, changing screen density by script.
And a sample for a de-bloat module that I use on stock Asus Zenfone 2 laser.
JudgeDread11 said:
These are all very simple modules, but good for noobs like me, who would like some examples.
A better battery stats systemless system app
The sample from the magisk thread, changing screen density by script.
And a sample for a de-bloat module that I use on stock Asus Zenfone 2 laser.
All coming soon, on the road and I keep getting failure to upload.
Click to expand...
Click to collapse
Nice man! Yeah I whipped these up relatively quickly just trying to get some out there, working on an Aroma that lets you choose the density you'd like to change to. :good:
thanks for this. it seems that for me, V4A installs fine, but when i go to use it, it does not work. I did not install the drivers within the app, pretty sure you're not supposed to right?
also, installed the new adblocker and i can't seem to disable it still:
{
"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"
}
steveo17 said:
thanks for this. it seems that for me, V4A installs fine, but when i go to use it, it does not work. I did not install the drivers within the app, pretty sure you're not supposed to right?
also, installed the new adblocker and i can't seem to disable it still:
Click to expand...
Click to collapse
What does it say when you open it?
RatchetPanda said:
What does it say when you open it?
Click to expand...
Click to collapse
Sent from my Nexus 6P using Tapatalk
Try these or whichever one you used
removing/disabling modules?
Hi,
I was wondering what the process is for removing modules since there isn't a manager like there is for xposed? Please let me know when you have a moment.
Thanks
RatchetPanda said:
Try these or whichever one you used
Click to expand...
Click to collapse
the drivers seem to be installed now. no prompt at startup to install drivers, but it still does not appear to be working. i've tried toggling effects via bluetooth and wired headphones and neither work.
I'm on a Nexus 6P, encrypted, Android N Official, Magisk v6, selinux enforcing
kryptikal said:
Hi,
I was wondering what the process is for removing modules since there isn't a manager like there is for xposed? Please let me know when you have a moment.
Thanks
Click to expand...
Click to collapse
Open up the /Magisk folder and delete the module folder that you don't want.
steveo17 said:
the drivers seem to be installed now. no prompt at startup to install drivers, but it still does not appear to be working. i've tried toggling effects via bluetooth and wired headphones and neither work.
I'm on a Nexus 6P, encrypted, Android N Official, Magisk v6, selinux enforcing
Click to expand...
Click to collapse
Play music after you've changed settings and then tap driver status and screenshot it. I'm pretty sure Android N needs permissive.
RatchetPanda said:
Open up the /Magisk folder and delete the module folder that you don't want.
Click to expand...
Click to collapse
Or if you afraid things go seriously wrong when you delete something that is essential in your running system add a file called remove to the mod folder. The mod will be removed on the next reboot.
JudgeDread11 said:
Or if you afraid things go seriously wrong when you delete something that is essential in your running system add a file called remove to the mod folder. The mod will be removed on the next reboot.
Click to expand...
Click to collapse
How would u accidently delete something essential if your in the Magisk folder? This works too but the reasoning behind it doesn't make sense, your nowhere near deleting anything 'essential' while in the /magisk folder.
RatchetPanda said:
How would u accidently delete something essential if your in the Magisk folder? This works too but the reasoning behind it doesn't make sense, your nowhere near deleting anything 'essential' while in the /magisk folder.
Click to expand...
Click to collapse
From my understanding you can change anything in the system folder, and i believe there is some essential stuff in there. When you run a mod that changes this stuff the files in the mod folder are the files the system is linked to. So removing these files on the fly would have the same result as removing the files on the fly in an unmodded system.
I might be wrong. But I'm learning
RatchetPanda said:
Play music after you've changed settings and then tap driver status and screenshot it. I'm pretty sure Android N needs permissive.
Click to expand...
Click to collapse
No difference. Music is playing, with permissive via Magisk Manager
Sent from my Nexus 6P using Tapatalk
steveo17 said:
No difference. Music is playing, with permissive via Magisk Manager
Click to expand...
Click to collapse
had this problem too
installing v4a apk v2.4.0.1 fixed this
Sent from my SHIELD Tablet K1 using XDA Labs
mati_boy said:
had this problem too
installing v4a apk v2.4.0.1 fixed this
Sent from my SHIELD Tablet K1 using XDA Labs
Click to expand...
Click to collapse
From the magisk thread?
Sent from my Nexus 6P using Tapatalk
steveo17 said:
From the magisk thread?
Click to expand...
Click to collapse
no, from the material design v4a thread
http://forum.xda-developers.com/android/software/app-material-viper4android-2-3-4-0u-t3190352/page45
Sent from my SHIELD Tablet K1 using XDA Labs
mati_boy said:
no, from the material design v4a thread
http://forum.xda-developers.com/android/software/app-material-viper4android-2-3-4-0u-t3190352/page45
Sent from my SHIELD Tablet K1 using XDA Labs
Click to expand...
Click to collapse
yep that did the trick!
thanks!
mati_boy said:
had this problem too
installing v4a apk v2.4.0.1 fixed this
Click to expand...
Click to collapse
I'll switch to that apk in the script :good:
{
"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"
}
Mock Locations Patcher - Magisk Edition
THIS TOOL HAS BEEN MERGED INTO SMALI PATCHER.
DESCRIPTION ::
Hide mock locations status, allowing apps like Pokemon GO to treat them as genuine location updates.
BACKGROUND ::
Last night I thought I would hop on Pokemon GO for the first time in a good few months to check out the new changes, was instantly reminded how keen you have to be to play this game being forced to run around in the streets and what not. So naturally I wanted to mock my location so I could be a lazy ass and play while sitting on the couch.
After some quick poking around, I have indeed been able to get mock mock locations working.. however I have modified a file in the framework directory to do so, so device compatibility could be limited. I own a Galaxy S6 running nougat and it works fine for me.. I cant say the same for you tho !
So I had the idea of creating this patcher, Here is what it does:
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.
PROGRESS LOG ::
As I suspected services.jar does differ quite a lot between manufactures.. this was expected and planned for, or at least I thought..
APK-Patcher is not compatible with the latest apktool/smali/baksmali meaning decompiling nougat .jar's is not possible - this would of been the perfect method of modifying "services.jar" on the fly and more importantly during installation process.. allowing cross-device compatibility by retaining all device specific classes.
At this stage separate patched "services.jar" seem like the only viable option unfortunately, which would be impossible to maintain due to massive amount of manufactures.. However may consider experimenting with a windows desktop UI to patch "services.jar" and generate module installation zip file, this seems like the best option at this stage.
Mock Locations Patcher is ready for alpha testing, time to let this thing loose in the wild !
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 "MockLocationsPatcher.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 "MockLocationsPatcher.exe".
Flash module in recovery - Samsung/MIUI users Do NOT install via magisk manager.. I have found for some reason when adding the module in magisk manager it get's stuck in a "module update avalible" loop.
Didgeridoohan said:
That seems to be a Samsung specific bug with the latest module template: https://github.com/topjohnwu/Magisk/issues/297
Click to expand...
Click to collapse
CHANGELOG ::
0.6 ::
Error handling for failed downloads of magisk module template.
Updated to magisk v14.0.
0.4 / 0.5 ::
Potential spaces in file path error fix - unsure as I have been unable to reproduce this issue, so it's been very difficult to fix.
0.3 ::
Increased default Java memory heap size - fixes "out of memory" error on lowend PC's.
0.2 ::
Simplified patching process.
Fixed reboot issue with certain GPS spoofers.
Verify's target JAR is deodexed before proceeding with patch.
0.1 ::
Initial release
Cheers,
A reason to play pogo again! Lol
Hi! Here's mine services.jar
Device: Zuk Z2
ROM: AEX 4.4 (7.1.2)
Here you go.
Oneplus 3t
Modified OOS OpenBeta 10 (7.1.1 debloated and ram optimized)
OP3, VertexOS ROM
Sent from my OnePlus 3 using XDA Labs
HTC 10, MaximusHD3.7.0
fomey:
.. I have indeed been able to get mock mock locations working
How did you do that ? Every mock location I have tried ended in the error-message "no gps found"
Device: Redmi Note 3
ROM: Dirty Unicorn v11.6 Android 7.1.2
EDIT: XDa Lab fail
A_Random_Guy said:
Device: Redmi Note 3
ROM: Dirty Unicorn v11.6
EDIT: XDa Lab fail
Click to expand...
Click to collapse
Here
There's mine (Xiaomi mi5 on Rr 7.1.2) Good luck!
Hi
Great initiative.
This is from the mate 9.
Would have found the mate 9 pro, but few roms for that one. Should be more or less identical though.
Device: Nexus 6
ROM: [7.1.2_r17]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[06/12/17]
Device: oneplus one
Rom: LineageOS 14.1 nightly 20170710
View attachment services.jar
Device: Redmi Note 3 Pro (kenzo)
ROM: Official AEX 4.4 (Android 7.1.2)
Download services.jar.zip:http://rgho.st/8vMm56xbX
Here you go.
HTC 10
Resurrection Remix 20170715 (7.1.2_r24)
OnePlus 3T
OxygenOS 4.1.6
Thanks everyone that should just about do it for services.jar's !
I'll start poking around and see what I find..
I don't want to criticize your work.. But please don't do it.
The more magisk is becoming a thread to niantic and google, the more Safetynet will be updated. And then it's getting even harder to play the game...
And while niantic is working to get rid of the spoofers, the actual gameplay will stagnate and it won't get new features...
qwasy said:
I don't want to criticize your work.. But please don't do it.
The more magisk is becoming a thread to niantic and google, the more Safetynet will be updated. And then it's getting even harder to play the game...
And while niantic is working to get rid of the spoofers, the actual gameplay will stagnate and it won't get new features...
Click to expand...
Click to collapse
I can respect and appreciate what your saying.. but to be honest Google is locking down Android, it has absolutely nothing to do with Niantic or Pokemon GO. Safetynet was implemented mainly for payment security.. android pay etc.
Niantic took advantage of the roll out and used it to combat spoofers, which is smart on their part.. however does not mean they have any influence on updates etc.
This mod will be a drop in the bucket, the least of Google's worries I assure you.. Safetynet isn't going anywhere and it's only a matter of time before we can't bypass it, we may aswell enjoy it while it lasts.
That is my file
Device HTC One M8
Thanks