andrewliang25/morphe-patches

Andrew's Patches

Kotlin

122

357 commits

updated Oct 8, 2026

See the code

README

🧩 Andrew's Patches

Morphe patches for LINE and other apps I use.

❓ About

These are Morphe patches. The current focus is LINE (jp.naver.line.android). Apply them with the Morphe CLI or Morphe Manager to build a modified APK.

💡 Do not want to build it yourself? Download ready-made patched apps from andrewliang25/patched-apps.

This project has no connection to the Morphe open source project, LINE, or LY Corporation. They do not endorse it and did not write it.

🩹 Patches list

v3.5.0  •  main  •  49 patches total

📦 Facebook  •  19 patches

🎯 Supported versions:

577.0.0.50.72
💊 Patch📜 Description⚙️ Options
[Ad] Block ad telemetryStops Facebook watching for screenshots of ads and reporting which apps you install for ad attribution.
[Ad] Block background ad prefetchStops Facebook downloading ads and its ad model in the background, which saves data, battery and storage.
[Ad] Disable Audience NetworkStops Facebook serving ads to other apps. Those apps then show their own ads or none, and rewarded ads can fail.
[Feed] Block feed auto refreshKeeps your place in the news feed when you come back to Facebook. Pull down to refresh the feed.
[Feed] Hide page suggestions and promo cardsRemoves the items that Facebook adds to the feed, such as "Pages you may like", promo cards and surveys. "Suggested for you" posts stay.
[Feed] Hide post promptsRemoves the prompts Facebook adds inside a post, such as "Are you interested in this post?".
[Feed] Hide sponsored postsRemoves sponsored posts from the news feed, with no gap left behind.
[Fix] Restore screens on re-signed buildsMakes profiles and some Settings pages open again on a re-signed build. A Root Mount install does not need this patch.
[General] AMOLED black themeMakes Facebook's dark mode black instead of dark grey. Turn on dark mode in Facebook first.
[General] Hide affiliate product linksRemoves the product cards of affiliate shop links from Reels, feed posts and comments. The "Commission eligible" label stays.
[General] Open links in external browserOpens web links in your default browser instead of Facebook's in-app browser. Facebook pages still open in the app.
[Reels] Download any reelAdds a Download button beside every reel. Videos save at the best quality the player streams.• Save as H.264
[Reels] Hide interest promptsRemoves the "Are you interested in this reel?" prompt from Reels.
[Reels] Hide sponsored reelsRemoves ads from Reels and Watch, including product banners over a reel and ads inside a video.
[Reels] Picture-in-pictureKeeps a reel playing in a small window when you leave Facebook from the Reels tab. Only vertical reels get a window. Needs Android 12 or later.
[Stories] Disable auto advanceKeeps each story on the screen until you tap or swipe to the next one.
[Stories] Download any storyAdds Save to the menu of any story, including stories with music. Videos save at the best quality the player streams.• Save as H.264
[Stories] Hide sponsored storiesRemoves ad cards from the story viewer, so swiping through stories only shows stories people posted.
[Stories] View stories anonymouslyStops Facebook telling the server which stories you saw, so you are not in the viewer list. Stories that you saw still show as seen on this device.
📦 LINE  •  30 patches

🎯 Supported versions:

