[Q] Changed SystemUI.apk, want to sideload via TWRP, possible? - Samsung Galaxy Nexus

Hey guys quick question if I will run into trouble doing this.
I wanted to change some .png files in the SystemUI.apk file in /system/app so I extracted it with Root Explorer.
Pulled it over to my PC, made it a zip, changed the files.
Now I want to sideload it on with TWRP back where it goes, I know it can overwrite it.
Will I have to change permissions somehow, I see "Fix Permissions" button in TWRP, will that do it?
Thanks so much for the help!

boot into TWRP
mount /system
adb push SystemUI.apk /system/app/
adb shell
chmod 0644 /system/app/SystemUI.apk
exit
adb reboot
this assumes that you are in the same folder as your SystemUI.apk and I would double check the permissions, it has been a while.

Related

[Theme] Acer Liquid Power Control Widget

This is my modding for the Power Control widget.
ON : icons are colored
OFF: icons are grey
To install, you must have rooted the phone.
Unzip the attached file and copy to the android\tools directory of PC.
This are le command line form PC:
1) to create a backup of the original file:
adb remount
adb pull /system/app/Settings.apk Settings_backup.apk
2) to push the new file in the Liquid
adb remount
adb shell rm /system/app/Settings.apk
adb push Settings.apk /system/app/Settings.apk
adb shell reboot
You can also use "Root explorer" (if you have it installed) on your Liquid.
Unzip the attached file and copy the apk in your SD.
Than open Root explorer and go to system/app, remount the system as R/W and delete Settings.apk
Now move to SD and copy the file Setting.apk and paste it in system/app
Give to the file this Permissions:
Now reboot your device.
Done.
Great work, my friend ​

[Q] Deleting default wallpaper in CM

I have UltimateDroid 2.5 on DInc and I wanted to get rid of the default wallpaper, the android figure with the eyepatch. I know it is in framework.apk/drawable. I wanted to know how to delete the wallpaper from framework and put it back into the system folder. Thanks.
I'll help you with this. I'm assuming you know how to run the adb terminal and have 7zip installed.
first off always nandroid.
After you load cmd, change the directory to your adb, do this.
Make sure your device pops up after typing "adb devices"--no hyphens, if you already knew that my bad.
type:
adb remount
adb pull /system/framework/framework-res.apk
it will show up in your sdk folder in the tools directory. Right click the framework-res.apk. Find 7z and select open archive. Find the res folder, double click. Then find the drawable folder. The default wallpaper is located there. Slide whatever image you want into it after renaming it to default_wallpaper.jpg. After your done editing, close it out . in cmd type:
adb push framework-res.apk /system/framework
adb reboot
It's changed.

framkework

Hey guys, I wanted to modify the framework in cyanogenmod 7. What I did was se this command in terminal:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
rm /system/app/SystemUI.apk
so as you can see, i deleted the framework and after that i couldnt do anything in terminal. I turn off the phone and then i usb mounted the phone to adb push the moddified systemui.apk, i was able to push the apk, but when i restarted the phone, there was no framework.. any ideas as to why that is.. maybe the apk file is corrupted?
Its named signedsystemui.apk! Did you push it with the right name?
Sent from my......ummm...let me get back at'chya!
I don't usually delete things before pushing new file and I don't normally recommend signing system/apps.
This is what I would do. Keep in mind, your mod (whatever you may have done with it) could simply be a little goofed up.
Code:
adb remount
adb shell
stop
cp system/app/SystemUI.apk /system/app/SystemUI.bak
adb push <path to>/signedSystemUI.apk /system/app/SystemUi.apk
start
exit
In the above, <path to> refers to the location of your modified aoj. For me, it would normally be "Users/tommytomatoe/Mod/app.apk". What I do is drag and drop the apk into the terminal after typing "adb push".
If it boots up after issuing adb shell start, then you're golden! If not, then do this. Keep in mind, if you're in splash screen you will want to reboot into recovery first and mount system using the options in the menu. If you're in boot loop with bootanimation, go ahead and issue these commands:
Code:
adb remount
adb shell
stop
mv system/app/SystemUI.bak /system/app/SystemUI.apk
start
exit
Now, you will have original apk and it should boot up. Go back to ground zero and remodify your apk and make sure you've taken correct steps.
All i did was change some pngs. I did sign the apk... maybe thats why it didnt work..When changing pngs to the systemui.apk, do i also have to modify the framework-res.apk?
~CR7~ said:
All i did was change some pngs. I did sign the apk... maybe thats why it didnt work..When changing pngs to the systemui.apk, do i also have to modify the framework-res.apk?
Click to expand...
Click to collapse
It appears the newer gb stuff has elements in framework res as well as system ui. It wont hurt to change both if same files exist in both. Tjats what I think.
And also, don't sign system apk. All the system apk prefer to have same signature. Signing one would result in having to sign all in most cases...
Sent from my PC36100 using XDA Premium App

[Q] replace framework-res.apk?

Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
re: install apks
TheArtiszan said:
Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
Click to expand...
Click to collapse
All you need is to be rooted, it does not matter if you have custom recovery or not.
You can install any apk's since you do not need to go into recovery to install apks.
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
re: install apk
TheArtiszan said:
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
Click to expand...
Click to collapse
The framework-res.apk should be installed like any other app
unless the OP of wherever you got it from gives instructions
to "copy" it to the /system/app folder.
Why not do it the default normal way? just double click on it
when you are in root explorer and it should install like any
other app. If it gives an error, then you can copy it.
If you "copy" it you have to fix permissions and you have to
change the attributes of the /system/app folder so it's "read and write".
NOTE: if there is an existing framework-res-apk in /system/app
delete it with root explorer before doing any of the above.
Framework-Res.apk must reside in system directory. /system/framework to be exact.
Easiest way to do it without locking up is with adb.
You were right OP that it locks up because it's consistently being used. When I make my mods and such to the framework, this is how I quickly get it to the device.
adb remount (if the kernel supports it in other words, anything but stock)
Turn phone screen on
Adb shell stop (your phone should now have a black screen. This command stops all running threads except the one for adb)
Adb push framework-Res.apk /system/framework
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
You should now see the boot animation then the prompt "android is upgrading"
If you do not have adb remount option (it returns with permission denied)
Copy new framework Res apk to root of internal sd card.
Adb shell stop
Adb shell mount -o remount,rw /system
Adb shell cp /sdcard/framework-Res.apk /system/framework/framework-Res.apk
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
Just a pointer, disregard my capitalization. Only capitalize when needed.
This method should get everything copied successfully. Any issues just post back!
Sent from my SGH-M919 using Tapatalk 2
Oh thank you very much.
I will give that a try and sounds exactly like what I was looking for.
Sent using xda premium.
Not sure if this is really relevant but...
When I had the samsung vibrant, I used root explorer to make a copy of my framework-res.apk. I extracted the entire thing, found my battery icon files, replaced them with different images given the same name, then repacked the file. Then I copied it back to the original folder to replace the original apk and my phone immediately shut off and rebooted. When it came back I had my new battery icon working just as I had hoped. I was rooted running stock.
Wait... Are you saying that I can simply copy the framework-res.apk from SlimKat and use it on a Google Play Edition ROM?
I'm going to try it!

How do I install app to /system/priv-app using adb push on marshmallow?

I've tried it a couple different ways. The closest I've come is this:
Go into TWRP
Mount system partition
Go to terminal on my computer
adb push myappname.apk /system/priv-app/
Go into the file manager in TWRP, select the file and chmod 0644
All seems to be successful up to this point but when I reboot the phone the app isn't showing in the app drawer. Can anyone help? Thank you!!

Categories

Resources