How can delete the batterystats file? Im tryin to do that battery calibration thing but cant find the file.
SaneQ said:
How can delete the batterystats file? Im tryin to do that battery calibration thing but cant find the file.
Click to expand...
Click to collapse
Code:
su
rm /data/system/batterystats.bin
reboot
Related
I would like to use this Phone.apk file in this ROM.
Do I just unzip the ROM, replace the .apk, rezip the ROM, sign the .zip, and flash?
Is there only one Phone.apk file to replace?
Last thing I want is a paper-weight
Thanks!
I just thought of this: could I just install the .apk via a file manager (as long as unknown sources are checked)?
NViouz said:
I would like to use this Phone.apk file in this ROM.
Do I just unzip the ROM, replace the .apk, rezip the ROM, sign the .zip, and flash?
Is there only one Phone.apk file to replace?
Last thing I want is a paper-weight
Thanks!
Click to expand...
Click to collapse
First, you're not going to brick your phone.
Second, I don't know how CSDI works. Try it and find out.
NViouz said:
I just thought of this: could I just install the .apk via a file manager (as long as unknown sources are checked)?
Click to expand...
Click to collapse
No. Maybe if you remount /system in read-write, even then it's probably easier to try it by just replacing and resigning.
I know in donut, you can just replace it without any problems (like other system apps depending on it). Don't know about anything else.
Edit:
1. unzip and copy Phone.apk to /sdcard
2. remount system rw
3. cat /sdcard/Phone.apk > /system/app/Phone.apk
4. rm /system/app/Phone.odex (only do this if there is a Phone.odex file)
Click to expand...
Click to collapse
There's what the thread says about installing it, have you tried? (Nandroid in case that ROM doesn't like it.)
I'm usin Zeus 6.35 ROM and I want to use framework.jar from V20B stock ROM.
I deodexed it using dsixda kitchen and when I push it using QtADB I get bootloop.
Can anyone help me with this?
Maybe you need to chmod the permissions to 644? Dont exactly know, just guessing. Maybe it is simply incompatible...
N00BY0815 said:
Maybe you need to chmod the permissions to 644? Dont exactly know, just guessing. Maybe it is simply incompatible...
Click to expand...
Click to collapse
how?
http://lmgtfy.com/?q=adb+chmod
N00BY0815 said:
http://lmgtfy.com/?q=adb+chmod
Click to expand...
Click to collapse
So the code would be "#chmod 644 /system/framework/framework.jar" ?
Can I write this in shell in QtADB?
Looks good to me, but you might need su before, so you can edit files in system partition. Dunno, if you also need to mount it as writeable... Just test it
N00BY0815 said:
Looks good to me, but you might need su before, so you can edit files in system partition. Dunno, if you also need to mount it as writeable... Just test it
Click to expand...
Click to collapse
Okay I'll try it tomorrow tell if it didn't work.
Thanks for your help
1、Deodex android.policy.jar and android.policy.odex,get intact android.policy.jar.then Decompile android.policy.jar. after Modfied Recompileandroid.policy.jar.use dexopt-wrapper re-odex to get android.policy.odex.copy new android.policy.jar and android.policy.odex to /system/framework.modified file permissions and reboot.oh,phone alway stop at logo frame.
2、Deodex Original android.policy.jar and android.policy.odex,get intact android.policy.jar and do nothing.now, reodex android.policy.jar.copy to phone folder and reboot. phone stop at logo frame too.
first,I according to this GUID(http://forum.xda-developers.com/show....php?t=2125196) add a menu item.
second,After finished,my thread to deal with modfied files and operate phone.
that all.But reboot ...phone stop at logo frame
process
Code:
adb push odex /data/local/tmp/odex
adb shell chmod 755 /data/local/tmp/odex/*
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/android.policy.jar /data/local/tmp/odex/android.policy.odex
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/framework.jar /data/local/tmp/odex/framework.odex
adb shell
su
busybox cp -f /data/local/tmp/odex/android.policy.odex /system/framework/android.policy.odex
busybox cp -f /data/local/tmp/odex/framework.odex /system/framework/framework.odex
busybox cp -f /data/local/tmp/odex/framework-res.apk /system/framework/framework-res.apk
reboot
quywz said:
1、Deodex android.policy.jar and android.policy.odex,get intact android.policy.jar.then Decompile android.policy.jar. after Modfied Recompileandroid.policy.jar.use dexopt-wrapper re-odex to get android.policy.odex.copy new android.policy.jar and android.policy.odex to /system/framework.modified file permissions and reboot.oh,phone alway stop at logo frame.
2、Deodex Original android.policy.jar and android.policy.odex,get intact android.policy.jar and do nothing.now, reodex android.policy.jar.copy to phone folder and reboot. phone stop at logo frame too.
Click to expand...
Click to collapse
Maybe you should stop playing with things you do know nothing about.
Never saw a question looking so complicated and so empty at the same time.
What did you want to do? On what Rom?
ha.
official ROM V4.1.2
I try to add menu and so.And want to DIY.
quywz said:
ha.
official ROM V4.1.2
I try to add menu and so.And want to DIY.
Click to expand...
Click to collapse
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
ThaiDai said:
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
Click to expand...
Click to collapse
ok,I have modified my problem context.
ThaiDai said:
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
Click to expand...
Click to collapse
first,I according to this GUID(http://forum.xda-developers.com/showthread.php?t=2125196) add a menu item.
second,After finished,my thread to deal with modfied files and operate phone.
that all.But reboot ...phone stop at logo frame
What are you trying to add? 4 way reboot menu? Try this tutorial
http://forum.xda-developers.com/showthread.php?t=2038675
now problem is when update android.policy.odex and reboot,system stop at samsung logo frame
if u want a deodex to change it to odex u just need a autoOdex.bat n do it with a PC connect to ur phone.
i'm not sure how u do it but it's seem so complicated !
quywz said:
now problem is when update android.policy.odex and reboot,system stop at samsung logo frame
Click to expand...
Click to collapse
you cannot directly compile to and odex file,
1. decompile odex, do the changes
2. compile back to classes.dex file and add to the original Jar file using 7z to get a deodexed jar
3 now use any of the odexing scripts here in XDA
nokiamodeln91 said:
you cannot directly compile to and odex file,
1. decompile odex, do the changes
2. compile back to classes.dex file and add to the original Jar file using 7z to get a deodexed jar
3 now use any of the odexing scripts here in XDA
Click to expand...
Click to collapse
THX.You said alread had done.update that file to phone and reboot,phone is stop.process
Code:
adb push odex /data/local/tmp/odex
adb shell chmod 755 /data/local/tmp/odex/*
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/android.policy.jar /data/local/tmp/odex/android.policy.odex
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/framework.jar /data/local/tmp/odex/framework.odex
adb shell
su
busybox cp -f /data/local/tmp/odex/android.policy.odex /system/framework/android.policy.odex
busybox cp -f /data/local/tmp/odex/framework.odex /system/framework/framework.odex
busybox cp -f /data/local/tmp/odex/framework-res.apk /system/framework/framework-res.apk
reboot
first just use the deodexed one and see if its working or not.
nokiamodeln91 said:
first just use the deodexed one and see if its working or not.
Click to expand...
Click to collapse
thx for answering the question.pls look at http://forum.xda-developers.com/showthread.php?t=2272027.
I had update files one by one.
Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:
XDRdaniel said:
Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:
Click to expand...
Click to collapse
It's automatically executed on boot. But i think you can execute it by :
Code:
su
then
Code:
cd /system/miui-bin
then execute the script by mentioning it's name.
Never tried it, but worth a shot !
F4uzan said:
It's automatically executed on boot. But i think you can execute it by :
Code:
su
then
Code:
cd /system/miui-bin
then execute the script by mentioning it's name.
Never tried it, but worth a shot !
Click to expand...
Click to collapse
i tried this
su
cd /system/miui-bin
bootsound
it says
bootsound: not found
my guess is that there is another script that activates miui-bin folder, but wich one?
Try:
export PATH=/system/miui-bin:$PATH
Before doing the rest
XDRdaniel said:
Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:
Click to expand...
Click to collapse
This means that you are working on an MIUI ROM?
ast00 said:
This means that you are working on an MIUI ROM?
Click to expand...
Click to collapse
yes
XDRdaniel said:
i tried this
su
cd /system/miui-bin
bootsound
it says
bootsound: not found
my guess is that there is another script that activates miui-bin folder, but wich one?
Click to expand...
Click to collapse
Try this
su
cd /system/miui-bin/
./bootsound
If it gives an error other than file not found then check your permissions ...
To change permissions use chmod
If it gives file not found error then use root explorer and see if the path of file is correct ...also if the script boot sound has an extension (like .sh ) then you must mention it in the 3rd line ....
Good luck
Sent from my GT-S5570 using Tapatalk 2
Please delete this file from "bin" folder : gsiff_daemon
=> It's the main culprit draining the battery so fast !
Reboot to recovery, wipe cache and dalvik.
Reboot the system now !
which file do we need to change the line in?
shanky887614 said:
which file do we need to change the line in?
Click to expand...
Click to collapse
build.prop
marouane80 said:
build.prop
Click to expand...
Click to collapse
thank you, ive edited a few but im unfamiliar with linux fs in general, i really need to learn it
So it won't use the data connection until you choose too? What about background notifications?
This also works on TouchWiz Lollipop?
Please OP !
I'm on the 30.8.2015 cm 12.1
Don't have such a file?
marouane80 said:
Please delete this file from "bin" folder : gsiff_daemon
=> It's the main culprit draining the battery so fast !
Reboot to recovery, wipe cache and dalvik.
Reboot the system now !
Click to expand...
Click to collapse
This file does not exist!!!