26.14.0
💊 Patch📜 Description⚙️ Options
[Ad] Hide ad viewsHides LINE display ads: the LINE Ads banners, the Smart Channel banner in the chat list and Google AdManager ads.
[Ad] Remove banner adsLINE no longer loads the Smart Channel banner ads. This patch makes the getBanners and getPrefetchableBanners responses null.
[Chat] Hide AI Friends buttonRemoves the AI Friends button from the Chats tab header. The Album button shows in its place.
[Chat] Hide Events buttonRemoves the "Events" row from the slide-out menu in a chat room. Events is a different feature from LINE Calendar, and it opens a server-hosted page.
[Chat] Hide LINE GIFT buttonRemoves the LINE GIFT tile from the + attach menu in a chat room.
[Chat] Hide Transfer buttonRemoves the Transfer (LINE Pay) tile from the + attach menu in a chat room.
[Chat] Hide attach menu extra toolsRemoves the server-provided tools (Poll, Schedule and more) from the + menu in a chat. Built-in tiles stay.
[Chat] Hide calendar buttonsRemoves every LINE Calendar button: in the Chats tab, the chat toolbar and menus, and the Home tab.
[Chat] Hide community buttonRemoves the community (OpenChat) button from the top of the Chats tab header.
[Chat] Hide tips under messagesHides the "CHECK" tips under some messages, such as a received video.
[Chat] Keep chats unreadWhen you open a chat, LINE does not mark it read or send a read receipt. "Mark as read" still works.
[Chat] Keep unsent messagesKeeps messages that others unsend in 1:1 and group chats, with a notice below each one. OpenChat is not covered.
[Fix] Restore chat backup sign-in via MicroG-REMakes Google Drive chat backup and restore work on a re-signed build, through MicroG-RE. Root Mount does not need it.
[Fix] Restore location maps via MicroG-REShows maps again on a re-signed build, with OpenFreeMap tiles. It needs MicroG-RE 7.0.0 or later. Root Mount does not need it.
[Fix] Restore push notificationsWhen LINE is fully closed, push notifications work again on a re-signed build. A Root Mount install does not need this patch.
[General] Andrew's Patch SettingAdds "Andrew's Patch Setting" to LINE Settings, below "Profile". There you can turn some patches on or off without patching again, and see the credits and licenses.
[General] Disable VOOMVOOM deep links, shares, and notifications do nothing. If you open the standalone VOOM feed, it closes. Messaging and the other tabs do not change.
[General] Hide Agent i buttonsRemoves the Agent i button from the Home header and from the search bar.
[General] Hide new item badgesHides the green dots and N badges that mark new items, on header buttons, tabs, menus, lists and settings rows. Unread message counts do not change.
[General] Open links in external browserOpens web links in your default browser instead of LINE's in-app browser. LIFF mini-apps and LINE links stay in LINE.
[General] Redirect LINE PayOpens LINE Pay in the standalone LINE Pay app, so the integrity check that fails on a re-signed build never runs.
[General] Trust user-installed CAsMakes LINE trust certificate authorities you install, so your own HTTPS proxy can read LIFF and mini-app web traffic. Bank and LINE Pay stay pinned. For debugging. Off by default.
[Home] Hide Home content feedRemoves the content feed below the friends list on the Home tab: LINE NEWS, official account posts and rankings.
[Home] Hide Home modulesHides the recommended content, hot-topics and ad modules on the Home tab.
[Premium] Disable LINE PremiumHides all LINE Premium upsells, badges and pages. It unlocks nothing, because the server enforces Premium.
[Premium] Hide premium unsend upsellsRemoves the Premium unsend upsells that "Disable LINE Premium" leaves. Ordinary unsend still works.
[Tab] Hide LINE TODAY tabRemoves the LINE TODAY (News) tab from the main bottom navigation, in both the news-tab and news-row layouts.
[Tab] Hide Shopping tabRemoves the Shopping tab from the main bottom navigation. This includes the Japan variant (Shopping, ショッピング) and the Taiwan variant (Discover, 逛逛).
[Tab] Hide VOOM tabRemoves the VOOM (formerly Timeline) tab from the main bottom navigation.
[Tab] Hide Wallet tabRemoves the Wallet (LINE Pay) tab from the main bottom navigation, in both the normal and mini-tab layouts.

How to use these patches

Click here to add these patches to Morphe: https://morphe.software/add-source?github=andrewliang25/morphe-patches

Or add this repository URL as a patch source in Morphe: https://github.com/andrewliang25/morphe-patches

Change LINE patches in the app

With the "[General] Andrew's Patch Setting" patch, LINE Settings has an Andrew's Patch Setting row below Profile. There you can turn these patches on or off without patching again:

  • Keep chats unread, and keep unsent messages
  • Open links in external browser, and disable VOOM
  • Hide the LINE TODAY, Shopping, VOOM and Wallet tabs. A tab change shows after LINE restarts.

A patch that you did not include in the build has no switch. The row also shows the author and the license.

🛠️ Building

To build Andrew's Patches, obey the instructions in the Morphe documentation.

⚠️ Known limitations

LINE: Google account sign-in fails (re-signed builds)

What: On a patched LINE build, you cannot sign in with a Google account or link one.

