Skip to content

Commit

Permalink
- FORCEABI="arm64-v8a,armeabi-v7a,armeabi" on newer phones.
Browse files Browse the repository at this point in the history
- Fix remebered PI Sleection option not properly enforced.
- Revert to using monkey to launch the Play Integrity apps (more reliable).
  • Loading branch information
badabing2005 committed Dec 31, 2023
1 parent 1318f78 commit 5b7e286
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,5 @@ images/*.psd
.DS_Store
/.sourcery.yaml
.local/
desktop.ini

2 changes: 1 addition & 1 deletion build-on-mac.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ exe = EXE(pyz,
icon='images/icon-256.icns')
app = BUNDLE(exe,
name='PixelFlasher.app',
version='6.5.3.0',
version='6.5.3.1',
icon='./images/icon-256.icns',
bundle_identifier='com.badabing.pixelflasher')
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
rm -rf build dist
VERSION=6.5.3.0
VERSION=6.5.3.1
NAME="PixelFlasher"
DIST_NAME="PixelFlasher"

Expand Down
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

APPNAME = 'PixelFlasher'
CONFIG_FILE_NAME = 'PixelFlasher.json'
VERSION = '6.5.3.0'
VERSION = '6.5.3.1'
SDKVERSION = '33.0.3'
MAIN_WIDTH = 1400
MAIN_HEIGHT = 1040
Expand Down
40 changes: 26 additions & 14 deletions pif_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def __init__(self, *args, parent=None, config=None, **kwargs):
self.pif_json_path = PIF_JSON_PATH
self.device_pif = ''
self.pi_app = 'gr.nikolasspyr.integritycheck'
self.launch_method = 'launch-am'
# self.launch_method = 'launch-am'
self.launch_method = 'launch'
self.coords = Coords()
self.enable_buttons = False
self.pif_exists = False
Expand Down Expand Up @@ -175,10 +176,13 @@ def __init__(self, *args, parent=None, config=None, **kwargs):
self.auto_check_pi_checkbox.SetValue(self.config.pif['auto_check_play_integrity'])

# option button PI Selectedion
self.pi_option = wx.RadioBox(self, choices=["Play Integrity API Checker", "Simple Play Integrity Checker", "TB Checker", "Play Store", "YASNAC"], style=wx.RA_VERTICAL)
choices = ["Play Integrity API Checker", "Simple Play Integrity Checker", "TB Checker", "Play Store", "YASNAC"]
self.pi_option = wx.RadioBox(self, choices=choices, style=wx.RA_VERTICAL)
if self.config.pif:
with contextlib.suppress(KeyError):
self.pi_option.SetSelection(self.config.pif['test_app_index'])
selected_index = self.config.pif['test_app_index']
self.pi_option.SetSelection(selected_index)
self.pi_selection(choices[selected_index])

# Disable UIAutomator
self.disable_uiautomator_checkbox = wx.CheckBox(parent=self, id=wx.ID_ANY, label=u"Disable UIAutomator", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0)
Expand Down Expand Up @@ -412,36 +416,44 @@ def PifComboBox(self, event):
# -----------------------------------------------
def TestSelection(self, event):
option = event.GetString()
self.pi_selection(option)

if option == "Play Integrity API Checker":
# -----------------------------------------------
# pi_selection
# -----------------------------------------------
def pi_selection(self, selected_option):
if selected_option == "Play Integrity API Checker":
print("Play Integrity API Checker option selected")
self.pi_app = 'gr.nikolasspyr.integritycheck'
self.launch_method = 'launch-am'
# self.launch_method = 'launch-am'
self.launch_method = 'launch'

elif option == "Simple Play Integrity Checker":
elif selected_option == "Simple Play Integrity Checker":
print("Simple Play Integrity Checker option selected")
self.pi_app = 'com.henrikherzig.playintegritychecker'
self.launch_method = 'launch-am'
# self.launch_method = 'launch-am'
self.launch_method = 'launch'

elif option == "TB Checker":
elif selected_option == "TB Checker":
print("TB Checker option selected")
self.pi_app = 'krypton.tbsafetychecker'
self.launch_method = 'launch-am-main'
# self.launch_method = 'launch-am-main'
self.launch_method = 'launch'

elif option == "Play Store":
elif selected_option == "Play Store":
print("Play Store option selected")
self.pi_app = 'com.android.vending'
self.launch_method = 'launch'

elif option == "YASNAC":
elif selected_option == "YASNAC":
print("YASNAC option selected")
self.pi_app = 'rikka.safetynetchecker'
self.launch_method = 'launch-am-main'
# self.launch_method = 'launch-am-main'
self.launch_method = 'launch'

print(f"Auto Update pif.json is set to: {option}")
print(f"Auto Update pif.json is set to: {selected_option}")
self.config.pif['test_app_index'] = self.pi_option.Selection


# -----------------------------------------------
# __del__
# -----------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -2715,6 +2715,8 @@ def get_freeman_pif(abi_list=None):
shutil.rmtree(temp_dir)

if abi_list:
if abi_list == "arm64-v8a":
abi_list = "arm64-v8a,armeabi-v7a,armeabi"
print(f"Will use profile/fingerprint with ABI list '{abi_list}'")
file_list = [os.path.join(root, file) for root, dirs, files in os.walk(f"{freeman_dir_full}/{abi_list}") for file in files]
else:
Expand Down
2 changes: 1 addition & 1 deletion windows-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://github.com/DudeNr33/pyinstaller-versionfile
# create-version-file windows-metadata.yaml --outfile windows-version-info.txt
Version: 6.5.3.0
Version: 6.5.3.1
FileDescription: PixelFlasher
InternalName: PixelFlasher
OriginalFilename: PixelFlasher.exe
Expand Down
8 changes: 4 additions & 4 deletions windows-version-info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ VSVersionInfo(
ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0. Must always contain 4 elements.
filevers=(6,5,3,0),
prodvers=(6,5,3,0),
filevers=(6,5,3,1),
prodvers=(6,5,3,1),
# Contains a bitmask that specifies the valid bits 'flags'r
mask=0x3f,
# Contains a bitmask that specifies the Boolean attributes of the file.
Expand All @@ -32,12 +32,12 @@ VSVersionInfo(
u'040904B0',
[StringStruct(u'CompanyName', u''),
StringStruct(u'FileDescription', u'PixelFlasher'),
StringStruct(u'FileVersion', u'6.5.3.0'),
StringStruct(u'FileVersion', u'6.5.3.1'),
StringStruct(u'InternalName', u'PixelFlasher'),
StringStruct(u'LegalCopyright', u''),
StringStruct(u'OriginalFilename', u'PixelFlasher.exe'),
StringStruct(u'ProductName', u'PixelFlasher'),
StringStruct(u'ProductVersion', u'6.5.3.0')])
StringStruct(u'ProductVersion', u'6.5.3.1')])
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
Expand Down

0 comments on commit 5b7e286

Please sign in to comment.