Ubuntu On Mytouch 4g - myTouch 4G Android Development

this is interesting to have ubuntu in ours MT4G imagine how many apps can we run in ubuntu usin ours MT4G.
Sources:
http://www.ehow.com/how_12170472_install-ubuntu-android.html
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
http://forum.xda-developers.com/showthread.php?t=723493
1- We need to install vnc in our devices, go to the Market and search for androidvnc or whatever vnc app you like and install it
2- download the new version and extract it in the sd of your MT4G in a folder named ''ubuntu''
3- open a terminal emulator and type:
su
cd /sdcard/ubuntu
sh ubuntu.sh
bootubuntu
If you get the "root_localhost:/#" sign, congratulations
4- open vnc for android and connect with [email protected]:localhost:5901
5- if you want to change the pass type:
bootubuntu
vncpasswd
Alternative:
if that method doesn't work try this one:
1- Assuming you know how to work with adb just reboot your MT4G to recovery and load up ADB Shell connecting you phone to a computer.
2- once we are in adb shell, type:
mount system
mount sdcard
cd /sdcard/ubuntu
rm /system/bin/fsrw
rm /system/bin/bootubuntu
rm /system/bin/unionfs
rm /system/bin/mountonly
cp -f fsrw /system/bin
cp -f bootubuntu /system/bin
cp -f unionfs /system/bin
cp -f mountonly /system/bin
cd /sdcard/ubuntu
chmod 4777 *
cd /system/bin/
chmod 4777 *
cd /
umount sdcard
umount system
exit
Now select "reboot system now" from recovery menu
3- you need load up again ADB Shell Type "su" to enter superuser mode. Is very important not to forget this type:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mkdir /data/local/mnt
4- Once that completes, type "bootubuntu", If you get the "root_localhost:/#" sign, congratulations! You've just installed Ubuntu on your Android phone.
NEW VERSION
here is a 10.10 version with vnc an many app includes:
http://www.megaupload.com/?d=L9S70C8V
http://www.megaupload.com/?d=MS1KUUGW
http://www.megaupload.com/?d=YCMNO224
http://www.megaupload.com/?d=H6XZX9JB
MIRRORS:
http://www.multiupload.com/1SOEE6B5U4
http://www.multiupload.com/TNSJ2QGECI
http://www.multiupload.com/VJDBUJD7MC
http://www.multiupload.com/2M5ZR00RKN
EDIT:
For those who are having problem replace the ubuntu.sh file with the attached one.
Applications
Firefox, Thunderbird, openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled (Ubuntu Software Center is pretty and well organized - but bloated and slow), SSH server, Gnash (GNU flash player/plugin for Firefox - as there is no official generla flash pluging for armel CPUs)..

Interesting! May try this sometime

EDIT:
GUYS, I CONFIRM THIS WORKS ON OTHER ANDROID DEVICES!!!
it worked on my LG optimus, i'll try for MT4G later
screenshots coming up

saranhai said:
EDIT:
GUYS, I CONFIRM THIS WORKS ON OTHER ANDROID DEVICES!!!
it worked on my LG optimus, i'll try for MT4G later
screenshots coming up
Click to expand...
Click to collapse
Screenshots!
Sent from my HTC Glacier Sense 3.5 using xda premium

saranhai said:
Screenshots!
Sent from my HTC Glacier Sense 3.5 using xda premium
Click to expand...
Click to collapse
holy mother that's awesome. dammit my computer dead ! would this method work with terminal emulator
RCMIX 3D DarkSide Glacier HD !

by terminal emulator
Tez MyTouch said:
holy mother that's awesome. dammit my computer dead ! would this method work with terminal emulator
RCMIX 3D DarkSide Glacier HD !
Click to expand...
Click to collapse
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”

juancollado2003 said:
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”
Click to expand...
Click to collapse
thanks but if I do this what will I lose ?
RCMIX 3D DarkSide Glacier HD !

juancollado2003 said:
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”
Click to expand...
Click to collapse
yes, but after that, you still need to change the sources.list in a file manager.
but yes, all this can be done through terminal

I didn't use this method but i can confirm that Ubuntu works on our device. Its great especially since my NetBook broke and I couldn't find an irc client that allowed for dcc send
Sent from my HTC Glacier using Tapatalk

