hello everyone.
i use cm12 rom and i would like to ask if i could somehow ,run the command "apktool d myapk.apk" from terminal ,to decompile apks
from my mobile?
thanks
side said:
hello everyone.
i use cm12 rom and i would like to ask if i could somehow ,run the command "apktool d myapk.apk" from terminal ,to decompile apks
from my mobile?
thanks
Click to expand...
Click to collapse
I don't think you can run this command to your phone terminal becuase it's a jar file. But you can pull you apk, decompile it, do your changes and recompile it.
Code:
adb pull /system/app/myapp.apk
And then to push
Code:
adb push /system/app/
root-expert said:
I don't think you can run this command to your phone terminal becuase it's a jar file. But you can pull you apk, decompile it, do your changes and recompile it.
Code:
adb pull /system/app/myapp.apk
And then to push
Code:
adb push /system/app/
Click to expand...
Click to collapse
yes i know how to do it with my computer thanks
side said:
yes i know how to do it with my computer thanks
Click to expand...
Click to collapse
okay then... But you can try on your mobile but i don't think it'll work. You will not loose anything if you try...!
root-expert said:
okay then... But you can try on your mobile but i don't think it'll work. You will not loose anything if you try...!
Click to expand...
Click to collapse
already tryed ... with no luck :/
Related
im getting tired of having to pull apks every time i flash a new rom. i found a thread that said that you can add a few lines to the update script to remove the apks prior to boot. how do you do that? when i added the lines in the thread i got a wrong digest meta-inf/comgoogle/android/update-script verification failed instillation aborted
i think my issue is i unpacked my signed zip modded the updatescript and rezipped it.
anyone have a better way to remove those apk, not one by one!
please if you could detailed instructions
recognize_atm said:
anyone have a better way to remove those apk, not one by one!
Click to expand...
Click to collapse
Why would you need to modify the ROM? You *do* realize that if you were going to go to the trouble of modifying the ROM to add removing things via the update script, you could just remove what you wanted removed in the first place?
No, of course you don't.
please if you could detailed instructions
Click to expand...
Click to collapse
Gods, that's what adb and a batch file (or a shell script, if you think you should be using Linux) are for.
you can create a .bat file to run and remove all the apks you dont want. here is mine
RemoveApp.bat said:
cd C:\android-sdk-windows\tools
adb remount
adb shell rm system/app/Facebook.apk
adb shell rm system/app/Gallery3DMT.apk
adb shell rm system/app/GenieWidget.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/SocialNetworkProvider.apk
adb shell rm system/app/Sprint_TVWidget.apk
adb shell rm system/app/Sprint_TV.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Stock.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
adb shell rm system/app/Flickr.apk
adb shell rm system/app/FriendStream.apk
adb shell rm system/app/com.htc.FriendStreamWidget.apk
Click to expand...
Click to collapse
posguy99 said:
Why would you need to modify the ROM? You *do* realize that if you were going to go to the trouble of modifying the ROM to add removing things via the update script, you could just remove what you wanted removed in the first place?
No, of course you don't.
God, that's what adb and a batch file (or a shell script, if you think you should be using Linux) are for.
Click to expand...
Click to collapse
your username suits you well... minus the 99.
don't be mean like that man.
I figured it out thanxs
Yea its best to make a seperate update.zip with an edited script that you can flash any time with any rom. So if you flash a new rom, you can then flash the update.zip. Mine would remove a bunch of apps and install a theme and a bootscreen after installing a new rom.
I also see that you got it, but yea you have to resign the zip after you change something in it.
And to the posguy.. If you are NO where near a computer, you can always run the .zip file with the edited script. Comes in handy if you download a rom from your phone, like a rom from DamageControls Updater or just on the web.
Yes i know you can do a terminal, but thats just long and dumb. Make a update script.
Jus10o said:
Make a update script.
Click to expand...
Click to collapse
Yes, that's a good idea. Of course, that's not what the OP thought he should do, he thought he should modify the script in the original ZIP file.
Jus10o said:
And to the posguy.. If you are NO where near a computer, you can always run the .zip file with the edited script. Yes i know you can do a terminal, but thats just long and dumb. Make a update script.
Click to expand...
Click to collapse
my point! thats why i wanted to edit the script. i know how to do it with the terminal/ .bat file. but i cant figure out how to get the zip to work
recognize_atm said:
my point! thats why i wanted to edit the script. i know how to do it with the terminal/ .bat file. but i cant figure out how to get the zip to work
Click to expand...
Click to collapse
Here is a update zip that removes some apps already.. Its my old one.
If you edit any of the lines then you must re-sign the .zip.
If you cant figure it out, or just want someone to sign it really quick. Post your .zip here and I will sign it for you so it will be flashable.
View attachment update.zip
hey thanks... i normailly sign zips using the old fresh kitchen but it doesnt seem to sign roms and im guessing zips that have meta-inf already in them cant get signed thru kitchen. i think i might be wrong, but ho do you sign your zips?
recognize_atm said:
hey thanks... i normailly sign zips using the old fresh kitchen but it doesnt seem to sign roms and im guessing zips that have meta-inf already in them cant get signed thru kitchen. i think i might be wrong, but ho do you sign your zips?
Click to expand...
Click to collapse
http://androidforums.com/developer-101/8665-how-signing-roms.html
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
.apk you can install like any other app so u don't need to push it. As far as pulling I'm not sure I use root explorer to move files instead of adb
Sent from my Nexus S
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
You can just put them wherever you want and specify the full path in your adb command, both ways...
For example, I recently pulled a file from my phone to push to another:
Code:
adb pull /data/app/com.neevo.mobiledefense-1.apk /Users/dave/Dropbox/Android\ Apps
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
peeturr said:
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
That should work on Windows, and on Macs as well. Probably would work in a Linux GUI environment as well.
easiest way is to install from Dropbox
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
easiest way is to use DROP BOX
Then drag any APK you want to install into the Drop Box
and in your phone just install the app or game from you Drop Box
the best thing is you get a FREE 2GB, when you sign up
Hi I was wondering if it were possible to run adb on my infinity so I can hook my phone up to it.
I'm getting real tired of firing my old laptop to use adb for my phone.
shaggydiamond said:
Hi I was wondering if it were possible to run adb on my infinity so I can hook my phone up to it.
I'm getting real tired of firing my old laptop to use adb for my phone.
Click to expand...
Click to collapse
I found this a while ago, but never tried it:
http://forum.xda-developers.com/showthread.php?t=2033722
_that said:
I found this a while ago, but never tried it:
http://forum.xda-developers.com/showthread.php?t=2033722
Click to expand...
Click to collapse
Thanks, but this won't work for me, it's a flashable zip and I don't want to unlock my bootloader(yet)
shaggydiamond said:
Thanks, but this won't work for me, it's a flashable zip and I don't want to unlock my bootloader(yet)
Click to expand...
Click to collapse
Shouldn't need to flash anything. Just download the zip file, extract the contents, copy the `kadb' file to /system/bin (or /system/xbin), and finally set permissions (chmod 0755 /system/bin/kadb). To use, just open a terminal emulator and run the binary.
Haven't tried it myself, but it looks like what you're looking for.
becomingx said:
Shouldn't need to flash anything. Just download the zip file, extract the contents, copy the `kadb' file to /system/bin (or /system/xbin), and finally set permissions (chmod 0755 /system/bin/kadb). To use, just open a terminal emulator and run the binary.
Haven't tried it myself, but it looks like what you're looking for.
Click to expand...
Click to collapse
Oh i might have misread it then. i'll give it a go this weekend
Anybody know how to change the destination folder when installing the modified apk?
wileout said:
Anybody know how to change the destination folder when installing the modified apk?
Click to expand...
Click to collapse
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
santod040 said:
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
Click to expand...
Click to collapse
I was trying to use the tool to push iy becaude i cant get adb to push it at all...but the tool keeps trying to push it to data/app or something like that and i need it to go to system/priv-app
ok tried adb pushing it again and no go even doing it with your command. any ideas?
wileout said:
ok tried adb pushing it again and no go even doing it with your command. any ideas?
Click to expand...
Click to collapse
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
santod040 said:
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
Click to expand...
Click to collapse
I did that man it just restarts adb like i put in a bad command or it says cannot stat blah blah blah file or directory not found
Ive had tigerstown tryin to help me out too and he has no idea whats going on
well got adb to push it but I lost my clock widget all together lol
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
Using stock data cable? Had that be a problem on other devices when pushing files.
Sent from my HTC6525LVW using Tapatalk
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
jsaxon2 said:
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
Click to expand...
Click to collapse
Do i replace test with the name of the file?
wileout said:
Do i replace test with the name of the file?
Click to expand...
Click to collapse
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
jsaxon2 said:
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
Click to expand...
Click to collapse
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
wileout said:
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
Click to expand...
Click to collapse
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Ok ill try that...thanks for your help ill report back
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Tried that and im still getting force closes so its something on my end im assuming
Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to vhange somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Sent from my C2305 using Tapatalk
A bash script using something like "sed" would do the trick.
Dark3n said:
A bash script using something like "sed" would do the trick.
Click to expand...
Click to collapse
Sir if i tell u what i want to search and replace in each file thwn can u write a script for me
Actually there are only 2 things that havr to be done in all files plzz sir
Sent from my C2305 using Tapatalk
abhishekr700 said:
Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to change somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Click to expand...
Click to collapse
Try this:
Place all the files to be edited in a directory, say 'temp'
Open terminal in your Linux OS and change current directory to this created directory using cd command.
Now for example, to replace somc:colorizable with colorizable in all files, use this command in terminal:
Code:
sed -i 's/somc:colorizable/colorizable/g' *.xml
GokulNC said:
Try this:
Place all the files to be edited in a directory, say 'temp'
Open terminal in your Linux OS and change current directory to this created directory using cd command.
Now for example, to replace somc:colorizable with colorizable in all files, use this command in terminal:
Code:
sed 's/somc:colorizable/colorizable/g' *.xml
Click to expand...
Click to collapse
Thabks but i got a way of doing it via notepad ++
Sent from my C2305 using Tapatalk