Why: Google accepts an account only for an OAuth client that is registered under LINE's package name and its original signing certificate. A re-signed build changes that certificate, so no client matches. LINE asks Android's Credential Manager for the account, so the system picks Google Play Services. No patch can change this (details).

Workaround: install with Root Mount, which keeps LINE's original signature. Do not use the Standard install.

This limitation does not affect chat-history backup. The [Fix] Restore chat backup sign-in via MicroG-RE patch restores it through MicroG-RE.

LINE: maps show an empty grid (re-signed builds)

What: On a patched LINE build, the maps on the location screens are empty. This covers the location picker, the location messages in a chat, and the location posts. You can still send your current location, and only the map is blank.

Why: Google draws a map only for an API key that is registered under LINE's package name and its original signing certificate. A re-signed build changes that certificate. Google Play Services reports the certificate from its own process, so no patch can correct it (details).

Workaround: enable the [Fix] Restore location maps via MicroG-RE patch. It draws the maps through MicroG-RE 7.0.0 or later instead, which is the first version with a map renderer. Google Play Services must still be installed. The tiles then come from OpenFreeMap, so they do not look like Google Maps. There is no satellite view. A Root Mount install keeps LINE's original signature and needs neither the patch nor MicroG-RE.

Facebook: other Meta apps do not install (re-signed builds)

What: After you install a patched Facebook build, an official Meta app that shares the same permission names does not install. Facebook Lite is the reported example. The installer stops with INSTALL_FAILED_DUPLICATE_PERMISSION.

Why: Meta apps declare the same family permissions, for example com.facebook.permission.prod.FB_APP_COMMUNICATION. Android permits only one owner of a permission name, unless the two apps have the same signing certificate. A patched build is re-signed, so its certificate is different from the certificate of Meta. The order of the installs does not change this. The same conflict occurs in patched-apps.

Workaround: install the patched Facebook with Root Mount, which keeps the original signature. Or keep only one app of the two.

🙏 Special thanks

⭐ Star history

Star History Chart

📜 License

Andrew's Patches are licensed under the GNU General Public License v3.0

android
facebook
line
morphe
morphe-patches

andrewliang25/morphe-patches

Andrew's Patches

Kotlin

122

357 commits

updated Oct 8, 2026

See the code

README

🧩 Andrew's Patches

Morphe patches for LINE and other apps I use.

❓ About

These are Morphe patches. The current focus is LINE (jp.naver.line.android). Apply them with the Morphe CLI or Morphe Manager to build a modified APK.

💡 Do not want to build it yourself? Download ready-made patched apps from andrewliang25/patched-apps.

This project has no connection to the Morphe open source project, LINE, or LY Corporation. They do not endorse it and did not write it.

🩹 Patches list

v3.5.0  •  main  •  49 patches total

📦 Facebook  •  19 patches

🎯 Supported versions:

577.0.0.50.72
💊 Patch📜 Description⚙️ Options
[Ad] Block ad telemetryStops Facebook watching for screenshots of ads and reporting which apps you install for ad attribution.
[Ad] Block background ad prefetchStops Facebook downloading ads and its ad model in the background, which saves data, battery and storage.
[Ad] Disable Audience NetworkStops Facebook serving ads to other apps. Those apps then show their own ads or none, and rewarded ads can fail.
[Feed] Block feed auto refreshKeeps your place in the news feed when you come back to Facebook. Pull down to refresh the feed.
[Feed] Hide page suggestions and promo cardsRemoves the items that Facebook adds to the feed, such as "Pages you may like", promo cards and surveys. "Suggested for you" posts stay.
[Feed] Hide post promptsRemoves the prompts Facebook adds inside a post, such as "Are you interested in this post?".
[Feed] Hide sponsored postsRemoves sponsored posts from the news feed, with no gap left behind.
[Fix] Restore screens on re-signed buildsMakes profiles and some Settings pages open again on a re-signed build. A Root Mount install does not need this patch.
[General] AMOLED black themeMakes Facebook's dark mode black instead of dark grey. Turn on dark mode in Facebook first.
[General] Hide affiliate product linksRemoves the product cards of affiliate shop links from Reels, feed posts and comments. The "Commission eligible" label stays.
[General] Open links in external browserOpens web links in your default browser instead of Facebook's in-app browser. Facebook pages still open in the app.
[Reels] Download any reelAdds a Download button beside every reel. Videos save at the best quality the player streams.• Save as H.264
[Reels] Hide interest promptsRemoves the "Are you interested in this reel?" prompt from Reels.
[Reels] Hide sponsored reelsRemoves ads from Reels and Watch, including product banners over a reel and ads inside a video.
[Reels] Picture-in-pictureKeeps a reel playing in a small window when you leave Facebook from the Reels tab. Only vertical reels get a window. Needs Android 12 or later.
[Stories] Disable auto advanceKeeps each story on the screen until you tap or swipe to the next one.
[Stories] Download any storyAdds Save to the menu of any story, including stories with music. Videos save at the best quality the player streams.• Save as H.264
[Stories] Hide sponsored storiesRemoves ad cards from the story viewer, so swiping through stories only shows stories people posted.
[Stories] View stories anonymouslyStops Facebook telling the server which stories you saw, so you are not in the viewer list. Stories that you saw still show as seen on this device.
📦 LINE  •  30 patches