So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier

exemp30 said:
So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier
Click to expand...
Click to collapse
yes, this ubuntu is in a form called "chroot"
it's basically like a virtual machine, ubuntu runs on top of android.
it won't touch android in any way, but just make a back up to be safe

Oh alright cool ima try this
Sent from my HTC Glacier

blklexluthor said:
I didn't use this method but i can confirm that Ubuntu works on our device. Its great especially since my NetBook broke and I couldn't find an irc client that allowed for dcc send
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
is that with lxde?

saranhai said:
is that with lxde?
Click to expand...
Click to collapse
Yes.
Sent from my HTC Glacier using Tapatalk

heyy what the...not working with my MT4G???
gives me errors?

exemp30 said:
So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier
Click to expand...
Click to collapse
It runs over to of Android, like a skin. Btw trigun rules.
If I helped, give thanks, if you please.
Sent from my fist to your nuts, enjoy!

saranhai said:
heyy what the...not working with my MT4G???
gives me errors?
Click to expand...
Click to collapse
probably bad download it u can try using terminal emulator
RCMIX 3D DarkSide Glacier HD !

Tez MyTouch said:
probably bad download it u can try using terminal emulator
RCMIX 3D DarkSide Glacier HD !
Click to expand...
Click to collapse
same errors with terminal...
trying the download again

some files are missing
saranhai said:
heyy what the...not working with my MT4G???
gives me errors?
Click to expand...
Click to collapse
it's saying miss some folders and files that means you miss some step so do all step once again and try reboot, remember to mount system to create the folders

kernels
remember you need a kernel with supporting 'noatime' mounts (which makes for faster reading/writing to the .img file)

Related

Change G1 Boot Animation without abd

I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
After reading a little more i can see that this will never work for me and my ROM (I'm a donut)
So yea... anyone know if anything like this is possible in a donut build?
not like the animations from eclair . as far as i have been able to find this is only a eclair thing.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
adb push boot1.gif /system/media/bootscreen/
adb push boot2.gif /system/media/bootscreen/
adb push boot_animation.xml /system/media/bootscreen/
adb push boot_bg.gif /system/media/bootscreen/
adb push boot_bg.mp3 /system/media/bootscreen/
unzip the file
xile6 said:
adb push boot1.gif /system/media/bootscreen/
adb push boot2.gif /system/media/bootscreen/
adb push boot_animation.xml /system/media/bootscreen/
adb push boot_bg.gif /system/media/bootscreen/
adb push boot_bg.mp3 /system/media/bootscreen/
unzip the file
Click to expand...
Click to collapse
First of all, if you even read his request, he wants to know how to do it via terminal since he doesn't want to install adb drivers on his computer and I'm pretty sure .gif boots won't work on a cupcake/donut/eclair/ ROM unless they are a HTC SENSE ROM. Please read before posting some BS.
Dude you should just flash via Recovery.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
try
cat /sdcard/bootanimation.zip > /system/media/
Macrophage001 said:
try
cat /sdcard/bootanimation.zip > /system/media/
Click to expand...
Click to collapse
Not gonna work, 1) What the hack are you trying to do with that command and 2) He's on Donut, he needs eclair
Damn My eyes are terrible.
note to self:
READ BEFORE WRITE!!!!
on google donut builds, you're stuck with the android-logo-mask and android-logo-shine boot animations. on hero builds, you can use the animated gifs. on eclair builds, you can do the bootanimation zips. if you want to know how to do a standard google build boot animation without using adb, check the link in my signature. i made a full written + video tutorial on how to do it.
the other easy way to do it, is of course, metamorph. making the .thm files takes about 30 seconds and you can flash it without having to use adb, terminal OR recovery.
So how did Cyanogen make a custom boot animation for CyanogenMod?
exactly in the fashion shown in my video tutorial. its not hard.
CM=google build.
your signature
kusotare said:
exactly in the fashion shown in my video tutorial. its not hard.
CM=google build.
Click to expand...
Click to collapse
Dude I love your sig...its tight how you got everything you are running in the form of a link, so people who want the same can easily learn how to do it without asking questions(which they still will do anyway) by simply clicking your links.
thats what I call community contribution.
heh, thanks, i havent updated the links in a LONG damn time though, as you can see. I'm obviously not running CM 4.2.3.1 anymore.
Kudos for the Vibrant!
Gotta love that 4.0 amoled screen dislplay.
and I love how Klyentel has his "G1-BRICKED!"
in his signature, too funny.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
yeah it is possible i do it all the time download terminal emulator form the market and enter the following commands
su
# cp /sdcard/bootanimation.zip /data/local/
# reboot
it works for me all the time

Removing the Swype keyboard in cm6

OK, so i installed the swype from stock espresso 2.1 ROM but it doesnt let me swype. tells me that its configured for a different device which is a fail honestly but how do i go along to delete it? Terminal or ADB commands would be nice because. Thanks fellas. i tried
rm -r /system/app/swype.apk
rm -r /system/app/com.swype.inputmethod
any other suggestions?
Did you try reflashing cm6? Idk if it will work, but worth a try.
Sent from my T-Mobile myTouch 3G Slide using XDA App
guitarist5122 said:
Did you try reflashing cm6? Idk if it will work, but worth a try.
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
That seems like the only thing I can think of too. I'm having a similar problem where I tried to flash Swype, but it just keeps force closing, and now I actually HAVE the beta but I can't uninstall my old swype D: . I tried going thru with ADB and Root Explorer... It seems I deleted anything involved with Swype, BUT it's still in there somehow.
Shaquiel Harris said:
OK, so i installed the swype from stock espresso 2.1 ROM but it doesnt let me swype. tells me that its configured for a different device which is a fail honestly but how do i go along to delete it? Terminal or ADB commands would be nice because. Thanks fellas. i tried
rm -r /system/app/swype.apk
rm -r /system/app/com.swype.inputmethod
any other suggestions?
Click to expand...
Click to collapse
You have to do it via adb in while your phone is in recovery because our phones are s-on.
reboot into clockwork recovery, go into the partitions menu, mount /system, then in command prompt type
Code:
adb shell
rm /system/app/apkname.apk
If you're not sure what the exact name is do this:
Code:
adb shell
cd /system/app
ls
then it'll give you a list of all files in /system/app, type rm apkname.apk to remove it. Then reboot
MusicMan374 said:
You have to do it via adb in while your phone is in recovery because our phones are s-on.
reboot into clockwork recovery, go into the partitions menu, mount /system, then in command prompt type
Code:
adb shell
rm /system/app/apkname.apk
If you're not sure what the exact name is do this:
Code:
adb shell
cd /system/app
ls
then it'll give you a list of all files in /system/app, type rm apkname.apk to remove it. Then reboot
Click to expand...
Click to collapse
Ive tried that before (suggested by others) wouldnt work for me. I would always get a read only error. The cd /system/app ls command would run fine though :/
Sent from my T-Mobile myTouch 3G Slide using XDA App
guitarist5122 said:
Ive tried that before (suggested by others) wouldnt work for me. I would always get a read only error. The cd /system/app ls command would run fine though :/
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
Were you in recovery? Another thing to try while in recovery and in adb shell, type this:
Code:
mount -o rw,remount /system
You might also try adb remount, not in shell, then go back into shell.

[Q] Quick Office Cm6.1.1

Does anyone know where I can find QuickOffice for my g2? Im running cm6.1.1 and I downloaded a pdf and when I pressed it it went to quicloffice but when I exit I can't find it on the app.drawer or anywhere ..
Sent from my HTC Vision using XDA App
You can get it from the stock deodex rom and push it to /system/app, I'm about to do that once I get home from work, so I can confirm.. I got the ezpdf from market but I think quick office seems better
Edit: I can confirm that it works by just extracting the Quickoffice.apk in stock deodex rom and push it back to cm, its usable and will also appear in the app drawer now
Sent from my HTC Vision using Tapatalk
def. let us know noodles, this is something im looking to get as well..
Can you give me the exact steps im a noob :/
Sent from my HTC Vision using XDA App
Same here. I have CM6.1.1 and I can see Quickoffice in Titanium but it won't let me restore it.
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
noodles2224 said:
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
Click to expand...
Click to collapse
Before you do the "cp /sdc...." command, you have to mount system using this command: mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
Please correct me if it's wrong, I just copied it from another thread.
Yea you do, but sometimes you don't need to.. well, some that I notice or maybe its because I'm always switching roms and forget which ones which
A shorter one would be
mount -o remount rw /system
Sent from my HTC Vision
This also works and is pretty easy
http://forum.xda-developers.com/showthread.php?t=837599
If you have a nandroid backup of your stock rom you could also restore it and extract from there. Otherwise just flash the stock rom like noodles said and extract from there
Sent from my HTC Vision using XDA App
You don't have to flash the stock rom, just download it to the computer and extract it there
Sent from my HTC Vision
My bad. Thanks!
noodles2224 said:
You don't have to flash the stock rom, just download it to the computer and extract it there
Sent from my HTC Vision
Click to expand...
Click to collapse
Sent from my HTC Vision using XDA App
If you are running CM6.1.1 you can just type this from the tools directory of your androidsdk install in the windows command prompt.
"c:\{android sdk path here}\tools\adb push Quickoffice.apk sdcard/"
then
"c:\{android sdk path here}\tools\adb remount"
that will remount the system partition. Then you can type this
"c:\{android sdk path here}\tools\adb shell"
then you will see this
"#"
then you can type
"# cp sdcard/Quickoffice.apk /system/app"
shadowofzeus said:
If you are running CM6.1.1 you can just type this from the tools directory of your androidsdk install in the windows command prompt.
"c:\{android sdk path here}\tools\adb push Quickoffice.apk sdcard/"
then
"c:\{android sdk path here}\tools\adb remount"
that will remount the system partition. Then you can type this
"c:\{android sdk path here}\tools\adb shell"
then you will see this
"#"
then you can type
"# cp sdcard/Quickoffice.apk /system/app"
Click to expand...
Click to collapse
"Ok".. pretty much exacly what I said..
Sent from my HTC Vision
noodles2224 said:
Download Stock Deodex Rom v1.1 in the Development forums.. look through it, it might be towards the end or so..
You can use 7zip to extract files or windows extract .. so if you haven't gotten it, download it at download.com and install it.
Open the v1.1.zip rom, just double click on it, go to SYSTEM folder then APPS folder and search for Quickoffice.apk at the bottom and just drag it out to the desktop.
Now, either copy it through Terminal Emulator by just putting it to the root of sdcard and type
su
cp /sdcard/Quickoffice.apk /system/app
Or you can use adb, and I bet root explorer aswell as its pretty much all the same concept..
Sent from my HTC Vision
Click to expand...
Click to collapse
Thanks.. I got it to work.
methead said:
Thanks.. I got it to work.
Click to expand...
Click to collapse
...edited...found answer/solution

[Q] Problem with Fix Permissions (line 64: UID readonly variable) [WORK AROUND FOUND]

Latest!! Switch to TWRP 2.1.8 (June 18th 2012)
Anyone else having a problem Fixing Permisshions? And how did you fix it?
I noticed it would take 2 seconds to run, so I decided to go to "Show log"
Here is the log
I:Checking for extendedcommand, file not found...
/sbin/fix_permissions: line 64: UID readonly variable
Done!
ro.carrier=unknown
ro.bootloader=unknown
ro.hardware=qcom
ro.revision=0
init.svc.recovery=running
init.svc.adbd=running
Tried:
Running from Rom Manager but it always stalls, never the same place and if I run it multiple times back to back it stalls sooner and sooner
touch recovery
re-installing recovery
clearing download in rom manager and re-installing recovery
setting rom manager to delete recovery before installing
Wipe / reset, wipe cache & dalvik, with superwipe 2 times and re-installing
ClockworkMod Recovery v5.0.2.7
Running [ROM] [cwm]-BLACKEDITION FOR THE SGS2 4-10-2012-ICS RC6
A work around has been found! Thanks to RealPariah, so thank him here!
It is not a fix due to the fact that you still will not be able to fix permissions in CWM or Rom Manager but does get the job done of Fixing Permissions!!
1st Do you have the Google android installed?
If not download and install it! http://developer.android.com/sdk/android-4.0.htm
you might need to install the JDK, if you don't have it already.
2nd Your path to adb must not be set or is not correct.
See http://forum.xda-developers.com/show....php?t=1161776
Now you should be ready to use adb!
STOP!
Fixed in this New CWM Recovery or
GOTO THE DEVELOPMENT THREAD!
http://forum.xda-developers.com/showthread.php?t=1604581
Most recent Fix Script / Work Around found here
http://forum.xda-developers.com/showpost.php?p=25023284&postcount=22
Boot in to Recovery
plug USB in to phone and computer
In Recovery Go in to "mounts and storage" and mount /system and /data
On computer open a command line window (windows) [click start] then [run] then type "cmd" to get a command prompt or terminal (Linux or OSX)
Run "ADB devices" and be sure it is not all ? For device number (if it is restart recovery and reseat USB connection and run "adb kill-server" on computer) I had to run terminal as root (admin for best results bit got it to work either way really)
Now type "adb shell" enter
Once that opens and you get ~#
now type cd /sbin
then type
sh fix_permissions -l -r
done correctly, your command prompt should look like the following
C:\Documents and Settings\family>adb shell
~ # cd /sbin
cd /sbin
/sbin # sh fix_permissions -l -r
sh fix_permissions -l -r
fix_permissions 2.04 started at 04-18-2012 02:28:21
Processing (1 of 177): com.google.android.location...
Processing (2 of 177): com.sec.android.app.phoneutil...
Processing (3 of 177): com.android.defcontainer...
Processing (4 of 177): com.sec.phone...
Processing (5 of 177): com.android.contacts...
Processing (6 of 177): com.android.phone...
ORIGIONAL
RealPariah said:
Fix permissions fix found!
Alright after testing fix permissions I found a way to make it run!
Issue: fix permissions won't run from recovery (correctly (it says done in less than 60 secs and stops instantly for me saying completed and while in Android; ROM manager script runs but freezes at random points (same if you open terminal emulator and run it).
Resolution:
You have to have adb on a computer for this
Do you have the Google android installed?
If not download and install it!
[/url]http://developer.android.com/sdk/android-4.0.html
Boot in to Recovery
plug USB in to phone and computer
Go in to mounts and storage and mount /system and /data
On computer open a command line window (windows) or terminal (Linux or OSX)
Run "ADB devices" and be sure it is not all ? For device number (if it is restart recovery and reseat USB connection and run "adb kill-server" on computer) I had to run terminal as root (admin for best results bit got it to work either way really)
Now run "adb shell" after mounting /system and /data
Once that opens and you get ~# run "sh fix_permissions -l -r" just like that (with two separate - don't do -lr or it won't run)
Of it says not found mount /system
If it says something about read only variable you forgot the preceding sh (may need to do "cd /sbin" then "sh fix_permissions" if you still have an issue.
This is only way I can get fix permissions to run (even tried sh fix_permissions -l -r in Android terminal emulator and script manager to no avail)
After fix permissions ran correctly it really helped iron some small performance issues and notably helped.
I hoped that helps!
Sent from my SAMSUNG-SGH-I727 using Xparent Green Tapatalk 2
Click to expand...
Click to collapse
I have the same issue on multiple roms. Both gingerbread and ics. If you find the solution please share. I will do like wise if i find the answer.
Sent from my brain
Seems this one has people stumped.
Mine actually works on juggernaut every time.
Sent from my GT-P7510 using xda premium
jangst123 said:
Seems this one has people stumped.
Mine actually works on juggernaut every time.
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Yep! Was going to say this. Fix permissions doesn't work on most roms in this section.
Jug and Macnut (based off of jug) are the only two I have had it work on.
Sent from my SGH-T989 using xda premium
I have only experienced this on ICS Roms, on GB roms Permissions work fine for me.
solracarevir said:
I have only experienced this on ICS Roms, on GB roms Permissions work fine for me.
Click to expand...
Click to collapse
Well see this is the problem.... You think it is working but have you checked logs?
Sent from my SGH-T989 using xda premium
Also having the same problem with Fix Permissions instantly finishing, but with the "/sbin/fix_permissions: line 64: UID readonly variable" error in the logs. Trying in ROM Manager also results in in random results each time I try, but never making it all the way through before it just hangs. The furthest I've gotten is 94 of 132.
Also on ICS Blackedition, but still on RC2.
I just tried another ICS rom and I still cant fix permishions. So I tried CM7 and it works fine.
Looks like this is a problem with ICS.
Sent from my SAMSUNG-SGH-T989 using xda premium
Easydoesit ics rom works when fixing permissions in cwm or from manager. Other ics roms don't so far
photrash said:
Easydoesit ics rom works when fixing permissions in cwm or from manager. Other ics roms don't so far
Click to expand...
Click to collapse
What easydoesit ICS rom!?
The only one I see has no ice cream.
Sent from my SAMSUNG-SGH-T989 using xda premium
jangst123 said:
What easydoesit ICS rom!?
The only one I see has no ice cream.
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
I don't know but for some reason it's in the general forum and never made it to the development section. Remember to use the autorotation fix since the OP didn't update the ROM yet. http://forum.xda-developers.com/showthread.php?t=1576617
I ran into some weird superuser error...sometimes i lose root access when im trying to delete or change a system file. maybe i gotta wipe data and caches some more and reflash.
The fix permissions work fine for this ROM work fine in CWM and also in ROM manager
photrash said:
I don't know but for some reason it's in the general forum and never made it to the development section. Remember to use the autorotation fix since the OP didn't update the ROM yet. http://forum.xda-developers.com/showthread.php?t=1576617
I ran into some weird superuser error...sometimes i lose root access when im trying to delete or change a system file. maybe i gotta wipe data and caches some more and reflash.
The fix permissions work fine for this ROM work fine in CWM and also in ROM manager
Click to expand...
Click to collapse
I'll check it out later.
But if this is ture I hope a developer takes a look at it and figurers out why fix permishions only works on that ROM and not the other ICS ROMs
jangst123 said:
I'll check it out later.
But if this is ture I hope a developer takes a look at it and figurers out why fix permishions only works on that ROM and not the other ICS ROMs
Click to expand...
Click to collapse
Yeah that and the ORIGINAL leak by racer is the only ics roms that work. I tried all ics t989 roms haha. IM currently running some skyrocket roms and fix permissions isn't working properly in cwm. It's frustrating sometimes because I need it to work haha
RealPariah posted a workaround over in the Blackedition ICS thread that worked for me:
RealPariah said:
Fix permissions fix found!
Alright after testing fix permissions I found a way to make it run!
Issue: fix permissions won't run from recovery (correctly (it says done in less than 60 secs and stops instantly for me saying completed and while in Android; ROM manager script runs but freezes at random points (same if you open terminal emulator and run it).
Resolution:
You have to have adb on a computer for this
Boot in to Recovery
plug USB in to phone and computer
Go in to mounts and storage and mount /system and /data
On computer open a command line window (windows) or terminal (Linux or OSX)
Run "ADB devices" and be sure it is not all ? For device number (if it is restart recovery and reseat USB connection and run "adb kill-server" on computer) I had to run terminal as root (admin for best results bit got it to work either way really)
Now run "adb shell" after mounting /system and /data
Once that opens and you get ~# run "sh fix_permissions -l -r" just like that (with two separate - don't do -lr or it won't run)
Of it says not found mount /system
If it says something about read only variable you forgot the preceding sh (may need to do "cd /sbin" then "sh fix_permissions" if you still have an issue.
This is only way I can get fix permissions to run (even tried sh fix_permissions -l -r in Android terminal emulator and script manager to no avail)
After fix permissions ran correctly it really helped iron some small performance issues and notably helped.
I hoped that helps!
Click to expand...
Click to collapse
I had to do the "cd /sbin" thing before running "sh fix_permissions -l -r" inside the adb shell, but it actually ran without a hitch!
Not quite a solution, but it gets the job done!
You still will not be able to fix perms in CWM or ROM Manager
I had to do the same "cd /sbin" then "sh fix_permissions -l -r" to get it to work
mimicvii said:
RealPariah posted a workaround over in the Blackedition ICS thread that worked for me:
I had to do the "cd /sbin" thing before running "sh fix_permissions -l -r" inside the adb shell, but it actually ran without a hitch!
Click to expand...
Click to collapse
Thank you!! Been going crazy trying to find a solution!
Thanks for this. resolved some issues I had with a specific application force closing on me.
I am under the impression this has to do with the fact that a lot of I727 users, if not all, are having issues mounting /system inside of ICS. Mounting in recovery is fine but it seems that mounting /system inside of ICS works ONCE after flashing a kernel and then never again.
Wow, I'm really stuck. I tried without "SU" but that didn't help. Here is my cmd screen:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Adb>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
26d7140a device
C:\Adb>adb shell
sh-3.2$ cd /sbin
cd /sbin
sh: cd: /sbin: Permission denied
sh-3.2$ su
su
sh-3.2# cd /sbin
cd /sbin
sh-3.2# sh fix_permissions -l -r
sh fix_permissions -l -r
sh: fix_permissions: No such file or directory
sh-3.2#
Any help or guidance is appreciated!
Give this a try and report back
First download http://www.getyourdroidon.com/shiversftp/fix_permissions.sh
Put it on the root of your sd card and go into terminal emulator.
Type: su and hit enter
Type: sh /sdcard/fix_permissions.sh and hit enter
Type reboot and hit enter
Should be all fixed.

"rm -rf" command cannot run on the device

"rm -rf" command cannot run on the device
I've got an new device LG Optimus LTE II (LGE F160L) and install "Better Terminal Emulator Pro"
The Android version is 4.0.3
The kernel is 3.0.8-00001-g65e7cd3
1. I properly rooted the device
2. I used "su" command before runnig follow the commands.
3. When I try to run "rm -rf /sdcard/.ads" command, it showed "No such file or directory"
I've found the command "-rf" has been trade as a diretory but parameters.
How does it happened?
How can I resolve this?
I think it's because the folder /sdcard/.ads doesn't actually exist because /sdcard is a symbolic link to /mnt/sdcard. So to answer your question, I think the following might work:
Code:
rm -rf /mnt/sdcard/.ads
If that doesn't work, I dunno...
THK Malnilion,
I have also tried "rm -rf /mnt/sdcard/.ads", but didn't work with a respond of "rm failed for -rf, No such file or directory."
the "rm" command thought "-rf" is a file or a directory., and the "-rf" should be parameters.
Ah, I see, this might be a limitation of busybox, then.
Malnilion said:
I think it's because the folder /sdcard/.ads doesn't actually exist because /sdcard is a symbolic link to /mnt/sdcard. So to answer your question, I think the following might work:
Code:
rm -rf /mnt/sdcard/.ads
If that doesn't work, I dunno...
Click to expand...
Click to collapse
Malnilion said:
Ah, I see, this might be a limitation of busybox, then.
Click to expand...
Click to collapse
Oh, really?
I need to run a lot of testing scripts in "Gscripts". I see, why those scripts don't work on this device.
Then, how can I update the busybox? Those testing is my work!! Otherwise, I need to change back to HTC Desire which scripts are working well.:crying::crying: OH, Nooooo........:crying::crying::crying:
aswasw said:
Oh, really?
I need to run a lot of testing scripts in "Gscripts". I see, why those scripts don't work on this device.
Then, how can I update the busybox? Those testing is my work!! Otherwise, I need to change back to HTC Desire which scripts are working well.:crying::crying: OH, Nooooo........:crying::crying::crying:
Click to expand...
Click to collapse
Are you using the same terminal emulator application and version on the Desire?
drumist said:
Are you using the same terminal emulator application and version on the Desire?
Click to expand...
Click to collapse
Yes, of course. But the andorid version is 2.3.7.
I use "rm -r /mnt/sdcard/.ads" without parameter "f" as a mistake, and the script runs without a respond of error. ^_^
I used R.E browse to /mnt/sdcard , I found directory "/mnt/sdcard/.ads" has been removed !!!!!!!
I try to remove other directory with the "rm -r" command which seems non-forced remove command, but in fact, the command remove the folder, and everything in the folder, too.
OMG...Is there something has been modified in the kernel??

Categories

Resources