Skip to content

feat(Instagram): Add Clone patch#1295

Merged
swakwork merged 4 commits into
crimera:devfrom
kitadai31:feat/instagram-change-package-name
Jun 13, 2026
Merged

feat(Instagram): Add Clone patch#1295
swakwork merged 4 commits into
crimera:devfrom
kitadai31:feat/instagram-change-package-name

Conversation

@kitadai31

@kitadai31 kitadai31 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Supersedes PRs: #1259 #1261 #1262

Closes: #1037 #1094 #1098 #1164

This patch changes the package name and app name (label) of the app.
The differences from the official Morphe's "Change package name" universal patch are:

  • Properly rename permissions and providers to prevent conflicts with the official app.
  • Fixes the issue where video stories only play audio.
  • Contains custom branding name functionality.

About the name "Clone"

Initially, I was planning to follow the ReVanced/Morphe convention and create two patches: "Change package name" and "Custom branding name".
However, for the following reasons, I decided to combine them into a single “Clone” patch.

  • In the Instagram modding community, the term "Clone" is commonly used.
  • My guess is that no one would change the package name without changing the app name. So, there's no point in making the two patches selectable independently.

Other matters to be discussed

Currently, the default values for this patch are as follows:

  • Package name: com.instagram.android.piko
  • App name: Piko Instagram

However, @Manishrdy had used the following name in a previous pull request:

  • Package name: com.pikogram.android
  • App name: Pikogram

In my case, since the name "Pikogram" is not used anywhere in the official piko project, I used the simpler name "Piko Instagram".
However, if Swak likes the name "Pikogram," we can switch to that instead, or any other names.
Please note that "Instagram Piko" is not recommended, as the AOSP launcher is likely to omit the string and make it indistinguishable as "Instagra...".

Also, this patch can includes the custom branding app icon feature in the future. But since Piko Instagram does not currently have any branding (logo), this is outside the scope of this pull request.

@kitadai31

Copy link
Copy Markdown
Contributor Author

@Manishrdy Hi, there are two things I want to apologize to you for.

First, I told you that you shouldn't need to edit strings.xml, but I was wrong. (#1261 (comment))
When I was researching changing the package name, I hadn't yet considered changing the app name. Therefore, I wasn't aware that Instagram sets labels for many activities.
Ultimately, I decided to edit strings.xml because replacing the strings within the xml would be more reliable.

Second, I told you that you only need to replace the string "com.instagram.android" in the bytecode. (#1262 (comment))
This is because I actually tested the app and didn't find any bugs.
However, just to be safe, I decided to replace the provider name as well.

My patch should be safer because it only replaces provider names that are actually found. However, if you know of any other strings that need to be replaced to prevent a functionality from breaking, please let me know.

@swakwork

Copy link
Copy Markdown
Collaborator

Thanks for the PR. is it WIP or ready to merge ?

if its ready to merge I was wondering can it be expanded to X/Twitter as well ? or can it be worked upon in the later future

@kitadai31

Copy link
Copy Markdown
Contributor Author

I've just found one issue and fixed
Ready to merge

I was wondering can it be expanded to X/Twitter as well ?

Idk, but it is likely more difficult than Instagram. Twitter app relies heavily on content providers internally, makes it difficult.

can it be worked upon in the later future

This patch is expected to work in the future.
There are no version-dependent elements.
If there is any change, it would be a change in how to fix video stories.

@swakwork

Copy link
Copy Markdown
Collaborator

can it be worked upon in the later future

This patch is expected to work in the future. There are no version-dependent elements. If there is any change, it would be a change in how to fix video stories.

Was talking about expanding it to Twitter in the future. But ya got your answer here

Idk, but it is likely more difficult than Instagram. Twitter app relies heavily on content providers internally, makes it difficult.

Lemme merge this one then 🤝 thanks

@swakwork

Copy link
Copy Markdown
Collaborator

One last question, Just curious, you think we may/can update the app icon as well ? Ik we don't have a specific theme/logo for Piko

List is more efficient because duplicate checking and searching for specific elements are not necessary here
@kitadai31 kitadai31 force-pushed the feat/instagram-change-package-name branch from ebbaf78 to 1810e27 Compare June 12, 2026 09:01
@kitadai31

kitadai31 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

you think we may/can update the app icon as well ?

Yes. The only problem preventing this is that piko doesn't have a theme color or logo yet.
We can replace icons, similar to the Bring back Twitter patch or the RVX's Custom branding icon patch.

@Manishrdy

Copy link
Copy Markdown

@kitadai31 Thanks for the detailed explanation and for taking the time to work through this.

I wanted to suggest something, given the exceptional work you and the team have done here, and the trust you've earned from the community through open source transparency, I think Pikogram / Pikoinsta is the way to go.

Look at what works in this space, likes of, Honinsta, Instaeclipse, Instafel, Instaprime, InstaGold. They're all recognizable because they own their identity. Piko has the momentum and the community trust to carry a strong name.

@kitadai31

Copy link
Copy Markdown
Contributor Author

Excuse me for repeatedly pushing minor changes even though I had initially said that it was ready.
This time it's truly ready now on my side.

I'll leave decisions regarding branding (name and icon) entirely up to the project members.
"Pikogram", "Pikoinsta", "InstaPiko", ... Hmm, it's really hard to choose 🤔

@Manishrdy

Copy link
Copy Markdown

Built and tested the latest Clone patch locally. Everything worked flawlessly on my end. Nice work, and thanks for the thorough implementation and for sharing the insights behind the decisions and tradeoffs.

@swakwork swakwork merged commit a6b1fe1 into crimera:dev Jun 13, 2026
1 check passed
@kitadai31 kitadai31 deleted the feat/instagram-change-package-name branch June 13, 2026 16:27
github-actions Bot pushed a commit that referenced this pull request Jun 14, 2026
## [3.5.0-dev.7](v3.5.0-dev.6...v3.5.0-dev.7) (2026-06-14)

### 🐛 Bug Fixes

* **Instagram:** Fix ImmutablePandoVideoVersion error while downloading some videos ([dc5dc4e](dc5dc4e))
* **Instagram:** Fix lower resolution image downloading ([45f8aa0](45f8aa0))
* **Instagram:** Fix null userdata from mediadata ([ef8fb7e](ef8fb7e))
* **Instagram:** Hide navigation buttons crashing on tablets ([e5b0ddb](e5b0ddb))
* **Twitter:** Some patches failed on 11.97.1-release.0+ ([293b16f](293b16f))

### ✨ New Features

* **Instagram:** Add `Clone` patch ([#1295](#1295)) ([a6b1fe1](a6b1fe1))
* **Instagram:** Added `External downloader` patch ([5d00775](5d00775))
* **Instagram:** Refine Piko settings UI ([#1310](#1310)) ([dd76ee4](dd76ee4))
* **Translations-Instagram:** Added Spanish translation ([#1288](#1288)) ([023eef8](023eef8))
* **Twitter:** Add compatibility check patch to handle exceptions ([d46c253](d46c253))

### 🚀 Updated App Support

* **Twitter:** Bump support for `11.99.0-release.1` ([b9c578f](b9c578f))

### 🔧 Improvements

* **Instagram:** Added a new timestamp customization option ([#1312](#1312)) ([2a82ac4](2a82ac4))
* **Instagram:** refactor post overflow menu button on click ([2e55b54](2e55b54))
* **Instagram:** Streamline post overflow menu button ([8209a77](8209a77))
* **Instagram:** Streamline reels overflow menu button ([50bbef3](50bbef3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants