[Q] peppermint's battery fix question - Motorola Droid X2

Since the zip isn't flashable, I found the directories where the files should go, and how to change permissions, but should I change them per peppermint's instructions or give the new files the same permissions as the ones that were included in the rom build? they are different.
peppermint says to use these permissions for the files in his zip
[x] [x] [_]
[x] [_] [_]
[x] [_] [_]
but the permissions on the bin file on my phone now are below, the permissions on the lib file are as above
[x] [x] [x]
[x] [_] [x]
[x] [_] [x]
and should I wipe cache/dalvik when done?

Get root explorer. Navigate to /system directory, push the "Mount R/W" button to set the file system to read/write. Then, navigate to each file, long press on it until the menu comes up and select the "Permissions" menu item and set your permissions that way.
Once done, click the "Mount R/O" button again in Root Explorer to mount /system back to read only and you're done.

Related

[Q] apps2sd and cache2sd on the fly (WITHOUT reboot) for HTC builds

okay
topic is related to apps2sd, cache2sd and symlinking. The end goal is to produce a process on HTC code based ROMs where we can just "move" both apps and dalvik-cache from internal to the sd ext and back WITHOUT having to reboot the phone
Through shell scripts run from Terminal or GScript I have been able to get dalvik-cache (/data/dalvik-cache - /system/sd/dalvik-cache) to move back and forth on the fly with no ill effect (at least that I have been able to find). BUT apps (/data/app and /data/app-private - /system/sd/app and /system/sd/app-private) are more complicated in that they no longer show up in the app drawer of the lancher program.
A few relevant points on the .apk files:
* I can run the script that moves the app files then via root explorer use the install command and they show up again...
* I can run the script that moves the app files and then reboot the phone and all apps show up again...
SO my questions are:
1) What are all the meta-data and system data locations that are populated when .apks are installed?
2) What specific setting are out of place that causes the app to not show after moving the physical files and establishing (or removing) directory symlinks?
3) How can we force sync so that we can just "move" apps on the fly WITHOUT reboot similar to CyanogenMod builds...
seems like there is just a setting in a db or xml file somewhere that needs to be refreshed after the files are move and the directories are symlinked (or symlinks are removed) :/
If helpful I have attached a .zip file including the following shell script files I use in the process
* 04apps2sd - run via the init.d boot process to check if sd card and ext partition are available and then basically sets and stores a system property of sdactive.
* apps2sd.xtr - runs when executed and checks that proper directories are in place, moves app and app-private files and creates symlinks
* apps2internal.xtr - runs when executed and checks that proper directories are in place, moves app and app-private files and removes symlinks
* cache2sd.xtr - runs when executed and checks that proper directories are in place, moves dalvik-cache files and creates symlinks
* cache2internal.xtr - runs when executed and checks that proper directories are in place, moves dalvik-cache files and removes symlinks
1. Data for the apks are located in /data/data. Each application has its own folder under that.
2. Ran into this very issue with Darktremor 2.7 update 3r1 and 2.7.5 Preview Fix. The issue I had was that, when I copied the files, I wasn't copying the permissions.
It's was actually a simple fix:
Code:
Old way: /system/xbin/busybox cp -f /data/app/* /system/sd/app
New way: /system/xbin/busybox cp -fp /data/app/* /system/sd/app
The -p command copies the file while leaving the permissions intact. Once I changed all the cp lines to use -p, all worked correctly.
3. I know I never reboot when I move applications from internal to sd (or vice versa). The programs follow. However, it could be setting permissions on /data/app and /data/app-private. I usually use chmod 777 (overkill, I know) and it works fine for me.
I do a reboot when I move dalvik-cache, but that is because a few apps have issues when the dalvik-cache is moved while they are running. Technically, it isn't necessary.
zach.xtr said:
SO my questions are:
1) What are all the meta-data and system data locations that are populated when .apks are installed?
2) What specific setting are out of place that causes the app to not show after moving the physical files and establishing (or removing) directory symlinks?
3) How can we force sync so that we can just "move" apps on the fly WITHOUT reboot similar to CyanogenMod builds...
seems like there is just a setting in a db or xml file somewhere that needs to be refreshed after the files are move and the directories are symlinked (or symlinks are removed) :/
If helpful I have attached a .zip file including the following shell script files I use in the process
* 04apps2sd - run via the init.d boot process to check if sd card and ext partition are available and then basically sets and stores a system property of sdactive.
* apps2sd.xtr - runs when executed and checks that proper directories are in place, moves app and app-private files and creates symlinks
* apps2internal.xtr - runs when executed and checks that proper directories are in place, moves app and app-private files and removes symlinks
* cache2sd.xtr - runs when executed and checks that proper directories are in place, moves dalvik-cache files and creates symlinks
* cache2internal.xtr - runs when executed and checks that proper directories are in place, moves dalvik-cache files and removes symlinks
Click to expand...
Click to collapse
Thanks I will try this out...
Okay well thanks for the code but i have tested this and no success
To be clear i am running on the phone, not adb, via gscrips or terminal and the apps still do not show in app drawer unill phone is rebooted...
Any other ideas?
Sent from my Eris using XDA App
try to modify this files /data/system/packages.xml i think this file tells the system where the apks are located.

Restore Voice Command (Include all language) - Nuance

Method 01 - Using the CWM (Easiest !!!)
Transfer the “voice.nuance.recover-v1.zip” to your SDCARD. <Step 1>
- Boot into recovery mode
- Now Scroll to “install zip from sdcard” and select it.
- Select “choose zip from sdcard”.
- Scroll to the file you transferred in Step 1 and select it.
- Now confirm installation by selecting “Yes — Install voice.nuance.recover-v1.zip”
- Once the installation is complete, go back and select “reboot system now”That’s it.
www*4shared*com/file/6LDZihkN/voicenuancerecover-v1.html
Please, change the * for .
Method 02 - Using the shell command
- 1o) Unzip the file voice.nuance.zip in SD Card
- 2o) Install SSHDroid from Market (default user root, password admin)
- 3o) Access your phone (use the putty on windows or native ssh on linux)
- 4o) Run the follows commands:
su -
mount -o remount,rw /dev/block/mmcblk0p12 /system
cd /
cp /sdcard-ext/voice.nuance/VSuiteApp.apk /system/app
tar xvfz /sdcard-ext/voice.nuance/system.etc.nuance.tar.gz
tar xvfz /sdcard-ext/voice.nuance/system.tts.nuance.tar.gz
chmod 644 /system/app/VSuiteApp.apk
reboot
- 5o) Done !!! Have fun....
voice.nuance.zip - www*megaupload*com/?d=XFGLCTJE
Please, change the * for .
Hello
This doesn´t work for CM7.
The app does a FC..
I installed vsuite 4.0 and it worked fine, but It just works with english commands. I would like to chang it to portuguese.
Maybe this ZIP is installing / overwritting the old version.
Do you think it´s possible to get only the language files for V4.0 ?
install from zip
I cant install from the zip file on my pantech break out, i get a signature error
can someone pls reupp this? thx.
Confirmed, not working. Installed in Neutrino 2.8. CWM did not install anything at all. Did manually, but still FC's...
However, I had a cwm backup of my earlier rom, from where I extracted the respective files, copied them manually to /system folder, fixed permissions, and it started working.
The extracted files can be downloaded here. I used ES File Explorer with root access enabled to copy files, but any file explorer such as Total Commander, Root Explorer, etc., can be used.
1. Download and unzip above file to your external or internal storage in a temp folder.
2. Copy VSuiteApp.apk file from system/app in unzipped folder to /system/app folder on your device
3. Copy nuance folder from system/etc in unzipped folder to /system/etc folder on your device
4. Copy libvsuite_mot_vs32_cmb103.so file from system/lib in unzipped folder to /system/lib folder on your device
5. Copy nuance folder from system/tts in unzipped folder to /system/tts folder on your device
6. Fix permission on all copied files (individual or in folders copied over) to rw- r-- r--.
7. Reboot, and hopefully it will work.
Thanks you unikorn.
This solution is not working for me on SGS2 (Lightning 6.1 - 2.3.4)
Done it step by step.
Its crashed on start.
E-P-S said:
Thanks you unikorn.
This solution is not working for me on SGS2 (Lightning 6.1 - 2.3.4)
Done it step by step.
Its crashed on start.
Click to expand...
Click to collapse
that's because it is meant for Atrix 4G, not SGS2. Lib file is specifically for Atrix hardware. If you can find lib file for SGSII somewhere (may be from stock rom image), it might work for you. No harm in trying I guess
unikorn74 said:
6. Fix permission on all copied files (individual or in folders copied over) to rw- r-- r--.
.
Click to expand...
Click to collapse
Thanks! This worked for me! Although it did FC at first. I went in and set permissions on each file and folder I copied to rwx rwx rwx, and than it ran fine. Not sure rwx is needed across the board like that, but at least it worked.
I am on TopSmarts 1.2 ROM.
Oh, and in case someone needs help view in the system folder, I referenced this http://androidforums.com/optimus-v-...9-guide-es-file-explorer-root-operations.html
Hmmmm, strange. I myself flashed TopSmarts 1.2 a few days back, so did the same procedure as I posted above. Worked fine for me. Don't know why you got that problem. But anyway, glad that it worked for you in the end. Cheers.
FC on my ATRIX with CM 7.2 ROM
I've set the permission to rw- r-- r-- to all files and directories I've copied to the system direcotry
I've only copied part of the tts files ('enus' and 'frfr' ones).
I follow the steps, fixed permission from rw- r-- r-- FC, rwx rwx rwx FC and back to rw- r-- r--. But app FC, even get a pop up at startup saying the app closed.
Disabled Cyberon Voice Command, and Voice Dialer but no luck so far.
I'm on AOKP (4.1.2) perhaps is meant to work in 2.3.6?
unikorn74 said:
However, I had a cwm backup of my earlier rom, from where I extracted the respective files, copied them manually to /system folder, fixed permissions, and it started working.
The extracted files can be downloaded here. I used ES File Explorer with root access enabled to copy files, but any file explorer such as Total Commander, Root Explorer, etc., can be used.
1. Download and unzip above file to your external or internal storage in a temp folder.
2. Copy VSuiteApp.apk file from system/app in unzipped folder to /system/app folder on your device
3. Copy nuance folder from system/etc in unzipped folder to /system/etc folder on your device
4. Copy libvsuite_mot_vs32_cmb103.so file from system/lib in unzipped folder to /system/lib folder on your device
5. Copy nuance folder from system/tts in unzipped folder to /system/tts folder on your device
6. Fix permission on all copied files (individual or in folders copied over) to rw- r-- r--.
7. Reboot, and hopefully it will work.
Click to expand...
Click to collapse
Confirm CM7 situation please
Hi
Somebody can confirm if this software runs on CM7.*?
Thanks.
clemare
unikorn74 said:
However, I had a cwm backup of my earlier rom, from where I extracted the respective files, copied them manually to /system folder, fixed permissions, and it started working.
The extracted files can be downloaded here. I used ES File Explorer with root access enabled to copy files, but any file explorer such as Total Commander, Root Explorer, etc., can be used.
1. Download and unzip above file to your external or internal storage in a temp folder.
2. Copy VSuiteApp.apk file from system/app in unzipped folder to /system/app folder on your device
3. Copy nuance folder from system/etc in unzipped folder to /system/etc folder on your device
4. Copy libvsuite_mot_vs32_cmb103.so file from system/lib in unzipped folder to /system/lib folder on your device
5. Copy nuance folder from system/tts in unzipped folder to /system/tts folder on your device
6. Fix permission on all copied files (individual or in folders copied over) to rw- r-- r--.
7. Reboot, and hopefully it will work.
Click to expand...
Click to collapse
It works perfectly on my MRom
Thank you

DATA: Linking to system

This only works for Roms which mount the system RW at boot.
Use link2sd (or similar)
List all apps
Sort by data size
Note the largest data folder name
Use Root Explorer
Go to data/data
Find the data folder
Move the folder to system/app
Press and hold folder
Select link to this folder
Go to data/data
Paste in link
Reboot.
Repeat for other apps if you have space. Leave some room for expansion.
Sent from my GT-S5830
Now that I'm running JB AOKP I've set Tasker to execute the following script at boot.
busybox mount -o remount,rw /system
This mounts system rw
Sent from my Galaxy NexAce!

New Custom BootSound and Instructions

Credit's go to Eollie and ricspeed From AndroidCentral where I found the information below
The oroginal post can be seen here
http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/114730-how-boot-sound.html
The bootanimation is the stock animation for the XT912
I have a XT910 so I put it in the folder for other XT910 users
I did a bit of chopping and splicing for this bootsound, hope you enjoy it
If you're like me and had no audio on boot here's the steps made noob proof from the post above
Make sure you're rooted
extract folder and place files on either internal or external sdcard, just make sure it's in the root folder (not within any folders)
Install RootBrowser
Grant SuperUser Permissions
go to location of files (sdcard or sdcard-ext)
menu > Multi-select
select bootanimation.zip and RazR-CusT-BooT.ogg
Copy
go to /system/media/
long press bootanimation.zip and select rename
rename it to bootanimation.zip.bak
paste
log press RazR-CusT-BooT.ogg and select copy
go to /system/media/audio/notifications/
paste (I also had a notifications2 folder, I pasted it there as well)
Go back to sdcard or sdcard-ext (wherever you saved the files)
long press init.local.rc
go to /system/etc/
rename init.local.rc to init.local.rc.bak
paste
make sure permissions are set to rw-rw-rw
(if not long press and edit permissions)
Go to /system/ and open build.prop
open with text editor
look for ro.config.play.bootsound=1
delete entire string
menu "save and exit"
reboot
There still shouldn't be any bootsound
Install Android Terminal Emulator
Grant Superuser permission
open android terminal emulator
type the following
su (enter)
cd /sdcard (if placed on internal sdcard) (enter)
cd /sdcard-ext (if placed on external sdcard) (enter)
sh bootsnd.sh (enter)
(ignore any errors)
reboot - you have sound now
Optional - I also included a ringtone that I made that I personally like
you can place it in /system/media/audio/ringtones/ to be able to select it natively
Download Link - http://bit.ly/XmIRzv
Just Audio
If anyone wants just the audio without all the other stuff here you go
Like I said, the boot audio timing is made to work with the stock XT912 bootanimation
RazR-CusT-BooT : http://bit.ly/Wc1DbK
Niggas In Paris Ringtone - http://bit.ly/U3lwmN

Root Explorer Permission change

So im very confused
I'm try to edit the Boot sound.
So i maked my own PowerOn file (sound) and now i changed the Permissions of the file
But where did the PowerOn.ogg have to move (copy)?
My 7 sec. PowerOn.Ogg was already in the /system/media/sounds/ui
And in /system/etc, too
But it didnt work
ByTheWay : in the etc folder are 0 sound files
And in the media folder too (except for the ui folder there are some sounds, but no PowerOn file
Use Rom Tool Box or Root Explorer which must be mounted with -r-w permissions.
and until unless your file is placed under /root folder you can't change the permission for the file.
No chanche
I already mounted as R/W but doesnt work
I said every ROOT BROWSER!!! So romtoolbox is included to Every.
Master english i know

Categories

Resources