[Ask] Fix File or Dir Permission.. - G1 Q&A, Help & Troubleshooting

i have flash motoblur 1.071, and it seems i have problem with file/dir permission, i can't install app from market, logcat said "couldn't create temp file for download package file"..
How do i run permission fix of this?

Finally i got it working,
chmod 7777 system/app
and now i can install app from market

lesjaw said:
Finally i got it working,
chmod 7777 system/app
and now i can install app from market
Click to expand...
Click to collapse
Sorry was tied up with stuff, good to hear you fixed it.

Related

Root explorer to move apps into system

Hey guys, I just used root explorer v 2.2 to delete the annoying apps built into the system (amazon mp3)
I am now trying to move my apps into the system so that they cannot easyly be removed. I want to send over lookout and sim checker. That way a theif would not be able to easily delete the apps.
when I select the "move" option (with sim checker) then go to the system apps dirrectpry and then select "paste", it says paste and shows a progress indicator for like 1 second then when I check to see if it actually did the move, it hasn't can anyone help me out
I know I have full root access as I have clicked to allow it and am remounted as r/w so that's not the problem.
Any help to get those two apps into my read only system directory would be greatly apprecaited.
Oh ya I think ill add that I have also tryed to simply change the permissions of the app to readonly (with root explorer) but that did not stop the basic android app manager from uninstalling it.
Try to use adb to move it.
so i went and installed adb, i know its working as well with a little test, could someone please write out a sample command for me to use for this purpose of moving an app out of the apps to sd location and into the system apps.
asb123 said:
so i went and installed adb, i know its working as well with a little test, could someone please write out a sample command for me to use for this purpose of moving an app out of the apps to sd location and into the system apps.
Click to expand...
Click to collapse
mv /system/sd/app/*lookout* /system/app
mv /system/sd/app/*checker* /system/app
It really depends on the name of the file though, if it has lookout in it, then it will be moved to /system/app. The * tells it to move anything with that in the file name
type adb and it will give you the commands + switches
adb pull
adb push
In response to your first attempt, it sounds like system is not being mounted as rw. If it were, the copying would work (I do this all of the time with SUFBS). Try to mount the system as rw via the terminal then copy.
JAguirre1231 said:
mv /system/sd/app/*lookout* /system/app
mv /system/sd/app/*checker* /system/app
It really depends on the name of the file though, if it has lookout in it, then it will be moved to /system/app. The * tells it to move anything with that in the file name
Click to expand...
Click to collapse
so i have the command prompt cd to andorid adk\tools
when i now type in the above :
mv /system/sd/app/*lookout* /system/app
it doesnt recognize the command
so i have C:\android-sdk-windows\tools> mv /system/sd/app/*lookout* /system/app
and it doesnt recognize mv as a command
cloverdale said:
In response to your first attempt, it sounds like system is not being mounted as rw. If it were, the copying would work (I do this all of the time with SUFBS). Try to mount the system as rw via the terminal then copy.
Click to expand...
Click to collapse
hey, sorry for the noob question but could you tell me the command for this. I know in the app i was using it says remount as rw and i do have access to change the system app folder (delted apps) but how can i remount as RW in terminal whats the command? And after, do i need to manually remount back to what i was so that it is back to being unchangeable?
asb123 said:
so i have the command prompt cd to andorid adk\tools
when i now type in the above :
mv /system/sd/app/*lookout* /system/app
it doesnt recognize the command
so i have C:\android-sdk-windows\tools> mv /system/sd/app/*lookout* /system/app
and it doesnt recognize mv as a command
Click to expand...
Click to collapse
If you have the tools directory in your PATH (as you should) no need to cd to the directory. Anyways, sorry to move it in adb do
adb remount
adb shell
*previous commands*
exit
Bingo!
it says failed on /systen/sd/app/com.lookout.apk - cross-device link
asb123 said:
it says failed on /systen/sd/app/com.lookout.apk - cross-device link
Click to expand...
Click to collapse
Ou have 2 android phones plugged in or an emulator running ath the same time
i dont have two phones plugged in and i dont have an emulator that i know of...
but on the bright side i mannaged to solve my problem using droid explorer. I successfully have gotten lookout entrenhed into the system so that it cannot be uninstalled from the menu.
BUT when i tried the same thing for sim checker it did not work, it would not copy into system\apps
i did manage to get it inot system\app but using the copy rather than move option in root explorer, after reinstalling using the simchecker in system\app
but it is showing up as still uninstallable. I have no idea why simcheck is not working but it worked for lookout...

Honeycomb music apk

FYI > I flashed honeycomb music from post 2 of following - works for Magic 32b too.
http://forum.xda-developers.com/showthread.php?p=9995402#post9995402
Note. needs ~5 meg avail on /system. You'll get black screen if flash is incomplete.
Better for those of us on limited /system space is to only install libjumper.so from that zip into /system/lib/
Apparently Music.apk can be renamed com.google.android.music.apk and dropped in /data/app. I haven't had any success that way, unless the debug logs showing syncing 0 byte files are intentional.
So: unzip contents onto sdcard, then:
Code:
mount -o remount,rw /system/
cp libjumper.so /system/lib/
chmod 644 /system/lib/libjumper.so
cp Music.apk /system/app/
chmod 644 /system/app/Music.apk
mount -o remount,r /system/
reboot
Music is the app. Libjumper app is the sync service though only works if you created lib file and some people have reported the sync isn't actually fully functioning.
Update > also posted here:
http://forum.xda-developers.com/showthread.php?p=12097845#post12097845
Update typo in music.apk
crypticc said:
Code:
cp Music.apk /system/app/
chmod 644 /system/app/com.google.android.music.apk
Click to expand...
Click to collapse
Newb alert!, The file copied is Music.apk, but we changed permissions on /system/app/com.google.android.music.apk. Is this correct? New to Android, I may be having a brainfart here.
Just ran with it. Changing permissions on Music.apk worked quite well. Thank you very much.
tested and worked on 32a.
thanks dude!
can you post screensot??
adb shell....
okay so i unzipped it into the sdcard but its telling me that the file doesnt exist in the directory. Should i copy the file into the root system of android. Im sorry I'm a noob to android coding.
Xiaoxion said:
okay so i unzipped it into the sdcard but its telling me that the file doesnt exist in the directory. Should i copy the file into the root system of android. Im sorry I'm a noob to android coding.
Click to expand...
Click to collapse
this what i did. i unzipped it then manually install music app then using root access i moved lib file to system/lib while for music apk to system/app. then i clear all dalvic cache and reboot my phone.
Sent from my GBRider Cronos v1.0 using XDA App
No matter how I install this all I get is a black screen and the sync icon on the top bar
Sent from my HTC Magic/Dream using XDA Premium App
gr8 job ,,
thanx dude
Fabulous! Thanks.
no matter what I get the error of no space left.
Anybody know how the sync works? I check Sync Music and my music selections went blank.
sudermatt said:
Anybody know how the sync works? I check Sync Music and my music selections went blank.
Click to expand...
Click to collapse
sync seems doesn't worked for now i guess..
launch music app, go to menu, take music settings, uncheck Stream music.
here also my screenshot..
it worked for me on the G1, but it stops playing after like a minute or two, and really slows down the phone, and the music starts to crackle
Thank you
Sorry for my ignorance, but what does this music player bring to the sapphire
thanks bro
Cool...
looks pretty!
Thanks.

Asus Writing App - Pulled for xoom?!

Hey Guys,
Asus just came out with a new writing app for their transformer (I believe?)
has anyone attempted to pull the apks and necessary's .so's in order to see if it works on the xoom?? If not, would anyone be willing to pull them so I can give it a try
trying to turn my xoom into a fully functioning school machinnneee
Thanks in advance
feel free to PM me if need be
Could i get a link that you say?
im looking for a link myself
anyone any luck with this yet?
I know it's the long way round, but you could probably extract it from this:
http://forum.xda-developers.com/showthread.php?t=1283081
So I gave it a try and it worked. Just drop the apk into /system/app/ set the permissions and reboot.
qubit76 said:
I know it's the long way round, but you could probably extract it from this:
http://forum.xda-developers.com/showthread.php?t=1283081
Or here, the system dump
http://forum.xda-developers.com/showthread.php?t=1281059
So I gave it a try and it worked. Just drop the apk into /system/app/ set the permissions and reboot.
Click to expand...
Click to collapse
Whoa thanks! I also pulled out a few other apks that work great.
qubit76 said:
I know it's the long way round, but you could probably extract it from this:
http://forum.xda-developers.com/showthread.php?t=1283081
Or here, the system dump
http://forum.xda-developers.com/showthread.php?t=1281059
So I gave it a try and it worked. Just drop the apk into /system/app/ set the permissions and reboot.
Click to expand...
Click to collapse
Would you please tell me how to set permission to install?
tritran18518 said:
Would you please tell me how to set permission to install?
Click to expand...
Click to collapse
Im assuming you have a file manager installed (Root Explorer, Es File Explorer)
You have to long press the app, after moving into proper folder /sysstem/app/ and set the same permissions as the others (I cant remember which ones they are exactly but you will be able to tell once in the file system).
tincbtrar said:
Im assuming you have a file manager installed (Root Explorer, Es File Explorer)
You have to long press the app, after moving into proper folder /sysstem/app/ and set the same permissions as the others (I cant remember which ones they are exactly but you will be able to tell once in the file system).
Click to expand...
Click to collapse
I already did that, but no luck. Still can't install. Its size is 8.2mb ,isnt it?
can someone post the apk here. Greatly appreciated
tritran18518 said:
I already did that, but no luck. Still can't install. Its size is 8.2mb ,isnt it?
Click to expand...
Click to collapse
Did you move the .odex file too and set permissions?
Attached the file here just in case
Hopefully someone can help me here, I followed the links and after a few attempt's of being told too much traffic I was able to download the system dump, I Extracted on my PC moved the email widget and the supernote APK's to the internal storage of the zoom, then I use Astro to install them it starts the process but if fails I get an error message saying file not installed, what do I need to do so this installs ? and where do I put the ODEX file ? and how do I sign them ?
thanks
arimus said:
Hopefully someone can help me here, I followed the links and after a few attempt's of being told too much traffic I was able to download the system dump, I Extracted on my PC moved the email widget and the supernote APK's to the internal storage of the zoom, then I use Astro to install them it starts the process but if fails I get an error message saying file not installed, what do I need to do so this installs ? and where do I put the ODEX file ? and how do I sign them ?
thanks
Click to expand...
Click to collapse
You didnt follow the instructions. You shouldnt be trying to install anything because the .apk's are not signed.
However, if you move supernote.apk and supernote.odex into system/app and set proper permissions and then reboot it will work.
still cant install this app. I move both supernote.apk and supernote.odex to system/app. try to set permission in many different ways, but this app still not be installed. i guess i give up.
tritran18518 said:
still cant install this app. I move both supernote.apk and supernote.odex to system/app. try to set permission in many different ways, but this app still not be installed. i guess i give up.
Click to expand...
Click to collapse
Are you setting the permissions exactly the same as all other apps in system/app and are you rebooting?
I cant remember which set worked for me - I downloaded the Dump and the ROM but I know one didnt work.
Try both.
tincbtrar said:
Are you setting the permissions exactly the same as all other apps in system/app and are you rebooting?
I cant remember which set worked for me - I downloaded the Dump and the ROM but I know one didnt work.
Try both.
Click to expand...
Click to collapse
Yes, there are two types of permission: rw-rw-rw and rw-r-r. I alredy tried and reboot but still didnt work. I download the dump image. Trying down the Rom now.
---------------
Ok. Using the .apk from the ROM, i got the app installed but FC upon opening.
---------------
finally, got the app working.
+ get the app from ROM link, not the dump link
+ copy supernote.apk to sytem/app
+ using root explorer/es file explorer, set permission : read-write for user-group-and other (rw-rw-rw).
+ reboot
Can someone please save everyone a lot of trouble and post the .apk from the ROM?
here is the link for the app: http://www.multiupload.com/GX9O2CTQ1W
finally, got the app working.
+ get the app from ROM link, not the dump link
+ copy supernote.apk to sytem/app
+ using root explorer/es file explorer, set permission : read-write for user-group-and other (rw-rw-rw).
+ reboot
Click to expand...
Click to collapse
--------------------
There is another app from market with is similar to this Supernote app in term of UI and Funtions call FreeNote. You guys might want to check it out.
I signed the apk.. it works on my Galaxy Tab 10.1
no need to root - just install
http://goo.gl/ciSZH
Thanks!
Sent from my Evo3D
justvinz said:
I signed the apk.. it works on my Galaxy Tab 10.1
no need to root - just install
http://goo.gl/ciSZH
Click to expand...
Click to collapse
How do you sign the apk? Thanks.

[Q] Permanently Change Folder Permission

I am trying to change the folder permission of the "data/gps" folder to "rwx rwx rwx", by default, it's set to "rwx --- ---".
I can do this by using ES File Explorer but the folder permission gets reverted to the default upon reboot. So I'm guessing ES File Explorer can't change it permanently.
My question is, is there any method that I can use to change it permanently? I have Terminal Emulator installed, but I've never used it before so I don't want to go around messing with it just yet (unless if I can get a confirmation that it'll do what I need it to do).
I would appreciate any help on this. Thanks.
Update:
I tried it with Terminal Emulator, "chmod 777 /data/gps". No luck, the permissions still reverted to default upon reboot.
I was informed that all scripts placed within "/etc/init.d" folder are executed on boot. So I created a shell script file and placed it in that folder.
#Change folder permission
chmod 777 /data/gps
Click to expand...
Click to collapse
Unfortunately, that didn't work either. I don't know if the script above is incorrect or incomplete. One thing I can't figure out though, are all the scripts in the folder executed with superuser privilege? Correct me if I'm wrong but in order to change the permission for "/data/gps" folder, superuser privilege is required. I have tried the following scripts, nothing works.
#Change folder permission
su chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo su chmod 777 /data/gps
Click to expand...
Click to collapse
Anyone with ideas?
UPDATE: I have got this fixed! Turns out that there was nothing wrong with the script. Placing the script in the init.d folder does the trick, it's just that I couldn't get it to work with CM9, it works perfectly on OneCosmic ROM. Maybe CM9 doesn't support init.d?

[Q] Root Explorer no R/W option on /system/app

Hi,
just installed GALACTUSMOD 4.2 XXLT5, i wanted to push/move stock FMRADIO.APK and EMAIL.APK. I already installed Root Explorer to be able to push .apk. but i have one problem. /system has RW option, /system/app no RW option. i tried the other way of pushing using terminal yet still cant locate it. does anyone can fix this? or does anyone can make a tutorial to enable the RW option for /system/app so i could able to move apk's I wanted to have on my phone.
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
nokiamodeln91 said:
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
Click to expand...
Click to collapse
Hi sir,
Im trying to push Email.apk and FM.apk to GalactusMOD ROM, I'm using root explorer I can locate /preload/symlink/sysmtem/app and system/app but the prob is, there is no R/W option. I cant push or move those APKs. Hope you can help me. thank you
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
nokiamodeln91 said:
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
Click to expand...
Click to collapse
Hello sir,
I've read again all the details of GALACTUSMOD, it says
"My ROM no longer uses System/app! this has all been symlinked to Preload.
so any MODS/THEMES Etc need to be Preload ONLY!!!"
i guess im not gonna able to push or either move apk to system/app
You still can.
nokiamodeln91 said:
You still can.
Click to expand...
Click to collapse
anyway, I got kitkat email, and spirit fm unlocked. thanks for your response. i really dont know how to push apk. using adb no time to read about it. i just know root explorer. maybe someday if i got time. i really need my phone for my clients they're calling and texting.

Categories

Resources