Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a patch for TikTok to work in restricted countries #2021

Closed
3 tasks done
mahdi921 opened this issue Sep 30, 2022 · 5 comments
Closed
3 tasks done

Make a patch for TikTok to work in restricted countries #2021

mahdi921 opened this issue Sep 30, 2022 · 5 comments
Labels
Feature request Requesting a new feature that's not implemented yet

Comments

@mahdi921
Copy link

Application

TikTok

Issue

In some countries like Iran and India, access to TikTok is restricted by government. The issue is that TikTok somehow recognizes the device is in those countries and won't work even with vpn connection.
On the other hand when I remove any simcards and connect to a wifi with vpn, the application works without a problem.
In the past, I was able to use app cloner to prevent TikTok from accessing sim and cell info by hiding them, but not without some problems showing up.
Now the app won't work after cloning.
The most ironic thing is that we can access tiktok through its website with vpn connection.
I have done everything suggested by google search to resolve the issue. NONE works.

Patch

The patch should prevent the app from recognizing any of the simcard info and simcard country and/or anything related to help the app work in restricted countries

Motivation

TikTok had many users from Iran and India. It would be good news for them to again access their accounts and their content or even use the app without a problem.

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
@mahdi921 mahdi921 added the Feature request Requesting a new feature that's not implemented yet label Sep 30, 2022
@oSumAtrIX
Copy link
Member

oSumAtrIX commented Sep 30, 2022

I think it does by IP, for that you need a vpn, but if it really is the SIM, the permission can be revoked from the TikTok app in the Android settings. Try that.

@oSumAtrIX oSumAtrIX reopened this Sep 30, 2022
@mahdi921
Copy link
Author

VPN won't work in this case. About revoking permissions, there's nothing in android settings as I have searched every corner of it. It can't be done without some tinkering the system or the app.
I thought maybe a patch could help to go around this issue.
It's so ridiculous.

@oSumAtrIX
Copy link
Member

Isn't Android meant to opt in for permissions for apps? I can see a setting to disable access to APIs for apps on OxygenOS.

@mahdi921
Copy link
Author

Yeah right. That's true for some custom roms. But what about stock roms. Stock roms don't have this luxury as they are made to be luxurious. And most people don't even know what custom rom is.
I and many people are looking forward for a workaround to solve this issue. Nevertheless, in Iran we are in the process of changing the government, so the workaround isn't going to be needed in the future. However, it would be good for the people with non-changing governments with restricted access to get a workaround.
But in any case thank you for bringing back and continuing revanced.

@Excal-rs
Copy link

Excal-rs commented Nov 4, 2022

You should be able to remove those permissions on stock android. It might be called something diffrent. When u go into tiktoks settings what permissions does. it have.

@revanced-bot revanced-bot transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@oSumAtrIX oSumAtrIX transferred this issue from another repository Dec 14, 2023
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.172.0-dev.9](ReVanced/revanced-patches@v2.172.0-dev.8...v2.172.0-dev.9) (2023-05-01)

### Features

* **youtube/general-ads:** hide multiple audio track button on video player overlay ([ReVanced#2021](ReVanced/revanced-patches#2021)) ([8d7f305](ReVanced/revanced-patches@a768ca9))
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.172.0](ReVanced/revanced-patches@v2.171.0...v2.172.0) (2023-05-01)

### Bug Fixes

* **change-package-name:** use `null` as default value for option `packageName` ([ReVanced#1998](ReVanced/revanced-patches#1998)) ([8128e6b](ReVanced/revanced-patches@b58ff28))
* **youtube/minimized-playback:** fix background play of kids videos ([ReVanced#2016](ReVanced/revanced-patches#2016)) ([89b1484](ReVanced/revanced-patches@36617f2))
* **youtube/return-youtube-dislike:** support older UI layouts ([ReVanced#2031](ReVanced/revanced-patches#2031)) ([c82ccb5](ReVanced/revanced-patches@59978b6))
* **youtube/spoof-app-version:** adjust available app targets ([ReVanced#2030](ReVanced/revanced-patches#2030)) ([a16cb0d](ReVanced/revanced-patches@1647a2e))

### Features

* **youtube/general-ads:** hide multiple audio track button on video player overlay ([ReVanced#2021](ReVanced/revanced-patches#2021)) ([8d7f305](ReVanced/revanced-patches@a768ca9))
* **youtube/hide-get-premium:** hide get premium advertisements under video player ([ReVanced#2020](ReVanced/revanced-patches#2020)) ([05904a2](ReVanced/revanced-patches@98d6b87))
* **youtube/hide-player-overlay:** exclude by default ([1c6fb94](ReVanced/revanced-patches@a9168aa))
* **youtube/spoof-app-version:** user selectable version to spoof ([ReVanced#2013](ReVanced/revanced-patches#2013)) ([fd66417](ReVanced/revanced-patches@f04a341))
* **youtube/spoof-signature-verification:** list known spoofing side effects in revanced settings ([ReVanced#2011](ReVanced/revanced-patches#2011)) ([dc6e9b2](ReVanced/revanced-patches@617169a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature that's not implemented yet
Projects
None yet
Development

No branches or pull requests

3 participants