Hi, is it possible to change the bluetooth MAC address somehow?
I tried changing sys\module\htc_bdaddress\parameters\bdaddress. It showed the new address in the settings, but still used the old one. After a reboot it went back to the original one. Does anyone know a way to make a permanent change? Any help would be greatly appreciated.
Try using a script in init.d folder in /system/etc/init.d
I use this way to set cpu speeds and the governers even without a cpu controlling app (setcpu, cpu master).
Sent from my HTC Desire Z using xda app-developers app
You can copy with dd your efs partition and make your changes there and use dd to place the new one in, should work but I never tried
Just be sure to keep an orginal
Sent from my Nexus 4 using XDA Premium 4 mobile app
Thanks for the replies, but I still have a question. Where can I find this efs partition?
/dev/block/mmcblk0p13
/dev/block/mmcblk0p14
You can dd these and edit, be careful using dd commands
Simple way is with adb shell
cd /efs
tar cf /sdcard/efs-backup.tar*
Then make changes but keep copy
Now with new
cd /efs
tar xf /sdcard/efs-backup.tar
Sent from my Nexus 4 using XDA Premium 4 mobile app
In adb shell when I type "cd /efs" I get a "No such file or directory" error.
I found this script somewhere else:
adb shell
su
dd if=/dev/block/mmcblk13 of=/sdcard/efs13.rfs
dd if=/dev/block/mmcblk14 of=/sdcard/efs14.rfs
This way I managed to save them, but I'm not sure if this is what I need if I want to edit them. Is there an other way of getting them in .tar format?
Related
How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
buffnutz1 said:
How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
Click to expand...
Click to collapse
Just delete htclockscreen.apk
Sent from my ADR6300 using XDA App
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Careful if you're on the stock rom and delete the default lockscreen apk, I've heard it makes the lookscreen look really bad. But it works on other roms.
Sent from my HTC Incredible
It looks best on 2.2 but it works on 2.1 just it looks messed up
Sent from my ADR6300 using XDA App
buffnutz1 said:
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Click to expand...
Click to collapse
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
The only way you can delete a file in system, is if you've used unrevoked forever to unlock nand. Then in root explorer, change system to rw (read/write), then I'd rename the app instead of deleting just in case you need to put it back.
Sent from Incredible using Tapatalk.
i meant just to edit the rom.zip on the sd card and then just reflash the rom
Sent from my ADR6300 using XDA App
jdkoreclipse said:
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I don't think this is possible unless he has Forever installed cause what.he described happened to me like 2 weeks ago, I had to use adb
Sent from my HTC Incredible
Didn't see that, but yeah that will work too. Either way will work just fine.
Sent from my HTC Incredible
Please don't Delete files...
TheWhiteBandito said:
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
Click to expand...
Click to collapse
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
oldman_58 said:
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
Click to expand...
Click to collapse
Yes I aplogize for the poor suggestion, moving the file to an alternate folder is a much better solution.
Sent from my HTC Incredible
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
buffnutz1 said:
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
Click to expand...
Click to collapse
If you're in recovery, you have to mount system under the partions menu first.
Edit: or might be sd card & storage menu depending on version of clockworkmod you're running.
Sent from Incredible using Tapatalk.
I've used better terminal emulator to remove the lock screen.
Use this line:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
To mount system.
Then:
cd system/app
rm HtcLockScreen.*
(Case sensitive)
Worked great, had to reboot though and it stuck. Until then the old one stayed.
Thanks to adrynalyne for the mount line.
Sent from my ADR6300 using XDA App
Ok did exactly what you said, then like said it would it rebooted. Comes back up as the HTC one. Am I the only it's done this for? Why won't it just erase?
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
lgldrgdlr said:
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
Click to expand...
Click to collapse
Where did you find it? I usually use my alarm clock. :/
I can upload it at some point today. Not sure when I'll be home to do so though.
Sent from somewhere
So I just flashed takju 4.2 using fastboot and before proceeding flashing a recovery I want to check if there's no /data/media/0 folder
Using my pc (MTP) I just see Internal Storage with some folders, but no such thing as /data/media/0 folder nor /data/media
What am I missing here?
Thanks!
Use a shell - adb shell or a terminal emulator app.
Sent from my Galaxy Nexus using xda app-developers app
silow said:
Use a shell - adb shell or a terminal emulator app.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Could you please tell me what to do? Going nuts here :cyclops:
Ti2 said:
Could you please tell me what to do? Going nuts here :cyclops:
Click to expand...
Click to collapse
What are you trying to do?
Since you used fastboot to flash I'm going to assume you know how to use adb.
adb shell - to get a terminal to your phone.
cd /data/media - to change directory
ls - will list the contents of your sdcard or "0" for profile 0 of the SD card
Sent from my Galaxy Nexus using xda app-developers app
Ti2 said:
So I just flashed takju 4.2 using fastboot and before proceeding flashing a recovery I want to check if there's no /data/media/0 folder
Using my pc (MTP) I just see Internal Storage with some folders, but no such thing as /data/media/0 folder nor /data/media
What am I missing here?
Thanks!
Click to expand...
Click to collapse
you need a root file explorer, on your phone not pc.
simms22 said:
you need a root file explorer, on your phone not pc.
Click to expand...
Click to collapse
I use Astro file manager, but you have to go in to the settings and enable hidden files to get root access.
Or you could use es file explorer, which lets you actually rename files and what not.
Both are in the Google Play Store and are free.
Hi
I have a rooted Galaxy w and I am looking for a non commercial app that can make a byte for byte forensic dd image of the phone.
I want to do this so I can look for detailed SMS messages using winhex.
I wonder if anyone can suggest such an app but I'd prefer one that does not need complicated command line input as this just confuses the heck out of me.
Also, I have seen on various forensic sites reference is made to files named mtd0 through to mtd5 but when if have searched through
My galaxy w, these files are not on it anywhere?
I apologise if you are sick of this kind of question but any guidance or advice would be much appreciated.
Thanks in advance.
It will take only 5 lines of commands actually, and if you use adb shell instead of Terminal, a very easy copy-and-paste.
Code:
su
targ=/mnt/external_sd
bsiz=$((1024*1024))
blkp=/dev/block/mmcblk0p
dd if=${blkp}17 of=$targ/data.img bs=$bsiz
dd if=${blkp}28 of=$targ/internalsd.img bs=$bsiz
Just modify the "targ=" line to point to your location of external SD (will be 'sdcard' instead of 'external_sd' if you have swapped the SD Cards).
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
It will take only 5 lines of commands actually, and if you use adb shell instead of Terminal, a very easy copy-and-paste.
Code:
su
targ=/mnt/external_sd
bsiz=$((1024*1024))
blkp=/dev/block/mmcblk0p
dd if=${blkp}17 of=$targ/data.img bs=$bsiz
dd if=${blkp}28 of=$targ/internalsd.img bs=$bsiz
Just modify the "targ=" line to point to your location of external SD (will be 'sdcard' instead of 'external_sd' if you have swapped the SD Cards).
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Hi
Thanks for the reply and the great code which worked perfectly.
Just one question, does this code copy the un allocated spaces (where possible deleted files reside) as well?
Thanks in advance
event2020 said:
Hi
Thanks for the reply and the great code which worked perfectly.
Just one question, does this code copy the un allocated spaces (where possible deleted files reside) as well?
Thanks in advance
Click to expand...
Click to collapse
Yes, because it reads from the 'raw device', so each and every single byte, be them living in a used sector or a 'free' sector, will be copied. Up to and including the very last byte in the source partition.
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
Yes, because it reads from the 'raw device', so each and every single byte, be them living in a used sector or a 'free' sector, will be copied. Up to and including the very last byte in the source partition.
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Thank you so much.
You have really helped me.
Cheers! This is my first thread. Hopeful i'm not reposting similar thread.
I will tell you how to create swap file for our W. Anyway, swap file works like swap partition. It can help your RAM for improve our W performance.
1. Root your phone
2. Install Superuser
3. Install Busybox
4. Install Terminal Emulator
If you are using CM10 from arco, that's mean you don't need to follow first 4 steps.
5. Open Terminal Emulator
6. Change directory to external sd card (external is recomended, because we won't take some spaces on internal sd card)
Code:
[email protected]:~$ su
[email protected]:~# cd /external_sd
7. Create swap file under external_sd directory. I will create 512MB swap file. If you wanna create other size of swap file, just change value of count. 512 is recomended.
Code:
[email protected]:/external_sd# dd if=/dev/zero of=swapfile bs=1M count=512
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
9. After creating the correctly-sized file, format it to swap:
Code:
[email protected]:/external_sd# mkswap swapfile
10. Activate the swapfile:
Code:
[email protected]:/external_sd# swapon swapfile
11. Check your swap, whether is work or not.
Code:
[email protected]:/external_sd# free -m
Check your swap, if the value exactly like your value on 7th step, then you did it!
Any question? Just ask here.
You did it? Why U No hit thanks button?
This does not create a partition right? Just a swap file.. Like the paging file in windows?
My only concern is does it really help that much? What I mean is a user noticeable difference. Also would it make the lifespan of the SDcard shorter? Higher the class of the card, the better it is???
I have never done swap on my older phones and I really would like to do it if it makes a whole a lot of difference in terms of usage.
Also can you also let us know how to revert back in case one does not like it? Just delete the file?
Thanks for your answer in advance.
[/QUOTE]
thearif said:
This does not create a partition right? Just a swap file.. Like the paging file in windows?
Click to expand...
Click to collapse
No, it does not.
Yes, somewhat similar.
thearif said:
My only concern is does it really help that much? What I mean is a user noticeable difference.
Click to expand...
Click to collapse
Totally depends on your usage pattern.
thearif said:
Also would it make the lifespan of the SDcard shorter?
Click to expand...
Click to collapse
Yes, probably. That's why you shouldn't create a swapfile anywhere but the External SD.
thearif said:
Higher the class of the card, the better it is???
Click to expand...
Click to collapse
Of course.
thearif said:
Also can you also let us know how to revert back in case one does not like it? Just delete the file?
Click to expand...
Click to collapse
Reboot, then delete the file.
Sent from my GT-I8150 using xda app-developers app
Boosting Perfomance?
RezaBeye said:
Boosting Perfomance?
Click to expand...
Click to collapse
Totally depends on your usage pattern.
Sent from my GT-I8150 using xda app-developers app
omegahanggara said:
Cheers! This is my first thread. Hopeful i'm not reposting similar thread.
I will tell you how to create swap file for our W. Anyway, swap file works like swap partition. It can help your RAM for improve our W performance.
1. Root your phone
2. Install Superuser
3. Install Busybox
4. Install Terminal Emulator
If you are using CM10 from arco, that's mean you don't need to follow first 4 steps.
5. Open Terminal Emulator
6. Change directory to external sd card (external is recomended, because we won't take some spaces on internal sd card)
Code:
[email protected]:~$ su
[email protected]:~# cd /external_sd
7. Create swap file under external_sd directory. I will create 512MB swap file. If you wanna create other size of swap file, just change value of count. 512 is recomended.
Code:
[email protected]:/external_sd# dd if=/dev/zero of=swapfile bs=1M count=512
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
9. After creating the correctly-sized file, format it to swap:
Code:
[email protected]:/external_sd# mkswap swapfile
10. Activate the swapfile:
Code:
[email protected]:/external_sd# swapon swapfile
11. Check your swap, whether is work or not.
Code:
[email protected]:/external_sd# free -m
Check your swap, if the value exactly like your value on 7th step, then you did it!
Any question? Just ask here.
You did it? Why U No hit thanks button?
Click to expand...
Click to collapse
Good evening,
when i put command "[email protected]:/external_sd# mkswap swapfile" phone give following message:
"image is too small"
can i continue??
Tks in advance
moonwonder said:
Good evening,
when i put command "[email protected]:/external_sd# mkswap swapfile" phone give following message:
"image is too small"
can i continue??
Tks in advance
Click to expand...
Click to collapse
Please post here the result of the 'ls -la' command in the directory where you created your swapfile.
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
moonwonder said:
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
i'm seeing that file size is 512 byte and not Mbyte...
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Have you installed the latest Busybox by Stericson?
R: [HOW TO] Create Swap File For Galaxy W
resolved:
changing count number on 'dd' function. (from 512 to 536870919)
i suppose that my busybox don't support byte size (bs=1M)
tks.
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
resolved:
changing count number on 'dd' function. (from 512 to 536870919)
i suppose that my busybox don't support byte size (bs=1M)
tks.
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
You should instead try changing bs=1M to bs=$((1024*1024))
Reason: Flash memory works in blocks. bs is the amount of data being written at a time. If you write 1 byte at a time, you're writing thousands of times to the same block, which not only makes the process slower, but also shorten the life of your Flash memory (because, appending 1 byte requires a cycle of: read the whole block, add one byte, write back the whole block).
The largest Flash memory block size I can ascertain from specs on the Internet is 128 KiB. Thus, bs=$((1024*1024)) would be suitable (1 MiB is an integer multiple of 128 KiB).
If your dd doesn't support the bs parameter at all, you really should replace it with one that does.
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
thanks!!!
now i understand reason that the time for swap creation was about 3 hours...ahahaha
in attachment my new swap!
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
thanks!!!
now i understand reason that the time for swap creation was about 3 hours...ahahaha
in attachment my new swap!
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
LOL... with bs=$((1024*1024)), I took only about 1.5 minutes:
Code:
[email protected]:/ $ cd sdcard
ro of=tes.fil bs=$((1024*1024)) count=512 <
512+0 records in
512+0 records out
536870912 bytes transferred in 86.185 secs (6229284 bytes/sec)
[email protected]:/sdcard $
Sent from my GT-I8150 using xda app-developers app
I followed a thread to make an ext2 partition (about 1 GB, unfortunately couldn't make it divisible by 256)
then read this thread and another one so i created a swapfile in that partition ( data/sdext2/ ) . now i have a couple of question about the swapfile
1.is that line important & why ??
omegahanggara said:
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
Click to expand...
Click to collapse
it's not present in pepoluan's code
pepoluan said:
To create a swap RAM:
Code:
su
targ=/mnt/sdcard/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=64
mkswap $targ
Click to expand...
Click to collapse
2. for heavy games, which is more recommended : 256 or 128 MB swapfile, pep said 64 which will b a bummer for me
pepoluan said:
I have experimented *a lot* with swap memory, and I can tell you with absolute confidence:
Swap files larger than 64 MiB *will* result in additional lags. Larger than 128 MiB, your phone will be very slow.
To activate, you don't need to reboot.
Go to the Terminal and enter the command:
cd /mnt/sdcard
ls .*
(replace "sdcard" with the actual location of where you created the swap file, of course)
Click to expand...
Click to collapse
one last thing : is the ls.* code different from the swapon code or they r the same ??
I made an sh file for this and placed it in init.d coz i want it to automatically run when the system boots. However it didn't work.
So for now i just placed it in /system/bin so that i only need to type enable_swap in the terminal.
Any way to make it work in init.d?
Any Answer ???
klacenas said:
I made an sh file for this and placed it in init.d coz i want it to automatically run when the system boots. However it didn't work.
So for now i just placed it in /system/bin so that i only need to type enable_swap in the terminal.
Any way to make it work in init.d?
Click to expand...
Click to collapse
I assume you put the swap file in /sdcard ?
The first partition of the SD Card does not get mounted until all scripts in init.d have finished. I'm experimenting with Stericson's new BusyBox, which includes the 'nohup' command.
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
I assume you put the swap file in /sdcard ?
The first partition of the SD Card does not get mounted until all scripts in init.d have finished. I'm experimenting with Stericson's new BusyBox, which includes the 'nohup' command.
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes I put it in sdcard. Thanks for the explanation. Please share if you succeed.
Edit: if its not possible through init.d, is there another way of automatically executing a script after init.d?
Sorry not really a Linux person, I'm more familiar with autoexec.bat
Sent from my GT-I8150 using xda app-developers app
klacenas said:
Yes I put it in sdcard. Thanks for the explanation. Please share if you succeed.
Edit: if its not possible through init.d, is there another way of automatically executing a script after init.d?
Sorry not really a Linux person, I'm more familiar with autoexec.bat
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Install SManager, add the script as a boot script. Boot scripts run using SManager always run after SD Card mounts.
Sent from my GT-I8150 using xda app-developers app
I don't have root on my devices and I'm a noob at it. My first question is, can Titanium Backup restore the data backups created by Helium? If not, what app can?
Second is, what is the most efficient way to get superuser installed on the OUYA using a PC? The thread in the dev section does not give me great confidence in following those instructions.
Sent from my GT-P3113 using Tapatalk 2
Might be able to install Titanium Backup on the OYA and restore apps and data.
For SuperUser:
Setup wired and/or wireless ADB as per http://forum.xda-developers.com/showthread.php?t=2272266
(Optional) Put adb.exe in your Windows PATH variable so you can run it from anywhere
Download and unzip the SuperUser files from http://d-h.st/BBk
Open an ADB shell and mount the system partition as read-write
Code:
adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
Install SU, SuperUser, and BusyBox (from the ZIP in step 3)
Code:
adb push su /sdcard/su
adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
adb install com.koushikdutta.superuser.apk
adb install stericson.busybox.apk
I got titanium backup installed and all the superuser privileges. I am to tired to try to do the restores , it seems at a minimum I'll have to place the folders and files created by Helium in titanium backup"s default folders and see if they are recognized.
Sent from my GT-P3113 using Tapatalk 2
TadeoNYC said:
I got titanium backup installed and all the superuser privileges. I am to tired to try to do the restores , it seems at a minimum I'll have to place the folders and files created by Helium in titanium backup"s default folders and see if they are recognized.
Sent from my GT-P3113 using Tapatalk 2
Click to expand...
Click to collapse
Did this work for you? I also have some Helium backups from before my device was rooted, that I want to try to restore with Titanium. I would restore them with Helium... if the damn thing worked! It always restores the app, then never completes when it's trying to restore the app's data.
clarkg said:
Did this work for you? I also have some Helium backups from before my device was rooted, that I want to try to restore with Titanium. I would restore them with Helium... if the damn thing worked! It always restores the app, then never completes when it's trying to restore the app's data.
Click to expand...
Click to collapse
So far as I remember it wasn't possible, definitely not with TiBu. After routing OUYA I wound up rooting all of my devices, so transfers are easy now. I use Android Tuner pro not TiBu now, from my experience, and some others, android tuner is better at moving backups between devices.
Sent from my Nexus 7 using Tapatalk 4