yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 3 Accessories] chacho_2me:
i just ordered on their website . we will see when i would receive it
[ASUS ROG Phone 3 Accessories] gnabtib8:
Devilcase has reopened their us site and are offering big discounts. Now I can highly recommend this case to everyone as the price has been cut in half.

Grand Opening Promo Code: USTEN and Free Shipping over $25 orders

DEVILCASE Phone Cases and Accessories

Providing Protection, with Style. We strive to be different, to be ahead in the game of innovation, evolution, and creativity. We are different, but what's wrong with being different? We use different materials, we provide cases for multiple phone models, and we have way too many designs to...

devilcase.us
[Android Themes] Raiz:
How to modify an apk

​

Intro:

I’ve done several threads about how to theme and other similar topics but the info is sparse, so this ultimate guide/index will seat proudly in the theme section of XDA and will be updated when new things come, and as I learn more. This isn’t a beginners guide, I’m here trying to be as complete as possible, with links, references, ...

This initial version of the thread isn't here to stay, if you could contribute to this thread, it would mean the world to me, and would clearly help the community (of course I'll mention you for your contribution :) )

And keep at mind that I’m just an enthusiast, nothing more, and that this thread has been made only by me, so it's far from perfect. If I made any mistakes or if you want to add something please let me know.

Legal aspect:

Using this knowledge to infringe copyright is not only illegal, it’s detrimental to the community. The only legal case, and the only usage of this info condoned, is using it to theme OPEN SOURCE apps (because most of the time, commercial apps forbid reverse engineering in their policies). So don’t worry, theming AOSP is legal. You can always ask the permission of the devs for an authorization to customize their apps, make sure to ask before modding, and distributing the result.

Now I’m not a lawyer, but you can learn more on the legal aspect of reverse engineering on this Stackexchange post.

Summary of this thread:

I-Requirements

II-Download APKs

III-Decompile

IV-What and how to modify

V-Recompile

VI-Sign and Zipalign

VII-Installing the apk

VIII-Other ways to theme your device

IX-Theming related topics

X-Not covered topics

XI-Mods Center

XII-Reserved

​
[Android Themes] Raiz:
I-Requirements

​

A)Java:

It's essential, almost mandatory, the Java Development Kit (JDK) and Java Runtime Environment (JRE) must be installed to use java based tools.

How to install the JDK and JRE

(download and follow the instructions, it’s pretty simple)​

Then, set the path to "java home", you need to do that in order to use java properly within your terminal:

Here’s a tutorial I found​

To check if everything is okay, open a terminal anywhere and enter java --version. If it returns the version of the JDK and JRE you’re good.

B)Android SDK:

Unfortunately we aren’t able to download the Android SDK alone anymore, I used to consider it as a requirement, but now I don’t because some people don’t have the space to install the whole Android Studio IDE just to use the Android SDK.

C)Others:

I suppose that list is going to expand, those two above are the main ones, but if there's something else you need, I'll make sure to put it here ;)
[Android Themes] Raiz:
II-Download APKs

​

This sounds stupid to take one whole post for that, but sometimes it’s a drag, so here are some ways you can grab the apk you want to modify.

A)APKs form your phone:

​

Every app you installed from the playstore is under /data/app. With a root explorer like the excellent MiXplorer, you can browse to it and see the icons representing the apps on your phone.

There is an apk called base.apk, that’s the one you want.

Sometime there might be parts called split_....apk along with base.apk, for the excraction of those you’ll need tools like the amazing app called SAI (Split APK Installer), it’s a graphical interface so I’ll assume you’ll figure out how to use it yourself

SAI on the Play Store​

B)From internet:

​

My two trusted sources I use: APK Mirror, XDA Labs (gone for now)

I also use this chrome module, it has simplified my life sooooo much, it’s provided by the APKmirror team: Toolbox for Google Play Store™

C)Your Sources:

​

If I missed any good and trusted website, let me know

;)
[Android Themes] Raiz:
VIII-Other ways to theme your device

​

Making the whole apk is often long, and doesn’t leave much control over the theme to the user, alternative ways of theming let users control how they want the theme to be applied. Those 2 ways won’t be covered by me (as I don’t know enough about them yet), that's why, for this part, every input in welcomed

A)Magisk Modules:

​

This is now a pretty common and convenient way to distribute APKs and mods, so I had to cover it. Here’s a link to an official developer guide, it covers a good part of it, if you have an input, it is welcome!

