yashsingh1/xdaforums huggingface dataset:
[Magisk] fOmey:
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:

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,
[Magisk] Ariac Konrel:
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.
[Magisk] fOmey:
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.
[Magisk] Ariac Konrel:
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!
[Magisk] fOmey:
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:

[MENTION=6241403]Ariac Konrel[/MENTION] 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:

java -jar apktool.jar -d services.jar
[Magisk] Ariac Konrel:
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:

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.
[Magisk] Eng.Raman:
Successfully patched my Zenfone 2 (Z00A) services.jar, thanks [MENTION=1620550]fOmey[/MENTION] for your tool.:good:
[Magisk] innit:
can it be used alongside mock mock locations?
[Magisk] fOmey:
Absolutely, just extract the services.jar from the mock locations module zip and patch that !

EDIT:

[MENTION=3888640]innit[/MENTION] 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.
[Magisk] innit:
hi, thanks for the quick reply. will do as instructed [emoji106]
[Magisk] edzamber:
[MENTION=1620550]fOmey[/MENTION]

Hey ! Thanks bro, good work [emoji2]
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] c.b:
Am not really new to flashing as have sucessfully flashed handfuls of ROMs but I do appear to have caused a small hiccup with my SIM.

I successfully upgraded my radio to a win mobile 6.1 compatible one and then flashed a version of 6.1 with no problems at all.

Decided then to revert back to mobile 6 and a different radio to the default radio I was using. (12.29) after putting on 12.32 and rebooting I get the "NETWORK IS LOCKED" message "Please input unlock code"

Is my only option out of this to call my provider (Orange) Or will the SIM unlocker (stickied at the top of this forum)work after a SIM has been locked??? I guess that is its function but it does not qualify that.

Thanks Guys and girls
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Nikumba:
Network lock needs to be removed with a code from Orange, just tell them y ou are going overseas and need to use a forigen sim in it
[Android Q&A, Help & Troubleshooting] sinlog:
I have an intermittent problem with my Samsung S4 mini, i9195i (rooted). The phone hangs up by itself. Sometimes I can't phone for hours. It started after I installed the uber app.

I uninstalled uber but that didn't cure the phone. I then used twrp to load a september 2016 image, and the problem persisted.

At the samsung forum, I was told to reinstall the firmware. But before doing that, I thought I'd post here in case there's a less drastic solution to the problem. Also, since reinstalling an older image didn't cure the phone, maybe reinstalling the original firmware won't cure it either. I should add that there's kind of an urgency.

Help anyone ?
[Android Q&A, Help & Troubleshooting] sinlog:
I solved the problem by doing this:

I deleted the cache partition and the dalvik cache partition, and after turning the phone off, I took out the battery for one minute.

That was a little more than a week ago, and all went well since then.
[Xiaomi Mi Mix 2 Questions & Answers] NeutronBomb:
I had the first mi mix and it was hard finding a good case for it.. very few available.. the second might be a little better but the special edition version has different specs... it might be impossible to find a case for it...
[Xiaomi Mi Mix 2 Questions & Answers] Your-Android.de:
Why should it be impossible? The special edition has 8GB RAM and a ceramics unibody. Cases should be the same for both variants.
[Xiaomi Mi Mix 2 Questions & Answers] NeutronBomb:
Specs have nothing to do with it... I know what the specs are on the special edition. The problem is their dimensions. The special edition is physically smaller. It will not fit in the same case as the regular edition. I highly doubt case makers will make a special case just for the full ceramic version.

Just look at the dimensions of the two and you will see that the one with the aluminum border is larger.
[Xiaomi Mi Mix 2 Questions & Answers] Your-Android.de:
Oh...yes. I've seen that the special edition is a little bit smaller. I thought that it is only another material with the same dimensions. My fault.
[Security Discussion] Bigsmooth02:
this is my first post. Hello to all. I apologize for not knowing forum rules but I am in advance going to say sorry again but I am looking for help, through msges to me or posted on here, as I have a question about my security on my newest cellphone. its looking like this...please all help needed and welcomed

i have this: Any info via PM would be extremely helpful and appreciated this is my 3rd phone in a very short period of time

Samsung Galaxy j7 perx

hardware v. J727p.02

model number : SM-J727P

Baseband Ver. J727PVPU1AQB9

Kernel Version: 3.18.31-10706873

dpi@SWDD6717 #1

build # NRD9OM. J727PVPU1AQB(

SEPF.SECMOBILE_7.0.005

Sec num: ASKSv1.3_161228

KNOX Version

2.7.1

Standard SDK 5.7.1

Premium SDK2.7.1

Customization SDK 2.7.1

Container 2.7.1

CEP 2.1.1

