Hey everyone, in this guide I will show you how you can get 24bit audio processing on your beloved rosy.
Keep in mind that I WILL NOT provide a bunch of files for you to change within your root, because audio xml's changes a lot and its hard to keep track for me as to which files will work and which won't. So rather, I will provide a way for you to edit those files on your own.
Requirements:-
1. Rooted with Magisk
2. A File manager (ex. MiX) with root permission granted
3. Note Editor (You can use MiX note editor)
4. Terminal Emulator like Termux to test if the method worked or not
5. Some Common Sense
ROMs I tested this on:-
1. LOS by Pulkit
2.RevengeOS by Pratyakshm
3.PixelExperience
4.AOSP11 by Pulkit
This method should also work on:-
1. Any Android 10 based ROM
I cannot say about android 9 or the version's before that because i never tested them, however if someone is willing to do that, let me know in the post replies and make sure you follow the guide.
Before we start, MAKE SURE TO BACKUP YOUR OLD FILES IN CASE ANY PROBLEMS ARISES LIKE BOOTLOOP'S.
So the steps are as Follow:-
1. Open up MiX or any of the file manager that you have then head over to /vendor/etc .
2. In there, find "audio_policy_configuration.xml" .
3. Take backup of this file and then open "audio_policy_configuration.xml" .
4. Under <mixPort="primary output"> profile name would be written as "AUDIO_FORMAT_PCM_16_BIT" change this string to "AUDIO_FORMAT_PCM_24_BIT_PACKED" .
5. Follow the same process as given in Step 4 for <mixPort = "raw"> , <mixPort = "deepbuffer"> and <mixPort = "direct pcm"> .
6. Scroll down the section of <device_port> and replace the string shown above for <Wired_Headset>, <Wired_Headphones>,<BT_SCO>,<BT_SCO_Headset>,<Line>.
- - Refer to the Screenshot Attached below, That will be enough for you to understand it properly.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
6.This step is only for people who also have the file audio_policy.conf in vendor/etc directory.
>> under primary > outputs , change format to "AUDIO_FORMAT_PCM_24_BIT_PACKED" for primary, raw & deep_buffer. [Screenshot attached below]
6. Save the file and put it back in /vendor/etc and give chmod 0644 [-rw-r--r--] .
7. Reboot your device.
- - At this point if your Phone doesn't boot, use TWRP to replace the new file [edited] with the Old one [unedited] file and message me on telegram @bancelhub so that I could look into the matter.
PROFIT!
How to check if it's working.
1. Open up termux with su.
2. Type "dumpsys media.audio_flinger"
3. AudioOut_D and AudioOut_1D should show "AUDIO_FORMAT_PCM_24_BIT_PACKED" as HAL Format. [Refer to Screenshots Attached]
Hope this guide was good enough, this was the first guide I wrote on xda. You might have noticed that I only explained how to do this on one device tree, Pulkit one's, since his dt is public I used it to show this experiment. You can try it on other ROM's based on other DT's but your procedure may vary, mildly. let me know your experience on telegram!
Happy Editing!
Awesome !!
Thanks for detailed guide :good:
Nice Guide ,Working
Related
How To Decompiling Or Editing Android's APK
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
step 1 : first apk file rename and last .zip to create zip file.
step 2 : then open *.zip file and classes.dex copy to dex2jar-0.0.9.9 folder.
step 3 : then folder on shift+right aerow and click open command window here.\
step 4 : then write on cmd in dex2jar classes.dex and enter press. this process is given on images.
step 5 : then getting classes_dex2jar file.
step 6 : then open jd-gui application and open file-> open file and open classes_dex2jar file.
step 7 : getting the code of application.
For Download This Software::
Click Here...
If You liked my work,Atleast Click Thanks Button,its Free,It encourages me.
awesome guide
helped me get a source code to popular android game so i can create my own game using the touch feature of source code:highfive::good:
Its the most complex guide I have ever seen
iamareebjamal said:
Its the most complex guide I have ever seen
Click to expand...
Click to collapse
It really is. Lol. I'm not going to keep looking at the screenshot and i'll just see if I can make it work on my own.
how do you get the resulting .zip from saving all sources of jd-gui since jd-gui doesnt actually allow modifications you have to save all sources wll end up with .java in a zip file, after editing the java files in the zip how do i get that zip back into the jar file to re dex it>?????
fieldsweeper said:
how do you get the resulting .zip from saving all sources of jd-gui since jd-gui doesnt actually allow modifications you have to save all sources wll end up with .java in a zip file, after editing the java files in the zip how do i get that zip back into the jar file to re dex it>?????
Click to expand...
Click to collapse
There are other, more straight forward guides to help.
its not hard, its impossible to understand!
FAILED!!!
Thank you so much, took. I will act.
hello friends
I have seen too many users got problem using apktool for android.
I also got problem...
But i studied the problem n just tried to fix it & guess what..??
My thinking fixed that problem
Now i want to help you all
You want to download apktool & its data files ( dont ask me for that )
Also you need a rooted phone to use rootex & apktool)
Guide 1
Now the steps:-
follow carefully......
1) Download apktool & data files ( i have the apktool 4.1 armel version dont know it will work for another version
2) Extract it to Sdcard/*Here*
3) Go to sdcard/Apktool & install apktool4.1.apk
4) Open it Give root access..
5) Now in aptool go to Sdcard/Apktool & select any file( tap&hold for 2 seconds) & there will be a option of "Set as apktool data folder"
6) now use rootex or similar file manager & go to system/framework/ © framework_res.apk to ur sdcard
7) Tap on framework_res.apk scroll down & select "IMPORT AS FRAMEWORK"
8) Now copy framework-res.apk to your sdcard (via rootex) tap on framework_res.apk & select 1st option decompile all ( If you get any error in decompiling then follow next step)
9) Open rootex go to data/data/per.pqy.apktool/ now delete mydata file
10) Now open rootex & go to sdcard/apktool/ & use multi select option n select all files & folders & only unselect "apktool4.1.apk" now copy all that files to "mydata" folder (make new folder anywhere in sdcard )
11) After completing step 10 then copy/move "mydata" folder to data/data/per.pqy.apktool/*Here* via rootex...
12) you have completed all steps now no more steps just open apktool n modify your Device system files or any apk/jar
*+*+REMEMBER+*+*
This Errors was Fixed by me no one helped me to fix this problem or i not copyed someons idea (its my fixing style)
So give all credits to me....,,,,
Guide 2
This guide is only if you have this errors
Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1)Install apktool following guide1 (only 7 steps)
2)Then download this https://www.dropbox.com/s/p88gb8ze62peomp/Apktool Error Fix.zip
3)Now flash that zip via cwm recovery
4)Now this error is fixed
Now enjoy apktool
happy moding
Again this errors was Fixed by me
Credits:
Only Me
Note
The guide is for Galaxy pocket & Similar device
Try on yours & give feedback
Sent from my GT-S5300 using Tapatalk 2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Baa's Android Kitchen
Auto Porting Tool for MT6580 Kernel 3.18.19
Porting Method From Nana Iyke Quame
Download Link: drive.google.com/open?id=0BwNegVZnDr-QMVhNYktTUWhBSkU
Requirements:
Must have any text editor to edit build.prop and updater-script
How to use:
REMEMBER TO EXTRACT THE TOOL IN C:\ TO AVOID SCRIPT ERRORS.
1.Place the stock boot.img,system.img, and the rom you want to port to the dedicated folder.
2.Open the tool and select option 1. Wait for it to finish and then go back to the main menu.
3.After option 1 has finished gathering the needed files, select option 2, then select what type of porting method you want to apply.
AOSP BASIC - ports etc\firmware and mdbb only (Preferable if you just want to boot the rom then fix bugs later.)
AOSP FULL - ports bin, ports etc\firmware and mdbb, ports lib, ports vendor (Porting method with bug fixes applied, but can sometimes cause loop in some roms)
CM-BASED BASIC - ports etc\firmware and mdbb only (Preferable if you just want to boot the rom then fix bugs later.)
CM-BASED FULL - ports etc\firmware and mdbb and ports lib ((Porting method with bug fixes applied, but can sometimes cause loop in some roms)
3. After porting method is applied.Go back to the menu and select option 3, then manually edit the build.prop and updater script to your liking.
4. After you have finished editing, select the build option. After building, move the rom zip to your phone then flash
Note:
1.Make sure to place all files in their needed directories for script to successfully locate your files and proceed without errors
2.You have to manually edit build.prop and updater-script values based on your liking and needs.
3.Only use the delete all dependencies option after you have finished/ have flashed the ported rom because it will also delete the file you have finished building.
I hope you like my simple tool I have put many hours to make this
If you have something to add in this tool feel free to suggest and help.
I made it using Notepad++ for batch scripting and Quincy 2005 for C language codes
If you feel that I have helped you and you liked my tool feel free to donate, it will greatly help my studies Just inbox me, I dont have paypal atm still 17
Screenshots:
Proof: Lineage OS 13 Auto Ported with this tool
Special thanks to:
Nana Iyke Quame, droidpeepz, darkcyanidedevs, mt6580 development and porting, xda-developers, 4pda
LOS 13 is Android 6? how i port LOS rom to Blu Vivo 5 Mini?
Weak Intro :
Well, I find few people who're curious to change their TWRP splash screen and even the themes. Don't know how to do this weird stuff? You're at the right place! . I know few of them might be bored with staring at the same splash screen for a long time. How about trying something crazy? :silly:.
Prerequisites:
1. Knowledge of how to repack/unpack img. If you don't know how to do this, Just follow this thread by @osm0sis: https://forum.xda-developers.com/showthread.php?t=2073775
2. A TWRP recovery image for our device which can be found here: https://eu.dl.twrp.me/x3/
3. A splash screen image(format in PNG) of your choice.
4. Notepad++ for XML editing. You can get it from here: https://notepad-plus-plus.org/download/v7.5.2.html
5. PATIENCE! :silly:
Procedure:
Ok now that you're happy with the prerequisites, Let's start being crazy!
I assume that you know how to use the Android Image Kitchen by @osm0sis and thereby I'll proceed without any AIK instructions.
Let's start!
1. Extract the TWRP image you wish using the AIK. To do this, Just drag the TWRP image file onto unpackimg.bat file
2. Now you'll find 2 folders.
-> ramdisk
-> spllit_img
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Leave the "split_img" folder aside.(We don't need anything to do with it) and open the "ramdisk" folder.
4. Open the "twres" folder and then right-click on the "splash.xml" file. Then choose Edit with Notepadd++ in the context menu.
5. Scroll down till you find the page XML tag.
6. Now, delete the lines as shown below.
7. Add this line shown below
8. All done! Now you need to get your PNG image of resolution 1920 x 1080(height x width) of your choice.
9. Go to this directory: ramdisk/twres/images. You'll find a file "splashlogo.png". Just Overwrite it with your PNG image and you're done!
10. Finally, you need to pack the modified stuff to make TWRP image. To do this, head onto the AIK folder and then click repackimg.bat. You'll find a a new file in the same folder called "image-new.img". This file is your modified TWRP img. Just flash it and you're good to go.
Credits
1. @osm0sis, for his awesome Android Image Kitchen
2. TWRP, for their trending recovery!
I'm Rooted and using Androids FX file Explorer, to try to add a ring tone to the ringtones system folder.
/system/media/audio/ringtones
Would someone explain how to make the file write accessable or direct me to a link to how to do this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I searched but all I could find were links how to do it through a command promt, which is not what I'm looking for.
Android 13
galaxy A22 plus
Rooted with Majiks systemless-ly activated
20GT said:
I'm using Androids FX file Explorer, to try to add a ring tone to the ringtones system folder.
/system/media/audio/ringtones
Would someone explain how to make the file write accessable or direct me to a link to how to do this?
View attachment 5836745
I searched but all I could find were links how to do it through a command promt, which is not what I'm looking for.
Android 13
galaxy A22 plus
Click to expand...
Click to collapse
after android 8 (in preparation for project Treble), system partition is mounted during boot as read-only by default (as you can find out through the partition's mount flags). so there's 2 ways to achieve what you want:
you remove the shared_block feature from Super.img and mount system as R/W. There are tools to do this, but they're not tested on Samsung devices. Like this Tool.
you root your phone with Magisk and make a Magisk module to add your files systemless-ly. Here is the Developer Guide.
Of course, You would need an unlocked Bootloader. Here is the guide for Unlocking and Rooting. I also advise you to flash TWRP before experimenting with the Module you create. Good luck.
Slim K said:
after android 8 (in preparation for project Treble), system partition is mounted during boot as read-only by default (as you can find out through the partition's mount flags). so there's 2 ways to achieve what you want:
you remove the shared_block feature from Super.img and mount system as R/W. There are tools to do this, but they're not tested on Samsung devices. Like this Tool.
you root your phone with Magisk and make a Magisk module to add your files systemless-ly. Here is the Developer Guide.
Of course, You would need an unlocked Bootloader. Here is the guide for Unlocking and Rooting. I also advise you to flash TWRP before experimenting with the Module you create. Good luck.
Click to expand...
Click to collapse
Sorry I forgot to mention that I'm already Rooted with systemless-ly already activated.
Just tested Fx file explorer on my privious phone and it works correctly after mounting the folder.
I passed the root check. is there a diffent option/checkmark to allow Fx access to root or give Fx pemisions in majiks on android 13?