[Q] apk manager - Android Software/Hacking General [Developers Only]

i am trying to decompile a stock apk. and it gives me error id: 2
can somebody simplify and explain this guide for me?
http://code.google.com/p/android-apktool/wiki/FrameworkFiles
thanks.

If your on windows open a Cmd window and type-
"adb pull /system/framework/framework-res.apk C:\"
This will pull your framework from your phone to C:\
Then type-
"apktool if C:\framework-res.apk"
This will install the framework.
Hope this helps.

lol.
# adb pull /system/framework/framework-res.apk c:\
adb pull /system/framework/framework-res.apk c:\
>
and it just stays like that and do nothing

liorweitz said:
lol.
# adb pull /system/framework/framework-res.apk c:\
adb pull /system/framework/framework-res.apk c:\
>
and it just stays like that and do nothing
Click to expand...
Click to collapse
Don't do it while in shell
Start -> run -> cmd
adb pull /system/framework/framework-res.apk framework-res.apk
Then select option (with dependency)
drag/drop this apk into the script.

ok, thanks.
but, there isn't a way to make it permanent, do i have to do it every time?

liorweitz said:
ok, thanks.
but, there isn't a way to make it permanent, do i have to do it every time?
Click to expand...
Click to collapse
Only for proprietary apk's from firmwares such as Htc Sense, Samaung Touchwiz...etc
You did give me an idea however, will try n implement a more cleaner way into the script.

glad to help .
and thank you very much.

Related

I wanna remove the clear lockscreen and put the original one??

I am on fresh 1.1 but i dont like the clear lockscreen. Is there a way i can change it??
yes try looking
just push this to system/app
you can use the fresh kitchen or adb
btw you can take apps out of any rom.zip on your computer, that's where i got this
Thank You thedudejdog it worked perferct
You can take the HtcLockscreen.apk out of the /system/app dir of any ROM you like to get that rom's lockscreen going.
thedudejdog said:
just push this to system/app
you can use the fresh kitchen or adb
btw you can take apps out of any rom.zip on your computer, that's where i got this
Click to expand...
Click to collapse
am a newly rooted hero owner. read/re-read/followed the steps to do it on this forum and am grateful to those who lent their knowledge/expertise.
want to have the original hero lockscreen and downloaded this HtcLockScreen.apk file.
i searched online to see if i could find instructions to push this but can't seem to figure it out.
i've done the following:
- copied HtcLockScreen.apk to the root of my sd card.
- opened a command prompt
- got to "C:\android-sdk-windows\tools>"
from here am i supposed to type:
- "adb shell"
- "su"
'cause i think to push this is the command, right:
- "push /sdcard/HtcLockScreen.apk /system/app/"?
help please!
thank you.
ok, put the file that you want to push in your tools directory of the sdk (c:\sdk\tools) these are the commands to push the file using adb
make sure you are in the command prompt and in your android sdk/tools directory.
you can copy/paste these one line at a time
i always do a
Code:
adb devices
first just to make sure adb sees your phone. if your phone shows up then continue
then mount system read/write
Code:
adb remount
then push the new lockscreen (this will overwrite the one that is there now)
Code:
adb push HtcLockScreen.apk /system/app
then close the cmd prompt window
Code:
exit
or you can use the fresh kitchen for a nice gui that does all the dirty work for you.
then reboot and there ya go, new lockscreen (or whatever)
i've never used the shell to push files, but i assume those commands that you listed should work for that, but you have to remount the filesystem first.
I thought I saw on here a little while back that showed you how to remove just the image from the lockscreen so all you have is the grey bar. Does anyone know where that is because I thought that that was kinda cool.
thedudejdog said:
ok, put the file that you want to push in your tools directory of the sdk (c:\sdk\tools) these are the commands to push the file using adb
make sure you are in the command prompt and in your android sdk/tools directory.
you can copy/paste these one line at a time
i always do a
Code:
adb devices
first just to make sure adb sees your phone. if your phone shows up then continue
then mount system read/write
Code:
adb remount
then push the new lockscreen (this will overwrite the one that is there now)
Code:
adb push HtcLockScreen.apk /system/app
then close the cmd prompt window
Code:
exit
or you can use the fresh kitchen for a nice gui that does all the dirty work for you.
then reboot and there ya go, new lockscreen (or whatever)
i've never used the shell to push files, but i assume those commands that you listed should work for that, but you have to remount the filesystem first.
Click to expand...
Click to collapse
thank you! it worked...

how to use themes from theme repo

