Permissions question - 7" Kindle Fire HD General

This may amount to a n00b question, but here goes: After rooting my Kindle(7.2.3), my GF decided she loved the new look and functionality of it so she wanted me to do the same. Hers was on 7.3, which made the process different, but I was able to do it successfully. I've already installed Market and Google Play, and am now trying to remove the ads by changing Dtcp_apk.apk to Dtcp_apk.bat. However, I keep getting an Operation Failed message. I realize this has to do with changing the permissions, but I can't for the life of me remember how to do it, or where exactly I read it when I rooted my personal Kindle. Any help would be greatly appreciated.

So...
Code:
adb shell su -c "mount -o remount,rw ext4 /system"
adb shell su -c "mv /system/app/dtcp_apk.apk /system/app/dtcp_apk.bak"
...doesn't work?

And now, my n00bness shall shine through. Haha. After I rooted the first Kindle(7.2.3), I only had to change the dtcp_apk.apk file to dtcp_apk.bat and it worked like a charm. The method you are describing, I am not familiar with. Is that something I do within a cmd window? I apologize for not knowing, I just didn't have to do it before...

Yes, those are entered from the command line. The first one remounts the system partition as read/write, allowing changes to be made to that partition. The second one simply renames the file so the system can't find it. The "su -c" part tells the shell to run the commands as the root user, needed on stock systems.

I'm guessing your file manager your using doesn't have full root access I use es file explorer and you go into settings root settings and check them all then you can rename that file you don't have to learn to use adb to do this...
Sent from my GT-P3110 using xda app-developers app

mrkhigh said:
I'm guessing your file manager your using doesn't have full root access I use es file explorer and you go into settings root settings and check them all then you can rename that file you don't have to learn to use adb to do this...
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
AHA!!!! This was exactly what I did the last time, but couldn't remember this time around. Worked like a charm. Thank you both for the responses and the help. :victory:

Related

problems installing anything

I try to install apk packages like godzson dialer and clear_keyboard and i get errors.
I used apps installer and android dev
apps installer tells me It cannot install the app
android dev I run
adb install C:\clear_keyboard\system\app\HTC_IME.apk
I get
failure [install_parse_failed_unexpected_exception]
I searched for hours finding solutions that say i need to push the files to /system/apps and doing that there is permissions involved and I cant seem to touch anything in /system.
When I run chmod 777 /system i get an error saying unable to change read only file system.
I thought all of this was going to be simple tasks but it's getting really annoying any help would be greatly appreciated. Thanks for everything.
if yr installing through and use
Make sure phone is synced
Make sure app is in tool file I'd adk file
Make sure when at command prompt Ur in adk/tools file first
Adb remount
Adb push (app.apk) /system/(app/framework)
ok I figured out my problem but fixing it is going to be quite confusing. Looks like I would have to know a lot more than I do to fix it. Basically the adb is not reading the phone as root (or something like that). And the ro.secure is set to 1 which it should be set to 0 to be considerd root. So therefore I have to reinstall a bootimg. Ive been reading it on another forum page but i cant post it cause my account hasn't been verified yet. but it's this forum and here is the thread showthread.php?t=443041&page=2
but it's like french to me!!! If anyone can dumb this down for me I would really appreciate it lol thanks a lot you guys have been so much help in the little amount of time ive been a member to this forum. Thank you
redlinethecar said:
I try to install apk packages like godzson dialer and clear_keyboard and i get errors.
I used apps installer and android dev
apps installer tells me It cannot install the app
android dev I run
adb install C:\clear_keyboard\system\app\HTC_IME.apk
I get
failure [install_parse_failed_unexpected_exception]
I searched for hours finding solutions that say i need to push the files to /system/apps and doing that there is permissions involved and I cant seem to touch anything in /system.
When I run chmod 777 /system i get an error saying unable to change read only file system.
I thought all of this was going to be simple tasks but it's getting really annoying any help would be greatly appreciated. Thanks for everything.
Click to expand...
Click to collapse
First, put your apk's in your "C:\AndroidSDK\Tools\" Folder
Second open the cmd window and do "cd C:\AndroidSDK\Tools\"
Third do "adb remount"
Fourth "adb push xxxx.apk /system/app/"
that will install them
When remounting I get error
Code:
remount failed: Operation not permitted
but I continue anyway and the
Code:
adb push HTC_IME.apk /system/app
sends the file with no problem but it doesn't install it though.
Here are steps to do if it is not already installed on your phone. However, if it is you can not install when it is already there. I'm not sure how to remove in terminal and everything I've tried it tells me read only blah, blah, blah...
I tried mount -o remount,rw /system---that is suppose to work.
1.Make sure anything you want installed is in
the root of the sdcard..(/sdcard/nameoffile.apk)
2. Download a terminal emulator from the market.
If it installs continue..If not then continue on back to the thread.
3. Open up the terminal emulator. It should ask permission from SU. >Always allow
4. Now type the following
su (hit enter)
install /sdcard/name_of_file.apk /system/app/name_of_file.apk----if it is a system app
If it is a downloaded app then use /data/app
Ok.... well I tried that way also and I get the error
Code:
install: not found
I downloaded the terminal app from the market and entered the commands as you said for ex.
Code:
install /sdcard/HTC_IME.apk /system/app/HTC_IME.apk
Thanks a lot though I wish it could have been that easy.