https://topjohnwu.github.io/Magisk/guides.html​

B)Substratum Themes:

​

I don’t even need to tell you what is substratum, as it is pretty famous (along with Magisk), but let’s say you’re totally new.

Substratum is a theme engine that allows you to control what element of your system you want to be themed, and apply themes with the possibility of disabling theme at some point in time. So how to make a substratum theme ?

Links:

Video from the XDA chanel on YT

Another one from XDA on YT

Theme template form the official Substratum Github
[Android Themes] Raiz:
IX-Theming related topics

​

All of the things I couldn't fit in the previous sections are here, make an input, I'll make sure to add it if it's relevant ;)

A)Design Basics:

​

Now I don’t have especially fine taste in terms of designing, but I’m trying to learn!

Here are some links:

The Android Design Resources Forum in XDA

XDA Article about icon design

Material.io

Matrial.io YT channel

B)Boot Animations:

​

Here are some helpful threads and links:

[TUTORIAL]How to make your own boot animations (with sound if you want) by @despotovski01

[GUIDE] How To Make Bootanimation by @jackeagle

[GUIDE][TUT]make/Port any bootanimation|||USING VIDEO/FRAMES by @deathviper

C)Icon Packs:

​

[GUIDE]How to create icon packs for Go/Nova/Apex/Holo/ADW/LauncherPro/XperiaHome by @iamareebjamal

D)Port OEM Apps:

​

[GUIDE/TIPS] How to Port OEM Apps / Vendor Apps to Your Current ROM by @Rizal Lovins , this one is a wealth of information! really good and unique

D)Build.prop:

​

[Tweaks][Guide]Build.prop Tweaks by @bravonova
[Android Themes] Raiz:
X-Not covered topics

​

Why don’t you talk about … ? That’s theming tho! And what about … and …? What is this thread!

I understand, these are legit claims, but I can’t cover everything. That’s where YOU come in play, you certainly know things that I don’t, so please, if you have any knowledge about something I didn’t mentioned above, please let me know!

I’m trying to make this thread as complete as possible, so I’d be very grateful if you could share a little about your knowledge ;).

Thank a bunch!

I know I already said that 10000000 times, but really, it would be awesome to have inputs!
[Android Themes] Raiz:
XI-Mods and Wallpapers:

​

Let me take a tangent from the original purpose of this thread. This was supposed to be all about guides, but I thought about that twice and I think that's a good idea.

Basically, this here will list some of the amazing mods and themes around xda.

The goal here is to crack open those and see how they work, this would represent an immense work that I'm not able to take on right now, so I may leave links here, and you'll do the jobs of understanding how they work. Maybe at some point I'll write some here (with the credits of the OP of course!), but certainly not now.

Links:

Offline Google LLC App Wallpapers by @ultim@weapon
[Android Themes] Raiz:
XII-Changelog:

For each update I'll bump this thread, so that you can enjoy latest links​

04-01-2021 Update:

Happy new year! I went through my long list of watched threads, and found the gems I kept selfishly, they're yours now !

Added:

[GUIDE] Create your own Flashable ZIP with custom updater-script and addon.d script

[UNIVERSAL][LOGCAT]How to get & read a logcat/ Troubleshoot your own issues!

[GUIDE/TIPS] How to Port OEM Apps / Vendor Apps to Your Current ROM

[Tweaks][Guide]Build.prop Tweaks

[GUIDE]How to create icon packs for Go/Nova/Apex/Holo/ADW/LauncherPro/XperiaHome

[TUTORIAL] The updater-script completely explained

[TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie

[Reference] Interactive Phone Modification [GUIDE]

[Tutorial][APP] PinP Shortcuts | How to Implement Picture in Picture Mode [API 26+]

Offline Google LLC App Wallpapers

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM
[Android Themes] IamTheBRAVE:
Thanks for this, useful for sure. This is mostly on Windows. There's a way to do this directly on the phone ( most of it anyway).

I use an app called: Apkeditorpro.

I use version 1.9.10 cause i don't like the ui in the newer version.

In it you can :

-edit xmls directly.

-decode the smali and edit them, and view the java code and edit it with no extra tools.

-extract or replace files

-and rebuild the apk when finished. It'll show you a list of compile errors if any when building to review. If the build works it signs it and offers to remove old app and reinstall the new apk.

I found it very useful in editing theme overlays or add fonts in fonts tab in settings.

I am like you an enthusiast in all things modding. Still learning smali/ java editing. Hope we can learn together and from each other👍

Merry Christmas 🎄
[Android Themes] Braain:
Hi is it also valid for Xiaomi apk?
[Android Themes] Raiz:
Yep, it's valid for almost anything (any apk at least), feel free to ask here if you encounter problem, I'll do my best to help
[Android Themes] Braain:
Hi I started working with Riru-Enhanced mode for Storage Isolation and some mistakes I made now it's oky now I want to try to modify the handset apk because Xiaomi Redmi 7 is andro system android carefully 🧐
[Android Themes] Raiz:
The First Update of this thread is out!, check out the post I quoted to see the list of threads I added, I also integrated them to the main guide (with proper credits), but I think making a list for each update more convenient for you readers.

I recommend to bookmark those thread or to watch them, because some are really amazing!
[Android Themes] Braain:
[QUOTE = "Raiz, post: 84227321, membro: 8020437"]

Il primo aggiornamento di questo thread è uscito !, controlla il post che ho citato per vedere l'elenco dei thread che ho aggiunto, li ho anche integrati nella guida principale (con i crediti appropriati), ma penso che fare un elenco per ogni aggiornamento più conveniente per voi lettori.

Consiglio di aggiungere quei thread ai preferiti o di guardarli, perché alcuni sono davvero fantastici!

[/CITAZIONE]
[Android Themes] IamTheBRAVE:
Great gems, indeed. Let me add this to the collection:

[Samsung only]How to modify stock font app (SamsungOne.apk, SamsungSans.apk, or Fondation.apk)

This post describes it using ApkEditorPro directly on the phone. It could work on other devices if you know what your stock font app is. It's a simple drag and drop your custom files in the right place.
[Android Themes] Raiz:
First input !!! thanks in bunches!

(actually I just realised I forgot you suggested ApkEditorPro, I'll add it too later I think)

Edit:I've looked to the ApkEditorPro website and unfortunately I can't link it here, because it promotes warez making, which is forbidden in xda. Thanks for you input tho! If you got anything else I'm 100% open to it

Ping so you notice my edit: @IamTheBRAVE

Edit #2: the links were removed, but again if you have knowledge or favourite threads regarding anything else let me know!
[Android Themes] IamTheBRAVE:
I understand. Even without links, it's still a good mod, can also be done with apktool on pc.
[Android Themes] Simon1511:
Hey,

I'm currently trying to modify some smali and xml values in SecSettings.apk from Samsung OneUI 2.5.

So far I've tried to decompile with

apktool d SecSettings.apk

make my changes and recompile using

apktool b -c SecSettings

but this will crash something and prevent the system from booting. I've also tried it without making any changes (i.e. decompile, recompile and install it) and without the -c option which both leds to the same problem.

Using zipalign and apksigner doesn't work either.

Any ideas, or am I simply doing something wrong?

Very good guide btw!
[Android Themes] Raiz:
Hi,

Now that I'm in vacation I will update the OP with my smali knowledge. what were the modifications? It may be the problem
[Android Themes] Simon1511:
The only modifications I made were switching 2 values in both an XML and a smali file (so no "real" change, just changing the order of stuff).

But as said, I've also tried to recompile and reinstall it without doing any modifications and it still crashes.

I'm also pretty sure it's an issue with the app not being signed correctly (it's a system apk btw).
[Android Themes] Raiz:
Oh ok, if I'm not mistaken secsettings is from Samsung, did you "if-ed" the framework-res.apk from your phone in apktool? This may solve the issue.

Steps:

Grab your framework-res.apk fiel as well as any other apk located in /system/framework

put them in your apktool folder and enter this command:

apktool if framework-res.apk
apktool if [otherapkinthefolder].apk

This should set the proper environment to decompile/recompile.

And when you recompile, keep the -c, because the system WILL crash if there is no/another signature than the original one on a system apk.
[Android Themes] Simon1511:
Yeah already did that earlier.

Also I'm pretty sure it's not being signed correctly because apksigner tells me so.

Guess I will play around with it a bit tomorrow.
[Android Themes] Raiz:
Well the only way I know to make a system app work is by keeping the original signature. If you're able, search on how to keep original signature manually, it must be somewhere in the apktool github since the -c is gonna be ditched in the 2.6.0 version.

Before (and what does -c do) is copying the original META-INF folder back in the recompiled apk. But signature schemes have changed, and that's why the -c is being deprecated. It still works generally but I'm starting to see more and more those kind of problems where -copy--original doesn't work anymore.

TLDR: Search the way to manually keep the original signature, given that copying META INF isn't enough anymore with those new signature schemes
[Android Themes] Simon1511:
Ok, so I did the following and it works so far:

First, I disabled signature checking by editing /system/framework/services.jar and doing the necessary modifications to the smali code.

After that, I decompiled SecSettings.apk, made my changes, recompiled it and copy-pasted the files I changed (from apktool's build folder) into the original apk.

This workaround works for me and also confirms that it was only failing earlier due to its original signature being missing/broken/etc.

Anyway, I'm not sure yet whether I'm comfortable with keeping signature checking disabled.

Maybe another workaround that doesn't require signature checking to be disabled will be found in the future.

Also thanks for your help!
[Android Themes] Raiz:
Thanks for your reply, this shows that we soon gonna need an alternative to just copying/pasting the original folder...

It's going in my to do list!
[Android Themes] ivigneshwaran:
yeah
[Android Themes] cranberry_vanilla:
helpful
[Android Themes] koke13:
thankyou very much

i have samsung A105f DDU5

it gives this error when it is bootimg

(could not do normal boot. inval id ker)

can you hilp me
[Android Themes] josephpatrick:
Had you made changes to file under folder 'res'.

I was trying to make some color changes in systemui.apk but file does not load no matter what all you do.

Also, did you zipalign and sign the file after replacing the contents of build into original apk

Also, please can you share what all you patched in services.jar

Edit 1: this method worked for me too, yipee, finally
[Android Themes] Raiz:
I think I'll update my guide regarding the signature thing. Before, it used to be easy to keep the original signature, but now there are new signature schemes that are more complex to keep after modifying stuff. (That's why the feature -copy--original is set for deprecation in apktool 2.6.0).

So thanks for the ping, I'm definitely gonna add the "disable signature check" section, and strike though the -copy--original usage.

Edit: I'll write a tutorial on how to manually patch you services.jar file. Do NOT use the famous tool which goes by the LP initials. Because I won't be able to help you if it fails, and because we're not allowed to talk about it in XDA (it's classed as "Warez"). Plus there are so many trojan version of this tool, it's just preferable to keep away from it.
[Android Themes] josephpatrick:
@

@Simon511, your method (build files to original apk) works for Android 10 but doesn't work for Android11, also tried copy original and zip align but systemui does not load :(

Any way around for Android 11
[Android Themes] josephpatrick:
You need to use batchapktool with few specific settings
[Android Themes] SXUsr:
When I used to decompile to theme I always copied the manifest and resources.arsc. Been a while since I themed that way though which is why I've never updated - [Guide:] The Definitive APK Modding and Theming Thread...
[Android Themes] Raiz:
I've checked out your guide, it's really good !

This way of signing used to be enough (that's what --copy-orginal did back in the days in apktool), but the theming field has changed a lot (and it became a lot trickier, signing and stuff...).

Copying resources.arsc is useful when modifying smali files, or assets. But a part of the layouts and actual UI of an app is written in the xml files that the "res" folder contains.

That's why in this guide I wanted to show how to deal with them. I'll definitely add your guide to the list, it's worth checking out!

Sorry for that laaaaaaaaaaate reply, I think copying original isn't sufficient anymore with those android versions.

It's been a long time since I modded the SystemUI, but try to sign it with and without copying original, and try to disable signature verification for your device. Maybe this would do the trick (tho I didn't tried it or anything).
[Android Themes] SXUsr:
I've just used Substratum for the last few years, much less hassle, plus still on 9 as I love XZ1C too much lol so haven't kept up to date.
[Android Themes] ravian520:
REDMI NOTE 10 JE .. firmware required
[Android Themes] DarJack:
https://reindex-ot.github.io/ check this site, it saved my redmi note 10 je
[Android Themes] boylklk9515:
How to pre-adding links in to Ott Navigator and other IPTV apps?
[Android Themes] djnfjgsod:
can I remove the built-in web browser inside a social media app using your guidelines?
[Android Themes] Raiz:
This guide is a bit old now, a lot of things changed, so I'm not 100% sure, it depends on your situation.

If you need to press a button to access the web browser, then with this method you could make the button disappear. But if it is integrated deeper than that (for exemple, links can open that browser, and you can't just remove every link from the app), you would need to "break" the web browser to fully disable it. And this code usually resides in the JS/Smali part of the app.

I did a bit of research on how to systematically decipher and modify smali, but life got the best of me and I never got the chance to write down what I knew at that time. So I'm afraid that's as far as I can help you, hope this helped you a bit tho.
[Android Themes] Oswald Boelcke:
I think he already learnt that there's no built-in browser but it's WebView:

How to remove the built-in web browser in an APK file?

Hello, do you know how to remove the built-in web browser in an APK file? This APK is not a standalone web browser app, but a social media app. I am looking at the detail elements inside the APK file but don't know how to find and remove the...

xdaforums.com
[OnePlus 5 Questions & Answers] DastanShaikh:
hello,

Actually i am looking for TWS Earphones that should have best call quality even on outdoors and there should not have noticeable audio delay during gaming specially pubg..on OnePlus 5 .

I tried airpods 2 that have good call quality but there is delay about 1 second on Android.

Can someone give suggestions how is airpods pro in gaming on Android and call quality..

and suggest me any good TWS Earphones with these two things considered.

Thanks
[Android Q&A, Help & Troubleshooting] mofaker33:
Good morning everybody

First of all I did a Backup used modfiy TWRP downloaded from here

It was working with no problem but I flashed the TWRP img mistakenly to boot_b which is the active slot

I almost tried everything to get it back , like flash dm vertiy , Uninstall Magisk , Flash empty metavar , Su SR3 etc.

It boots to bootloader everytime after restore the backup with TWRP , I tried to flash it with fastboot but it does not take any system or vendor ext4 img

If there is any thing I could do to get it back I will really appreciate you guys
[Samsung Galaxy Tab S3 ROMs, Kernels, Recoveries, &] dorlow:
I have a Samsung Tab 3 SM-T820. I noticed a few weeks ago it was still running android 7. Santa didn't bring me a new tablet.... So, I decided to tinker with it and see if I could root it and get it up to a newer Android version. I followed some instructions and got TWRP on it and had it running Android 9. That was working all fine and dandy, but I figured I want to see if I can get Android 10 on it. I downloaded lineage-17.1-20200211-UNOFFICIAL-gts3lwifi.zip. I also downloaded magisk-v20.4.zip and open gapps.

I tried to flash all 3 and the tablet just boots where it has the green frown on it with the circle moving left. I let it sit at that screen earlier for over an hour. Finally rebooted it. Still won't boot up. So, then I went back into TWRP and formatted it and now I'm just trying to flash only the Linage zip file. Figure I'll get that working first, then I'll flash root and gapps. But, it's doing the same thing. Just the green upside down smile with the circle moving left constantly. Any idea what I'm doing wrong?
[Samsung Galaxy Tab S3 ROMs, Kernels, Recoveries, &] XolYnrac:
Try to use the correct version of TWRP

Use twrp from https://xdaforums.com/ga...recovery-twrp-3-1-0-1-samsung-galaxy-t3581359

or https://drive.google.com/file/d/1KyX6xZ8WrcNyHo73-lHhU2dZjX0KFJc1/view?usp=sharing

and Look at https://xdaforums.com/t/rom-sm-t820...1-android-10-q-20200211.3981535/post-83709607
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] P1Tater:
New Samsung Omnia ROM

http://rapidshare.com/files/140262767/Omnia_i908_1.8.5.0.rar

Just thought I'd post for all of the chef's in case they didnt have it already. I havent had a chance to dump this one yet, but I did get a chance to dump a previous one and create some packages.

Packages from an older Omnia ROM

http://rapidshare.com/files/140022971/Omnia_Dump.zip

Between work and family, I dont have much time right now so I apologize for not being able to do more to help out.:(
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] AllTheWay:
Wow another valuable contribution to the community.

Thank you for sharing ;)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Knumb:
Family always comes first......great job on the posting of this rom.....Let the cooking begin!!!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] NotATreoFan:
I thought we were your family. :(
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Laurentius26:
Woeieee... :):):) new toys,

Thank you P1Tater! :D
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Laurentius26:
Don't apologize man, you are doing great work for the community!

Cheers,

Leo :):):)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] AllTheWay:
P1Tater's real family

+
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] jug6ernaut:
i seriously "lol"