Related
Is there anyway to start Astro as root so you can use it to edit system directories?
I had wished for the same thing.. but i didnt tell nobody.. soo maybe this will be more effective. prevents having to type in the terminal all the time.. not that its bad.. ive learned so much allready since ive had this phone...
I totally agree! That would be perfect! Maybe there a way of editing the code or smth...
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
lbcoder said:
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
Click to expand...
Click to collapse
Pretty much this. It seems like most of the people having problems on this website just want root because it's "kewl" but really have no idea what it is or even have a clue on how Linux works.
I actually Emailed the Dev of Astro about this same question and here was his reply.
Here is the email copied and pasted from gmail.
My question
Are you able to make a version that requests root access to delete chmod rename move etc for the 100,000+ users from xda and other boards with root access?
His Reply
On Jan 21, 2009 10:57 AM, "Kevin Payne" <metago.inc[at]gmail> wrote:
This is a bit outside ASTRO's scope at the moment. Technically, ASTRO should work fine on files owned by root if it were run as a root process, but running applications as root is not advised in general. Someone really needs to create a sudo type command to let an individual application run as root.
lbcoder said:
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
Click to expand...
Click to collapse
d00m said:
Pretty much this. It seems like most of the people having problems on this website just want root because it's "kewl" but really have no idea what it is or even have a clue on how Linux works.
Click to expand...
Click to collapse
Considering the fact that I'm a Systems Administrator as my profession and work with hundreds of Linux/Unix/Windows servers a day, the whole reason why I bought the G1 was for development and tinkering, the fact that my home PC is running Vista x64 (i haven't gotten around to creating a VM or messing with the drivers), and that I do wipes frequently to test different configurations, I'm pretty sure I'll be ok with root access. I'm just tired of manually doing something on that tiny keyboard that can easily be done with a nice pretty GUI. I stare at consoles all day and thousands of lines of black and white text, when I come home I don't exactly want to be anywhere near a terminal.
Also, why bother doing anything on a phone, other than using it as a phone (or for email, texting, etc.), if you don't do it because it's "kewl". I mess with my phone because it's cool to have a mini-*nix based computer with several fun radios on it. If I do something stupid like type "rm -Rf /*" after logging in as root (never going to happen) then that's my own fault.
I don't care if you're a Unix purist and you write up your office reports, spreadsheets, and diagrams in vi. Good for you, you're wasting time that can be better spent on other things because of your stubborn prejudice against GUI's. I asked a question, because I have a reason for that question. If you don't have any answers to that question, then please don't bother replying.
diabolical28 said:
I actually Emailed the Dev of Astro about this same question and here was his reply.
Here is the email copied and pasted from gmail.
My question
Are you able to make a version that requests root access to delete chmod rename move etc for the 100,000+ users from xda and other boards with root access?
His Reply
On Jan 21, 2009 10:57 AM, "Kevin Payne" <metago.inc[at]gmail> wrote:
This is a bit outside ASTRO's scope at the moment. Technically, ASTRO should work fine on files owned by root if it were run as a root process, but running applications as root is not advised in general. Someone really needs to create a sudo type command to let an individual application run as root.
Click to expand...
Click to collapse
I looked into the commands to launch an application from the CLI and found that Astro can be started using the following command:
am start -n com.metago.astro/.FileManagerActivity
However, this doesn't do us any good, since the dalvik VM will take that command and create a process as a sandbox user regardless of what user executes that command. There looks like there's a way to tell the VM to fork the process as a specific uid and gid, but that requires editing the AndroidManifest.xml.
I'm not too good with Java, and I don't know how strict Android's API is, so I don't know if running an apk application as root is even possible.
However, I do know that running commands from inside an application, like su, is possible.
~TM
"Wise men speak because they have something to say; Fools because they have to say something." ~Plato
Solved--Astro with root...(workaround)
kinda late, but in case anyone wants to know this is what I did.
This way technically doesnt allow astro to run with root, but its just as good.
I originally did this a few months back for my G1, and just mod it a little to work on my nexus
- created a script to mount system as rw
- created a script that gives r/w permission to all app directories (/data, /data/app, /data/app-private, /system, /system/app, /system/sd, ...) and all apps inside those directories
-then merged the 2 scripts and named it astro_root_perm
-installed GScript from the market
-created another script that
-first changes all permissions on apps back to what they started as(644, 640...)-then changes permissions of directories back to what they were-and finally remounts system back to ro, and named this script to astro_basic_perm
-used Gscript to create shortcuts of the 2 scripts to my home screen.
-then with bettercut, I changed the scripts' icons to the astro icon. I just colored the astro stock icons "A" green for one script and red for the other
So anytime I want to use astro as root, I just click the shortcut I made with gscript off my home screen, open astro,
Then when Im done with astro, I just run the other script
I know its not the same as running astro AS root, but it works for me.
Im not really a linux guy......I'd really appreciate if someone could help me with this next step
++++++++++++++++++++++++++++++++++++
Does anyone know what I need to include in a script to have it call/open a program automatic?
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Estrongs has limited root file browsing on some ROMs and SU File Manager or Root File Manager will let you browse as root for a small price.
+1 recommendation on Estrongs File Explorer's root option if you want it for free, includes Windows shares browsing over lan.
Otherwise try SUFBS, also has built-in terminal.
Sent from my HTC Hero using Tapatalk
louieG1 said:
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Click to expand...
Click to collapse
I'm not sure exactly how gscript handles things, but with a normal bash (shell) script, the lines are run sequentially. That is, the next line isn't run until the previous line is done. It would seem that you could put all that in one script, and the still-running script wouldn't change the permissions back until astro has ended. But then again, java adds complexity to it and I'm not sure if it works the same.
louieG1 said:
kinda late, but in case anyone wants to know this is what I did.
++++++++++++++++++++++++++++++++++++
Does anyone know what I need to include in a script to have it call/open a program automatic?
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Click to expand...
Click to collapse
Love this idea! Unfortunatly I'm no coder but would love to see something like this created.
I created a "GodMode" script that does exactly this, email me if you want it, I can edit it to work for the G1.
Totally forgot I started this thread, then happened to find it on Google when looking for the same thing, again.
Went back to Windows Mobile for a little bit, missed Android, and now have a Samsung Vibrant.
Still want a way to use ASTRO with root priviledges, especially since I don't have a tactile keyboard anymore.
phaelox said:
+1 recommendation on Estrongs File Explorer's root option if you want it for free, includes Windows shares browsing over lan.
Otherwise try SUFBS, also has built-in terminal.
Sent from my HTC Hero using Tapatalk
Click to expand...
Click to collapse
Thank you.
Estrongs File Explorer enabled me to flash Tamil font in my Rooted T-Mobile G2X mobile phone.
I know i am not answering the question directly. But, i use Linda Manager it gets the job done.
---------- Post added at 08:17 PM ---------- Previous post was at 08:14 PM ----------
raddy said:
Thank you.
Estrongs File Explorer enabled me to flash Tamil font in my Rooted T-Mobile G2X mobile phone.
Click to expand...
Click to collapse
Hi raddy,
I'm also from TN as well, i would love to get the Tamil fonts. Can you please guide me?
Not having tamil fonts on the browser is simply annoying
Hi
If your mobile is rooted, then follow this link.
http://forum.xda-developers.com/showthread.php?t=798380
Sent from my LG-P999 using XDA App
raddy said:
Hi
If your mobile is rooted, then follow this link.
http://forum.xda-developers.com/showthread.php?t=798380
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Cool, i got the tamil fonts on my G1, thanks for the help.
I have JACHero 2.63, and I was wondering if it is possible and how I would go about using an older youtube app instead of the pre-loaded one. The ONLY complaint I have about this rom so far is the fact that youtube doesn't have the HQ video option that it had on stock cupcake and cyanogen's. I have a working youtube.apk that should support the HQ feature. It wouldn't let me install the app from the SD card like normal, and I think that's because it is protected or something. What is the best way to get the youtube feature I want? Other than that this new rom is heavenly
want to buy? lol.
move the youtube.apk to root directory of your sdcard (not in any folders)
su
cd sdcard
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp youtube.apk /system/app
Ok I tried this and it did copy successfully, however it didn't change the default youtube app, I tried to install it again like before, I couldn't. I also couldn't delete/rename the youtube I want to replace. Would I need to do something else to make it work from here. I now have 2 youtube.apk's in my system/app folder. >.<
darkphoenix2012 said:
Ok I tried this and it did copy successfully, however it didn't change the default youtube app, I tried to install it again like before, I couldn't. I also couldn't delete/rename the youtube I want to replace. Would I need to do something else to make it work from here. I now have 2 youtube.apk's in my system/app folder. >.<
Click to expand...
Click to collapse
So if you go into /system/app with terminal and type
Code:
ls -al
you see two different youtube.apk files? Honestly, they really can't be identical.. There has to be some difference between the two file names for them to both exist in the same folder. Look at them carefully, then try renaming (use the mv command) the new one to overwrite the old one.
Ok now i think i screwed myself over. I used mv like you said and my youtube force closes >.< I'm going to need another youtube.apk that works for hero, hopefully one that has a working high quality feature.
You can unzip the hero update.zip that you're running right now to get the original youtube.apk -- Won't get you HQ, but fix your FC issues for now.
Ok I restarted the phone twice and youtube changed the appearance of the icon it had to the one it should have. Meaning it did copy correctly and overwrote the apk as it was intended. However I still do not have a HQ setting in youtube for hero. Am I the only one who has this issue in youtube??
What type of connection are you on? On EDGE I have no HQ option in YouTube. On WiFi it automatically goes to HQ. I assume 3G would let you select HQ.
I'm on 3G. It doesn't give me the option no matter what type of connection as long as I'm running Hero. On a android rom it was different
Another thing I can't figure out, how to reset what app opens with the sms widget on the desktop
That will be easy if you have root permission. No need any kind of Market Enabler, just modify the build.prop in you /system/ directory add add some lines:
1) Make /system writable
adb remount
2) Download default build.prop from Xoom
adb pull /system/build.prop
3) Use text edit to open build.prop and add following lines
ro.cdma.home.operator.numeric=310004
ro.cdma.home.operator.alpha=Verizon
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83
ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000
ro.com.google.clientidbase=android-verizon
4) Upload modified build.prop back to your Xoom
adb push build.prop /system/build.prop
5) Reboot device to apply changes
adb reboot
Then you Xoom will turn a Verizon devices, and you could see Paid Apps and also the Books and Movies tab.
Thanks, I did the edit with root explorer instead. Working great.
great info, confirmed working.
Awesome. Worked perfectly on my Xoom; also used Root Explorer.
I take it it should also work on other tablets (Acer Iconia A500 in mind)?
Sent from my T-Mobile G2 using Tapatalk
Those who got this to work using root explorer are you guys rooted or on stock.? I don't want to wipe my device just root.
supremecream06 said:
Those who got this to work using root explorer are you guys rooted or on stock.? I don't want to wipe my device just root.
Click to expand...
Click to collapse
Im on stock, didn't push any files. Manually edited the build.pop
I apologize for my ignorance. But what exactly is this mod for?
1el said:
I apologize for my ignorance. But what exactly is this mod for?
Click to expand...
Click to collapse
To make Market on tablets could list paid apps, books and movies.
hi, i am a little bit confused by "paid apps," what exactly are you referring to.
if you don't mind explaining and enlightening me. thanks..
With this mod can you actually rent and watch movies even without VPN ?
It's not useful for me as I need access to the Japanese Market as well. I can't keep on adb-ing everytime I need to change the build.prop.
Market Enabler is still the way to go for me.
nan.ye said:
That will be easy if you have root permission. No need any kind of Market Enabler, just modify the build.prop in you /system/ directory add add some lines:
1) Make /system writable
adb remount
2) Download default build.prop from Xoom
adb pull /system/build.prop
3) Use text edit to open build.prop and add following lines
ro.cdma.home.operator.numeric=310004
ro.cdma.home.operator.alpha=Verizon
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83
ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000
ro.com.google.clientidbase=android-verizon
4) Upload modified build.prop back to your Xoom
adb push build.prop /system/build.prop
5) Reboot device to apply changes
adb reboot
Then you Xoom will turn a Verizon devices, and you could see Paid Apps and also the Books and Movies tab.
Click to expand...
Click to collapse
Unfortunately in version 3.2.2 this trick stopped working.
It was good while lasted
So who has the old market 1.0.28?
Sent from my ADR6400L using xda premium
Has anyone tested this with a Samsung Note device running Gingerbread 2.3.6?
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
So the Nexus 7 does not have a primary camera, so a ton of apps in the market that use a camera show up as Not Compatible. You can sideload them and they may or may not work. However, there's a fix.
I'm on rooted stock, but if your custom ROM is also having this issue in the market you can tell your ROM Chef what file to add.
Caveat: This IS working for me as of right now, but it did not immediately, so there might be some delay or something else needed to do to make it work immediately. I'll update this post based on feedback if it's working immediately for folks or there's some other way to speed things up.
Caveat: Just because you can install an app won't make it work. If an app crashes, you've been warned. All apps might not work, but at least some apps that can use camera and don't need the camera function can be installed (Grocery King works fine, barcode scanning crashes), some will work fine (Camera Zoom FX).
And just to be clear, you are modifying /system. If you do this wrong, you could cause yourself problems. You have been warned.
Pre-reqs
Rooted
Root file explorer app to copy a file into /system (I use Ghost Commander, use your favorite app)
--OR THE FOLLOWING--
ADB working
Busybox (does not need to be installed, but needs to be available for cp, or you can use cat if you know how to do that method instead)
Busybox might be needed to remount /system as read-write, or you can use some other method to do this
Pick the method you want to use, adb, or a file explorer that can mount /system and write files there. Pick one method or the other, I've hidden the content on both by default so fewer people think you need to do everything..
android.hardware.camera.autofocus.xml is a file inside of the zip attached to this post, all references to copying that file imply you open the zip file and extract or copy it directly over. NOT the zip file itself. And no, this is not "cwm flashable". If this is working for folks and someone wants to make a CWM Flashable ZIP file to use, I'll be happy to add it to the post and update instructions.
Instructions for using your favorite root explorer kind of app
Download the file attached to this post to your device
Launch your favorite root explorer type app and remount /system as read/write
Copy android.hardware.camera.autofocus.xml to /system/etc/permissions/
Remount /system as read-only
Now we have to clear market data, do that in Settings->Apps, All tab, find Google Play Store and Clear Data
Reboot
Check the market for Camera related apps. Profit! If still not compatible, just give it a few days.
Instructions for using ADB/Manually copying it
Download the file attached to this post
Connect to your device over adb (I use wifi adb personally)
Do the following commands to launch adb and inside of adb respectively
adb push android.hardware.camera.autofocus.xml /sdcard
adb shell
su
mount -o rw,remount /system
cp android.hardware.camera.autofocus.xml /system/etc/permissions/
mount -o ro,remount /system
Click to expand...
Click to collapse
Now we have to clear market data, do that in Settings->Apps, All tab, find Google Play Store and Clear Data
Reboot
Check the market for Camera related apps. Profit! If still not compatible, just give it a few days.
Thanks to bonks in #nexus7 for confirming for me that he cannot access a few Camera apps and validating some permissions files for me to verify my changes had worked on my end.
Works for 4.3 as well, but the same caveat... It took three days to show apps as compatible, so not sure what needs to "clear" for the permissions to be updated, but give it a few days and it'll be fine.
Reserving for any followup info, particularly around if the market permission doesn't clear "immediately".
A partial list of apps that work/don't work, but all will install now and previously would not. If anyone tries another app or has more input I'll update this post.
I've also started a list of apps I know of that have altered their permissions in the market so that they should show up natively on the N7 without the fix.
Work Perfectly (maybe mirrored)
Paper Camera - Mirrored
Google Translate - Mirrored, maybe upside down.. Wonky, but does work.
Work With Caveats
Grocery King - Barcode scanning crashes, otherwise completely usable
Don't Work at All
Google Goggles - Blank image, although you can load images you took with other cameras
Retro Camera - Can't find camera
Fixed market permissions
Camera FX Zoom - Use landscape, or things are mirrored and flippped
This worked great for me...thanks a bunch!
Sent from my Nexus 7 using xda premium
Ima give this a go when I get home, thanks
Nexus 7 camera permissions
Hi,
I have an app on the market that uses the front camera and sadly I cant get it working on the Nexus 7. Could someone please assist me in what permissions I need to change exactly to get it running?
From reading the posts above I now see that it's not the name of the camera (which I believe is 0) but it's permissions around that.
As a noob to the Nexus 7 permissions can anyone step me through it?
Thanks
David
DavidTheBourne said:
Hi,
I have an app on the market that uses the front camera and sadly I cant get it working on the Nexus 7. Could someone please assist me in what permissions I need to change exactly to get it running?
From reading the posts above I now see that it's not the name of the camera (which I believe is 0) but it's permissions around that.
As a noob to the Nexus 7 permissions can anyone step me through it?
Thanks
David
Click to expand...
Click to collapse
http://stackoverflow.com/questions/...ort-for-android-application-manifest-assembly
Just wanted to bump this thread and let everyone know this still works for 4.3. However, I'm not sure what one would need to do to make it work faster.
I installed the XML file on my N7 about three days ago, cleared Market data, rebooted etc, specific apps still showed as not compatible.
Finally today I look, and compatible! Perhaps it's on Google's side, it only updates every so often.. I dunno.
Anyway, so it works, but it might take a few days for it to propagate