This is not my doing or work, I just found it and am sharing it so please don't blame me for stealing or using anyone elses work
This is the script I found in squidlys rom and it is saved in system/xbin, if I can figure out how to post a file on here through the xda app on my phone I can give you guys the files used to run the fix. You can run the command in terminal emulator but im guessing first you may want to create a folder on the sd card named stock and then move the file battery manager to it and then run the script and restart the phone, that's what I did and it worked.
#!/system/bin/sh
if busybox [ -e /sdcard/stock/BatteryReport.apk ];
then
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
busybox cp /sdcard/stock/BatteryReport.apk /system/app
sync
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
echo 'battery manager fix'
else
echo 'battery manager not fixed'
echo '1) Place battery report App On The SDCard'
echo '2) Turn Off USB Storage'
echo '3) Rerun Script To Try Again'
fi
Sent from my DROID2 using XDA App
Well I can't figure out how to attach a file through the xda app on my phone and I loaded the actual page on my phone and it wont pull up my phones sd card directory so if you want the file I can post them when I get off work but the txt that I posted above is the actual file, I opened it within txt editor and copied it so if you can save it as the same kind of file that is in system/xbin (I don't know the extentions or what kind of files they are) then you could probably do it without my help, the original file name is battmanfix. Thanks for reading
hmm, just looking at the script i'd say it shouldn't work
not sure what squidlys changed in his rom (if it is for droid 2) but the default d2 mount point for /system is /dev/block/mmcblk1p21 and also file system is ext3...
did you test it?
Well I already had the folder on my sd card from the squidly rom and pretty much coppied the file to my xbin in the system folder and ran the command through the terminal emulator and it seemd to work afterwards...there were no errors in the terminal or anything and when I typed in battmanfix it responded with the whole name battery manager fix and I checked my battery manager and it worked... that's exactly what it did with squidlys so idk...
Sent from my DROID2 using XDA App
ok... so here's something funny... Looking at the script, basically all this is doing is replacing (and reactivating) the batteryreport.apk. So... me thinks to myself - "self; what happens if I just try to click on the apk as if I was gonna install it?" obviosly it didn't install, but after doing that, my battery stats were back. Something is obviously happening to where the batteryreport.apk stops syncing with the system, and anything that "reactivates" it allows it to display again...
Just my observations, yours may vary
Well like I said at the begining I just thought it was interesting and I figured id share what I found..and I don't know a whole lot about linux and codes and scripts so thanks for the info and also I didn't write it, just found it..
Sent from my DROID2 using XDA App
Related
Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.
Before anyone flames me, I've searched a lot for this answer, so if I just missed it, please be kind.
Moving on, here's my problem. I got a little delete happy with Titanium Backup as root. I accidentally deleted HtcFacebook sync. My facebook still works and all that, but no longer can I sync my contacts. I've managed to acquire the .apk and the .odex and I read the little tutorial on droidsp0t.com but I can't seem to get these files moved correctly.
I'm on an EVO, Fresh Rom 3.3.0.1, using Android Terminal Emulator
Here's what I tried:
su
mount -o remount,rw yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/download/HtcFacebook.apk /sdcard/download/HtcFacebook.odex
mount -o remount,ro yaffs2 /dev/block/mtdblock4 /system
My unix is a little rusty. So this could be off by a mile, but I was trying to mount the system folder, specifically so I could copy these 2 files into my /system/app/ folder. Then, unmount the system folder. Both mounting and unmounting should require read/changes I believe. Any thoughts?
Long winded, but I want to be accurate. I hope someone can help me, and thank you in advance.
Bump. Anyone have any input?
Sent from my EVO using XDA App
have you tried installing the apk with astro?
I have. It shows me all the details, but then says "Application not installed". I believe it has to be installed by root recovery, but I can't seem to figure out how to do that.
thistimearound said:
Before anyone flames me, I've searched a lot for this answer, so if I just missed it, please be kind.
Moving on, here's my problem. I got a little delete happy with Titanium Backup as root. I accidentally deleted HtcFacebook sync. My facebook still works and all that, but no longer can I sync my contacts. I've managed to acquire the .apk and the .odex and I read the little tutorial on droidsp0t.com but I can't seem to get these files moved correctly.
I'm on an EVO, Fresh Rom 3.3.0.1, using Android Terminal Emulator
Here's what I tried:
su
mount -o remount,rw yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/download/HtcFacebook.apk /sdcard/download/HtcFacebook.odex
mount -o remount,ro yaffs2 /dev/block/mtdblock4 /system
My unix is a little rusty. So this could be off by a mile, but I was trying to mount the system folder, specifically so I could copy these 2 files into my /system/app/ folder. Then, unmount the system folder. Both mounting and unmounting should require read/changes I believe. Any thoughts?
Long winded, but I want to be accurate. I hope someone can help me, and thank you in advance.
Click to expand...
Click to collapse
This happened to me.. I think wiping oughta do it. Ti backup
Sent from my PC36100 using XDA App
I dont mean to jack this tread but I am having the same issue with teeter and my girl friend LOVES that game I am a bit of a noob but I tried astro same message app not installed and been searching with no result. I am using the same rom and everything some instruction would be great
any solution?
I have the same problem, if you find a solution plz share it with me..
Tried to manually push apk to system/app with permissions?
- - - - - - - - - - - - - - - - - - - - - - - - - -
LIFE!
IT'S WHAT YOU MAKE OUT OF IT!
I just unlocked and rooted my nexus s. Now im trying to stop the phone from reinstalling the custom recovery image and all im getting is problems.
I put in the command
mount-o rw,remount/dev/block/mtdblock3 /system
And every single time i get
mount-o : permission denied
Anyone have any ideas? im worried about rebooting my phone now cause i don't want to go through the whole process again. After reading around on XDA it doesn't seem like you are required to do this. Does anyone know if it will reinstall the custom recovery image if i don't do this step? I have searched everywhere to figure out the problem. But stilll im coming up with nothing. I have found people with other devices that have this problem. But nothing about fixing it.
If anyone has any ideas i really need help ASAP
try and grant yourself superuser & then try.
"su"
"mount -o rw,remount /dev/block/mtdblock3 /system"
You need a space after mount. -o specifies the mount options. The command is mount
Sent from my Nexus S using XDA App
aye, didn't notice that, couple of needed spaces. I've modified my original post.
Thanks i tried it but now it says mount-o not found.
Sent from my Nexus S using XDA App
If it says mount-o not found there's not a space between mount and -o.
mount -o remount,rw .........
Sent from my Nexus S using XDA App
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
No Android expert but I have experience with the CL. Pretty sure you're going to need to cd into the dir or write the full path to the file.
BTW what are the cool kids using for command line these days? Any of them have tab type features? ex: cd /syst<TAB>/me<TAB> for cd /system/media/
B2L said:
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I just used root explorer to rename the install-recovery.sh to install-recovery-no.sh. It disabled it from flashing over the clockwork mod recovery on reboot. After disabling it I flashed clockwork recovery again permanently.
Edit: The file is in the etc folder.
Sent from my Nexus S using XDA App
sarge363 said:
I just used root explorer to rename the install-recovery.sh to install-recovery-no.sh. It disabled it from flashing over the clockwork mod recovery on reboot. After disabling it I flashed clockwork recovery again permanently.
Edit: The file is in the etc folder.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Thanks i tried to just rename it with Root Explorer but it says it's a read only file. I can't figure out how to change it so it's not read only.
B2L said:
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
B2L said:
Thanks i tried to just rename it with Root Explorer but it says it's a read only file. I can't figure out how to change it so it's not read only.
Click to expand...
Click to collapse
you have to include the path
Code:
su
mount -o rw,remount /dev/block/mtdblock3 /system
mv /etc/install-recovery.sh /etc/install-recovery.sh.bak
or
Code:
su
mount -o rw,remount /dev/block/mtdblock3 /system
cd /etc
mv install-recovery.sh install-recovery.sh.bak
It's really just a lot easier with Root Explorer. If you use root explorer app, you have to push the little button at the top that says "mount r/w" or something like that. I usually do that rather than run the mount command, because I always forget the syntax for that one.
Yeah just hit the "mount R/W" button on top when u open Root Explorer. It changes to "Mount R/O" and u can rename it after that.
Sent from my Nexus S using XDA App
So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
7zip will allow you to move files into the archive without extracting. Not 100%, but on my moment files needed to be zipped in a special way. If you absolutely have to extract it then I'm pretty sure you have to change compression settings to no compression. I'm also fairly sure that if you mess up CWM won't let you flash it.
Mount your /system as rw
Download terminal emulator and type
Su
Mount -o rw,remount -t ext3 /dev/block/mmcblk3p26 /system
Then install
Sent from my PG06100 using XDA App
i believe i did everything as instructed, but the file still didn't install.
I can't get the files moved with 7zip either. I'm pretty sure thats not the correct way of doing it anyway.
Follow the remount command above, then copy it to system, don't install
cp /sdcard/whateverFolder/blah.apk /system/app/
Sent from my PG06100 using XDA App
IT LIVES!!! Thank you very much.
I understand the the copy command that I did through terminal emulator, but what is the first command? I can at least figure out that i'm telling the emulator to mount the phone as r/w, then remounting it for edit i think, but i'm not sure what the "ext3 /dev/block/mmcblk3p26 /system" part means. Could someone explain that? I really want to get more involved in my phone, so i'm trying to learn all I can.
I'll walk you through it.
mount = the base command
-o = with options
rw, remount = add the read/write option, and remount
-t = using file system type
ext3 = the file system type
/dev/block/mmcblk0p26 = the absolute path to the special device file that points to that partition
/system = when you mount that partition call it /system (which it already was, hence the remount option earlier)
Sent from my PG06100 using XDA App
Awesome, thank you very much.
Where did you find the mikshift folder you are talking about on here? I would like to install Sprint TV as well. Thanks.
J_Mod45 said:
So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
Click to expand...
Click to collapse
Sorry about that wished I'd seen this post earlier. Was busy most of the morning . But if your on MikShifted and want the Stock Sprint apps, go HERE. The thread should have the ones your looking for .
I think I'm starting to go slightly insane here.
Can't for the life of me mount /system as rw, it's only ro.
Ways I've tried:
- using mount command in terminal emulator
- using rw remount button in total commander
- using adb shell to do the same thhing as terminal emulator
i have supersu and all of the above were granted superuser but still no luck
here's relevant part of console output, but it doesn't do anything.
Code:
D:\Downloads\adt-bundle-windows-x86_64-20131030\sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # mount
mount
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
[email protected]:/ # mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
the directory stays read-only.
the whole reason i'm trying to do this is so i can stick in a boot animation (link) into system/media ...is there an easier way? i've tried 3 different file explorers with super but they all fail because it's not rw.....
and adb cant push to it either because it's rw.......
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
rootSU said:
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
Click to expand...
Click to collapse
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
DryEagle said:
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
Click to expand...
Click to collapse
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
rootSU said:
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
Click to expand...
Click to collapse
thank you!! this solved it!
No worries
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit