Fixing headphones bug - Xiaomi Redmi 3 Questions & Answers

All,
as you may know in all recent MIUI versions the headphones bug is apparent. That means if you press the vol+/- button on the headphone remote the loudness is immediately raised to max/lowered to min. This error has been addressed several times in the MIUI forum but isn't fixed yet (and probably won't be at all). So I tried to fix it by myself: The last version which doesn't contain the bug is 6.6.30 whereas 6.7.7 does contain the bug.
So I unpacked both roms and compared them in Total Commander. In the different plain text files I didn't see any changes that could cause the bug. So I unpacked several .apk files and decomplied the classes.dex files into .jar files and compared them again.
But I don't want to decompile 100 .apks to find this bug. Could someone please tell me which file(s) are responsible for the headset remote behaviour?

Related

Strange problems with framework-res.apk

I am currently working with AOSP 2.3 for the Mytouch4G, and everytime I repack framework-res.apk, I get FC's all over and strange graphics glitches (screenshots below). This happens even if I don't edit any files or add/remove anything. I could literally just unpack the regular framework-res.apk, repack it just the same, and still get this problem. I am using apktool to pack/unpack it, and I've tried on both windows and linux, it's the same thing either way. It also causes several programs to FC on opening, and I can't access half of my settings. Once again, this is even when I change/edit/add/remove NOTHING. Has anyone seen anything like this before, or does anyone know what I can do to resolve this? I can't really do too much work if I can't edit this file.
http://img205.imageshack.us/i/device1y.png/
http://img815.imageshack.us/i/device2j.png/
UPDATE: Nevermind, much easier just rebuilding from source with the edited files.

[Q] Problems inverting Settings.apk SOLVED

So i have decompiled/edited/recompiled system apk's before with no issue. I usually copy the oringinal META folder and androidmanifest.xml to the new apk..
To invert settings as well as some other apps (im starting with settings first) some edits to androidmanifest.xml were made. So obviously bringing the old one to the new apk isnt going to work. I have tried many solutions that were hinted @ in various threads and forums to no avail.
Best i can figure is i will need to resign all system apps to a new key? Before i go about doing all that i would like to confirm i am on the right track as i have yet to find a thread where someone solved their issue doing this. Also in my mind this doesnt make sense as i see lots of downloads for inverted system apps floating around.. how would they work if they were resigned with different keys?
Is there no resign solution for edits to androidmanifest.xml, and if not why are there so many threads where people are showing what and where to make edits for various mods?
Please only answer if you know the answer and can provide steps that can be reproduced to make it happen.
As a side note to mods... most of these sorts of questions i found in my search were moved to the theme sections. I find the policy strange that these sorts of dev/hacking questions cant be asked in the dev/hacking forums where they would likely be answered by any number of dev's that fequent those areas...
Ends up resigning all the stock apps in /system was the solution. Signed with the test key using batch mode in apk_manager.

[MOD] Change your system sounds on ICS

