Related
Hello,
I found this thread :
http://forum.xda-developers.com/showthread.php?t=765419
and I have some questions about this :
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
4) Do you know an other easylier method to tweak icons on the HD2 under android ?
Thanks a lot !
+1 I asked myself to but no time to seach forum
@Karlichon
What is with this batmod? Are you done with them?
karlichon said:
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
Thanks a lot !
Click to expand...
Click to collapse
Ok I think I'll answer this, but bear with me as it's NOT easy or for the faint of heart. If you read this and you DO NOT feel comfortable I would recommend you not giving this a go.
Before you start ANY of these steps below, MAKE SURE YOU BACKUP YOUR FILES BEFORE REPLACING THEM. I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED FOLLOWING THESE STEPS! You have been warned.
1) Visit the website above and run through the steps to get the battery images you want. For the purposes of this tutorial/howto I am not covering how to change anything else (KISS: Keep It Simple, Stupid).
2) The easiest ones to change are the Version A-I ones, just choose which battery set would work best for you on your phone and click "Next"
3) Choose "Do not include icons" and click next. The icons it is talking about here are the signal, wifi, usb etc notification bar icons and as I mentioned I will not cover how to change those here.
4) Leave "Do not change notification status bar" selected and click next. Again I'm not covering that here.
5) You can choose a different boot anim if you want, they are very easy to upload to your phone and you can figure out where they have to be put yourself with no problems. IMPORTANT: If you do change the boot animation, make sure you choose the correct type of rom you have from the dropdown selection.
6) Upload your existing framework-res.apk (using something like DroidExplorer, navigate to /system/framework and paste it onto your desktop, then upload here). This will update the relevant files in your framework-res.apk automatically. (If you cannot obtain your existing framework-res.apk I cannot guarantee method 2 will work, sorry but feel free to try)
7) Replace your framework-res.apk (via DroidExplorer or your chosen ADB browser) on your phone and reboot. Voila!
This worked for me on shubcraft 2.0 drop mode but obviously I cannot guarantee it will work for everyone. Please remember my warnings above that this is not guranteed.
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
karlichon said:
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
Click to expand...
Click to collapse
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
is the page currently partly down?
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
It doesn't seem to work all that well with frameworks from our current modded builds. I've tried it with a rooted desire framework (from my gf's desire) and that worked. Evidently all the work that the devs do on our hd2's make them very different to other android builds. the second method I posted (adding the png's to your existing framework) works perfectly.
BlackPit666 said:
is the page currently partly down?
Click to expand...
Click to collapse
Nope, seems up to me.
yes its up again
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
for me the same, desirehd revolution rom of mdj
can anybody help me?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
can you tell me which files i need to replace to get another battery icon? only the files which "batt" in it?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
This method will not work with the battery icons which shows all 100% increments. This method will only work for the standard battery icons, which only involves like 12 battery icons.
In order to add the 1% increment readings in the battery, it involves modifying xml files to read and associate the correct battery icons at each increment.
can you give a tut how to add the version a manually?
nvm, I got it!
Hi all,
I'm still not allowed to post it on devel forum, so I'll put that one here.
I've managed to have call record button enabled ripping some files from Korean roms and dropping them inside an european one.
I did it on Litenin' rom, but it should work on all other roms.
So, for instructions :
1) Grab the attached zip and unpack it; you'll get 2 folders (app and lib) containing each 2 files.
2) Unpack any available factoryfs.img file, mount it and REPLACE the 2 .apk (Phone.apk and Phone_Util.apk) with the one provided here; they go in app folder in mounted image; the same for the 2 lib files (libaudioflinger.so and libaudiopolicy.so) which go into lib folder of mounted image.
AFAIK that one should be done in linux.
3) repack the image and flash it to phone.
That's all ! on next call, you'll get a RECORD button and your call will be recorded in .amr format; I found that other's part voice is perfect and loud, my voice is somehow lower volume but very usable.
The small caveat is in call settings menu, on my phone it appears in english instead of italian....
Ciao
Max
sounds great, but....is there a more newbie way of doing it?
XD
rafael000 said:
sounds great, but....is there a more newbie way of doing it?
XD
Click to expand...
Click to collapse
Hmmmm... no
For now, at least.
I could post the modified Litenin rom 1.3 (the one I use) so you can flash it on usual ways.
But I can't do it right now, tomorrow it's possible.
Ciao
Max
MicioMax said:
Hi all,
I'm still not allowed to post it on devel forum, so I'll put that one here.
I've managed to have call record button enabled ripping some files from Korean roms and dropping them inside an european one.
I did it on Litenin' rom, but it should work on all other roms.
So, for instructions :
1) Grab the attached zip and unpack it; you'll get 2 folders (app and lib) containing each 2 files.
2) Unpack any available factoryfs.img file, mount it and REPLACE the 2 .apk (Phone.apk and Phone_Util.apk) with the one provided here; they go in app folder in mounted image; the same for the 2 lib files (libaudioflinger.so and libaudiopolicy.so) which go into lib folder of mounted image.
AFAIK that one should be done in linux.
3) repack the image and flash it to phone.
That's all ! on next call, you'll get a RECORD button and your call will be recorded in .amr format; I found that other's part voice is perfect and loud, my voice is somehow lower volume but very usable.
The small caveat is in call settings menu, on my phone it appears in english instead of italian....
Ciao
Max
Click to expand...
Click to collapse
I made it a update.zip the KF1 at work thank you.
http://www.multiupload.com/TTX9ZFC82G
this can be easily done in Root Explorer correct? what is the folder structure again that i need to copy & paste the new files over?
xxlikquidxx said:
this can be easily done in Root Explorer correct? what is the folder structure again that i need to copy & paste the new files over?
Click to expand...
Click to collapse
apks go into system/app
libs go into system/lib
Nice feature!
Do you have a screenshot of the phone screen with the button and the settings?
Can it be set to always record automatically?
Multi language:
http://www.multiupload.com/7YEG4W0GZN
Install CWM
Thanks for the screenshot.
So this mod replaces the "Add call" button with the Record/Stop button. Is this function still accessible somewhere, maybe in the menu?
mhhhh... Today I've seen that when using my bluetooth headset the record button is disabled
I guess this stuff should be hacked a bit more.
snark_be said:
Thanks for the screenshot.
So this mod replaces the "Add call" button with the Record/Stop button. Is this function still accessible somewhere, maybe in the menu?
Click to expand...
Click to collapse
Yes, the menu during a call
done through CW Recovery
on litening Rom 1.3 ...
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
EDIT:
i reflashed litening and now it works.
what about automatic call rec,without asking if i want a rec? thanks
hazem77 said:
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
Click to expand...
Click to collapse
Most probably because you flashed the Call Recording apks for KF1, while Litening ROM 1.3 is based on KE8.
Has anyone just copied the libs across and then used third party app (Total Recall for instance) with the standard recording policy?
I may try it later, this was all I needed to get the SGS I recording working properly.
I guess the correct way would be to have the sources of both audio libraries (.so) and apks and rebuild them after patching.
For the apk it's easy to decompile, but we should find the sources of .so, both for stock ones and korean ones, and look for differences.
Once the differences are known and sources available, it should be easy to add some useful features.
BTW, has anybody tried recording with bluetooth headset ? With mine it seems not working, and I'd like to know it it's a general problem or just mine
Ciao
Max
hazem77 said:
done through CW Recovery
on litening Rom 1.3 ...
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
EDIT:
i reflashed litening and now it works.
Click to expand...
Click to collapse
It should be enough to replace the apks and libs with litening original ones.
Weird problem, indeed... on my phone it works well, even if I haven't tested it very deeply.
Max
anzo said:
Multi language:
http://www.multiupload.com/7YEG4W0GZN
Install CWM
Click to expand...
Click to collapse
Tryed with your update and CWM, and Phone apk crashes on my phone.
That's because I've got litenin 1.3 ? What did you change to make it multilanguage ?
Even just repacking both apks in factoryfs.img does crash. With my grabbed apk is all ok, besides the language.
Max
Works perfect on KF1. Many thanks!
So where does it save the recording?
anzo said:
I made it a update.zip the KF1 at work thank you.
http://www.multiupload.com/TTX9ZFC82G
Click to expand...
Click to collapse
How do I push it? I'm on Litening 1.4
Hi again! Does anyone got volume rocker awake to work on a rootet original. Fw 2.3.5 to work? Incase, how.?
EDIT: It seems that yannn007 has an easier way: http://forum.xda-developers.com/showpost.php?p=22163390&postcount=95 I tried it, and it didn't work for me, unfortunately.
Since I promised to add to the wiki, let this be the first. I learnt this trick from a ROM by birdyi, so I credit him; however, I have seen it in ROMs that existed before his did.
How to make the volume rocker wake up the phone with the stock locker
Prerequisites:
apktool
Obtain /system/framework/android.policy.jar from your phone
Decompile said file using apktool
Open android.policy.jar.out/smali/com/android/internal/policy/impl/KeyguardViewMediator.smali (note, if you chose to extract to a different folder, then replace "android.policy.jar.out" with the name of your chosen folder)
Find the line ".method private isWakeKeyWhenKeyguardShowing(I)Z"
In this function, look for:
Code:
:sswitch_data_0
.sparse-switch
Underneath that, you'll see the following:
Code:
0x18 -> :sswitch_0
0x19 -> :sswitch_0
Remove the 0x18 and 0x19 lines, save and use apktool to rebuild the android.policy.jar file. Place it back onto your device and restart.
can u put the file already modified here?
It differs depending on ROM, I think
is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
i am not familliar with this method and i am afraid of doing it
Magiclocker. No battery drain, full sleep. volume buttons does wake device, tested on u8800pro, gingerbread rom540 by geno, rooted.
mclaudio said:
is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
Click to expand...
Click to collapse
Would also like that,thank you
Any dev can help?
widget locker also use volume rocker sw. for awake.i think no memory usage and min battery drain
HAhahahaha works!!!! Dammit I love open communities!
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
It works just fine on B522, thank you, barkiniseri!!
See my thread here also for a flashable version or returning to stock:
http://forum.xda-developers.com/showthread.php?t=1530084
works
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.
soguzar said:
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.
Click to expand...
Click to collapse
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
True! But... "One, does not simply find and use apktool"
jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.
soguzar said:
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.
Click to expand...
Click to collapse
Sorry, i thought it had been packaged in a zip. Either way, what i mean is make the mods to your own file, to avoid issues where you install a file from a ROM or version that is different to what you have and make things break. The mod is easy to do.
Sent from my U8800 using XDA
Thanks for the tutorial.
I finally find a way to but volume buttons waking up my phone!
Thanks
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
Tried this file on mine and almost got bricked... I thought this would be compatible with the new ICS from DZO.
When I rebooted the phone, it got stuck on the Aurora ICS screen. I had to reinstall original ICS plugging the phone to an USB without the battery. If the battery was on the phone I just got the pink screen when rebooting with volume up+down+power...
My phone specs:
U8800
Android 4.0.4
Kernel 3.0.8-perf-g2600408-dirty
Build Aurora_4.1.4.0.4 IMM761 eng.
Martin.20120605.162907 test-keys
And since I don't have the time to learn jar editing, I'll wait for the time being.
It is modified Framework for Pantech Element P4100 ICS 4.0.4 stock rom. I can make voice call with it. but when i try to call the number. it just hangup. no notification show. I am still trying to get receiving call working. It can dial out without any problem.
good job
it works on my pantech running t-mobile voice sim. Voicemail notifications works as well. Thank you for the good work.
how I can install this apk?
brizmontay said:
it works on my pantech running t-mobile voice sim. Voicemail notifications works as well. Thank you for the good work.
Click to expand...
Click to collapse
I tried install this apk to my element but it didn't work. my element rooted it. Please tell me how install it.
ksang1965 said:
I tried install this apk to my element but it didn't work. my element rooted it. Please tell me how install it.
Click to expand...
Click to collapse
Backup your rom first. then copy the file to /system/framework
it still not work
brizmontay said:
Backup your rom first. then copy the file to /system/framework
Click to expand...
Click to collapse
I appreciate your kind respond. I tried to copy file to /system/framework, but it did't work because it has already same file.
I tried overwrite it, but it didn't work too. how fix it?
ksang1965 said:
I appreciate your kind respond. I tried to copy file to /system/framework, but it did't work because it has already same file.
I tried overwrite it, but it didn't work too. how fix it?
Click to expand...
Click to collapse
What do you mean by "didn't work" ? Did your phone reboot after you copied the file?
can't replace file
brizmontay said:
What do you mean by "didn't work" ? Did your phone reboot after you copied the file?
Click to expand...
Click to collapse
I tried copy file to that directory, it had same file, so I TRIED OVERWRITE it but it's not work, I think that this file is read only file.
Please tell me how I can change this file attribute to rewrite it. if you know any app for this file copy if you know it.
ksang1965 said:
I tried copy file to that directory, it had same file, so I TRIED OVERWRITE it but it's not work, I think that this file is read only file.
Please tell me how I can change this file attribute to rewrite it. if you know any app for this file copy if you know it.
Click to expand...
Click to collapse
Use Es-file explorer.
On the left side of the app, go to
>tools
>root explorer
Root explorer should be toggled on.
you will get a prompt to grant superuser access to Es file explorer.
then go to
>mount R/W
and set system to RW
thanks !!! another problem
brizmontay said:
Use Es-file explorer.
On the left side of the app, go to
>tools
>root explorer
Root explorer should be toggled on.
you will get a prompt to grant superuser access to Es file explorer.
then go to
>mount R/W
and set system to RW
Click to expand...
Click to collapse
I got the that file and it's working.. thanks.. but another problem. I can call it, but I can't receive phone call.
it's not ring the bell at all. If I call my number, it said that this call can't use at this time and nothings working or just answering message come out.
call out is 100% working but call in is not working. do you know anything?
ksang1965 said:
I got the that file and it's working.. thanks.. but another problem. I can call it, but I can't receive phone call.
it's not ring the bell at all. If I call my number, it said that this call can't use at this time and nothings working or just answering message come out.
call out is 100% working but call in is not working. do you know anything?
Click to expand...
Click to collapse
No, I don't know anything about that. maybe you can contact the OP
help me if you can
mashi said:
It is modified Framework for Pantech Element P4100 ICS 4.0.4 stock rom. I can make voice call with it. but when i try to call the number. it just hangup. no notification show. I am still trying to get receiving call working. It can dial out without any problem.
Click to expand...
Click to collapse
did you find any solution? I have same problem. call out is 100% working, but call in is not working.. if you find any solution, please post it.
Any success on getting the incoming call working on element?
not sure
i think it installed correctly i copied the file over it rebooted but i cant find a phone button anywhere to give me a dial pad.i dont have a sim card in it right now will that make a difference as far as access to the dial pad. i know i cant call/receive w/o the card basically just wanting to figure out if its ready to try or not thanks
I was thinking of buying this phone but the swapped back and overview buttons would likely drive me crazy. Does the ROM bring an option to swap them to their expected positions? If not is there any tweak that can be done to achieve the same result?
https://play.google.com/store/apps/details?id=flar2.homebutton
dafzor said:
I was thinking of buying this phone but the swapped back and overview buttons would likely drive me crazy. Does the ROM bring an option to swap them to their expected positions? If not is there any tweak that can be done to achieve the same result?
Click to expand...
Click to collapse
You don't need an app, it is an easy mod.
Tulsadiver said:
You don't need an app, it is an easy mod.
Click to expand...
Click to collapse
Can you elaborate "mod"?
The phone can't do it out of the box it seems and all non root guides I could find relied on "Button Mapper" or "Buttons remapper".
tacc said:
Can you elaborate "mod"?
The phone can't do it out of the box it seems and all non root guides I could find relied on "Button Mapper" or "Buttons remapper".
Click to expand...
Click to collapse
Try this first. Copy off and unzip your SystemUI.apk. Go to your layout folder and locate recent_apps.xml and back.xml. Switch the names and replace. Zip it back up, change from .zip back to .apk and replace your SystemUi.apk.
Some phones are more complicated than that but I'd try that first. I normally would decompile and do those changes and recompile back.