Enterprise Billing 1.2.0

OTP2.6.0

SE for Android 2.4.3

SSO 2.5.0

Thanks in advance God Bless
[Security Discussion] IronRoo:
What's your question?
[Samsung Galaxy Note 8 Questions and Answers] diehardbattery:
On my S8+, the app drawer was not full screen. Now that I have a Note 8, it is full screen. Any way to change it back?
[Samsung Galaxy Note 8 Questions and Answers] copilus:
I don't think it can be switched, but the Dex Hub app has a feature that enables a windowed app drawer.
[Samsung Galaxy Note 8 Guides, News, & Discussion] a4ol:
For those who don't know you can change DPI in the dev menu under "Minimum Width" (not taking any responsibility if you mess something up lol there is a reason it is hidden in the dev menu). The default is 411.

So far I have tried 10 different settings but due to the aspect ratio of the screen I cannot find the perfect DPI for games but also for everyday use. Not a fan of changing DPI just to play a game when I have a few minutes to kill. Any one have better luck?
[Samsung Galaxy Note 8 Guides, News, & Discussion] snwbrdr852:
Mine is currently at 441 (which means it must have adjusted itself from the 440 I set it to), and I think it's pretty good for daily use.

Can't really speak for games though.
[Samsung Galaxy Note 8 Guides, News, & Discussion] a4ol:
Yep I'm using 480 at the moment and games seem to fit great but some apps don't like it
[Samsung Galaxy Note 8 Guides, News, & Discussion] imatts:
I've had mine set to 530 (it defaults to 533 after exiting settings for some reason) for a while. I found that setting it to anything above 550 results in a misaligned finger register where taking one place registers about 4mm above it. As much as I'd love to set it to 570, doing so results in this misalignment.

I haven't noticed any issues with 530. Only thing that messes up is Samsung's keyboard, but I use the AOSP Android L keyboard with the symbols.

Could you please post images of these gaming issues you are referring to?
[General Questions and Answers] Lucidity:
So I have a LG Premier lte from walmart it is on straight talk and so and I tried to root it,

but it turns out.. it may or may not have a locked bootloader,

anyone know of anyway to unlock it? :confused:

lg has a bootloader unlocking tool but its only for like 10 select LG phones :(

Any help will be greatly appreciated :good: :laugh:
[General Questions and Answers] Droidriven:
I bought one of these for my mother, I have already investigated what could be done with this device. It's locked and there is currently no known method to unlock it or root the device. Probably never will either. This device isn't popular enough and holds no interest for developers so there will probably never be any developments for this device.

Mostly only the high end or flagship devices for each manufacturer are the ones that get attention from developers, this device is not in either of those categories.

DO NOT CONTACT ME VIA PM TO RECEIVE HELP, YOU WILL BE IGNORED. KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Nexus 6P Q&A, Help & Troubleshooting] chaoticyeshua:
Hi everyone. I downloaded the latest stock image from Google (OPR6.170623.017, Sep 2017), performed a factory reset, and flashed it in fastboot. Everything installed just fine and I'm using it without any major issues. In Settings -> System -> About phone it shows I am on Android version 8.0.0 with patch level September 5, 2017. However, I am receiving a system notification informing me that the OTA upgrade to Android 8.0 is available even after multiple reboots. Does anyone know why this might be occurring, and is there a fix for it?

Thanks!

Edit: Never mind, just found https://xdaforums.com/nexus-6p/help/update-notifications-wont-t3672599
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
Ok I'm feeling a little dumb lol. On thr AT&T variant, the fingerprint sensor is not waking up the device when locked and screen off. Am I just missing a setting somewhere?

The international version works just fine to wake up and unlock screen, but the AT&T version doesn't.

Any input?
[Samsung Galaxy Note 8 Questions and Answers] forumcreeper:
Works for me

My att note 8 works as expected with this. Maybe a setting i forgot about enabling. Perhaps power save more disables this ? Are you using power save?

Edit- tested with power save. This doesn't seem to be the culprit.

Ok there's a setting where you scan in your prints. It's a toggle you must enable. That should do the trick.
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
No power save and I factory reset just to see..... No change not really sure.
[Samsung Galaxy Note 8 Questions and Answers] forumcreeper:
There's a toggle in the settings where you scan your prints in. That should fix it
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
I just removed all my fingerprints and added them back and it still doesn't turn on screen.
[Samsung Galaxy Note 8 Questions and Answers] forumcreeper:
https://ibb.co/RL]

Heres a sreenshot of my screen

Do you have this option ?
[Samsung Galaxy Note 8 Questions and Answers] GallardosEggrollShop:
Yup it's under lock screen and security then smart Lock. You wanna select the first option and it should automatically unlock to home screen when using your fingerprint.

Composed on the Galaxy Note8
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
Screenshot didn't come through, but if you mean the fingerprint unlock toggle, yes I have it on.
[Samsung Galaxy Note 8 Questions and Answers] Mohannakattan:
Could you fix the problem?

Could you fix the problem? I bought Galaxy S9+ AT&T version and it seems has the same problem.
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
The only way I could get it to work was to set screen to lock immediately with power button. Can't remember the exact setting title, but I think it's Settings/secure lock settings

Basically if you set the screen to lock as soon as it turns off it'll trigger the fingerprint to turn on screen immediately.
[Samsung Galaxy Note 8 Questions and Answers] Mohannakattan:
It worked!!! Thank you very very much. Really appreciate it. I was one step farther to return the phone. :)
[Samsung Galaxy Note 8 Questions and Answers] apascual89:
It drive me crazy as well.... After numerous searches I found that suggestion somewhere. Glad it helped!
[Samsung Galaxy Note 8 Questions and Answers] CodeNameRedNeck:
I just wanted to say thanks. I flashed my unlocked Note8 with the AT&T firmware to see if it is worth the bloat. On the unlocked firmware I never had to make that change, it was always on. I don't know why I didn't think to check that setting and I don't know why AT&T would set it to ten minutes, there are so many things that can happen in ten minutes. Thanks!
[Xiaomi Redmi Note 3 Questions & Answers] ExEdd:
Hi! I been searching on XDA about audio mods, and found this: https://xdaforums.com/oneplus-3/themes/mod-aptx-codec-t3521228

Someone have tried? It's working?

I tried with lastest LOS build (09/13) but not work for me (i have a earbuds with apt-x support).

Thanks for answers
[XV6700, PPC-6700 ROM Development] mitchcook:
Hi, I have an Audiovox 6700 and I live in Manitoba, (Canada). My Cellular service provider is MTS, which is the Manitoba Telecommunications Services Company or something to that effect :P

Anyways... I am planning to possibly upgrade to Windows Mobile 6 in the future, but I have a few questions first...

I was going to use Helmi's Kitchen or whatever, but I noticed that MTS is not in the list for carriers, will this cause problems? Do you HAVE to have your carrier selected for everything to work right? Or is it just something to do with branding and that sort of thing...

Also, is there any way to back your phone config up entirely? OS and all? I have bad luck with these sort of things and I know nothing is 'guaranteed' especially with hacking like this, so I just want to know I am making all the necessary precautions so I don't lose my phone forever

I think that's it for now but I thank you for reading!

Mitch.
[XV6700, PPC-6700 ROM Development] snareplayer1993:
I would like to know the same thing i have it with a company know as cellular south. And I was wondering if I could use one of the roms.
[BLU R1 HD Questions & Answers] JShan:
I'm running mrmarzak's stock V8.5 ROM and I got a notification from Wireless Update to download and install the latest update to the ROM. After downloading, I click "Install Now" and I get the message:

"Warning

FOTA is not supported on this device!"

The only way to get rid of the notification is to turn off all notifications for Wireless Updater. Even then, I still get a pop-up reminder every so often to complete the update, but each click-through results in this same message. Can anyone help?
[BLU R1 HD Questions & Answers] mrmazak:
Reboot to recovery. Clear cache

Should do it. Might need to clear app data for Fota, or can remove fota.

Don't think you want the full oem ota update anyway.

It updates the preloader and that makes recovering from bad modifications harder (blocks spflash tools)

But if you want the full official ota update, you can restore the "fota reboot apk". It is renamed to ".apk_ " right now to block the install. So you can rename /system/FotaReboot/FotaReboot.apk_ to /system/FotaReboot/FotaReboot.apk
[BLU R1 HD Questions & Answers] JShan:
Thanks, mrmazak! And thanks for all your work on the R1 HD! I was really in the mood to tinker last night, so I flashed your LIneage port last night... That not only fixed the problem on my phone, but I'm loving the ROM so far. Only thing I've noticed is that the signal indicators for wifi and both SIM cards seem a bit lower than what i remember from the stock ROM (ie. a place that used to give me 4 bars now shows 2 or 3). But I haven't noticed a decline in performance per se. Maybe this is a software glitch and the signals are still read as strongly by the phone?

Again, many thanks for all your efforts!
[Samsung Galaxy S8 & S8+ Cross Device Development] geiti94:
NEMESIS ROM is the first Note 8 Port for the S8/S8+!!!

You are NOT allowed to use any part of the tweaks files, scripts, propriate Apps or what ever of this rom without my permission! and kangers is useless to kang rom dont boots anymore after build.prop rom name edit:angel:

Features:

-Based on N8 AQI1 Nougat 7.1.1 Rom

-Permessive Kernel

-Rooted with Magisk V14

-Full stock for the moment (only debloated and deknoxed)

Kernel Feature:

-Compiled from full Note 8 AQH9 source with AQI1 Ramdisks

-Permessive

-Updated to 4.4.87

-Compiled with GCC 6.3.1

1) Put the zip file in your SD Card

2) Reboot in Recovery Mode (use Twrp or Philz Recovery)

3) Wipe Data, Cache, Dalvik Cache and format /System (If running Philz Recovery use the "Clean before install a new rom" option)

4) Install the ROM

5) Install Magisk or Supersu if you want root :)

6) Reboot.

Note: First boot may take a while, that's normal. Once it booted setup your device and reboot again to ensure the full performance of the rom.

Stable V2.0

On s8:

- Take video in Samsung camera (disable image stabilitation or use google camera that get installed with rom)

- Shape correction in Camera settings (when enabled pictures are green)

On N8:

-No bug :)

-other tell me :D

Download Links and Changelog on second post​

XDA:DevDB Information

[ROM][7.1.1]NEMESIS N8 PORT S8, ROM for the Samsung Galaxy S8

Contributors

geiti94

Source Code: https://github.com/geiti94/NEMESIS_KERNEL_S8_N8

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.x

ROM Firmware Required: Last Bl and Modem

Version Information

Status: Stable

Current Stable Version: 2.0

Stable Release Date: 2017-09-17

Created 2017-09-16

Last Updated 2017-09-17
[Samsung Galaxy S8 & S8+ Cross Device Development] geiti94:
V2.0

-Only Tested on G955F and N950F/DS other need to be tested

18.09.17

-V2 Release

-Added N8 support

-Added Dual Speaker mod in aroma (For N8 and S8)

-Fixed Iris and Bluetooth on S8/S8+

-Fixed camera on S8/S8+ (read bugs)

-Reworked all kernels (compiled from n8 source)

-First world wide permessive N8 kernel added

-Updated to last Aviable Note 8 rom

-more i dont have in mind :)

16.09.17

-First Release

V2.0

Download NEMESIS Note 8 Rom for S8/S8+/N8 V2.0

Download Rear Camera fix for S8/S8+ with V2.0 Rom
​
[Samsung Galaxy S8 & S8+ Cross Device Development] dineshh:
Wow

Great waiting foe it to be uploaded
[Samsung Galaxy S8 & S8+ Cross Device Development] geiti94:
so rom is uploaded :)
[Samsung Galaxy S8 & S8+ Cross Device Development] GabryxxUfO:
[MENTION=1649452]geiti94[/MENTION] sei grande!!!
[Samsung Galaxy S8 & S8+ Cross Device Development] the_noob65:
not stable
[Samsung Galaxy S8 & S8+ Cross Device Development] Subways-Sun:
So the KNOX will be triggered right?
[Samsung Galaxy S8 & S8+ Cross Device Development] pogi.paul0119:
Indeed.
[Samsung Galaxy S8 & S8+ Cross Device Development] srdjanLeo:
Who cares about Knox when there are so many goods hidden in this device? :)

Downloading!
[Samsung Galaxy S8 & S8+ Cross Device Development] tucha:
Downloading..

Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] hasablack:
Did you fully port the camera? Please we need screenshots!
[Samsung Galaxy S8 & S8+ Cross Device Development] droidguy86:
Bluetooth is broken. I keep getting "Bluetooth keeps stopping" when I try to turn it on.
[Samsung Galaxy S8 & S8+ Cross Device Development] Albe96:
Yay! Great Work [MENTION=1649452]geiti94[/MENTION],Your contribution is always be appriciated.
[Samsung Galaxy S8 & S8+ Cross Device Development] chikrron:
+1 :c

Enviado desde mi SM-N950F mediante Tapatalk
[Samsung Galaxy S8 & S8+ Cross Device Development] JavierHouse:
Love rom

Enviado desde mi SM-G950F mediante Tapatalk
[Samsung Galaxy S8 & S8+ Cross Device Development] FanBoy Samsung:
i can confirm this issue too

+1
[Samsung Galaxy S8 & S8+ Cross Device Development] ALick43:
Installing XPOSED failed
[Samsung Galaxy S8 & S8+ Cross Device Development] Am115h:
Does the sim cards work on g950fd? And does it still have secure folder
[Samsung Galaxy S8 & S8+ Cross Device Development] silitek:
Good work guys..keep going this way to make it perfect!!...
[Samsung Galaxy S8 & S8+ Cross Device Development] carlitobahsoun:
congratulation and will download and see...