Before I start, I'm not sure if this is know or whatever, but I wanted to contribute it anyway. So yeah.
There's a vid on the bottom showing the results.
So I ran into a really cool mod for our TPs. I found that I was able to change all the system sounds on the ICS rom. I was able to replace the default system sounds with custom sounds of my own. I ran into this idea when I was replacing the system sounds on my laptop's OS (Windows 7). And I thought, hey, why I couldn’t do this with my TP. So I began my research here and various places in search of custom sounds that others had used. I found none mainly because I cut my search short. Anyway, I replace several SS (system sounds) with really cool, IMO, sound effects and synthesize speech. For instance, my lock and Unlock system sounds. My "Lock" sound, this is when you push the power button to allow the TP to sleep of shutdown, has been switched from a "Click" sound effect to a synthesize speech saying "Good bye." The same goes for my "Unlock" sound, which is now "Welcome." I also switch the "tick" sound with a single water drop sound effect and “Notification sound” to a speech synthesis saying “Your Attention is required”. You’ll find all of them attached to this thread. AND IF YOU HAVE ANY CUSTOM SOUND EFFECTS PLEASE POST THEM HERE!! I'D LOVE TO HEAR THEM!!!
It's really neat IMO. Anyway, you can do this too and here's how:
Disclaimer: I will not be responsible for any harm or damage that you may cause to your device. Proceed at YOUR OWN RISK.
Requirements: Must have rooted device.
Things you'll need before you start:
•Desired sound effects. You can use the one I supplied if you like or you can use your very own.
•An audio converter. There are tons of free audio converters out there. TONS. I used Switch Sound File Converter. It’s free and incredibly fast.
•A root explorer app. It must be able to access, read, and write system files. Root Explorer is perfect.
• BACK UP YOUR DEVICE. You don’t have too but I don’t want to hear crap.
Installation:
1. Download your desired sound effects.
2. Convert, if not already, these sound effects to an “.ogg” file. With Switch Sound File Converter, simply drag and drop selected files into the “add files” box of the program. Then, on the bottom left of the window there is an “Output Format” field. Select .ogg in that box.
Explanation: We must convert to an .ogg file because it is the only kind of file android recognizes in the system folders.
3. Compile all newly converted sound effects into a folder and name it whatever you like. Something you can remember. Now drag and drop it to the root of your device. We just need it to be somewhere where we can access it quickly.
So at this point you should have the folder that contains all the converted sound effects in a folder in the root of your device.
4. Now with your *Root* File Explorer, navigate to the folder containing all the converted .ogg files. Choose one to begin with. I’ll switch up my “Lock” system sound with a speech synthesis saying “Good bye”
5. Select and long hold the desired sound effect.
6. Select the “Copy” option
7. Now navigate to the system folder. You’re going to have to push back several times to get to that folder. This is the path: system>media>audio>ui
8. Now paste the file to this folder.
9. Okay. Now we must rename that file we just pasted to the one we want to replace. In this instance we’ll be replacing the “Lock” file.
• To avoid troubleshooting, rename the file to “Lock1.ogg.” Do not forget that “1.” I did this because I didn’t know how the ROM would react to two files in the system with the same name. I basically did it to be safe.
• And Spell it out exactly how the original file is spelt.
So now we have the original file and the pasted file. Do whatever you desire to the original file. Delete it. Copy it to back it up. I don’t care. Just remove it from this folder.
10. Now rename the file currently named “Lock1.ogg” to just “Lock.ogg” without the “1.”
11. Now we have to set permisions. To do that, press and hold the system sound file that we just renamed. Select "Permissions." Make sure that the only ones that are check are the entire "Read" column and in the "Write" column the user should be check marked. It should look like an upside down L.
Explanation: We cannot simply use a file with a random name because the Android OS only recognizes these specific tittles or descriptions. Trust me; I have tried many times in the “notifications” folder. I thought it was just a drag and drop thing. Boy was I wrong.
12. Now test it by pushing the power button. If you don’t hear the custom sound effect, try doing a hotboot and try again.
In addition, you can use these sound effects on your PC. Of course you'd have to use the original files and not the converted ones. But they work all the same. I've replaced most of my PC system sounds with these.
Again, Please post your custom sound effects if you have any! I'd really like to hear all of them.
RESULTS
Thanks. I was searching for how to set the permissions. It worked perfectly on my Galaxy S on AOKP ICS rom
disclaimernotice said:
Thanks. I was searching for how to set the permissions. It worked perfectly on my Galaxy S on AOKP ICS rom
Click to expand...
Click to collapse
Don't mention it pal.
More sounds
In regards to more sounds/notifications this site has literally thousands, all in mp3 so need to be converted http://soundjax.com/ . I use " Captain incoming message" just search Worf , for my E-mail notification .
Hope you find it useful.

[Q] Edit sys files on ICS/CM9?

The LG G2x (P999) has had bad microphone volume forever in CyanogenMod. I found a way to edit the /sys/devices/platform/star_wm8994/data file in CM7, but it seems that this file is protected somehow in ICS/CM9. Does anyone know of a way to circumvent this security and edit the values in system files like this?
I can successfully edit and even delete the file, but it's refreshed with the original within seconds.

Neo V gingerbread Music player with clear bass and headphone surround

For those who stayed on Gingerbread or returned to Gingerbread, here's a fully functioning way to get sound enhancements to work.
I got these files a long time ago. I cant find any posts on xda relating to this so im posting this.
Instructions:
Extract the zip file,
Copy files within the zip to their respective locations manually and replace,
Better use X-plore with root privileges, I found it easier.
Sometimes the effects might not work and sound enhancement crashes. So copy the apps{semcmusic and sound enhancements after replacing the libs ,etc and framework }.
You can also try clearing the app data of sound enhancements.
This is my first post, im not sure if this is a duplicate post, although i have done a good search.

Categories

Resources