[GUIDE][HUAWEI P8] Increase Headphones Volume - Miscellaneous Android Development

Hi guys, i was trying today to increase the earpiece volume but it was difficult to find any hints on how to do it, any help on how to do it will be appreciated. Anyway when i was searching i stumbled on a post on how to increase the Headphones volume instead.
Here is the post : http://forum.xda-developers.com/showpost.php?p=50466456&postcount=5. Ty @Shadowprince94 & @hamdimo
Anyway i tried it and it worked, you need to be rooted for this to work.
Here are the steps to do it on P8:
* Make sure to make a backup of your rom in twrp before attempting this in case something goes wrong. Or you can make a backup of the local.prop file you are going to change.
1. Go to Settings -> About phone -> Custom Version: (Ex: CUSTC470 D001)
2. Go to /cust/hw using any file explorer with root. There will be 5 files, in each of them there is a prop folder inside it a local.prop file.
3. Now try to open each of the local.prop files in the 5 folders and see which of them has your cust version (The final two lines has the cust version in the file) for me it was C470 which was in the spcseas folder.
4. Now open the local.prop with the built in text editor of the file explorer with root and then change this two lines by adding a "#" before the code. Like this:
Before:
ro.config.ce_authenticate=1
ro.config.hw.security_enabled=true
ro.config.hw.security_volume=8
After:
#ro.config.ce_authenticate=1
ro.config.hw.security_enabled=true
#ro.config.hw.security_volume=8
5. Save the file. Make sure it has the defualt root permissions and restart the phone.
Good luck, by the way the increase is not much but better than before. :good:

Related

How to Change your Screen Lock Sound to Iphone

