[Q] Changing ownership / permissions - Android Q&A, Help & Troubleshooting

I use to have an issue with my wifi not turning on.. Fixed that problem then I had the issue of it not remembering new networks.. Fixed that too..
The problem is the fix I found is simply changing the permissions of a few wifi files. While that is not hard to do... Getting those changes to stick is the problem.
I've rooted my phone obviously and I've played around with Ubuntu in the past so I remember something like sudo su... Well just su because I already have root.. I have terminal emulator on my phone I just need to know how to make these permissions stick... Chmod or chown I don't remember..
Any help would greatly be appreciated
Sent from my PantechP9090 using xda app-developers app

Oh and I know this topic has probably been discussed before but haven't really found where it is at.
Sent from my PantechP9090 using xda app-developers app

I'm assuming upon booting up there is a file that tells Linux/android which files should have which permissions... I've looked through some files and haven't found anything.... I tried changing the permissions through terminal with su access... Restarted and still reverted back.
Sent from my PantechP9090 using xda app-developers app

Related

[Q] adb app install failure

i tired best i could to avoid being noob and starting a new thread.
but i've searched and searched and tried everything it seems and have become frustrated.
im on LG-p509 running RevOidOpt rom
this rom has stock MMS app removed/ replaced with Go SMS. this seems to be causing a problem with me receiving ( while i have no problem sending ) mms.
i sought out to re-install stock Mms.apk.
firs i have tried "adb install" - with error: Failure [INSTALL_FAILED_DEXOPT]
then i tried, mounted /system and sdcard in recovery and in adb with su#:
/system/bin/mv /sdcard/Mms.apk /system/app/Mms.apk -
with error: failed on '/sdcard/Mms.apk' - Cross-device link
adb push does not work b/c file system is read only.
any advice would be greatly appreciated!! i cant post in the dev thread of the rom b/c i do not have enough posts yet.
The mms.apk you use is odexed you have to deodex it or place both mms.apk and mms.odex In phone.
Sent from my LG-P500 using XDA Premium App
silver tooth, thanks for the reply.
could you provide me with a link on how to deodex the file? or a link to where i can get mms.odex?
and even so, if it will not let me move mms.apk, how will it let me move either file while im getting these errors?
Deodexing will be long procedure but you can get mms.apk from a deodex custom roms that might be available. If you get it use adb install and dexopt error will not come up.
The mms.odex will be exactly in the same place where you got mms.apk and placing them is the same procedure as you did in first post but give adb remount before mv or cp
Sent from my LG-P500 using XDA Premium App
i obtained mms.odex but i still can not place the files. same errors
i did do "adb remount" before mv the first time when i recieved the error mentioned.
autonami said:
i obtained mms.odex but i still can not place the files. same errors
i did do "adb remount" before mv the first time when i recieved the error mentioned.
Click to expand...
Click to collapse
Install some non-borked busybox version and try again with busybox mv instead.
Sent from my LG-P500 using XDA App
autonami said:
i obtained mms.odex but i still can not place the files. same errors
i did do "adb remount" before mv the first time when i recieved the error mentioned.
Click to expand...
Click to collapse
Just do a
adb shell
Then commands to cp
Don't use mv I think mv makes hard links. cp should work.
Sent from my LG-P500 using XDA Premium App
ok cp worked. thanks a lot guys.
bad thing now though is..... the files i had didnt work lol. gotta find the right ones. >.<
autonami said:
ok cp worked. thanks a lot guys.
bad thing now though is..... the files i had didnt work lol. gotta find the right ones. >.<
Click to expand...
Click to collapse
There's also apn to be updated for mms to work.
Sent from my LG-P500 using XDA Premium App
xD
i dont suppose you could point me in the right direction to fix that could you? lol
the problem is now, while GoSMS still works, and will send, but not receive texts.
the Mms.apk that i just installed will not run. it just force closes everytime.
sorry to trouble your sir. but your help is greatly appreciated. i cant recieve txts!!
What does logcat say...on FC.
Download aLogcat from market.
Sent from my LG-P500 using XDA Premium App

Q How to run crosscompiled linux binarys in Terminal

My question:
How can i run a cross compiled Binary in Terminal?
My SGS 2 is rooted and i make ithe binary executable in terminal under root with chmod.
but when i try i become:
# app
app: not found
How about ./app just a thought?
Swyped from HTC Desire S using XDA Premium
Same Problem.
Sent from my GT-I9100 using XDA App
As long as its in $PATH and not in sdcard (no exec permissions) it should work.
What you trying to compile if you dont mind me asking?
Sent from my HTC Desire using XDA App
tried john the ripper
without how to.
but used same way as. http://www.openwall.com/lists/john-users/2011/07/17/1
have used his binary to but same problem.
Worked fine for me, i just followed instructions in the file INSTALL.
remount system rw
Copy john to /system/xbin
chmod 0755 /system/xbin/john
cd to user directory included in the download.
john...and it worked.
You doing anything different to the above? It *should* be working for you.
Sent from my HTC Desire using XDA App
Tried 2 Times. Exactly Same Result.
try again later.
Sent from my GT-I9100 using XDA App

[Q] Android won't boot after modifying system file

This is (nearly) my first post, so hi all !
Before I start with anything else: I searched a lot and found a lot of things, but I'm so newbie that I'm afraid to do anything because I don't quite understand what I'm about to do.
Oh, and I don't speak english natively so forgive me if I make any horrific mistakes :angel:
With all that said, let's begin with my problem...
I have a HUAWEI Y300-0100, and it comes with a funny feature: every time it can't connect to WIFI a popup message appears saying that if you switch to data plan charges may apply.
I am constantly switching between WIFI/no-WIFI zones so that message really bothered me, and I searched a way to disable it.
Presumably, the only way to do that is by modifying a system file called "build.prop". I already had my phone rooted so doing so wasn't very hard.
I used Jota+ to change a setting from "true" to "false" (ro.config.hw******), and saved the file in the root of the SD card. Then, with ES File Explorer, I renamed the "build.prop" in /system to "build.prop.bak" and copied there the "build.prop" I previously saved in the SD root.
All seemed to be fine, except that after rebooting my phone it could not get past the HUAWEI logo.
Android recovery mode seems to work, but I don't know how to use a lot of its options nor I want to do a Factory Reset if there's a better alternative.
Is there a way to modify system files before booting Android? I really would like to try to delete the "build.prop" file and rename the "build.prop.bak" back to "build.prop".
Does any of that make any sense? What do you recommend me to do?
Thank you very much for your help!
From within recovery open adb
adb pull /system/build.prop /some/location/on/PC
Now edit build.prop back to how it was
adb push build.prop /system
adb reboot
Sent from my Nexus 4 using Tapatalk 2
demkantor said:
From within recovery open adb
adb pull /system/build.prop /some/location/on/PC
Now edit build.prop back to how it was
adb push build.prop /system
adb reboot
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Thank you for your response!
I managed to restore the original build.prop, but the phone still doesn't boot.
..Maybe that wasn't the problem. I guess I'll factory reset...
--------------------------
After that it STILL doesn't boot. I have no idea what happened, I did nothing strange apart from editing that file :crying:
If you changed something in /system factory reset won't work
Try either fixing permissions in recovery or
adb chmod 644 /system/build.prop
Sent from my Nexus 4 using Tapatalk 2
demkantor said:
If you changed something in /system factory reset won't work
Try either fixing permissions in recovery or
adb chmod 644 /system/build.prop
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Nothing fixes it... I give up.
Next time be sure to make a backup before you modify
For now wipe clean and install a new ROM or return to stock
Sent from my Nexus 4 using Tapatalk 2
Install a new rom
Sent from my GT-I9100G using xda app-developers app

URGENT: Build.prop deleting itself after each reboot

got an urgent and important question.. please urgent help required.!!!
I edited something in build.prop and restarted. phone goes blank after boot. Tried adb.. [build.prop not found] restored a backup of build.prop into system via adb but after reboot, same thing again and adb shows [build.prop not found again]..!! Can anyone help..?? Also didn't make nandroid backup..
Is there anyway to get the phone running again without losing any data..??
URGENT..!!
Are you either hitting fix permissions in recovery or using adb to chmod the build.prop after pushing it? If not this will happen.
Sent from my Nexus 7 using XDA Premium 4 mobile app

[Q] ADB Help

Im trying to set directory permissions using adb and nothing is working. I've read a lot of threads and tried what I have read but it doesn't seems I'm typing the commands right or something because adb doesnt understand the codes.
I think I have root access, I have # in adb. its an A13 tablet I'm trying to load maps library on because tasker wont start.
I need to change /system/etc/permissions and /system/framework to rw-r--r-- so I can put files in there because i get permission denied
If anyone get help it would be greatly appreciated
You don't need to chmod these folders.
All you need to do is mount system as RW. Do some search on how to do it.
And i think there are some Apps for mounting system as R/W to make it a simpler process.
Please press the thanks button if i helped!!
Sent from my HTC One X+ using XDA Premium 4 mobile app

Categories

Resources