[Q] adb confusion - Galaxy S I9000 Q&A, Help & Troubleshooting

Hey there xda forums,
so a while ago i bought a galaxy s, and i was pretty happy with it! rooted it, used a lagfix, and now im trying to tweak the framework-res.apk to get a glass status bar + dock.
now i know theres enough tutorials on this, and i know how the adb works, but i cant seem to 'push' my framework-res.apk back onto my phone after i've modified it.
here's what it says
Code:
C:\android-sdk-windows\tools>adb push framework-res.apk /system/framework/
failed to copy 'framework-res.apk' to '/system/framework//framework-res.apk': Permission denied
it seems i am missing some permissions. as i've mentioned, my phone is rooted, so i dont think thats the problem. anyone else having trouble trying to push apk's?
please help me out, id like some more customizing, but i cant seem to get past the 'permission denied'.
i've read a superuser authentication box is supposed to pop up when i keep the phone from going to stand by, but nothing is happening.
when i went to the adb shell and run 'su' i did get the box..
regards,
terraego

bumperdiebump,
cmon someone with a xxjf3 device must have tried adb? i really want to customize my device

I had the same trouble with ADB on my JM1 ROM, in the end I used "Root Explorer" (from the market) to alter the permissions of the system and Framework folders, to give ALL read/write access... had to reboot a few times before the permissions would stick... now adb worked first time
Just install Root Explorer, Long press on the System Folder and select Permission, then make sure ALL boxes are ticked, then browse to the Framework fodler and do the same....

Related

SOLVED - Pull an APK from unrooted phone

I have a Motorola Cliq, Also a G1. I was wondering. Is there a way to pull an APK from an unrooted phone? I can "adb shell" into the phone and look at it's contents. I see the APK i want to copy but since i don't have root, it says "CP Permission Denied"... Is there a way of pulling or copying an APK if the phone is not rooted???
Did you try adb remount first?
Karolis said:
Did you try adb remount first?
Click to expand...
Click to collapse
yes, I tried ADB remount but it doesn't work... I can do adb devices and it'll show but it won't mount it as rw... it just lists the contents but can't copy,move,pull or push.
Where is the apk located? If it's in /system and it's read-only in theory you should still be able to pull it. Don't know why you're using 'cp' rather than adb pull.. If it's in data/app-private then no you won't be able to pull it. Hence the ADP1 has root but can't download paid apps (to prevent piracy)..
Solved
I tried CP, MV, PULL, PUSH... nothing worked because the phone is not rooted... BUT I SOLVED THE PROBLEM!
Here's what my goal was. My wife got a Motorola Cliq. It came with the TeleNav program and i wanted to put it on my G1... I couldn't get it out because the phone's not rooted....
I fixed the problem though...
I installed ASTRO File Manager on the Motorola Cliq, located the APK and used the e-mail option to e-mail it to myself... that actually worked... woot woot!
Installed it on the G1 and it works like a charm... so now I have Turn by Turn directions on my G1.
follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it
jbearamus said:
follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it
Click to expand...
Click to collapse
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps
Ooglez said:
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps
Click to expand...
Click to collapse
now i understand the fact that i have a different device may screw things up, but when i look in the data file it says "directory is empty" and when i executed that command via cmd prompt it says remote object...does not exist
the new google maps in market hs turn by turns as well...
Problem solved through other means, thanks for the help!

Install A System App

Hi I've searched the forums to the best of my ability, and cant figure out how to install a system app. I pulled the app (Via ADB Pull) and tried to push it back into /system/app and it works, but never installs? And i cant find it with astro or other software. =( Im using a G1 with Cyan, If you need more information please tell me!
Pushing does install. It doesn't have the install text like adb install does, but that is how you push files so it should work.
You could check to see if you have it set as read only, or delete the file then copy over the new one.
Im not sure what i did but i just kept trying and rebooting untill something worked =/ Lol Thanks though.. What do you mean by Read Only?
System partition is read-only by default, you need to change it to read-write if you want to install or push anything to it. I can never remember commands but they are all over this forum.

[Q] ADB write Mount install dont work

I did Google and searched in this forum (Not just Dell streak 7 but all XDA forums)
1. I tried to root my DS7 (WIFI only ) using super one click and it did not work. I was able to root my device using Gingerbreak.apk. so one issue down
2. here comes main issue. once i have rooted my device i wanted delete some stuff rename some stuff and intall some new apk's. I chose ADB and my device does get listed when i search using ADB devices and i granted SU(Super user) permissions.
I wanted to remove phone.apk and telephoenprovider.apk (I have overcome this probelm using Super manager i have deleted both APK's) but i want to do this kinda stuff using ADB and i tried several methods. when ever I tried to mount or delete overwrite or push a file i get permission denied or read only file or some kinda message which means that i can do what I'm trying to do.
3. now i want to replace my existing email.apk with the provided here http://forum.xda-developers.com/showthread.php?t=951815
I was able to rename existing apk using Super Manger but i ahve to install the modified email.apk using ADB and now i'm stuck. I cant figure out how to install this apk using ADB or any other way.
why do guys think i'm not getting 100% true SU access over my DS7 using ADB and i get using Super manager or some root required tools like Busty Box Titanium backup........
two things:
what else i can do to resolve my issues with ADB
what is alternative way to install APPS besides ADB and Side load wonder machine.
Also said that I also have a captivate and i use all kinda ADB commands with no issues.

Anolog clock resets o reboot

Hi all,
Was not really sure where to put this apologies if its the wrong place.
I recently created my own analog clock, I'm using CM7 RC0, I simply replaced the clock background .png in the original desktopclock.apk, renamed it, signed it and then installed it through filemanager.
Now, it works fine! I was very happy, until I rebooted my phone today, got back onto the desktop and it had reset to the original anolog clock! Tried it again and sure enough everytime I reboot I have to reinstall the .apk!
Anybody have any idea why on earth this would happen?
Many thanks,
Sean
This was originally brought to my attention with the HTC_IME mod by Jonasl. I installed a themed version over the top of the one already installed by default in /system/app and on reboot the original (quite frankly ugly) keyboard was back...
for some reason I do not know, you have to manually un-install the previous version. Don't know why...
use this http://forum.xda-developers.com/showthread.php?t=644909
to un-install the original apk for the clock, then push your app into /system/app using adb. reboot and it should all be sorted... I hope.
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
wiiija said:
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
Click to expand...
Click to collapse
I'm on linux right now, and I did this to remove my stock messaging app not 3 hours ago...
Just open up your terminal and use adb, assuming you have the androidsdk on your computer...
If you don't it's going to be a little harder, you're going to have to find a root exploring file manager and delete the analog clock app from /system/app and then you're going to have to put the new one there AFTER rebooting.
If you want adb just ask and I'll tell you how to get it.
1. download the android sdk from http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
2. open up the .tgz and extract it to /home/-your_user_name/androidsdk
3. open up terminal and type
su
PATH=$PATH:/home/-your_user_name/androidsdk/tools
adb
adb devices <-------(make sure your device is connected and in debug mode. If that fails just boot into recovery)
qiuness said:
adb shell
su
cd /system/app
mount -o rw,remount /system
rm -r analogclock.apk
Click to expand...
Click to collapse
4. install your new, themed app
abd push /path/to/your/app.apk /system/app
5. reboot.
Brilliant guys thank you very much, its all sorted, easy once you know how

[Q] running debloat script.. won't run??

Got the new one for 5.7.906 rooted and dled script manager
when I run psouza4's script after answering questions about what I wanted to keep
It froze right away saying myverizon.apk was read only or something
rebooting... reboot not permitted.
so.. I figured I'd just change that one manually.. changed it, ran it again.. and it froze saying file not found...
so i edited to script to remove that one command/file..
ran it again and i got
"working please wait.....
reboot: operation not permitted"
so I was going to go the titanium route but I can't afford pro version.. also reading through psouza4's thread it notes that some apps will circumvent freezing and load anyway unless renamed..
[q1] does anyone else have this problem with script and if so what was the fix?
[q2] if I have to rename everything manually (a huge pain in the arse) what are the names of the *.apk's associated with
home launcher, motorolas text messaging, widgits, swipe keyboard, ect.. in his list so i don't accidentally remove them?
Thanks!
production said:
Got the new one for 5.7.906 rooted and dled script manager
when I run psouza4's script after answering questions about what I wanted to keep
It froze right away saying myverizon.apk was read only or something
rebooting... reboot not permitted.
so.. I figured I'd just change that one manually.. changed it, ran it again.. and it froze saying file not found...
so i edited to script to remove that one command/file..
ran it again and i got
"working please wait.....
reboot: operation not permitted"
so I was going to go the titanium route but I can't afford pro version.. also reading through psouza4's thread it notes that some apps will circumvent freezing and load anyway unless renamed..
[q1] does anyone else have this problem with script and if so what was the fix?
[q2] if I have to rename everything manually (a huge pain in the arse) what are the names of the *.apk's associated with
home launcher, motorolas text messaging, widgits, swipe keyboard, ect.. in his list so i don't accidentally remove them?
Thanks!
Click to expand...
Click to collapse
Ensure usb debugging is on under development in application settings. Verify you are rooted, if not, only motofail will root 906. Else, try using a root browser, or manually make /system and /system/app writable before running the script.
Skreelink said:
Ensure usb debugging is on under development in application settings. Verify you are rooted, if not, only motofail will root 906. Else, try using a root browser, or manually make /system and /system/app writable before running the script.
Click to expand...
Click to collapse
root = verified
/system and /system/app set to R/W
usb debuging = on
used modified script removing all instances of 2>/dev/null and reboot command
now I'm getting *.apk not read/writable
confirm that /system and /system/app it set to read/write and when i hit properties.. only the read box is checked.. so i go to change it again.. and the other boxes (read,write,execute) are already checked... I don't understand.
I have the newest version of busy box installed I know he changed the syntax after v1.182 but I can't seem to find a copy of that version.. maybe thats the problem? ugh..
production said:
Got the new one for 5.7.906 rooted and dled script manager
when I run psouza4's script after answering questions about what I wanted to keep
It froze right away saying myverizon.apk was read only or something
rebooting... reboot not permitted. !
Click to expand...
Click to collapse
When you loaded the script into script manager, did you check the select to allow the script to run with SU permissions? in other words, you start script manager, you load the debloat script, there are a bunch of options available before you hit the "run" button, one of which allows the script to run with root permissions. My guess is that you missed that, based on what you are describing.
Thanks to everyone who contributed.. :good:
got it to work.. It was afterall allowing to run the script as root as doogald suggested.. can't believe i missed that.
THANKS

Categories

Resources