How can I disable 180 rotation in portrait mode and disable bootmenu options? - Motorola Atrix 2

I recently installed the ICS Leak #2 and installed scv7, but there were several new features that annoyed me. I like to lie in bed to use my phone, so when I turn sideways, the screen turns from landscape mode to portrait mode, but the portrait mode is with the earpiece and camera at the bottom, and the buttons at the top. I have never had a problem with this with gingerbread/scv5. If anybody could tell me any way to disable it, that would be great, and I think the default launcher installed with scv7 is Holo Launcher, if I'm not mistaken.
One more thing, I had to install the Bootmenu manager when I was installing scv7, and everytime I hold the power button, then tap "Power off", I'm greeted with a list of options such as "Normal shutdown, reboot, and many other ones that I don't need, is there any way to disable this, and possibly add reboot back to the main list, like scv5?
Thanks.

CM9onmyMoPho said:
I recently installed the ICS Leak #2 and installed scv7, but there were several new features that annoyed me. I like to lie in bed to use my phone, so when I turn sideways, the screen turns from landscape mode to portrait mode, but the portrait mode is with the earpiece and camera at the bottom, and the buttons at the top. I have never had a problem with this with gingerbread/scv5. If anybody could tell me any way to disable it, that would be great, and I think the default launcher installed with scv7 is Holo Launcher, if I'm not mistaken.
One more thing, I had to install the Bootmenu manager when I was installing scv7, and everytime I hold the power button, then tap "Power off", I'm greeted with a list of options such as "Normal shutdown, reboot, and many other ones that I don't need, is there any way to disable this, and possibly add reboot back to the main list, like scv5?
Thanks.
Click to expand...
Click to collapse
Please don't re-post your issues, regardless of whether you feel you originally posted in an incorrect sub-forum. Ask one of the moderators to look at your post, and request it to be moved if necessary. You now have two posts with this issue (First one being HERE), and it clutters up the forum when people do this sort of thing.
As for the power menu found in the BootMenu app, that's just part of the application. You might find it very useful later on down the line. If you're just wanting to reboot, it only adds one additional click, so I wouldn't concern yourself too much over it. And, like I said, it may come in handy (and save your arse) at some point...

I think I may have just soft bricked my phone again. Stuck on the boot screen now, with the flashy scv7 thing. I edited framework-res.apk but must have improperly put it back.

CM9onmyMoPho said:
I think I may have just soft bricked my phone again. Stuck on the boot screen now, with the flashy scv7 thing. I edited framework-res.apk but must have improperly put it back.
Click to expand...
Click to collapse
you probably didnt set the permissions?

souljaboy said:
you probably didnt set the permissions?
Click to expand...
Click to collapse
yeah, i think. any way to fix this besides resetting the phone?
i can use project lense recovery right when the boot up occurs though.

did you try the fix permissions option in boot menu?

RoadToNever said:
did you try the fix permissions option in boot menu?
Click to expand...
Click to collapse
just tried it, still stuck on the scv7 screen

CM9onmyMoPho said:
just tried it, still stuck on the scv7 screen
Click to expand...
Click to collapse
It may be the edits, or how it was compiled.. Sometimes it's best to just do your edit, compile, then copy the edited files back to the original apk. In this case with the /values folder edits, they end up in the resources.arsc - move your newly compiled one back to the original apk with 7-zip/winrar. And actually with the framework-res.apk, you usually need to have no compression on the resources.arsc... copy that new resources.arsc somewhere next to the original apk, then add it to the archive in "store" mode - no compression with 7-zip.

alteredlikeness said:
It may be the edits, or how it was compiled.. Sometimes it's best to just do your edit, compile, then copy the edited files back to the original apk. In this case with the /values folder edits, they end up in the resources.arsc - move your newly compiled one back to the original apk with 7-zip/winrar. And actually with the framework-res.apk, you usually need to have no compression on the resources.arsc... copy that new resources.arsc somewhere next to the original apk, then add it to the archive in "store" mode - no compression with 7-zip.
Click to expand...
Click to collapse
How do I move it with winrar? I can't access anything besides the project lense recovery menu.

CM9onmyMoPho said:
How do I move it with winrar? I can't access anything besides the project lense recovery menu.
Click to expand...
Click to collapse
I meant on your computer.... how did you make the edits? framework-res.apk/res/values/bools.xml?
Well, you are probably going to have to restore a backup first. Unless you can make a flashable zip with a working version of the apk you edited, take out your sdcard and use a reader to access it on your comp - then flash that instead of an entire system restore.

alteredlikeness said:
I meant on your computer.... how did you make the edits? framework-res.apk/res/values/bools.xml?
Well, you are probably going to have to restore a backup first. Unless you can make a flashable zip with a working version of the apk you edited, take out your sdcard and use a reader to access it on your comp - then flash that instead of an entire system restore.
Click to expand...
Click to collapse
I made the edits with apktools on my computer, I sent the file on my phone to my computer, then the finished product from my computer back to my phone.

CM9onmyMoPho said:
I made the edits with apktools on my computer, I sent the file on my phone to my computer, then the finished product from my computer back to my phone.
Click to expand...
Click to collapse
Right. So you probably need to redo it. Is the original META-INF folder in your finished apk?
I would just decompile a fresh one..
Edit the bools only..
Compile..
Then move the new resources.arsc to the old apk in store mode..
Then use root explorer or a zip or adb.. but set proper permissions.
Sent from my phone's mind

