I have modified SystemUI and SecSettings (add flashlight toggle, make SystemUI dark). Can I simply copy+paste to /system/priv-app/ while the device is running (and deleted/rename odex files) and reboot? I figured that worse case, they would FC until I replaced them again, assuming I messed anything up. I do not have SafeStrap, FYI.
Thoughts?
How did you add flashlight toggle? I am in Stock att 5.0
Sent from my SAMSUNG-SM-G900A using Tapatalk
MercilessLTD said:
I have modified SystemUI and SecSettings (add flashlight toggle, make SystemUI dark). Can I simply copy+paste to /system/priv-app/ while the device is running (and deleted/rename odex files) and reboot? I figured that worse case, they would FC until I replaced them again, assuming I messed anything up. I do not have SafeStrap, FYI.
Thoughts?
Click to expand...
Click to collapse
I use a deodexed rom, but I did it that way. Copy and paste it in and change permissions. When I put in systemui, it crashes, but starts up again. Then I change permissions. In the past, I've modified flashable zips to put the files in.
Related
Hi there,
I was enjoying my DesireHD with Revolution HD and MultiCultiMod. But I would very much like it if i could modify the launcher buttons(see screenshot). I believe this is inside rosie.apk.
This is what i tried:
- Modified png's in Rosie.apk, put Rosie.apk back in Rom. Flash Rom.
->> Launcher still uses default grey buttons.
- Pushed modified Rosie.apk to phone.
>> Launcher wont load anymore.
- Found and modified same looking png's in com.htc.resources.apk, pushed to phone.(no errors)
>> Nothing happens, still same old buttons.
- put com.htc.resources.apk back in Rom and flash Rom.
>> same buttons.
I read that I won't have to re-sign system packages like Rosie and framework, am I right?
what am i doing wrong, and where does android gets its grey button png's if I replaced them all? (ps: I'm not modifying 9.png)
If someone could be of service or help me try update.zip em, I would be very thankfull!
See attachements for my buttons.
THanks! XdA RuLeS!
try edit them in com.htc.resources.apk in framework instead
i have done this many times and it's working..
I do not modify tha Rosie.apk with apk tool..
I just drag out of the apk the files i want to modify and then replace them inside the apk(open it with 7zip)
That's all...
capychimp said:
try edit them in com.htc.resources.apk in framework instead
Click to expand...
Click to collapse
Thanks!
I re-tried in com.htc.resources.apk and used the folder drawable-port-hdpi, pushed it back to phone and now it's working!!!
Thanks for the help!!
Just saw this now... looks pretty solid.
Got it to work via ADB but seemed to look too busy. Thanks anyway
Hi,
My first deodexing, wasn't as simple as expected, I was surprised no one did it before me...
Deodexed: entire framework dir, and most of the app directory (all but 2 apks which refused to deodex...), as long as the framework is deodexed thats ok.
Needed it to patch the framework.jar for bidi language and it works, seems a bit of a lag after each boot before showing the widgets and apps but after that it runs smooth,
can someone explaing that maybe? something to do with unzipping delay maybe?
here is the file, enjoy.
http://www.multiupload.com/FRE906144I
EDIT1: this zip is not flashable nor is it full rom, just deodexed framework and app directories, use adb to push to device, it is working for me with no problems (except the delay at boot), no fc (forced.closed) at all.
flashable zip?
FaithCry said:
flashable zip?
Click to expand...
Click to collapse
its in a .zip so i would assume so. thats the only way to put new ROMs within Nexus S... unless you want to go to Odin which would be .tar
@OP
Was it bluetooth.apk & networklocation.apk? If so, I finally got those deodexed, but I couldn't get the framework.jar to deodex correctly xD
If you need/want them, I can send them to you.
#EDIT
Testing my build with your framework.jar to see if it works right..
#EDIT 2
I am still getting that da** framework fc lol. Let me logcat it..
#Edit 3
I think I might know what my issue is.. Trying a few things now
#Edit 4
I went back to my framework.jar and fixed some files & now it works.. Go figure! lol. I will upload in a bit
#Edit 5
The issues on my build were the messed up NetworkLocation.apk & Bluetooth.apk.. I fixed those, and we now have a fully deodexed 2.3.3
http://forum.xda-developers.com/showthread.php?t=971690
@OP You should change the thread title to [ROM] Stock 2.3.3 DEODEXED. I'll give it a flash in the morning and add it to my Roms, themes, and kernels thread You could even give it a flashy name hehe
The zip I supplied is not flashable as far as I know, I used adb in recovery mode to push the files to the phone,
my deodexed framework.jar works, I use it for a day now and also used a patching script on it to make it bidi enabled, and it still works, I get no fc's at all with it, just a delay on boot before I see all my widgets/icons, after that all ok.
I have a clean working nandroid deodexed backup which also has the bidi patch at:
http://www.multiupload.com/UQ364AHDWT
I am trying to edit the icon for the phone.apk to match a theme i'm working with. When I go in and change the icon file in the .apk and try to overwrite it on my phone it either causes a constant FC or the phone app disappears and I cant use it at all. I have tried using a file explorer to do the swap and I have tried editing the phone.apk and putting it into the theme before I flash it. If I put it into the theme before flashing there are no FC's but the icon stays stock. Can someone point me in the right direction?
P.S. I have done this with many other apps such as email.apk and mms.apk and they work fine.
DialerTabActivity.apk not Phone.apk
Sent from my phone
Just tried that and it didn't change anything. Performed a reboot after switching the files.
/res/drawable-hdpi/ic_launcher_phone.png doesn't work?
Just an idea, this might be caused by the ROM or the launcher you're using.
Yep, that's the one I changed. I tried your suggestion and changed launchers also and it did not effect the icon.
I'm downloading Obssession right now. I'll look in the apk and see if there is anything special necessary.
Well, that file is definitely the icon. If you decompile the apk and look at the AndroidManifest.xml you can see that ic_launcher_phone is the app's icon.
I swapped out the icon for an orange stock-like icon on the attached apk. I can't test it as I'm on CM, but you can see if it'll work for you. (This is the stock Obssession blues rc2 dialertabactivity.apk w/ just the modified icon)
How can I open the .xml files? When I try to open them IE gives me an error and when I allow the script to run it doesn't change anything.
You need to decompile the apk in order to view the xml files. Using APK Manager is the easiest way I know of to decompile apks.
Can I see a screenshot of what you are talking about, icon wise? If it's the launcher then the problem is the icon in the launcher, not the app.
Oh and protip, use Notepad++, not IE: http://notepad-plus-plus.org/
Found this out when trying to install the 23 toggle mod. When I installed it, nothing changed. Then I did some searching and found I had a SystemUI.apk in my Framework folder. When I renamed it to keep it there but not functioning, I had no wallpaper and couldn't apply one, but it didn't FC. So I copied the SystemUI from the apps folder to framework folder and did a hot reboot and everything returned including the 23 toggles. Weird again in my phone. Anyone else have this?
Please connoisseurs who can remove the screen from dimming blinds? I will be very grateful. sorry for my english
Goretss said:
Please connoisseurs who can remove the screen from dimming blinds? I will be very grateful. sorry for my english
Click to expand...
Click to collapse
To get rid of the Brightness slider do the following:
- Decompile SystemUI.apk
- SystemUI > res > values folder
- Open bools.xml (with Notepad++)
- Search for:
PHP:
<bool name="config_useBrightController">true</bool>
- Set the value from "true" to "false"
- Recompile your SystemUI.apk
PS: Is your ROM/firmware deodexed? Because the size of your attached SystemUI.apk is only 1.97 MB... Usually it should be around 2.3 MB or above... If you have "SystemUI.odex" in your System > app folder then you need to Deodex your ROM/firmware first, then do all the modifications on your desired apk file..
Sami Kabir said:
To get rid of the Brightness slider do the following:
- Decompile SystemUI.apk
- SystemUI > res > values folder
- Open bools.xml (with Notepad++)
- Search for:
PHP:
<bool name="config_useBrightController">true</bool>
- Set the value from "true" to "false"
- Recompile your SystemUI.apk
PS: Is your ROM/firmware deodexed? Because the size of your attached SystemUI.apk is only 1.97 MB... Usually it should be around 2.3 MB or above... If you have "SystemUI.odex" in your System > app folder then you need to Deodex your ROM/firmware first, then do all the modifications on your desired apk file..
Click to expand...
Click to collapse
No, I odexed. SystemUI.apk works for me now odexed. will remove the brightness adjustment on odexed? you can remake it? at the moment my computer is not working properly, he can not do.
Goretss said:
No, I odexed. SystemUI.apk works for me now odexed. will remove the brightness adjustment on odexed? you can remake it? at the moment my computer is not working properly, he can not do.
Click to expand...
Click to collapse
Its always better to Deodex System apps and Framework - in order to avoid errors, etc.
I can do it for you but I will need your entire SystemUI.apk - so send me your SystemUI.odex also then
Sami Kabir said:
Its always better to Deodex System apps and Framework - in order to avoid errors, etc.
I can do it for you but I will need your entire SystemUI.apk - so send me your SystemUI.odex also then
Click to expand...
Click to collapse
I'm the SystemUI.apk replaced without touching SystemUI.odex. in principle, does not have any errors. you need the original SystemUI.apk?
Hey.. While decompiling your SystemUI.apk I got some errors (I've attached the picture of it below).. Anyways I've removed the Brightness controller but the size of your SystemUI.apk after doing the modification has decreased
I have no idea why this happened but I've still attached your new modified SystemUI.apk
It MAY or MAY NOT work.. so backup your System partition (just to be safe) and Replace your current SystemUI.apk with my modified one.. Then delete SystemUI.odex and then Reboot your phone... Keep your fingers crossed and hope that it works
Sami Kabir said:
Hey.. While decompiling your SystemUI.apk I got some errors (I've attached the picture of it below).. Anyways I've removed the Brightness controller but the size of your SystemUI.apk after doing the modification has decreased
I have no idea why this happened but I've still attached your new modified SystemUI.apk
It MAY or MAY NOT work.. so backup your System partition (just to be safe) and Replace your current SystemUI.apk with my modified one.. Then delete SystemUI.odex and then Reboot your phone... Kepp your fingers crossed and hope that it works
Click to expand...
Click to collapse
thanks. everything works, until no errors