Only HALF rooted on 2.2???

Is anyone else in the same boat as me, where they updated prior to instructions reading to move SU to xbin????
I have the SU in my app drawer, I have loaded setcpu and other root programs like barnacle, but I CANNOT for the life of me get the other half of the root apps to work because it says I DO NOT have SU permissions.... like Root Explorer for example.
I wouldn't mind sbf'n it back to 2.1 and then back to 2.2 again at all, just not quite sure what to do.... an ideas?
I was in the same boat as you after upgrading to 2.2 even though I thought I did the xbin step correct, guess not.
Anyways, the only way I fixed it was to completely flash my phone, I didn't mind doing this because it's always nice to start with a fresh install.
This guide was the best for me, simple and includes all necessary links.
http://forum.xda-developers.com/showthread.php?t=758907
Make sure you have busybox installed. There is an appliaction in the market that will download it..
Sent from my DROIDX using XDA App
If you didnt move su to xbin, you will HAVE to sbf your x and redo everything to get 2.2 with root. Thats what happened to me.
I did this also...half root and stuff. I used astro to install the su apk off my sd card. I didn't have the ninja guy in my app drawer though. But could run set cpu. Not root explorer. I just again installed the su apk from sd. And it showed up in my app drawer. And I was able to install root explorer. Just my 2's
Sent from my DROIDX using XDA App
A fix without adb
To anyone that has run into this problem I have a solution. This is for everyone that missed the step on keeping your root access. If you have su in xbin and still won't work this will work for you.
(Open terminal emulator) type the following:
/system/xbin/su
Then you should see a #
Run "mount -o rw,remount /dev/block/system /system"
Run "mv /system/bin/su /system/bin/su.bak"
Run "cd /system/xbin/"
Run "cp su ../bin/"
Then you should have your root access again!
and one more thing, don't type the word run or put the " " in this code
Same thing happened to me as well, I SBF'd back the first run and did everything EXCEPT the moving su to xbin, and well.... I had to do it all over again, took a bit of time, but now root works again.
Chris

[Q] Unable to ADB Remount XOOM...!!

Hi..!! Everyone I tried everything, I was going to unlock and root my xoom but I got stuck at this step:
7. fastboot flash boot rootboot.img
I get this error: "can't load rootboot.img"
I run fastboot reboot command and works, after reboots I try adb devices and my xoom shows but if I run adb remount I get this error:
"remount failed: Operation no permitted"
I tried everything search everywhere, update everything and NADA, I'm on a Windows 7 64bit.
Thanks and I hope somebody can direct me to the right path..
You will want to grant root access again using the adb commands. This happened to me once. You don't have permission to do this because it needs to have root access to carry on this operation. Try the root commands again to grant root access and then see what it does when trying to flash the rootboot files.
If that's not it come let us know. XDA will have your answer for sure.
Sent from my Droid using XDA Premium App
diablo2224 said:
You will want to grant root access again using the adb commands. This happened to me once. You don't have permission to do this because it needs to have root access to carry on this operation. Try the root commands again to grant root access and then see what it does when trying to flash the rootboot files.
If that's not it come let us know. XDA will have your answer for sure.
Sent from my Droid using XDA Premium App
Click to expand...
Click to collapse
I get stuck on step 7 of this guide below, so I think I never get to the point of getting root, but if I'm doing something wrong and I have to run some other commands please let me know.
1. Download the Motorola Xoom Root Zip file and unzip it. Download
2. Place the files in the SDK Tools folder.
3. adb reboot bootloader (You can skip the next 3 steps if you’ve unlocked with fastboot previously)
5. fastboot oem unlock (wait for reboot)
6. adb reboot bootloader
7. fastboot flash boot rootboot.img
7. fastboot reboot (wait for reboot)
8. adb remount
9. adb shell push su /system/bin
10. adb shell ln –s /system/bin/su /system/xbin/su
11. adb shell chmod 4755 /system/bin/su
12. adb push Superuser.apk /system/app
And thanks for making some time to reply, I try to get some help on other threads with no response.
dumb question: is rootboot.img in the same directory as everything else?
It sounds to me like your flashboot can't find it.
That's a good point from the poster above. I had trouble at the start with this and the SDK tools folder because I never messed with the adb shell too often because there never really has been a need for me to do so up until I got the Xoom.
OP... like this reply says above me, I am agreeing to as well. It looks like it might not be finding your rootboot. Make sure all root files are located in the very root of the SDK tools folder, and make sure all root files are not inside a folder. If they are please drag them into the tools folder and slap them all in there. It looks like a mess but it works. Do the same type of thing if you plan on flashing an overclock kernel. Always make sure that all files are NOT in folders when flashing something like this, and that they are always placed in the very root of the tools folder located within the SDK folder. Hope this helps.
About my above post... woops. I wasn't paying attention totally. It was late. I was thinking about when you are trying to install an overclock kernel and run into this problem that says that you cannot remount in adb. It does have to do with root access though.
Thank you very much guys I found what was my problem, I was running ADB straight from CMD window without navigating to my tool folder and always worked so I thought running step 7 will work, but NO I had to cd c:.....bla bla navigate to tool folder and do step 7.
Now I'm happily Rooted thanks again for your time guys, now to set up again my beautiful screens.
I'm having that problem where i'm trying to flash Tiamat Kernel on my Xoom and when i get to the remount i'm getting - remount failed: Operation not permitted . When you say grant root access again you talking about pointing it to the platform folder ?.
It sounds like those having problems are not very familiar with adb. Don't worry, we have all been there at one point. I would suggest that you use the one click method. No its not really a one click, more like a one click at a time method. But, it goes slow and you can see what it is doing as it goes along and has a nice tutorial from the op.
Sent from my HTC HD2 using XDA Premium App
jase33 said:
It sounds like those having problems are not very familiar with adb. Don't worry, we have all been there at one point. I would suggest that you use the one click method. No its not really a one click, more like a one click at a time method. But, it goes slow and you can see what it is doing as it goes along and has a nice tutorial from the op.
Sent from my HTC HD2 using XDA Premium App
Click to expand...
Click to collapse
No i'm not so good at it but i'm willing to or i want to learn . I used it for the first time when my Xoom was soft brick from installing a theme , i restored it with ADB and then use ADB to root ,so that's twice , the first time i rooted my Xoom i used the one click method because i was so afraid of ADB . Today the third time i was using it to flash a Kernel and at the remount i got into the problem above .
jawonder said:
No i'm not so good at it but i'm willing to or i want to learn . I used it for the first time when my Xoom was soft brick from installing a theme , i restored it with ADB and then use ADB to root ,so that's twice , the first time i rooted my Xoom i used the one click method because i was so afraid of ADB . Today the third time i was using it to flash a Kernel and at the remount i got into the problem above .
Click to expand...
Click to collapse
Are you trying to push something thru a ADB...???
Sent from my Xoom using XDA Premium App
lokko21 said:
Are you trying to push something thru a ADB...???
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Yes i'm trying to flash a kernel but at the remount step it's telling that : remount failed : operation is not permitted .

[Q] Trouble restoring "/system/app"

I (without heeding the warnings) decided it would be a good idea to delete certain apps (including Hero of Sparta, Lets Golf, etc.) once I got my tablet rooted. Luckily, there are two A500's in my household, so I was able to copy the /system/app directory from the other untouched tablet.
Problem is, I can't seem to copy the directory (or any apps from it) into my tablet. I've used both ASTRO and File Manager HD, but in both, the 'paste' command is greyed out. It's as if I don't have the necessary permissions.
So, what's going on?
did you set the Read-Write permission on that directory?
Post removed
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Zen_Jackal said:
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Click to expand...
Click to collapse
Silly question, but do you have your system rooted?
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Zen_Jackal said:
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Click to expand...
Click to collapse
OK, then try a file explorer like Root Explorer and you should be able to set the rights ro R/W and copy your files over.
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Zen_Jackal said:
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Click to expand...
Click to collapse
Glad to hear that worked. Root Explorer is what I use. Have been for over a year. I think File MAnager HD can also do it, but it is not as straight forward ad Root Explorer. Have fun.
BTW the permission setting 0777 means anyone can access it (or any other application), for the sake of having a better security the permissions should be changed to 445 so only root can access and execute those files (I'm not sure if APKs are considered excutables if they are not the 444 will be the right setting)
Sent from my A500 using Tapatalk

[SOLVED] Adb Access Denied on Rooted Kindle Fire

Hi everyone. As a new Kindle Fire user, I bought mine AFTER the recent Kindle 6.2 update. After following step-by-step the instructions posted on this forum to root KF, I seemed to have succeeded at my first attempt. However, when trying to copy and paste either vending.apk or amarket.apk to system/app folder using File Expert which I got from Amazon store, I couldn't get it to work. This means I don't see either apps in the system app folder after I paste them there. I followed the instructions to the T and rebooted KF, still no show. I then tried to install it via adb, I was able to "adb install" googleservice frameworks on KF. But when trying to "adb push" the market app to system/app, I keep getting "adb access denied". I tried re-rooting with superoneclick, still can't "adb push".
I really don't know what went wrong. BTW, I could hard install the market app on to KF and gained access to the market. (I thought KF blocked it.) But all my download from android market seem unsuccessful. I need help. Thanks.
Problem solved. And here's what I found out and how I made it work. Thanks for everyone who posted to help.
After trying what everyone suggested here, I still couldn't get r/w perssion to the system folder. I reset my KF to factory setting and started all over again. This time I realized it was the File Expert app that's causing this problem. Although it seems like File Expert could gain full access to the system, it doesn't allow you to make any modification to the system folder. I know someone claimed it worked on theirs. But if your File Expert comes from Amazon app store, it DOES NOT work when you try to paste anything into the system. When I realized that ROOT EXPLORER is no longer available on Amazon, I figured that could be the reason. After downloading Root Explorer to my PC and installed it onto KF, everything worked like a charm! So for those of you who encounter similar problems, it's not you. It could be the File Expert app that you got from Amazon.
You need to mount system as writable
Thanks Felnarion. But I did that. It didn't help. I followed the instructions step by step. Don't where the problem is. I find it hard to believe that KF allows me to do regular install of android market(the market icon even shows on the carousel) but I can't do it the "sneaky" way? Anyone else tried installing market app directly from the sd card?
In that case I think it's your app. I just downloaded file expert and had problems copying to /system as well.
Try root explorer, haven't had any problems with it.
File Expert is broken in regards to mounting folders RW/RO. Even though it claims it has successfully changed permissions, it never does or they don't stick. I suffered the exact same issue, regarding mounting folders RW/RO, and had to install Root Explorer to get the job done.
Code:
mount -o rw,remount -t ext4 /dev/block/platform/mmci-omap-hs.1/by-name/system /system
is the adb command
nycrare said:
However, when trying to copy and paste either vending.apk or amarket.apk to system/app folder using File Expert which I got from Amazon store, I couldn't get it to work. This means I don't see either apps in the system app folder after I paste them there. I followed the instructions to the T and rebooted KF, still no show. I then tried to install it via adb, I was able to "adb install" googleservice frameworks on KF. But when trying to "adb push" the market app to system/app, I keep getting "adb access denied". I tried re-rooting with superoneclick, still can't "adb push".
Click to expand...
Click to collapse
This might be a dumb question, but did you
Code:
su
and click OK on the Superuser prompt on the KF screen prior to the adb push attempts? Were you able to mount /system rw through adb? If adb can't get root access there's no way File Expert will be able to.
devilot said:
File Expert is broken in regards to mounting folders RW/RO. Even though it claims it has successfully changed permissions, it never does or they don't stick. I suffered the exact same issue, regarding mounting folders RW/RO, and had to install Root Explorer to get the job done.
Click to expand...
Click to collapse
File Expert works fine. I've used it to do all my root related installs. You just have to make sure you check the 'Root Explorer' box under Settings>File Explorer Settings before trying to do any /system mounts, it's off by default.
Thank you everyone for your help. If I remember correctly, I did try "su" in adb. but not sure if entered the code correctly. I also heard about File Expert could be the cause when it comes to gaining permissions. I checked root explorer on File expert settings as well. I'm beginning to wonder if my hard install of market app ,which worked to my surprise, messed things up. I will try to reset my KF to factory setting and start over again. I will report back with the result. Once again, I really appreciate everyone's help.
death2all110 said:
Code:
mount -o rw,remount -t ext4 /dev/block/platform/mmci-omap-hs.1/by-name/system /system
is the adb command
Click to expand...
Click to collapse
i have to admit this is the first time I see this code. I tried something similar based on an instruction from another site. But not this exact code. I will try it later.
that command line was a life saver
Saved me a future headache
nycrare said:
After trying what everyone suggested here, I still couldn't get r/w perssion to the system folder. I reset my KF to factory setting and started all over again. This time I realized it was the File Expert app that's causing this problem. Although it seems like File Expert could gain full access to the system, it doesn't allow you to make any modification to the system folder. I know someone claimed it worked on theirs. But if your File Expert comes from Amazon app store, it DOES NOT work when you try to paste anything into the system. When I realized that ROOT EXPLORER is no longer available on Amazon, I figured that could be the reason. After downloading Root Explorer to my PC and installed it onto KF, everything worked like a charm! So for those of you who encounter similar problems, it's not you. It could be the File Expert app that you got from Amazon.
Click to expand...
Click to collapse
Interesting. I was the one it worked for and I'm pretty sure I got mine from the Market, not Amazon. Good thing I haven't clicked that update button from within Amazon App Store.
Thank you for following up. Perfect example of how it can help others.
Glad you got everything sorted.

Categories

Resources