Closed RileyXX closed 10 months ago
Open the json file in your favourite text editor and dump its content here. Remember to use a code block.
code block
Here is the JSON patches file. I should note, when I click import patches selection it doesn't give me a popup or any option to select where the file is located it just immediately gives the message in the above screenshot.
JSON patches file:
{"com.google.android.youtube":["client-spoof","copy-video-url","custom-video-speed","disable-fullscreen-panels","disable-player-popup-panels","disable-shorts-on-startup","disable-zoom-haptics","downloads","general-ads","hdr-auto-brightness","hide-crowdfunding-box","hide-floating-microphone-button","hide-my-mix","hide-player-buttons","hide-video-action-buttons","hide-watch-in-vr","minimized-playback","old-quality-layout","open-links-externally","premium-heading","remember-video-quality","return-youtube-dislike","seekbar-tapping","sponsorblock","spoof-signature-verification","tablet-mini-player","vanced-microg-support","video-ads","enable-debugging","enable-android-debugging"],"com.reddit.frontpage":["general-reddit-ads","hide-subreddit-banner","premium-icon-reddit"],"com.instagram.android":["hide-timeline-ads"],"com.twitter.android":["hide-ads"],"com.zhiliaoapp.musically":["disable-login-requirement","downloads","feed-filter","hide-ads","playback-speed","show-seekbar"],"tv.twitch.android.app":["block-audio-ads","block-embedded-ads","block-video-ads","show-deleted-messages"]}
Here is the JSON patches file. I should note, when I click import patches selection it doesn't give me a popup or any option to select where the file is located it just immediately gives the message in the above screenshot.
JSON patches file:
{"com.google.android.youtube":["client-spoof","copy-video-url","custom-video-speed","disable-fullscreen-panels","disable-player-popup-panels","disable-shorts-on-startup","disable-zoom-haptics","downloads","general-ads","hdr-auto-brightness","hide-crowdfunding-box","hide-floating-microphone-button","hide-my-mix","hide-player-buttons","hide-video-action-buttons","hide-watch-in-vr","minimized-playback","old-quality-layout","open-links-externally","premium-heading","remember-video-quality","return-youtube-dislike","seekbar-tapping","sponsorblock","spoof-signature-verification","tablet-mini-player","vanced-microg-support","video-ads","enable-debugging","enable-android-debugging"],"com.reddit.frontpage":["general-reddit-ads","hide-subreddit-banner","premium-icon-reddit"],"com.instagram.android":["hide-timeline-ads"],"com.twitter.android":["hide-ads"],"com.zhiliaoapp.musically":["disable-login-requirement","downloads","feed-filter","hide-ads","playback-speed","show-seekbar"],"tv.twitch.android.app":["block-audio-ads","block-embedded-ads","block-video-ads","show-deleted-messages"]}
Provided json works for me in the latest version.
Provided json works for me in the latest version.
I'm still getting the same error in the latest version (v1.0.0). It never gives me an option to chose where the json file is located it just gives the error message in the screenshot on my original post. Does revanced manager automatically look for the json file in a specific folder or something?
Provided json works for me in the latest version.
Not for me. I have same issue. Open setting, click import, "Unable to use selected JSON file" without any way to select or do something.
Think this has something to do with FilePicker returning null on some devices.
Future<void> importPatches() async {
try {
final FilePickerResult? result =
await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: ['json'],
);
if (result != null && result.files.single.path != null) {
final File inFile = File(result.files.single.path!);
inFile.copySync(_managerAPI.storedPatchesFile);
inFile.delete();
if (locator<PatcherViewModel>().selectedApp != null) {
locator<PatcherViewModel>().loadLastSelectedPatches();
}
_toast.showBottom('settingsView.importedPatches');
}
} on Exception catch (e) {
if (kDebugMode) {
print(e);
}
_toast.showBottom('settingsView.jsonSelectorErrorMessage');
}
}
Relevant messages from the log I posted:
04-30 19:32:41.976 21431 21431 W FilePickerUtils: Custom file type json is unsupported and will be ignored.
04-30 19:32:41.976 21431 21431 D FilePickerUtils: Allowed file extensions mimes: []
04-30 19:32:41.979 21431 21449 I flutter : [MethodChannelFilePicker] Platform exception: PlatformException(FilePicker, Unsupported filter. Make sure that you are only using the extension without the dot, (ie., jpg instead of .jpg). This could also have happened because you are using an unsupported file extension. If the problem persists, you may want to consider using FileType.all instead., null, null)
Same black view a80pro
This issue appears to be fixed in the latest release.
Type
Error while running the manager
Bug description
Clicking import JSON patches selection option gives the error "Unable to use selected JSON file". It doesn't allow me to choose which file to import. Am I doing this correctly? Is there a specific folder I need to move the JSON file to or is it a bug? It's a little frustrating because I have to redo all my patches selections.
Steps to reproduce
On v0.0.57 I exported my patches selection to a json file successfully. Then updated to v0.1.0 manager. Patches were remembered after the upgrade. Exported my patches selection again. I didn't like the new version of the manager very much and unsinstalled due to not being able to quickly check my installed app versions and compared them to the current recommended version. I uninstalled v.0.1.0 and installed v0.0.57 again but my patches selection was gone. So I tried import my patches selection and got this error message "Unable to use selected JSON file".
Android version
Android 9
Manager version
v0.0.57 and v0.1.0
Target package name
N/a
Target package version.
N/a
Installation type
Non-root
Patches selected.
N/a
Device logs (exported using Manager settings).
Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].
No response
Screenshots or videos
Solution
No response
Additional context
No response
Acknowledgements