sorry guys forgive my dumpness but i downloaded theme from the topic . after i replaced the apk files through root explorer and made restart to the device after that my x10 couldnt start i reflashed root steps but i really still want to change this stupid blue colore is there any easy way to do it . i wanna use the themes that already made from devlopers it comes like normal apk files........thanks in advance
Sent from my X10i using the XDA mobile application powered by Tapatalk
see Here *10chars*
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
xGary said:
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
Click to expand...
Click to collapse
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
h.boushi1987 said:
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
Click to expand...
Click to collapse
Not sure if ADB is required but thats the only method I know of. A step by step guide (Might want to double check with advanced users)
1) Install ADB and set the environment variables, etc.
2) Go to the folder (Should be c:/android-sdk-windows/tools) and open adb.exe (If it flashes and auto closes, open up cmd [Start>Run>cmd] and drag the adb.exe into the cmd and press enter)
3) Put Phone In Debugging Mode Settings>Applications>Development>USB Debugging
In ADB, type these commands
*Note that the commands are case sensitive*
Pull the files you are about to replace with the following commands:
cd c:/anrdroid-sdk-windows/tools
adb pull /system/framework/framework-res.apk framework-resk.apk
adb pull /system/app/Phonebook.apk
adb pull /system/app/Phone.apk
4) Now framework-res.apk, Phonebook.apk, and Phone.apk should be in your tools folder where your adb.exe is. Put these files somewhere safe.
5) Now drag your new framework-res.apk, Phonebook.apk, and Phone.apk into the tools folder.
6) Go back to adb and type the following command:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
7) Now these commands will move your new theme files to the sdcard:
adb push framework-res.apk /sdcard/framework-res.apk
adb push Phonebook.apk /sdcard/Phonebook.apk
adb push Phone.apk /sdcard/Phone.apk
8) Now these commands will install the new theme files in the sd card from the previous step:
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
adb shell dd if=/sdcard/Phonebook.apk of=/system/app/Phonebook.apk
adb shell dd if=/sdcard/Phone.apk of=/system/app/Phone.apk
9) Now your phone will restart (If not, manually restart) and your theme should be installed.
Gary~
thanks a lot man ... you are the best i'll try that and report back but any way you still the best.....
Sent from my X10i using the XDA mobile application powered by Tapatalk
why every time i put the mount command it tells me "the device not found"
and the pull commands don't seems to work
i tried adb devices command but it seems it doesnt found my device
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
rein_hiryu said:
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
Click to expand...
Click to collapse
You pull the framework-res.apk file and open it with 7-zip. Inside should be some folders and there should be a folder (forgot which one) with a bunch of pngs. Replace the battery icons with desired ones.
Gary~

[Q] adb .bat file to soft brick phone

Ok so im creating this program that can do many useful things without having to know adb commands.
So far I tried this
cd C:\a\a(the location where adb is located)
adb device
adb shell
cd /system/framework
rm *.*
Click to expand...
Click to collapse
Whenever it gets to the line adb shell, the cmd window stops and you have to manually type it
Does anyone have any idea how to delete framework?
Also im not trying to destroy peoples phones

UOT Kitchen

i want to make a theme for my stock 2.3.6 DDKT3 thru UOT kitchen
will i be able to flash it thru stock recovery or i have to have CWM?
you will have to manually replace the apks in the output zip file you get from uot kitchen
I don't think stock recovery will work
Sent from my GT-S5670 using xda premium
i had once tried replacing framework-res.apk thru root explorer but then my mobile rebooted and wudnt start
i tried reflashing stock firmware but due to some prob in my comp it wudnt work
i had to give it for repairs then
any idea how to replace the apks safely??
abizerl123 said:
i had once tried replacing framework-res.apk thru root explorer but then my mobile rebooted and wudnt start
i tried reflashing stock firmware but due to some prob in my comp it wudnt work
i had to give it for repairs then
any idea how to replace the apks safely??
Click to expand...
Click to collapse
go to recovery connect your phone to computer mount /system and with adb push command, push previous framework-res.apk in /system/framwork/ and using adb shell set permissions to 0644
yep adb best way
adb rocks :thumbup::
Sent from my GT-S5670 using xda premium
haha i dont understand adb really well
any other method?
abizerl123 said:
haha i dont understand adb really well
any other method?
Click to expand...
Click to collapse
as you don't have CWM i think it's the only way! so here is step by step instruction:
1- copy your old (And healthy) framework-res.apk and adb files(two files that i attached to this post extract zip file ) in root of your C drive.
2- open command prompt program on your windows.
3- power on your phone and connect it to PC(make sure you already installed Gfit Drivers)
4- in command prompt type this commands:
Code:
cd c:
cd /
adb shell
wait to see # in command Prompt and type this:
Code:
mount -o rw,remount -t rfs /dev/stl12 /system
exit
adb push framework-res.apk /system/framework/
adb shell
chmod 0644 /system/framework/framework-res.apk
reboot
if you have disabled USB Debuging all of this things are useless
by old framework-res.apk do u mean the modified one?
if no where shall i keep the modified one?
and do u know any similar method to enable crt off animation?
thnx a lot man
abizerl123 said:
by old framework-res.apk do u mean the modified one?
if no where shall i keep the modified one?
and do u know any similar method to enable crt off animation?
thnx a lot man
Click to expand...
Click to collapse
i mean stock framework of your rom.
if you want modified framework you can try this:
1- copy adb files(two files that i attached to this post extract zip file ) in root of your C drive.
2- open command prompt program on your windows.
3- power on your phone and connect it to PC(make sure you already installed Gfit Drivers)
4- in command prompt type this commands:
Code:
cd c:
cd /
adb shell
wait to see # in command Prompt and type this:
Code:
mount -o rw,remount -t rfs /dev/stl12 /system
chmod 0644 /system/framework/framework-res.apk
reboot
see if it works or not.
i didnt get u
where shall i place the modified framework?
and can i use rajrocks' ics theme on my stock DDKT3 rom?
abizerl123 said:
i didnt get u
where shall i place the modified framework?
and can i use rajrocks' ics theme on my stock DDKT3 rom?
Click to expand...
Click to collapse
i don't know about rajrocks' ics theme .
but if you allready installed your modified framework just do what i said in second post. and if you don't know you have installed it or not , place modified framework on root of C: Hard drive in your PC and do what i said in my first post
and what about the systemUI.apk?
When i try opening adb through cmd i get an error saying AdbWinApi.dll is missing
oh sorry i foget about that
i attached that file to this post.
about systemUI.apk just replace it like framework... just change adresses...
and always keep orginal file just in case! maybe you did something wrong and end in bootloop
yeah thnx
and u have any idea of how to enable crt off animation?
thnx man

adb no such file or directory

I am trying to replace my digitizer firmware so G01 will work in place of the 5185FC I replaced.
I was following a guide which told me to type this in:
$adb push 02-3011-4820.ekt /sdcard/
$adb push 02-3011-4820.ekt /sdcard/
$adb shell
$su
#touch_fw_update command -u /sdcard/02-3011-4820.ekt
Click to expand...
Click to collapse
every time I try to push the new touch firmware I get this
"cannot stat '02-3011-4820.ekt': No such file or directory"
adb detects my device, I havea all the naked drivers, Android studio and JDK 64bit installed.... what else do I need to do?
I'm just wondering what I can do to fix this and get my touchscreen working once and for all!
Thank you so much in advance
And you are in the folder where you have put the file you want to push?
Changed the directory in the command prompt to the correct folder?
edit: ok, if it's linux, not the command prompt, but the shell...
compact_wisdom said:
And you are in the folder where you have put the file you want to push?
Changed the directory in the command prompt to the correct folder?
edit: ok, if it's linux, not the command prompt, but the shell...
Click to expand...
Click to collapse
I put the file on the root if the sdcard. Or should i be putting it in the directory of minimaladb/fastboot?
How do i change the directory in the command prompt?
Im using Windows 7 by the way.
hkp2 said:
I put the file on the root if the sdcard. Or should i be putting it in the directory of minimaladb/fastboot?
How do i change the directory in the command prompt?
Im using Windows 7 by the way.
Click to expand...
Click to collapse
Here is the command you are using to push
Code:
adb push 02-3011-4820.ekt /sdcard/
Maybe try this instead .....
Code:
adb push 02-3011-4820.ekt /sdcard
You can change directory with this
Code:
cd
and you can list files once in adb shell like this
Code:
ls
Thx Josh
I wasn't sure what I should cd to. I also tried ls but wasn't sure what to do from there.
I did look at the tutorial for adb and pushed the file into /sdcard/ from my laptop. It seemed to be successful because this is the message I got
943 KB/s <32868 bytes in 0.034s>
Click to expand...
Click to collapse
I proceed to type in the following
adb shell
su
touch_fw_update command -u /sdcard/02-3011-4820.ekt
Click to expand...
Click to collapse
And that's where I'm stuck with a message
sh: touch_fw_update: not found
Click to expand...
Click to collapse
It seems like I'm at least moving forward a couple steps so that's good.
hkp2 said:
I wasn't sure what I should cd to. I also tried ls but wasn't sure what to do from there.
I did look at the tutorial for adb and pushed the file into /sdcard/ from my laptop. It seemed to be successful because this is the message I got
I proceed to type in the following
And that's where I'm stuck with a message
it seems like I'm at least moving forward a couple steps so that's good.
Click to expand...
Click to collapse
Where is this command coming from, a guide or somewhere like that ?
Code:
touch_fw_update command -u
Thx Josh
This guide
snart[dotcom]/replacing-tf300t-digitizer/
Click to expand...
Click to collapse
I'm getting the adb tutorial from here
http://forum.xda-developers.com/showthread.php?t=2266638
Click to expand...
Click to collapse

Categories

Resources