🎯 Supported versions:

26.14.0
💊 Patch📜 Description⚙️ Options
[Ad] Hide ad viewsHides LINE display ads: the LINE Ads banners, the Smart Channel banner in the chat list and Google AdManager ads.
[Ad] Remove banner adsLINE no longer loads the Smart Channel banner ads. This patch makes the getBanners and getPrefetchableBanners responses null.
[Chat] Hide AI Friends buttonRemoves the AI Friends button from the Chats tab header. The Album button shows in its place.
[Chat] Hide Events buttonRemoves the "Events" row from the slide-out menu in a chat room. Events is a different feature from LINE Calendar, and it opens a server-hosted page.
[Chat] Hide LINE GIFT buttonRemoves the LINE GIFT tile from the + attach menu in a chat room.
[Chat] Hide Transfer buttonRemoves the Transfer (LINE Pay) tile from the + attach menu in a chat room.
[Chat] Hide attach menu extra toolsRemoves the server-provided tools (Poll, Schedule and more) from the + menu in a chat. Built-in tiles stay.
[Chat] Hide calendar buttonsRemoves every LINE Calendar button: in the Chats tab, the chat toolbar and menus, and the Home tab.
[Chat] Hide community buttonRemoves the community (OpenChat) button from the top of the Chats tab header.
[Chat] Hide tips under messagesHides the "CHECK" tips under some messages, such as a received video.
[Chat] Keep chats unreadWhen you open a chat, LINE does not mark it read or send a read receipt. "Mark as read" still works.
[Chat] Keep unsent messagesKeeps messages that others unsend in 1:1 and group chats, with a notice below each one. OpenChat is not covered.
[Fix] Restore chat backup sign-in via MicroG-REMakes Google Drive chat backup and restore work on a re-signed build, through MicroG-RE. Root Mount does not need it.
[Fix] Restore location maps via MicroG-REShows maps again on a re-signed build, with OpenFreeMap tiles. It needs MicroG-RE 7.0.0 or later. Root Mount does not need it.
[Fix] Restore push notificationsWhen LINE is fully closed, push notifications work again on a re-signed build. A Root Mount install does not need this patch.
[General] Andrew's Patch SettingAdds "Andrew's Patch Setting" to LINE Settings, below "Profile". There you can turn some patches on or off without patching again, and see the credits and licenses.
[General] Disable VOOMVOOM deep links, shares, and notifications do nothing. If you open the standalone VOOM feed, it closes. Messaging and the other tabs do not change.
[General] Hide Agent i buttonsRemoves the Agent i button from the Home header and from the search bar.
[General] Hide new item badgesHides the green dots and N badges that mark new items, on header buttons, tabs, menus, lists and settings rows. Unread message counts do not change.
[General] Open links in external browserOpens web links in your default browser instead of LINE's in-app browser. LIFF mini-apps and LINE links stay in LINE.
[General] Redirect LINE PayOpens LINE Pay in the standalone LINE Pay app, so the integrity check that fails on a re-signed build never runs.
[General] Trust user-installed CAsMakes LINE trust certificate authorities you install, so your own HTTPS proxy can read LIFF and mini-app web traffic. Bank and LINE Pay stay pinned. For debugging. Off by default.
[Home] Hide Home content feedRemoves the content feed below the friends list on the Home tab: LINE NEWS, official account posts and rankings.
[Home] Hide Home modulesHides the recommended content, hot-topics and ad modules on the Home tab.
[Premium] Disable LINE PremiumHides all LINE Premium upsells, badges and pages. It unlocks nothing, because the server enforces Premium.
[Premium] Hide premium unsend upsellsRemoves the Premium unsend upsells that "Disable LINE Premium" leaves. Ordinary unsend still works.
[Tab] Hide LINE TODAY tabRemoves the LINE TODAY (News) tab from the main bottom navigation, in both the news-tab and news-row layouts.
[Tab] Hide Shopping tabRemoves the Shopping tab from the main bottom navigation. This includes the Japan variant (Shopping, ショッピング) and the Taiwan variant (Discover, 逛逛).
[Tab] Hide VOOM tabRemoves the VOOM (formerly Timeline) tab from the main bottom navigation.
[Tab] Hide Wallet tabRemoves the Wallet (LINE Pay) tab from the main bottom navigation, in both the normal and mini-tab layouts.