Hello everyone, I am going to show you a neat thing for me and hopefully for you too. As a result, you will get the same lock sound you hear in the ending of the video.
Step by step:
1. Download the files from HERE
2. Extract the files and copy them
3. Go to /system/media/ui and rename your Lock.ogg and Unlock.ogg to Lockk.ogg and Unlockk.ogg (just to have a backup I'm adding an extra k at the end)
4. Paste the files you copied before into the same directory
5. Set both their permissions accordingly (all can read and only owner can write)
6.Go to system settings/sound/sound effects and enable Screen lock sound
7. Reboot and enjoy!
P.S. If you are using Swipe method to unlock you need to rename those files to their correspondence in the system/media/ui folder. You can easily spot them by their name. In order to work, you need to rename the files you downloaded as the ones that orginally in there(dont forget to back them up).
ymcc said:
Hello everyone, I am going to show you a neat thing for me and hopefully for you too. As a result, you will get the same lock sound you hear in the ending of the video.
Step by step:
1. Download the files from HERE
2. Extract the files and copy them
3. Go to /system/media/ui and rename your Lock.ogg and Unlock.ogg to Lockk.ogg and Unlockk.ogg (just to have a backup I'm adding an extra k at the end)
4. Paste the files you copied before into the same directory
5. Set both their permissions accordingly (all can read and only owner can write)
6.Go to system settings/sound/sound effects and enable Screen lock sound
7. Reboot and enjoy!
P.S. If you are using Swipe method to unlock you need to rename those files to their correspondence in the system/media/ui folder. You can easily spot them by their name. In order to work, you need to rename the files you downloaded as the ones that orginally in there(dont forget to back them up).
Click to expand...
Click to collapse
Which lock setting does this work on? It didn't work with knock code or no lock. I switched back to stock one and I'm getting no lock screen noise period. No matter what I choose.
garcijua said:
Which lock setting does this work on? It didn't work with knock code or no lock. I switched back to stock one and I'm getting no lock screen noise period. No matter what I choose.
Click to expand...
Click to collapse
I'm using knock code and its working m8. But probably its not going to work on no lock type. Be sure to reboot after you made those changes.
Edit.
With your situation, I checked all locking types and the result is:
If you copied unlock and lock .oggs and change their permission , all of them should work except no lock, swipe effects other than basic and pattern effects other than basic. In order to change these sounds you just need to find the matching ones. Listen what you are using at the moment then go to system/media/ui and find the exact one then copy my files over and rename. If you have questions please ask.

Recent apps fix?

I downloaded Sac's v2 ROM and I got used to the Recent apps where it usually is, my question is, is there anyway to flash a zip file or replace a file in order to achieve the stock button functions? I flashed his "hold home for recents" but its not the same as I'm used to.
You can take the android.policy.jar from system>framework in v1 and swap it and all buttons will go back to normal. (change permissions and such of course when replacing any system files)
I swapped the android.policy.jar files the other day, and as a result the phone just wouldn't boot. I'm guessing this is due to not setting permissions. How should permissions be set for the new file when it is swapped? And in addition, should permissions for other files placed in system be set the same exact way (for future reference)? I know how to change them, but do not know how they should be or why they should be set a certain way
dc.wash95 said:
I swapped the android.policy.jar files the other day, and as a result the phone just wouldn't boot. I'm guessing this is due to not setting permissions. How should permissions be set for the new file when it is swapped? And in addition, should permissions for other files placed in system be set the same exact way (for future reference)? I know how to change them, but do not know how they should be or why they should be set a certain way
Click to expand...
Click to collapse
The folder is set to rw-r-r- but there is a new flashable zip just posted in the sac23 thread
Not sure but I replaced the Android.policy.jar file from v1 to v2, worked like a charm. Took maybe 5 to 6 minuted to boot.

Makng custom rom without any pc software

hi guys
i am going to make a guide for how to make a custom rom for yourself without a pc.
so straight forward first check that you have following things.
1--> a android device (rooted)
2--> clockworkmod recovery installed
3--> 100% battery
4--> atleast 1.5 GB free on external SD card
BEFORE STARTING THIS METHOD I RECOMMEND YOU TO TAKE A PRINTOUT OF WHAT THIS GUIDE SAYS BECAUSE YOU HAVE TO DO WORK WITHOUT A PC ON A NON MULTITASKING ANDROID AND LOOKING TO XDA SITE OR APP EVERY TIME IS NOT A GOOD IDEA.
STEP ONE :>
First of all move all your data on internal sd card to external one and then do a factory reset.
After that goto recovery mode and follow
wipe data
wipe catch
backup and restore --> backup.
after having a nandroid backup. turn on the device normally. and just install es file explorer(it is good and provide lots of options).
STEP TWO :>
now you have a nandroid backup. goto that folder and open it. there are many files and one of them is system.******* . now copy that to a new folder where you will make a rom and paste it {remember to copy only do not cut or disturbe the original copy in backup folder just copy it}.
in the new folder look at the name system.*** you will get the original extension of that file its either .rar or .tar or.zip
now rename it as system.(the extension you found)
after renamming it just extract it and you will edit in this folder to make a new rom.
STEP THREE :>
in that folder you will see many folders just have a look at all folders and write names of those folder which have .apk files in it on paper. now those folder which have apk files are to be edited.
THERE ARE TWO TYPER OF ROME
1--> DEODEXED {HAVING ONLY .APK FILES IN THOSE FOLDER}
2--> ODEXED {HAVING .ODEX FILE WITH .APK FILES IN THOSE FOLDER}
DESIDE WHATS YOUR ROME TYPE AND FOLLOW THW GUIDE SERIOUSLY
FOR DEODEXED ROM --> now you have to give shape to your rom. i will provide you with list of apps you can change in custom rom.
launcher
gallery
camera
lockscreen
keyboard
calculator
gapps
internet brouser
file manager
you can add special apps to your device like screen recording software
and remove the default apps listed above {first remove default app and then paste the app you like}
FOR ODEXED ROM --> now you have to give shape to your rom. i will provide you with list of apps you can change in custom rom.
launcher
gallery
camera
lockscreen
keyboard
calculator
gapps
internet brouser
file manager
you can add special apps to your device like screen recording software
and remove the default apps listed above
first delete the app and its odex file and then past the new app{if you leave odex there for default app the new app wil be transformed to older once so delete odex of only those apps which you cange}
STEP FOUR :>
now you have apps of your choice and you are exited to test it.
but now its time for trickest part editing build.prop in system
inside system folder you extracted there is a file named build.prop open it and start editing
#change lcd screen density
ro.lcd_density = {increase for magnified view and decrease for a zoomed out view}
#change ram alootment to apps
delvic.vm.heapgrowthlimit = set only one value {68, 96, 124 ,256} {set a higher value than default in your file}
delvic.vm.heapsize = ste higher value than heapgrowthlimit, set only one value {96, 124 ,256} {set a higher value than default in your file}
#to get navigation bar at the bottom with three icons
qemu.hw.mainkeys = 0
save these changes {these lines are not to be edited they are there in that file only change the values ok}
STEP FIVE :>
copy the nandroid folder onto pc and save a copy of that nandroid backup on pc.
YOU HAVE MADE A CUSROM ROM BUT IT CANT BE FLASHED SO NOT GOTO THE SYSTEM FOLDER WHERE YOU EXTRACTED IT AND SELECT ALL FOLDERS INSIDE IT AND MAKE A SAME EXTENSION FILE WHICH YOU EXTRACTED IT FROM {select all folders inside system folder and make same extension file do not just select the system folder from outside go inside the folder and then do that ok}
for this step you will need a pc ofcoz.
STEP SIX :>
GREAT JOB YOU HAVE A SYSTEM.XXX RENAME IT LIKE THE NANDROID BACKUP ONE AND REPLACE THE ORIGINAL SYSTE, FILE WITH YOUR MODDED ON AND JUST CROSS YOUR FINGURES.
all steps are complete and not its time to reboot to recovert
wipe data
wipe catch
advance/wipe delvic catch
backup andrestore/advance restore/restore system
and its done first boot will take time and you have a custom rome made for yourrself on android and time to test it.
remember if you face any problem just use that nandroid which you saved on pc the original one and restore that to go back to custom rom.
if this guide helped please hit thanks.
facing problem contact me my id is
[email protected]
peace

custom update.zip on unrooted phone? possible?

Hi.
I have a XOLO-ONE [non-rooted] and recently updated it via the "software update" option in the system information tab of settings. It runs Lollipop 5.0.0.
I noticed that before updating, it showed a prompt saying "no update.zip found in root of memory card, download?" I found out that you can download the update.zip from xolo's official site. It was about 30 mbs.
Now, i wonder if i can edit it's contents(updater-script, apps, etc...) and apply the update to my phone?
I repeat, it is NON-ROOTED.
The zip file contains the following folders:
META-INF
PATCH
SIG
SYSTEM
scatter.txt [FILE]
type.txt [FILE]
There is no boot.img.
Has anyone tried it? Was it successfull? If yes then please write. Your opinions would be appreciated.
Yes you can do so and its possible flashing a update.zip using stock recovery.
You can edit and change apps amd do anything but remember to update any changes you have done in zip to updater-script carefulley. And set correct permissions to them
Peace
:good::laugh::victory:
Thanks man.
Uh, can tell me how to edit the build.props file?
It is stored as a .p file.
Yes why not opsn the file as a text file in any text editor either on amdroid or on pc.
Now you can change the following things.
1-- change the android version
ro.build.version.release=4.4.2
Edit the number to version you want
2-- change the screen pixel density
ro.sf.lcd_density=200
Edit the value to nearby values only.MY DEFAULT WAS 240 AND I CHANGED IT TO 200 AND IT LOOKS NICE.
3-- change the delvic heap value
dalvik.vm.heapstartsize=10m
dalvik.vm.heapgrowthlimit=68m
delvik.vm.heapsize=256m
Edit the values but only multiply the default values by 2. If any value after multiplying is mord than the ram of your device itself then do mot change the value.
4-- add these lines to the build.prop in end for display enhansment
video.accelerate.hw=1
debug.sf.hw=1
debug.performance.tuning=1
debug.egl.hw=1
debug.composition.type=gpu
After doing so save the file normallt.
Zip the folders and flash them again.
Peace
I would do that but.....
Yes, I would do that but the problem is that the file has a .p extension.
I did some research and found that it is a patch file created by using a program called BSDIFF ( or something like that). The installer-script processes that file by comparing it's checksum and patching the data into the existing file..
Now I'm not sure if creating a custom build. Prop. P file and updating my. Zip file with it will be okay. What if I get into a boot loop? My xolo isn't rooted either.
But, I'm not the expert.
So, tell me about your opinion. Is it safe?
Thank you for your help. ( for before & in advance )
no just name it as build.prop and nothing else. itd a property file and not a .p file.
simply place the build.prop in zip file with this name only. no other name OK.
and flash it.
but if you are rooted then just edit the original file in aystem folder and savf it there only. just open and edit and reboot to see effects.
peace
Sent from my SM-G355H using XDA Free mobile app

Edit CSC others.xml

HI there,
I want to edit the file others.xml in system\csc\ to add in VoLTE activation for my Galaxy note 3.
Now, I know that most people say you need root, but I don't wat to root, have done it before, but I do not want to lose access to certain apps such as SKY Go, which need orginal stock.
My question, can we use a low level edit from say CWM recovery or any other piece of software that allows you one of two things:
1. Edit file others.xml before android is booted
2. If edit not possible, copy into that directory a previously prepared file and rename
I'd like to understand where CWM recovery or TWRP (or any other) sit within Android structure and what abilities do they have (e.g. edit, copy, rename etc.)
Many thanks everyone

Categories

Resources