Got a problem here. - G1 Q&A, Help & Troubleshooting

My app-private dir (running Apps2SD) became corrupt, a repair ext operation has removed the directory. Now, I can re-create it, but I don't know the proper permissions to CHMOD it, so that it is properly set up.
This also meant I lost my protected apps, which really sucks, but I have backups I can reinstall from.
Who knows what permissions I need to pass to it? I am in recovery mode right now with adb shell.
Thanks
EDIT - got it (hopefully).
chown 1000:1000 app-private
chmod 0771 app-private
seems to have the permissions set right, now to boot up and see if it works right.

Related

Need Help With ADB/apps

I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
g1junky said:
I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
Click to expand...
Click to collapse
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Why don't you adb install them all, not push.
for %%f in ("[folder with apps]\*.apk") do adb install -f "%%f"
You don't need the -f, that only forces the install/upgrade if app is present.
Did you push them to /system/sd/app or /system/sd/ ?
And did you reboot? lol sorry sometimes its the simplest answers. when you push that many files, it may take a while to dexopt them
Apaca1ypse said:
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Click to expand...
Click to collapse
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Naimand said:
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Click to expand...
Click to collapse
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
B-man007 said:
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
Click to expand...
Click to collapse
Ahh true I didn't think about that. Alright well I learned something new tonight and figured out that I am too tired to think clearly so helping people should be called quits tonight.

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...

root: chmod 4777 or 4755?

just wondering which i should do because ive seen both, or if it didnt really matter which. thanks for the help, and a big thanks to everyone that was involved in this achievement!
EDIT: now ive seen 6755 too... whats the permission differences between all of these?
EDIT 2: i did 4755 ill do some more research and change it if i find a reason to, or someone tells me why i need to before hand
if it matters, i used 4755 and its giving me the correct permissions
It "Should" not matter ether way as long as you have the suid bit set along with read rights for owner. The file system will be read-only so what you really need is the ability for the file to run and to run at root privileges.
Looking at other files in the /system/bin directory they are mostly set to 755. So I would go with 4755.

[Q] teamhacksung's ICS can't delete symlink /datadata->/data/data

From beta3 I can't delete symlink. It's important for me because I actually using phone instead of flashing.
I tried->
1.root explorer
-> delete /data/data
-> copy /datadata ->/data
-> change name to /data/data
No effect, after reboot symlink restore
2. Same thing but with terminal
3. serch fstab, init, for script that making ln -s
4. delte from xbin ln program
nothing made any effect. Symlink always back after reboot.
I found at /sbin script setupdata....
But I can't delete/change it, every reboot it's restoring itself.
Sorry, I don't have an answer for you, but I really need this too. I didn't even install that many apps and everything is FC'ing because datadata is full. It seems it's not just app data as well, because I was browsing the folder with root explorer, and every time I clicked on a folder (within datadata), the available space went down some more. On CM7 my phone was fast enough without the symlink, so an option to remove it would be nice.

[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?

Categories

Resources