Created modification help - Xiaomi Redmi 4X Questions & Answers

Good afternoon! I had this question:
There are two installed audio modifiers (Dirac, Sony Walkman) - how do I properly archive it so that someone else can flash it and they work?
I will say in another way - how to determine which files need to be selected to create a modification?

Related

NB File Extraction

I recently upgraded my XPERIA X1 to Windows Mobile 6.5 using the W4X ROM however I'm disappointed the a majority of the ringtones have been removed.
I'm curious whether they can be extracted from a NBH image.
Now, firstly, I have no idea how to cook a ROM but I imagine the files and folders are contained within the image file somewhere.
I have a backup of the previous official R2AA rom that came pre-installed with the device however I have no idea on how to extract the NBH file.
I found an application that splits the NBH into several NB files however I have no idea how to progress further.
I imagine the 'Windows.nb' image contains the contents of the Windows folder on the device where the ringtones would be.
So, could someone point me in the right direction to find an application that will allow me to extract the folders contained within the NB file so I can access the missing ringtones and reinstall them?
Cheers,
Hyped
hypedupmonkey said:
I imagine the 'Windows.nb' image contains the contents of the Windows folder on the device where the ringtones would be.
So, could someone point me in the right direction to find an application that will allow me to extract the folders contained within the NB file so I can access the missing ringtones and reinstall them?
Cheers,
Hyped
Click to expand...
Click to collapse
if you download jerpelea's kitchen (it's in one of the stickies) and put the rom in the source folder then run the command it extracts everything from it, and i suppose you could probably browse through the files that way, but i'm nt sure, just a suggestion!
or you could probably search for the ringtones on XDA, i know there are some from the rhodium somewhere!
Search this forum and you will find plenty of ringtone packages to download (removed from ROM but as addon shared by the cooks)
Thought gtrab shared it also in his cooking tutorial....

[Q] Help with XDA_UC xml creation

Ok, so, basically, I want to move shortcuts created from the XDA_UC install to different folder, then copy one of the shortcuts that I just moved to Startup.
I tried to read the example scripts, but didn't quite understand them.
Could someone give me a short example of how I could do this?
Thanks a lot
Smith

Modify SGS3 Photowall Livewall paper to add own pictures

Hi Devs,
I was wondering if there is a way to modify the photowall live wallpaper and add your own pictures, I tried to look for a guide & modified app, however no luck.
Found 1 modified apk with batman pics but that didnt work.
Please let me know if anyone has been able to modify or is working on this.
Regards,
[email protected]
If at beginning of your title you put " (REQUEST) "then you might get better and faster answer.
Sent from my SGH-I897 using xda premium
Steps To Modify SGS3 Photowall Live Wallpaper
Hi All,
I had tried multiple roms and when used the Photowall Live Wallpaper, I could not point it to the photo gallery to use my own pics. The gallery would never open and I had to do with the default pics which came with the SGS3. (Not sure if anyone has faced this issue).
After playing around with the apk files I did find a way to use my own pics in the PhotoWall Live Wallpaper. I hope you would like this.
A: Uploading your pictures in the Photowall.apk file.
1. Select a maximum of 8 pictures that you wish to use in the Photowall and move them to a folder on your desktop.
2. Rename the 8 pictures as follows: g1p1.jpg / g1p2.jpg / g1p3.jpg / g1p4.jpg / g1p5.jpg / g1p6.jpg / g2p1.jpg / g2p2.jpg
3. Extract the Photowall.apk from ICS ROM onto a folder on your desktop. (I used RemICS v1.3, haven’t tried this is on any other ROM).
4. Open the apk file using winrar. (Do not extract, just open)…. Navigate to the PhotoWall.apk\res\raw folder.
5. You should be able to see the files as shown in the screenshot 1.jpg
6. Click on “Add” and navigate to the folder where you have stored the pictures (remember to rename them as mentioned in step 2).
7. Select the files and click “OK”. This will replace the original files in the Photowall.apk.
8. Once this is done, exit/close the apk file opened in winrar.
You can try installing this file directly by copying it to your phone, however that didn’t work on my phone.
B: Uploading your customized Photowall.apk file in your ROM. (Tested on RemICS v1.3).
1.Open the Rom that you wish to flash (I used RemICS UX v1.3) using winrar (do not extract)
2.Navigate to \data\app folder.
3.Click on “Add” and navigate to the folder where you have saved your customized Photowall.apk. (Make sure that the name is “Photowall.apk”).
4.This will replace the original Photowall.apk with your customized file.
5.Exit and save the zip file.
6.Use the new edited Rom and copy it to the root of your “Internal SD” card.
7.Reboot the phone to “Recovery” and flash the new Rom. (I did not lose my data & settings as I did not wipe cache partition or Data/Factory, however this may or may not work for you. To be on a safer side please backup your data and applications. I will not be responsible for any data loss or bricked devices while trying this procedure. Try at your own risk.).
You can watch the video on the link below (sorry for the poor quality)
http://www.youtube.com/watch?v=Yd2VCzvphu8&feature=youtu.be
Special thanks toTeam RemICS for the beautiful Rom.
If you liked my work, please use the thanks meter.
- Disclaimer -
This product/steps is/are free to use at your own risk. I take no
responsibility for any conflict, fault, data loss or damage caused by this procedure.
No warranties, implied or otherwise, are given if you agree to use this product.
No problems were found while testing this on my Samsung Captivate device. your experience may vary.
maqbulsayed said:
B: Uploading your customized Photowall.apk file in your ROM. (Tested on RemICS v1.3).
1.Open the Rom that you wish to flash (I used RemICS UX v1.3) using winrar (do not extract)
2.Navigate to \data\app folder.
3.Click on “Add” and navigate to the folder where you have saved your customized Photowall.apk. (Make sure that the name is “Photowall.apk”).
4.This will replace the original Photowall.apk with your customized file.
5.Exit and save the zip file.
6.Use the new edited Rom and copy it to the root of your “Internal SD” card.
7.Reboot the phone to “Recovery” and flash the new Rom.
Click to expand...
Click to collapse
I think you over complicated the install process by a bit...
Why not just use a file explorer with root permissions and place the new Photowall.apk back to /system/app where it actually belongs, reboot the phone and be done with it? (/system/app is where live wallpapers that come with the phone are located by default, not /data/app)
As you can see here on my GS3, two of the several live wallpapers (phase beam and photo wall) are in /system/app
And these are the proper permissions for the apk
I tried that, but that wont work..... that the reason i mentioned
" You can try installing this file directly by copying it to your phone, however that didn’t work on my phone. "
Unfortunately wht u menitioned didnt work for me...
correct me if I am wrong... did u mention SG3... for SG3, you dont need to modify the photowall.apk, if you go to the wallpaper settings you can select pics from your gallery..
maqbulsayed said:
I tried that, but that wont work..... that the reason i mentioned
" You can try installing this file directly by copying it to your phone, however that didn’t work on my phone. "
Unfortunately wht u menitioned didnt work for me...
correct me if I am wrong... did u mention SG3... for SG3, you dont need to modify the photowall.apk, if you go to the wallpaper settings you can select pics from your gallery..
Click to expand...
Click to collapse
Yes, I understand that on the SG3 you don't need to do this, but on a Captivate, I don't see why you wouldn't be able to place it in /system/app and still have it work.

Need help making my own zipable file to use in CWM

Hey everybody!
I'm here to ask you guys a question : i'm trying to move some files into system/app but its currently not allowing me to do it.
I know when i flash the files through cwm it will work but i don't know how to do it.
I'll link my pre-flash selfmade zip, so you guys could look and fix the problem.
So if you could help me with just some info or fixing it i will be very happy
(btw its a file to have the photo sphere option in the camera in cm 10)
https://docs.google.com/open?id=0B8ufBbu9agEFc3JNZkxsZGV6THM
Thx!

[MOD][TEMPLATE] Magisk Module Template with EvilTheme Patcher

Hello everyone.
This is a little mod to the Magisk Module Template that allows you to patch APK files on-the-fly and have them created as a Magisk Module.
For example, you could have a modified camera module for your ROM, where this patcher would replace the classes.dex file with mods, then pack that as a Magisk Module, using the original file found in the /system (ROM)
For some of the devs that have been around for a while, you would be aware of the old VRTheme modding system, which would allow you to patch files on-the-fly. EvilTheme is basically a newer version of that, so combined with Magisk can be very useful
Here's what this module CAN do:
Replace resources.arsc, classes.dex, AndroidManifest.xml, and META-INF folder
Replace compiled res folders / files
Here's what this module CAN'T do:
Replace files in res/values or smali folders
How to use EVilTheme
(Example using /system/priv-app/SecSettings2.apk)
In the eviltheme folder, go to system and make a folder called priv-app. Inside it, make another folder called SecSettings2.apk
Now make folders as necessary, according to the location of the files you want to theme. For example, battery_icon_50.png is located in res/drawable-hdpi, so make a folder named res inside SecSettings2.apk.
Inside it, create a folder named drawable-hdpi, then paste your new battery_icon_50.png inside.
Repeat step 2 until you've placed your theme files in their appropriate locations.
When you're done, go back to the root folder of the theme (the one that contains eviltheme, engine, etc.) and put all the objects in a ZIP file.
You should use Deflate compression with compression level on Normal, but if your theme is huge, you can safely try compressing using Deflate and the level set to Ultra or whatever high level is available.
Test your mod.
For information regarding the Magisk Module subbmision etc, please read the information HERE
Link to Github Repository: HERE
Enjoy
Nice! Sounds interesting!
I've been using vrtheme for years and even contacted spanna aabout adapting the script to achieve modding of live system files this eliminating the need for recovery zips and even Aroma!
So I have a question about the use and locations of the asset files.
Would it be possible to change, at least the location from which the files get pulled from and placed into the execute folders?
So basically could it be set to pull the image/resource, whatever file from either a data folder or my preference, sd storage?
I've used an asset folder built into my system for similar commands, but with enough options and large files the system partition can get extremely crowded.
Does my question make sense?
Basically i would like to eliminate a big section of my packed 2gb Aroma zip. About 700mb is all vrtheme injected compiled files.
Either way I will definitely be looking into this!
Thanks
stangdriver44 said:
Nice! Sounds interesting!
I've been using vrtheme for years and even contacted spanna aabout adapting the script to achieve modding of live system files this eliminating the need for recovery zips and even Aroma!
So I have a question about the use and locations of the asset files.
Would it be possible to change, at least the location from which the files get pulled from and placed into the execute folders?
So basically could it be set to pull the image/resource, whatever file from either a data folder or my preference, sd storage?
I've used an asset folder built into my system for similar commands, but with enough options and large files the system partition can get extremely crowded.
Does my question make sense?
Basically i would like to eliminate a big section of my packed 2gb Aroma zip. About 700mb is all vrtheme injected compiled files.
Either way I will definitely be looking into this!
Thanks
Click to expand...
Click to collapse
You could, but you would have to look at update-binary and installtheme.sh, then modify it for your needs. So instead of copying the modded files from the flashable zip, you would just have to remove the unzip function and change the path of where they are unzipped to to the location of where the files are on your data partition.
Give it a try
so with this I can technically change the rotation of an app without ever messing with the apk? I've tried editing the AndroidManifest.xml, but after editing I've never been successful putting it back into the apk
dimm0k said:
so with this I can technically change the rotation of an app without ever messing with the apk? I've tried editing the AndroidManifest.xml, but after editing I've never been successful putting it back into the apk
Click to expand...
Click to collapse
If you plan to change androidmanifest.xml you will have to include the newly created META-INF folder for it too.
Could this be used to convert substratum themes to work systemlessly with magisk?
Sent from my Pixel using XDA Labs
qwer777 said:
Could this be used to convert substratum themes to work systemlessly with magisk?
Sent from my Pixel using XDA Labs
Click to expand...
Click to collapse
If you're talking about pre-packaged APK theme files, no it probably won't work, as they still need to be installed.
This is more for files that are already installed that require patching.
Nice work
Got one question - is it possible to modify classes.dex if .apk file is not in system folder? I mean for example, if system app gets updated, it creates new folder in data/app/ with the name of the package and with either -1, -2 or whetever number at the end (ex. data/app/com.google.android.youtube-2).
Do I need to just integrate update into system and then modify it? Or just create new folder in eviltheme one with data/... instead of system/...?
Thanks
I tried to modify system/framework/framework-res.apk/res/drawable-xxhdpi-v4/default_wallpaper.jpg, but unfortunately it did not work. Neither on InFocus M808/mod stock 6.0(mt6753) nor on SamsungS5Neo/mod stock 6.0.1(exynos7580)
Both tried with official Magisk 12.0 and newest beta.
nevermind i didn't read all the way
drei.liter.milch said:
I tried to modify system/framework/framework-res.apk/res/drawable-xxhdpi-v4/default_wallpaper.jpg, but unfortunately it did not work. Neither on InFocus M808/mod stock 6.0(mt6753) nor on SamsungS5Neo/mod stock 6.0.1(exynos7580)
Both tried with official Magisk 12.0 and newest beta.
Click to expand...
Click to collapse
Started another try to replace some icons. did not work. am I missing something or is this template just faulty?
anybody who got this working?
drei.liter.milch said:
Started another try to replace some icons. did not work. am I missing something or is this template just crap?
anybody who got this working?
Click to expand...
Click to collapse
That was a bit rude.
Edit: better to give some details on what you've actually done, maybe even upload your files. Easier to find any faults on your side or possible bugs that way.
I want to add the clock onto my lockscreen statusbar. Would this help me achieve that?
Didgeridoohan said:
That was a bit rude.
Edit: better to give some details on what you've actually done, maybe even upload your files. Easier to find any faults on your side or possible bugs that way.
Click to expand...
Click to collapse
yes ok, the word "crap" maybe was a little bit over the top. i'm sorry for that. I just would like to know, if anybody can report this module/template as working. If so, I would go on looking for the error on my side.
I've actually followed exactly the guide given in OP. (It seems not that tricky to me)
-placed folder tree system/framework/framework-res.apk/res/drawable-xxhdpi-v4/ in the eviltheme-folder and put my default_wallpaper.jpg file in drawable-xxhdpi-v4 folder
-edited module.prop und config.sh
-zipped the whole template folder
-installed via magisk manager
-rebooted
tried with to different phones, beta and official magisk (see my first post)
I'll reproduce my logs and attach them later.
anyway thanks for the hint
drei.liter.milch said:
yes ok, the word "crap" maybe was a little bit over the top. i'm sorry for that. I just would like to know, if anybody can report this module/template as working. If so, I would go on looking for the error on my side.
I've actually followed exactly the guide given in OP. (It seems not that tricky to me)
-placed folder tree system/framework/framework-res.apk/res/drawable-xxhdpi-v4/ in the eviltheme-folder and put my default_wallpaper.jpg file in drawable-xxhdpi-v4 folder
-edited module.prop und config.sh
-zipped the whole template folder
-installed via magisk manager
-rebooted
tried with to different phones, beta and official magisk (see my first post)
I'll reproduce my logs and attach them later.
anyway thanks for the hint
Click to expand...
Click to collapse
Flash Via Recovery, it may work. didnt work for me when i installed from magisk manager.
btw i have a question, is there any way to remove a file from the apk?
shekhawat2 said:
Flash Via Recovery, it may work. didnt work for me when i installed from magisk manager.
btw i have a question, is there any way to remove a file from the apk?
Click to expand...
Click to collapse
thx, i'll try that. which magisk-version do you use? and i guess maybe you can remove a file by placing a dummy.
drei.liter.milch said:
thx, i'll try that. which magisk-version do you use? and i guess maybe you can remove a file by placing a dummy.
Click to expand...
Click to collapse
No brother, I want to delete the file, not to replace it with dummy file. Replacing with dummy file will give system ui FCs.
I saw something delete.list in the installtheme.sh, but I don't know how to use it. If anyone can help, pls help me.
BTW I am using Magisk v12.
shekhawat2 said:
No brother, I want to delete the file, not to replace it with dummy file. Replacing with dummy file will give system ui FCs.
I saw something delete.list in the installtheme.sh, but I don't know how to use it. If anyone can help, pls help me.
BTW I am using Magisk v12.
Click to expand...
Click to collapse
Ok, I see. Perhaps you find sth about it in the vrtheme-topic. Btw. flashing in recovery doesn't work either. I'm not messing around with this anymore and continue using flipster :good:
Where can we download? I want to change Viber's background to pure black so I will change the AndroidManifest. Will this theoretically work?
I was wondering what, if anything, I would need to change for this to work on a pixel. On Pixel's, the install path is system/system. I couldn't tell whether or not this could detect the correct path on its own.
Edit: Never mind. I got it to work.

Categories

Resources