So does that mean i have to do a reset on my phone again? Because I can't access root explorer right now.

CM9onmyMoPho said:
So does that mean i have to do a reset on my phone again? Because I can't access root explorer right now.
Click to expand...
Click to collapse
Are you still bootlooping? You need to go into recovery and restore, or flash a ROM again first..
Sent from my phone's mind

Not sure how well this would work, but worth a shot: https://play.google.com/store/apps/details?id=nl.fameit.rotate
Sent from my rooted Mayan Calendar

Related

Skinning question

In framework-res.apk, what controls the color of the text for the status bar, such as notifications and the digitial clock? Are these controlled independently by seperate apks?
I'm considering diving in and attempting to skin my android but I want to know what I'm getting into.
I've tried replacing framework.apk that I built from source on a real device and emulator. Only bad things came of it. Had to reflash. Let me know if you have better luck.
I'm pretty sure it failed because a lot of the stuff in framework.apk is stubbed closed source stuff.
Koush,
Have you looked at this post by Living_Sword?
I suggest you enter the following commands using adb, because its faster and reliable than telnet or any other method. If you do not have adb setup, read here, if you do, then just enter adb shell in the console while the phone is connected.
In simple words, you have to re-sign the framework-res.apk with your own key. You should know that you will loose all your data while doing this mod. Here are the steps,
1. Re-sign and re-upload all the .apk files in /system/app with your own key or the test-keys. The command used for signing is included in the readme file alongwith the signing jar here.
2. Take a backup of /system/framework/framework-res.apk. Now, you would want to edit some stuff in framework-res.apk, for that the easiest method is to rename the apk file to .jar/.zip, put in your own files(with same name as original png) and rename it back to .apk. You have to re-sign this apk with the same key like you did in the first step.
3 . Upload the apk file to /system/framework. The phone will hang, and in few secs it will most likely go back to the android robot screen.
4. Take out the battery, then do a data reset by going into recovery mode and pressing ALT+L to see the log text and then ALT+W to wipe out /data. Obviously, you will loose all your apps and settings and will have to re-activate the phone.
5. After the wipe is complete, press HOME + BACK to reboot. The phone should reboot normally now.
I know its a pain to loose all the data and apps, but this is the easiest method until we figure out something more elegant, and its required to be done only once. Also, there is no need to keep the png file size same. And in future, you will be able to replace the framework-res.apk without any hassles.
Also, since each stock app's icon is in its own apk, once you re-sign every apk in /system/app, you can easily replace their icons with your own.
Source: http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Ok, so I have successfully replaced framework-res.apk with my own build which includes custom icons and things like that. However, I am running into two problems:
1: I keep running out of room in my system folder. Everytime I replace framework-res.apk I am losing space somehow, eventually I have to do the mod rc30 update all over again to get my memory back so I can push this file over, where is this space going? Whats eating it up? Oh, and it isn't the file size growing, this will happen if I pull a file and directly try to push it back onto the phone.
2: I still don't know how to change the default color of the text. I assume it is in one of these xml files but I'm not sure, and I haven't found it yet. Could it be in /res/color/?
If anyone could help me on these two issues I would be so appreciative.
This is what I've done so far, see the status bar and the icons?
Stericson
Stericson said:
Koush,
Have you looked at this post by Living_Sword?
I suggest you enter the following commands using adb, because its faster and reliable than telnet or any other method. If you do not have adb setup, read here, if you do, then just enter adb shell in the console while the phone is connected.
In simple words, you have to re-sign the framework-res.apk with your own key. You should know that you will loose all your data while doing this mod. Here are the steps,
1. Re-sign and re-upload all the .apk files in /system/app with your own key or the test-keys. The command used for signing is included in the readme file alongwith the signing jar here.
2. Take a backup of /system/framework/framework-res.apk. Now, you would want to edit some stuff in framework-res.apk, for that the easiest method is to rename the apk file to .jar/.zip, put in your own files(with same name as original png) and rename it back to .apk. You have to re-sign this apk with the same key like you did in the first step.
3 . Upload the apk file to /system/framework. The phone will hang, and in few secs it will most likely go back to the android robot screen.
4. Take out the battery, then do a data reset by going into recovery mode and pressing ALT+L to see the log text and then ALT+W to wipe out /data. Obviously, you will loose all your apps and settings and will have to re-activate the phone.
5. After the wipe is complete, press HOME + BACK to reboot. The phone should reboot normally now.
I know its a pain to loose all the data and apps, but this is the easiest method until we figure out something more elegant, and its required to be done only once. Also, there is no need to keep the png file size same. And in future, you will be able to replace the framework-res.apk without any hassles.
Also, since each stock app's icon is in its own apk, once you re-sign every apk in /system/app, you can easily replace their icons with your own.
Source: http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Click to expand...
Click to collapse
framework-res.apk is just the resources. framework.apk contains the actual code used by every application in the system. Attempting to replace THAT file the result of the android build process will fail.
I think we're talking about two different files.
Oh yep, definetly we are...I thought you were talking about that but I figured you would clarify if you were indeed. Thanks.
so you guys are making progress on some themes... GOOD ****..
jzajzz said:
so you guys are making progress on some themes... GOOD ****..
Click to expand...
Click to collapse
Agreed. Once this process is mastered, and some polished themes, or a tool to make your own (or something) comes out, our G1's will look even sweeter.
jzajzz said:
so you guys are making progress on some themes... GOOD ****..
Click to expand...
Click to collapse
Well, I was making progress, but now my phone is bricked. Don't know how it happened. Was doing the same thing I've done over 20 30 times, suddenly started giving me problems, reflashe JF update and voila! bricked phone. So now I'm getting a new one sent to me and hoping that it comes pre-rc30. Sucks too because I am pretty sure I found out where the text color is set. Thats why I'm trying to get this to work under the emulator, but I can't get it to work. The dang emulator won't reboot or shutdown. So I can't see the changed made.
It sounds like it's too late to help now. But how was the phone bricked? Did it go into an infinite reboot cycle? Stay on the G1 screen?
Also, I assume you hadn't loaded the dev bootloader? That could have easily saved your phone from brickage
JesusFreke said:
It sounds like it's too late to help now. But how was the phone bricked? Did it go into an infinite reboot cycle? Stay on the G1 screen?
Also, I assume you hadn't loaded the dev bootloader? That could have easily saved your phone from brickage
Click to expand...
Click to collapse
My phone does have the dev bootloader on it. However, now it just stays on the boot splash screen and I can't do the update because it says the /dev file is gone! Can I reflash all of that and save my phone?
Btw, I actually think the entire folder /system is gone, because I can't abd with root, and when I did it in the update screen my system folder wasn't showing. So, I have no idea how this happened.
Is it possible to push that entire folder back on there and then recover or something?
Yes, you can reflash the recovery partition using the fastboot protocol, which the dev bootloader supports. There isn't a windows binary for it yet, but if you have a linux or mac handy, turn on the phone into bootloader mode, then plug in the USB cable. "Serial0" should change to "FASTBOOT". now you can use the fastboot binary on your computer to flash anything on the phone. You might try re-flashing the recovery image that's in my modified update. If that doesn't work, maybe try flashing the radio too.
If you have the dev bootloader, I'm almost positive your phone can be saved. Give me at IM if you want to talk about it.
I *think* the fastboot binary is in the sdk for linux/mac. I could be wrong though. There are copies of both floating around though, just ask if you need one.
I managed to repack framework-res.apk and resign all other packages without wiping. The problem is with the signatures in /data/system/packages.xml - they no longer match after resigning. The solution is to simply delete all <sigs> sections (and the <certs> within), and the PackageManager will automatically regenerate them as they are launched. I just now successfully booted, so can't say this is thoroughly tested, but I'll report back here if any problems crop up.
donniesmit said:
I managed to repack framework-res.apk and resign all other packages without wiping. The problem is with the signatures in /data/system/packages.xml - they no longer match after resigning. The solution is to simply delete all <sigs> sections (and the <certs> within), and the PackageManager will automatically regenerate them as they are launched. I just now successfully booted, so can't say this is thoroughly tested, but I'll report back here if any problems crop up.
Click to expand...
Click to collapse
A good check after doing something like this is to take a look at the call log, and actually receieve a call (call yourself from your home phone, or whatever). Both of these like to error out when messing around with resigning.