How to use these patches

Click here to add these patches to Morphe: https://morphe.software/add-source?github=andrewliang25/morphe-patches

Or add this repository URL as a patch source in Morphe: https://github.com/andrewliang25/morphe-patches

Change LINE patches in the app

With the "[General] Andrew's Patch Setting" patch, LINE Settings has an Andrew's Patch Setting row below Profile. There you can turn these patches on or off without patching again:

  • Keep chats unread, and keep unsent messages
  • Open links in external browser, and disable VOOM
  • Hide the LINE TODAY, Shopping, VOOM and Wallet tabs. A tab change shows after LINE restarts.

A patch that you did not include in the build has no switch. The row also shows the author and the license.

🛠️ Building

To build Andrew's Patches, obey the instructions in the Morphe documentation.

⚠️ Known limitations

LINE: Google account sign-in fails (re-signed builds)

What: On a patched LINE build, you cannot sign in with a Google account or link one.

Why: Google accepts an account only for an OAuth client that is registered under LINE's package name and its original signing certificate. A re-signed build changes that certificate, so no client matches. LINE asks Android's Credential Manager for the account, so the system picks Google Play Services. No patch can change this (details).

Workaround: install with Root Mount, which keeps LINE's original signature. Do not use the Standard install.

This limitation does not affect chat-history backup. The [Fix] Restore chat backup sign-in via MicroG-RE patch restores it through MicroG-RE.

LINE: maps show an empty grid (re-signed builds)

What: On a patched LINE build, the maps on the location screens are empty. This covers the location picker, the location messages in a chat, and the location posts. You can still send your current location, and only the map is blank.

Why: Google draws a map only for an API key that is registered under LINE's package name and its original signing certificate. A re-signed build changes that certificate. Google Play Services reports the certificate from its own process, so no patch can correct it (details).

Workaround: enable the [Fix] Restore location maps via MicroG-RE patch. It draws the maps through MicroG-RE 7.0.0 or later instead, which is the first version with a map renderer. Google Play Services must still be installed. The tiles then come from OpenFreeMap, so they do not look like Google Maps. There is no satellite view. A Root Mount install keeps LINE's original signature and needs neither the patch nor MicroG-RE.

Facebook: other Meta apps do not install (re-signed builds)

What: After you install a patched Facebook build, an official Meta app that shares the same permission names does not install. Facebook Lite is the reported example. The installer stops with INSTALL_FAILED_DUPLICATE_PERMISSION.

Why: Meta apps declare the same family permissions, for example com.facebook.permission.prod.FB_APP_COMMUNICATION. Android permits only one owner of a permission name, unless the two apps have the same signing certificate. A patched build is re-signed, so its certificate is different from the certificate of Meta. The order of the installs does not change this. The same conflict occurs in patched-apps.

Workaround: install the patched Facebook with Root Mount, which keeps the original signature. Or keep only one app of the two.

🙏 Special thanks

⭐ Star history

Star History Chart

📜 License

Andrew's Patches are licensed under the GNU General Public License v3.0

android
facebook
line
morphe
morphe-patches