[Tutorial] Status bar transparency

I've been seeing way too many requests for this with just about every mod possible. Considering the simplicity of this mod, the easiest way to please everyone, is for all of you to know how to accomplish this mod yourself.
BTW, this is for the status bar itself, not pulldown bar or notification background.
What you need:
- Paint.NET software (or any other image editing software that you are already comfortable with, this one seems to be the easiest for setting transparency though.)
- Your framework-res.apk AFTER you have all of your other mods applied to your phone. Otherwise you will have to apply this mod again every time you add or change mods (most likely).
- 7zip
So, you should have your framework-res.apk on your computer and 7zip installed to open the apk. Open up the framework, navigate to /res/drawable-hdpi folder. In that folder, find the file statusbar_background.png. You can either pull that file out to your computer to edit it or open it straight from 7zip (which is the best way to ensure there is no issues when pushing framework back to the phone) but you must have your editing software set as the default to open .png files.
Now once you have that file open in Paint.NET, you will see the image of the status bar as you currently have it. Up on the top toolbar, you should see the option "Layers". Click that then select "Layer properties" at the bottom of the drop-down. At the bottom of the window that pops up, you should see "Opacity" and the number set at 255 with the neighboring slider all the way to the right. I suggest using the slider because as you move it you will see the transparency applied to the bar image, allowing you to slide it around to the desired transparency.
Once you have finished setting your transparency, click the little disk image at the top left to save your changes, close the program out and you should then see a box pop up in 7zip (if you made changes without unpacking the file from 7zip first) asking if you would like to apply changes to file you edited. Say yes, then close 7zip, which may or may not state that changes have been made to the apk and if you'd like to update it, which you would say yes to if it does. If you unpacked the file from 7zip, simply drag and drop the file back into its correct spot, confirm you want to replace the file, then close it up. After all of this is done, just put framework-res.apk back into the framework folder on your phone whatever way you like, turn your phone on and you have a transparent status bar.
As a side note, you can play with Paint.net to see all of the modifications you can make to your status bar like changing colors, texture, and a few other things. One piece of advice is to have a backup framework-res.apk in case you make a mistake or something.
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
JoeyBones1 said:
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
Click to expand...
Click to collapse
Easiest way would be to get root explorer so you can navigate to the /system/framework folder and copy the apk from there to your sdcard, where you can just copy it to your computer. the other option would be plugging your phone into your computer, phone should be on, open up command prompt then navigate to your sdk/tools folder (get it if you dont already have it), then type "adb pull /system/framework/framework-res.apk c:\" without the quotes. the file will be in the root of your C directory. To get it back on your phone when finished, for root explorer just reverse the steps, but when moving the apk back to its proper folder, just hit the "Mount R/W" button at the top right of root explorer, copy the file back in and reboot. For alternate method, boot into recovery, mount /system partition, then in prompt after navigating to sdk tools folder type "adb push c:\insertdirectoryto\framework-res.apk /system/framework/" without quotes, then boot up and youre done.
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
BillytheKid82 said:
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
Click to expand...
Click to collapse
Did you try editing the file without extracting it or did you extract it and reinsert it?
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Gahh Its Lee said:
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
That file is a .9.png file. editing these is ridiculously difficult and ill-advised.
chrisloveskaos said:
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
Click to expand...
Click to collapse
BillytheKid82 said:
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Click to expand...
Click to collapse
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
mixedlemon said:
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
Click to expand...
Click to collapse
metamorph is definitely more useful. I just have never created anything to run with it so I don't know the process of doing so.
im running skyraider vanilla, i tried to look on the thread to see if it is deodexed and i couldn't find if it is or not...may not be...thanks for your help
mb02 said:
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
Click to expand...
Click to collapse
running new skyraider 3.3 and im sure it is
Yea it seems they are both deodexed, and btw I didn't know skyraider 3.3 was so awesome I'm tempted to switch over to it. But yea, I'm not sure why your phones aren't allowing the modifications to the framework. I might as well load SR 3.3 and see for myself what's up. I'll get on that later tonight when I have time and let you guys know if i figure anything out.
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace. And of course, do a nandroid backup just in case.
EDIT: As Berzerker7 pointed out, this file probably wont make anything transparent unless you have a modified services.jar. oops.
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Well then that simplifies a lot of things lol. Thanks for putting that up for us, makes everything even easier.
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
It makes the background black but not transparent on virtuous 3.0.1
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Berzerker7 said:
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
Click to expand...
Click to collapse
Ah, I must have already installed a theme that modified it, then.
WOOOT!
SO can't wait to try this!
Wow... epic fail on my part... edited the image, repackaged, compared to original, file sizes/compression were similar enough, so I copied it onto my SD card and went in to Root Explorer... Mistake number 1)forgot to do a nandroid OR a titanium, Mistake number 2)Renamed the framework-res.apk to framework-res.bak BEFORE I copied the new file to the /system/framework. As soon as I did that, everything went haywire so I did a battery pull and went to do it the ADB way from recovery. Thought I did that right, so I rebooted into a bootloop... Finally gave up so I decided to do mistake number 3)full nandroid restore of a backup that was admittedly a few days old (See mistake 1 lol) after which I had rearranged a few things and added more apps etc... Now on to the important stuff...
MAKE SURE YOU DO STEP 1 BEFORE ATTEMPTING ANY OF THIS AND IF YOU RUN INTO PROBLEMS, DO STEP 2 SO YOU DON'T MAKE THE SAME MISTAKE I DID!
Step 1)For the love of all that's holy, do a Nandroid and Titanium backup first!
Step 2)In Clockwork Mod Recovery, do NOT do a full restore, instead go to advanced restore and simply restore the system (the part that you were messing around with to do this mod lol I realized this gem just as I clicked "Yes" in CWM, I still have the palm print on my forehead... haha​
Hopefully you folks will have better luck than I did, but if not, hopefully I can save you some of the headache I went thru...

[Q] Tweaks apk flashable zip?

Is there any in existence? I mean roman's tweaks settings, for adding battery percentage and crt animations for our phone.
Sent from my DoubleShot Lite using Tapatalk
masterkamon842 said:
Is there any in existence? I mean roman's tweaks settings, for adding battery percentage and crt animations for our phone.
Sent from my DoubleShot Lite using Tapatalk
Click to expand...
Click to collapse
have you tried hitting up Blue, since he is the keeper of the ROM that roman started? otherwise, how about pulling the tweaks.apk out of a Bulletproof ROM and putting it into /system/app of your current ROM? i'm not sure if it's that simple or not, but could be worth a try.
yogi2010 said:
have you tried hitting up Blue, since he is the keeper of the ROM that roman started? otherwise, how about pulling the tweaks.apk out of a Bulletproof ROM and putting it into /system/app of your current ROM? i'm not sure if it's that simple or not, but could be worth a try.
Click to expand...
Click to collapse
I tried pushing it to system but it wasn't that easy... Didnt work for me. Ill see if I can get blue's attention. I'll keep this thread posted for future reference.
Sent from my DoubleShot Lite using Tapatalk
masterkamon842 said:
I tried pushing it to system but it wasn't that easy... Didnt work for me. Ill see if I can get blue's attention. I'll keep this thread posted for future reference.
Sent from my DoubleShot Lite using Tapatalk
Click to expand...
Click to collapse
What you can do is use Root Explorer to move it to /system/app while the phone is on, then set the permissions (long press on it, permissions is in the menu that pops up - scroll down) to look like the permissions of every other file in the /app folder.
Edit: to quote myself from explaining how to do it before:
Stop all apps that require market licensure to work, halt the market processes, delete the old vending.apk. Then you have to delete the market data directory at /data/data/com.android.vending and find the dalvik-cache file that belongs to the market ( [email protected]@[email protected] ) and delete that too.
Then you rename the new market .apk file to Vending.apk and use root explorer to copy it into your /system/app directory. Once there, you long-press on the Vending.apk file and select 'permissions' from the menu that pops up.
Change the permissions to read/write for owner, read for group, read for others, and nothing for the bottom 3 check boxes. Now it reads rw-r--r-- like all the other apps in the /system/app directory.
Then you reboot your phone and it should work, but you should clear the whole dalvik-cache in recovery, and you should clear cache in recovery too, so all the dependencies on the market get rebuilt the right way.
Click to expand...
Click to collapse
Then, reboot the phone, and see how much of the app works.
You should be able to get it installed that way, but if not my thread on Replacing the Google Market would be a good place to start learning how to make your own flashable zip file.
Just replace the market with whatever app you can't push to /system/app normally and you should be good.
Some third party apps don't run well or at all from the /system/app partition, they just expect to be in /data/app ... but some will. The one you're playing with works fine from in the /system/app directory.
Might want to look into this thread by Romanbb: Extended Quick Settings as well.
Romanbb's awesome tweaks are worth the work - I couldn't imagine using the device without them now, and am definitely looking at playing with it some. The one thing i'm struck by as a user more then anything else, i'd like to be able to change the order of the quick settings in the actual pull-down menu.
I want flashlight first, full settings second, then i'll figure out the rest of the order as I go, but both volume settings go dead bottom with me.
I haven't had the time to sit down and do it, but that's the next ability i'm interested in acquiring with regards to that. I can't wait to get my phone back so I can start making some progress again.
Meantime, i'll be in and out and others floating around here I know can steer you right if you need it - you lose nothing 'cept time for trying (you did do backups before you started playing around, right?).
Hi, I made Tweak.zip (i extracted tweak.apk from booletproof 1.1) for flash it by CWM, but don't works fine.
After flashed, the app is in /system/app with 0644 permissions, but with no visible changes, where was i wrong?
Can you help me? In attach my file.
antonaq said:
Hi, I made Tweak.zip (i extracted tweak.apk from booletproof 1.1) for flash it by CWM, but don't works fine.
After flashed, the app is in /system/app with 0644 permissions, but with no visible changes, where was i wrong?
Can you help me? In attach my file.
Click to expand...
Click to collapse
The tweaks need coded into the ROM, It's not as simple as just installing the apk, I would think some SystemUI smali needs edited also for any tweaks to Rosie, the Rosie.apk smali files will need an edit, so it knows what to change otherwise your just looking at the possibilities of the tweaks app.
I just did a Rosie remap for my Sense 2.1+3.0 Speedy ROM, and even though the option had always been in MikTweaks I had decompile tweaks to activate the remap option for my ROM ( by default It's turned off for Sense 2.1 ROMS ). Then I had to decompile Rosie and make the smali change. Then compile and resign both apps and i was good.
Sent from my myTouch_4G_Slide using Tapatalk 2
If you are really needing those tweaks, you can use the kitchen to apply most of them.
Compile? Decompile? More difficult for me then... I abadone the idea to realize Tweaks.zip.
Sorry.
Inviato dal mio Bulletproof_Doubleshot con Tapatalk 2

[Q] Modded Camera.apk hardkeys

Got the modded Camera.apk from Here. I changed my hardkey Search button to function like a Menu key (my menu hardkey won't work properly). I liked the search key as a snapshot key for the camera but now with me changing 217 "SEARCH" to MENU" it doesn't work.
I downloaded APKTool and decompiled modded .apk. Now the only problem is I can't find where to change the key to take a snapshot with "MENU" pressed. I have been looking through the .smali files and not having any luck. Menu key as far as I have seen has no function in the camera app anyways so this shouldn't be a problem.
Last question I would have (which I could probably search) would be how to take the decompiled .apk and compile it back to .apk.
Is the code for the menu button 217 or is that independent of the button?
Sent from my SCH-I510 using xda premium
Within /system/usr/keylayout/qwerty.kl "key 217 SEARCH" I changed to "key 217 MENU" also I changed /system/usr/keylayout/s3c-keypad.kl "key 217 SEARCH" to "key 217 MENU".
That is how I got Search button to open Menu.
I'll take a look for you. It probably won't take too long.
Yeah it should just be changing the key event code from the search key to the menu key in a few places.
dwitherell said:
Yeah it should just be changing the key event code from the search key to the menu key in a few places.
Click to expand...
Click to collapse
The problem for me is I can't find those few places. lol Searching through all these .smali files I think I'm gonna need my search button back lol.
Edit: I opened all of the files in NotePad++ and did a search for "search" and found several items but I don't know what to change or leave.
I think what I need to change is in AbstractCameraActivity.smali
Enlightened_Rogue said:
The problem for me is I can't find those few places. lol Searching through all these .smali files I think I'm gonna need my search button back lol.
Click to expand...
Click to collapse
I'm sure substanceD will get it for ya, but camera.smali and camcorder.smali are 2 at least. It'll be in the onkeyup and onkeydown event methods (just looked at this, but memory is a bit sketchy...)
dwitherell said:
I'm sure substanceD will get it for ya
Click to expand...
Click to collapse
As you see I don't mind doing the leg work, I'm not one of these beggers out there that just want someone to build a app just for me. Thanks for giving me some pointers. I'm just trying to learn as I go. New to modding phones (trying to get better).
Enlightened_Rogue said:
As you see I don't mind doing the leg work, I'm not one of these beggers out there that just want someone to build a app just for me. Thanks for giving me some pointers. I'm just trying to learn as I go. New to modding phones (trying to get better).
Click to expand...
Click to collapse
All right, let's see if I can be helpful without doing the work for you. The Android key codes are published here: http://developer.android.com/reference/android/view/KeyEvent.html. The smali files have the hex values for these key events without the extraneous zeros. For example, you'll notice that KEYCODE_POWER is sprinkled throughout the code as 0x1a. Try to find a block of code that refers to the common keys (power, search, menu, etc.) and see how it delegates them.
OK I replaced 0x54(Search) with 0x52(Menu) [14 instances] and then Compiled with APKTool. Moved Camera.apk to /system/app/ and now phone doesn't recognize Camera.apk. I restarted, tryed setting permissions to rw-r--r-- then restarting as well and still not being recognized.
Edit: Noticed when I moved your modded the permissions where rwxrwxrw- and it still showed up without restarting.
Enlightened_Rogue said:
OK I replaced 0x54(Search) with 0x52(Menu) [14 instances] and then Compiled with APKTool. Moved Camera.apk to /system/app/ and now phone doesn't recognize Camera.apk. I restarted, tryed setting permissions to rw-r--r-- then restarting as well and still not being recognized.
Edit: Noticed when I moved your modded the permissions where rwxrwxrw- and it still showed up without restarting.
Click to expand...
Click to collapse
Did you sign it (don't)? Also, there are some sound files in /res/raw that need to stay UNcompressed for things to work properly.
All I did to compile was from Here.
Code:
apktool b <directory of decoded apk>
Never compiled any apk before. How do you not sign it and not compress some of the resource files?
Edit: Just seen this at the bottem, but I'm using APKTool 1.4.3
idroid84 said:
Issues;
I noticed that while the new version 1.2 works great on the framework-res.apk file, it seems to have issues with other System/app files like Settings.apk,Phone.apk, etc. For these files use version 1.1.1.
Click to expand...
Click to collapse
Enlightened_Rogue said:
All I did to compile was from Here.
Code:
apktool b <directory of decoded apk>
Never compiled any apk before. How do you not sign it and not compress some of the resource files?
Edit: Just seen this at the bottem, but I'm using APKTool 1.4.3
Click to expand...
Click to collapse
Well the first part shouldn't be an issue I don't think. For the second - an apk is similar to a zip file. I would use something like jzip or winrar to extract out those sound files, delete them from the apk, then drop them back in using store or storage (i.e. no) compression. Though I am doubtful not doing this would cause the phone to not recognize the apk to be honest.
I opened the Original Modded .apk with 7zip moved the res files over just playing around waiting for a response and still no luck. Also I noticed while doing that the Modded on had a META-INF folder which I moved over to my Mod and after all that moved to phone /system/app and restarted phone still no Camera in App Drawer.
Original Mod I decompile: Camera 5-14-12
My Decomipled and editied:Camera - Menu Button
I was messing around with my phone and decided to install PBJ Kernel 0524. After installing that now Root Manager won't allow Mount R/W so now I can't change system files. I guess I'm stuck with what I got for now.
Edit: Complete noob moment... Went into CWM -> Mounted System -> Installed SU again. Now works. Back to working on Camera
Enlightened_Rogue said:
I was messing around with my phone and decided to install PBJ Kernel 0524. After installing that now Root Manager won't allow Mount R/W so now I can't change system files. I guess I'm stuck with what I got for now.
Edit: Complete noob moment... Went into CWM -> Mounted System -> Installed SU again. Now works. Back to working on Camera
Click to expand...
Click to collapse
Yeah the lost root is just a permissions thing - a number of ways to fix it, and installing su is definitely one of them. Glad you got that figured out.
I looked into this more - you changed too many 0x54s... not all of those were relevant to what you wanted (only 6 were). On top of that, only two of them were changing 0x54 to 0x52 (CamcorderRecordingMenu.smali) - the other 4 (2 in Camcorder.smali and 2 in Camera.smali) were simply changing the :sswitch_ value associated w/ 0x52 to that associated w/ 0x54.
Anyhoo - end result should now be power, menu, and search take pics/start video. Here's the apk - just rename to Camera.apk and push. If it doesnt show up right away and a reboot doesnt fix it, you could try to push in recovery, or dump it in a cwm-flashable zip and flash it. Hope it works for ya!
Thank you. I figured I probably changed too many. I just opened notepad++ and find/replaced in files. I was looking through but was having a difficult time tracing what was needed and was not. How did you compile just like I posted earlier? And how did you get META-INF and not compressing resources?
Enlightened_Rogue said:
Thank you. I figured I probably changed too many. I just opened notepad++ and find/replaced in files. I was looking through but was having a difficult time tracing what was needed and was not. How did you compile just like I posted earlier? And how did you get META-INF and not compressing resources?
Click to expand...
Click to collapse
I was lazy and used one of the gui-ized apktool approaches (apkmultitool). It took care of keeping things in order. After recompiling, I opened the apk in jzip, pulled out the oggs in /res/raw, deleted them from the apk, then put them back in and set compression to store. It should be noted that you could go about things without dealing with any of this - just pull out the classes.dex from the apk, use baksmali to decompile and smali to recompile, and place new classes.dex into the apk.
I take it the apk worked for you then?
Yes it worked perfectly! Thank you. Instead of just getting what I want then not saying anything I was decompiling yours and seeing what needed to be changed. Hopefully soon I will be able to to much much more. Just a little time devotion patients and people like you to help. Thank you so much!

Changing boot animations

I have read the information on manually changing the boot animations, but has anyone used a tool to do it? Rom Tool Box and a slew of other apps have change boot animation functions. I was just wondering if anyone has successfully used any stand alone app to accomplish this? also boot logos?
henbone11 said:
I have read the information on manually changing the boot animations, but has anyone used a tool to do it? Rom Tool Box and a slew of other apps have change boot animation functions. I was just wondering if anyone has successfully used any stand alone app to accomplish this? also boot logos?
Click to expand...
Click to collapse
I tried Rom Toolbox but it doesn't chance animation on mine. I don't know nor can find where the settings or the directory is on the tf700 is to change it in Rom toolbox. If you know... please share it or a link to the answer. Thanks
Ice, rooted and unlocked. NVflash backup
Boot Animations works fine.
Apparemtly tf700 users can't get this to work either. just need to know which dir tf700 actually uses.
andyk11 said:
just need to know which dir tf700 actually uses.
Click to expand...
Click to collapse
I've copied an LCARS one to /data/local and works perfectly.
How To Change, Customize & Create Android Boot Animation [Guide]
So you have found a boot animation that you want to install on your phone? Created one of your own and can’t wait to see it in action on your device? All you have to do is copy it at a certain location on your device. There are two locations you can copy it: /data/local and /system/media, and both have their advantages and disadvantages.
Advantages of copying it to /data/local is that you will not require root access for it and it should work for all non-rooted devices without running the risk of changing anything in the /system partition. Furthermore, if a bootanimation.zip file is found in both locations, Android ignores the one found in /system/media and gives priority to the one in /data/local. A disadvantage of this method is that upon a hard reset (also called a full data wipe or a factory reset), the new boot animation will be lost.
Copying the boot animation to /system/media/ is possible only if your device is rooted and you have read+write access to the /system partition. An advantage of this method is that upon a hard reset, the new boot animation will still remain and there will be no need to apply it again. A disadvantage is that it requires ADB or a root level file browser such as Root Explorer or Super Manager.
Click to expand...
Click to collapse
xcal321 said:
I've copied an LCARS one to /data/local and works perfectly.
How To Change, Customize & Create Android Boot Animation [Guide]
Click to expand...
Click to collapse
Thanks for the info. I saw that and tried it but no luck. Not sure what I'm doing wrong. Tried to change it with ROM Toolbox pro also an doesn't work. Am rooted and unlock but no JOY. I did find the /system/media/bootanimation.zip file but it just doesn't load.
Update: I copied the animation.zip files to both /system/media and also data/local. The only thing that loads is the White Asus sign for about 5 sec then a Black screen for about 20 sec then boots normally. Theres got to be a setting that directs the bootanimation file to load but can't find what file the boot looks for to load where to find bootanimation.zip.
andyk11 said:
Update: I copied the animation.zip files to both /system/media and also data/local. The only thing that loads is the White Asus sign for about 5 sec then a Black screen for about 20 sec then boots normally. Theres got to be a setting that directs the bootanimation file to load but can't find what file the boot looks for to load where to find bootanimation.zip.
Click to expand...
Click to collapse
This, to me, looks like the animation is corrupt or is not a boot animation. Check out this tool. Restore the original animation to /system/media and then use the one in the link of my previous post and put that in /data/local.
Thanks. I checked out the program and tried it but got errors pushing the file. to /media but it worked going to /local. tried previewing with romtools pro but not working. I'm stumped. Found a bunch of treads for this problem but nothing. files are not corrupted. I can get the boot animation files to run outside of android on a pc ect but not while trying to get them to animate inside there folders.... /local or /media. Somewhere in the boot process it's not loading. Need to find out why the White Asus animation works for a few seconds and where it is. It used to turn Brown/ Goldish and rotate but no longer. Anyone else with any guess's?
Also: Forgot to mention am using the JB bootloader.
andyk11 said:
Thanks. I checked out the program and tried it but got errors pushing the file. to /media but it worked going to /local. tried previewing with romtools pro but not working. I'm stumped.
Click to expand...
Click to collapse
Have you tried viewing the animation in the tool I mentioned?
andyk11 said:
Need to find out why the White Asus animation works for a few seconds and where it is.
Click to expand...
Click to collapse
That is not the boot animation of Asus, it's a still image embedded in either the bootloader or something close to it. It's not mean to be customized, the metallic ASUS logo with the light effect and then the circular progress indicator are part of the default bootanimation.zip
andyk11 said:
Anyone else with any guess's?
Click to expand...
Click to collapse
I haven't given up yet Would you be willing to share the bootanimation that you are trying to use, with us. This way we can have a look an see if it works for us.
andyk11 said:
Also: Forgot to mention am using the JB bootloader.
Click to expand...
Click to collapse
As am I. I'm on JB 4.1.1 (WW 10.4.4.18).
xcal321 said:
Have you tried viewing the animation in the tool I mentioned?
That is not the boot animation of Asus, it's a still image embedded in either the bootloader or something close to it. It's not mean to be customized, the metallic ASUS logo with the light effect and then the circular progress indicator are part of the default bootanimation.zip
I haven't given up yet Would you be willing to share the bootanimation that you are trying to use, with us. This way we can have a look an see if it works for us.
As am I. I'm on JB 4.1.1 (WW 10.4.4.18).
Click to expand...
Click to collapse
Yes of Course I'd be willing to share it. As I said I can view it outside of the floders on a Windows PC running the boot animtion progam. The one I was tring to install comes with RomToolbox Pro. The droid Peeing on an APPLE... need a few hours sleep as am to tied to keep messin with this. will get back to you... OH... I deleted all animation zip files also and still get the ASUS screen. non animated. whereever that file is it's corrupted I think.
andyk11 said:
Yes of Course I'd be willing to share it. As I said I can view it outside of the floders on a Windows PC running the boot animtion progam. The one I was tring to install comes with RomToolbox Pro. The droid Peeing on an APPLE... need a few hours sleep as am to tied to keep messin with this. will get back to you... OH... I deleted all animation zip files also and still get the ASUS screen. non animated. whereever that file is it's corrupted I think.
Click to expand...
Click to collapse
Sorry for the wait. I have no way of uploading the animation file in question here. Looking for somewhere to upload it so you can look at it but as I said the file is not the problem. I need to reinstall the bootloader which is 9.4.5.30r01 Not sure how to just do that as I haven't looked into it. The 9.4.5.30r01 came from the nvflash tread in this forum. I need to research if I install a jb bootloader if I still have nvflash "JUST IN CASE" Have a nice day.
andyk11 said:
Sorry for the wait. I have no way of uploading the animation file in question here.
Click to expand...
Click to collapse
No problem, I have ROM Toolbox myself and got the animation. While playing around (copying animations to my tablet from my NAS) I figured out what might be wrong on your side.
Make sure your bootanimation.zip is in /data/local and set the file permissions to rw-r--r--.
xcal321 said:
No problem, I have ROM Toolbox myself and got the animation. While playing around (copying animations to my tablet from my NAS) I figured out what might be wrong on your side.
Make sure your bootanimation.zip is in /data/local and set the file permissions to rw-r--r--.
Click to expand...
Click to collapse
Thanks I already tried that. I found that in a post days ago but no luck. permissions where set right. Since my last post I updated to the 10.4.4.18 the odex version and I got bootanimation back. I backed it up using trwp 2.3.1.0 and tried changing it with Rom toolbox again. I set the paths to data/local in the settings. I installed the new bootanimation.zip file and rebooted. It would not boot up at all. Got past the white asus and went blank and I waited 10-15 min but noting. I rebooted by holding down power button for like 10-15sec and still would not boot up. Had to go back to trwp and reinstall my .18 backup and it started right up. Am going to give up for now till I can find out what is causing this for me and not others. Theres just something I'm missing and haven't pinned it down. Thanks for your time and effort. really appreciate it.
Update: 10-22 @11:34 pm. I got it working... Installed CleanRom 2.3 http://forum.xda-developers.com/showthread.php?t=1919851
Not even sure what I did other than flashed, wiped and reset. I checked the location of the bootanimation directory in this rom and it was only in /system/media. I read all the treads and info I could find. I used Rom Toolbox pro https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolboxpro&feature=search_result and changed settings to install it in /data/local as everywhere I read suggested that directory. If you've read what I've tried in the past I already did that over and over. Checked the permissions of the file and all. the one thing I didn't do was remount the zip file after copying to the directory. I didn't think I would have needed to since toolbox would have handled that... I though. Thats the only thing I can think of why it wouldn't load on boot is because it wasn't remounting. Anyways. I got it working but to be honest I still don't know why and I actually wanted to know why... A learning experiance if you want. One more time... Thanks a million for your time.
andyk11 said:
Thanks I already tried that. I found that in a post days ago but no luck. permissions where set right. Since my last post I updated to the 10.4.4.18 the odex version and I got bootanimation back. I backed it up using trwp 2.3.1.0 and tried changing it with Rom toolbox again. I set the paths to data/local in the settings. I installed the new bootanimation.zip file and rebooted. It would not boot up at all. Got past the white asus and went blank and I waited 10-15 min but noting. I rebooted by holding down power button for like 10-15sec and still would not boot up. Had to go back to trwp and reinstall my .18 backup and it started right up. Am going to give up for now till I can find out what is causing this for me and not others. Theres just something I'm missing and haven't pinned it down. Thanks for your time and effort. really appreciate it.
Update: 10-22 @11:34 pm. I got it working... Installed CleanRom 2.3 http://forum.xda-developers.com/showthread.php?t=1919851
Not even sure what I did other than flashed, wiped and reset. I checked the location of the bootanimation directory in this rom and it was only in /system/media. I read all the treads and info I could find. I used Rom Toolbox pro https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolboxpro&feature=search_result and changed settings to install it in /data/local as everywhere I read suggested that directory. If you've read what I've tried in the past I already did that over and over. Checked the permissions of the file and all. the one thing I didn't do was remount the zip file after copying to the directory. I didn't think I would have needed to since toolbox would have handled that... I though. Thats the only thing I can think of why it wouldn't load on boot is because it wasn't remounting. Anyways. I got it working but to be honest I still don't know why and I actually wanted to know why... A learning experiance if you want. One more time... Thanks a million for your time.
Click to expand...
Click to collapse
The reason why it don´t work is that Asus maybe has integrated a check of system files in some asus app or in the kernel (don´t now)
Changing Bootanimation does only work for me with a cleanrom and cm10.
as you sad when you change it in the stock rom it wont boot anymore.
So Asus dont want that someone removes their bootanimation i think
blackmambazzz said:
The reason why it don´t work is that Asus maybe has integrated a check of system files in some asus app or in the kernel (don´t now)
[-->8--]
So Asus dont want that someone removes their bootanimation i think
Click to expand...
Click to collapse
You don't have to remove/replace the Asus bootanimation. Just place your own in /data/local set the correct permissions and you're good to go.

Categories

Resources