ADB Question for the experts - Droid Incredible Q&A, Help & Troubleshooting

Does anyone know how to remove a file from "/data/local/tmp" using ADB on a non-rooted phone? Any help is appreciated!

cd /data/local/temp/
rm -r "apk"

Related

How i can unrooting my HTC Hero?

Hello!
I am use this Tutorial to rooting my Hero: http://forum.xda-developers.com/showthread.php?t=543571
How i can unrooting my Hero? I think, its possible, because the boot.img dont replaced with a other rom...
I found this Command *thanks!*:
* adb shell mount /system
* adb shell rm /system/app/Superuser.apk (if you have it)
* adb push su /system/bin/
* reboot
Click to expand...
Click to collapse
.. the problem is, i havent the original su
Can someone upload the original su?
Do I need to change the rights?
*from Tutorial*
adb shell chmod 4755 /system/bin/su
Click to expand...
Click to collapse
Big Thanks! Nice Community!
*sorry, my english is very bad >.< xD*
My advice would be, keep reading. Page 5 or 6 IIRR has Dayzee's guide which is what I used to root mine, but IIRR she tells you how to unroot again
If you did a Nandroid backup first you could just restore from that?
@ak1ra1nblack: I dont found..
@badgaz: I haven't a backup...
I need the original su file and the original rights for
adb shell chmod 4755 /system/bin/su
Thanks!
Ok, Close please ~~
tur0kx said:
Ok, Close please ~~
Click to expand...
Click to collapse
did you manage to unroot it! IF so share with us the complete steps and link to original su file!
If someone can provide us with an original SU file or a changed back one (Maybe enlightener can help?) then I'll add it in the guide - I don't have it in there yet, though there is code to remove superuser.apk and repush it if it goes wrong which might be what the other poster was thinking about. I do think rooting state can be reversed if you did this method, so lets see if we can get an unrooted SU (or do we just have to remove su file altogether to be virgin again?)
Hugs to all - Dayzee
I just checked.
I restored my nandroid backup.
I booted the cm-recovery mounted /system.
and now in /system/bin there is no su.
I expected this already.
To unroot removing su and SuperUser.apk should be enough.
BR
phlo
Ok is there somebody that could please clarify on the specific steps to unroot the phone?
I don't like to guess at all with these kind of things for obvious reasons
Open Windows Console and connect Hero with PC
write this:
fastboot boot cm-hero-recovery.img
adb shell mount /system
adb shell rm /system/app/Superuser.apk
adb shell rm /system/bin/su
adb shell reboot
tur0kx said:
Open Windows Console and connect Hero with PC
write this:
fastboot boot cm-hero-recovery.img
adb shell mount /system
adb shell rm /system/app/Superuser.apk
adb shell rm /system/bin/su
adb shell reboot
Click to expand...
Click to collapse
That is nice, should be in the wiki.
How about unrooting by flashing back backed up .img files? Witch file to restore? How?

Need help changing read only permisions.

I'm trying to push the ics tethering fix through adb and it keeps telling me i can't replace the framework-res.apk because its a read only file. could anyone help me with this? Thank you
dgray66 said:
I'm trying to push the ics tethering fix through adb and it keeps telling me i can't replace the framework-res.apk because its a read only file. could anyone help me with this? Thank you
Click to expand...
Click to collapse
You will need root AND busybox for this to work. For some strange reason the stock Android doesn't even have the copy command. Push the file to your sdcard, then in your terminal type the following
"su
mount -w -o remount system /system
cp -f /sdcard/framework-res.apk /system/framework/framework-res.apk
reboot"

Rooting the Ampe A10 Dual core 3G

Rooting The Ampe A10 Dual core 3g ICS
1.
Download and install the drivers required to connect the tablet to a windows pc (I used Win7) not any old ADB drivers will do the first ones I came across didn’t work so I recommend downloading from here - http://www.topnotchtablets.com/installADBdriver (PDA Net for Android)
2.
Download the rooting program from this thread here
http://forum.xda-developers.com/showthread.php?t=1886460
Bin4ry…zip direct link - http://ul.to/h44f6vni
3.
Extract the contents of the zip folder into a directory on the pc
Rooting is done at your own risk!
4.
Plug the tablet into the pc and run the RunMe.bat file
Screen will pop up select option 1 Normal
follow the instructions on the screen, it will refer to the tablet and you need to select restore. Once updated a reboot will happen and root should be done, if you wish to check root download root checker from the android market
enjoy
you mite like Webkey for example to remotely use the Android
Thanks, I've already rooted the same device as Sanei N10 3G (MSM8625 CPU).
But do you know something about a recovery mod that works with this tablet?
recovery
Hello, I also Sanei N10. found recovery and third-party firmware if found give the link
murkin82 said:
Hello, I also Sanei N10. found recovery and third-party firmware if found give the link
Click to expand...
Click to collapse
Be careful, we're talking about the 3G version with Qualcomm Snapdragon CPU.
If you have anything but root, pls post it.
I have no Ampe A10/Sanei N10 Dual core 3G. recovery or firmware met?!
snapon said:
Rooting The Ampe A10 Dual core 3g ICS
2.
Download the rooting program from this thread here
http://forum.xda-developers.com/showthread.php?t=1886460
Bin4ry…zip direct link - http://ul.to/h44f6vni
Click to expand...
Click to collapse
First of all, thank you for your help!
Could you please upload this file on a site where one can really download it and isnʼt directed elsewhere to register for a paid package?
There are many good file sharing sites, even Googleʼs Drive.
murkin82 said:
Hello, I also Sanei N10. found recovery and third-party firmware if found give the link
Click to expand...
Click to collapse
The Ampe 10 seems to have its own recovery built in and can be started by turning the device off turn it back on hold both volume up and power. From this menu you can recover / update from the SD card. I found the original firmware here 86pp.com/download_view.asp and have installed this one you need to extract msm7627a_fw8937-ota-eng_mmc.zip from the downloaded zip copy it to the SD
I think the firmware can also be found here: szampe.com/support_down.asp? but as its all in Chinese its difficult to tell
Mazarin07 said:
First of all, thank you for your help!
Could you please upload this file on a site where one can really download it and isnʼt directed elsewhere to register for a paid package?
There are many good file sharing sites, even Googleʼs Drive.
Click to expand...
Click to collapse
Its not mine to re-distribute and you can download from that fileshare site without registering or paying you just use the 'Free' option and wait a little longer
thanks
thanks worked for me
murkin82 said:
Hello, I also Sanei N10. found recovery and third-party firmware if found give the link
Click to expand...
Click to collapse
Try this site slatedroid.com/blog/85/entry-96-aokp-cm9-cm10-installation-guide-for-ampe-a10-sanei-n10/
Thanks in advance!
W3sti said:
Thanks, I've already rooted the same device as Sanei N10 3G (MSM8625 CPU).
But do you know something about a recovery mod that works with this tablet?
Click to expand...
Click to collapse
Did you mean you rooted Sanei N 10 with dual core Qualcomm MSM8625? Could you please tell which method you followed, or how you managed to do it.
And also, will I ever be able to install Jelly bean on this particular tablet?
Thanks in advance!
Mt Everest said:
Did you mean you rooted Sanei N 10 with dual core Qualcomm MSM8625? Could you please tell which method you followed, or how you managed to do it.
And also, will I ever be able to install Jelly bean on this particular tablet?
Thanks in advance!
Click to expand...
Click to collapse
Try Tasselhofs rootscript at mediafire.com/?2jt4ft8xpfzyw2g
But in section :root I used this code:
Code:
adb root
adb shell "chmod 777 /system/local/tmp"
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
@PING 1.1.1.1 -n 1 -w 5000 >NUL
adb wait-for-device
adb shell "echo \"ro.kernel.qemu=1\"> /data/local.prop"
adb reboot
@PING 1.1.1.1 -n 1 -w 5000 >NUL
adb wait-for-device
adb remount
adb shell "chmod 777 /system/bin"
adb push su /system/bin/su
adb shell "chown root.shell /system/bin/su"
adb shell "chmod 06755 /system/bin/su"
adb shell "chmod 06755 /system/bin/su"
adb shell "ln -s /system/bin/su /system/xbin/su"
adb push Superuser.apk /system/app/.
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb push busybox /data/local/tmp/.
adb shell "chmod 755 /data/local/tmp/busybox"
adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
adb shell "chown root.shell /system/xbin/busybox"
adb shell "chmod 04755 /system/xbin/busybox"
adb shell "/system/xbin/busybox --install -s /system/xbin"
adb shell "rm -r /data/local/tmp/busybox"
adb reboot
It's not necessary to use any other options than 1. and 2.
After that install Titanium Backup and check for errors and let TB fix it (Some permissions seems to be "broken".).
snapon said:
Try this site slatedroid.com/blog/85/entry-96-aokp-cm9-cm10-installation-guide-for-ampe-a10-sanei-n10/
Click to expand...
Click to collapse
You cannot use this CM9/10, i'ts only for Allwinner A10 CPU!
For now, I didn't found a working recovery.img for MSM8625.
It worked fine, thank you very much! :good:
One problem still exist: the build.prop file still cannot be edited, is write-protected.
---------- Post added at 10:24 PM ---------- Previous post was at 10:18 PM ----------
snapon said:
...I found the original firmware here 86pp.com/download_view.asp....
I think the firmware can also be found here: szampe.com/support_down.asp? but as its all in Chinese its difficult to tell
Click to expand...
Click to collapse
It was deleted from the first site.
On the second site, more specifically from here, you can download the firmware (version 3 Nov, 2012), but I am afraid that everyting is in Chinese.
....
W3sti said:
Try Tasselhofs rootscript at mediafire.com/?2jt4ft8xpfzyw2g
But in section :root I used this code:
Code:
adb root
adb shell "chmod 777 /system/local/tmp"
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
@PING 1.1.1.1 -n 1 -w 5000 >NUL
adb wait-for-device
adb shell "echo \"ro.kernel.qemu=1\"> /data/local.prop"
adb reboot
@PING 1.1.1.1 -n 1 -w 5000 >NUL
adb wait-for-device
adb remount
adb shell "chmod 777 /system/bin"
adb push su /system/bin/su
adb shell "chown root.shell /system/bin/su"
adb shell "chmod 06755 /system/bin/su"
adb shell "chmod 06755 /system/bin/su"
adb shell "ln -s /system/bin/su /system/xbin/su"
adb push Superuser.apk /system/app/.
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb push busybox /data/local/tmp/.
adb shell "chmod 755 /data/local/tmp/busybox"
adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
adb shell "chown root.shell /system/xbin/busybox"
adb shell "chmod 04755 /system/xbin/busybox"
adb shell "/system/xbin/busybox --install -s /system/xbin"
adb shell "rm -r /data/local/tmp/busybox"
adb reboot
It's not necessary to use any other options than 1. and 2.
Hey in root you used the following commands means???how??
i have ordered this tablet and will reach me soon i think,i have the tasselhoof rootscript but it is as follows rite?
option 1 is to check the connection
option 2 is to root.
Then after choosing option 1 did you choosed option 2 or did something else???
can you explain briefly please??
Any help will be great...
Click to expand...
Click to collapse
I did root on my Sanei N10 3G Dualcore, but now I cannot find any recovery.img for CWM, can i use the one from single or quad core sanei N10 device?
I want to make a backup (nandroid) so waht can I do?
Thanks in advance
scotty2000 said:
I did root on my Sanei N10 3G Dualcore, but now I cannot find any recovery.img for CWM, can i use the one from single or quad core sanei N10 device?
I want to make a backup (nandroid) so waht can I do?
Thanks in advance
Click to expand...
Click to collapse
You cannot use an other image. For now it's not possible to use nandroid. Try "Titanium Backup Root" for a most complete backup.
---------- Post added at 08:47 PM ---------- Previous post was at 08:40 PM ----------
h.d.modi said:
...
Hey in root you used the following commands means???how??
i have ordered this tablet and will reach me soon i think,i have the tasselhoof rootscript but it is as follows rite?
option 1 is to check the connection
option 2 is to root.
Then after choosing option 1 did you choosed option 2 or did something else???
can you explain briefly please??
Any help will be great...
Click to expand...
Click to collapse
1. Edit the script, replace the code in section ":root", save the file and execute the script
2. Check the connection with option 1 and choose option 2 to root
3. If you don't know what i explained, ask somebody who knows a bit about batch-programming
its worked for sanei n10 dual core 3g tablet pc Thank you !
W3sti said:
You cannot use an other image. For now it's not possible to use nandroid. Try "Titanium Backup Root" for a most complete backup.
Click to expand...
Click to collapse
Thanks!
Is it possible to create an image out of an other one in an easy way and what do i need to do this?
Or is it to much complicated to work out an recovery image?
I am not really firm with those android things but willing to learn if possible with a "how to guide" for building recovery images
Worked great on Ampe A10, 5min job!
Any news about Android 4.1.x update/rom? Cyanogenmod? Any way to get Jellybean?
Tried to find a way to get jelly bean but i think there isn't any...
BTW, does anyone know SNES emulator that works with this tablet?

please help me IMEI null - Baseband null

Hi my freinds
my sim1 and 2 not work
i understand this problem come by delete the nvram Partition
if anyone have rooted xperia m5 (e5633) can help me to solve this proablem run the following commands from ADB and then upload the file that will be pulled from the phone here:
adb shell su -c "dd if=/dev/block/platform/mtk-msdc.0/by-name/nvram of=/data/local/tmp/nvram.img"
adb shell su -c "chmod 777 /data/local/tmp/nvram.img"
adb pull /data/local/tmp/nvram.img"
Hi my freinds
my sim1 and 2 not work
i understand this problem come by delete the nvram Partition
if anyone have rooted xperia m5 (e5633) can help me to solve this proablem run the following commands from ADB and then upload the file that will be pulled from the phone here:
adb shell su -c "dd if=/dev/block/platform/mtk-msdc.0/by-name/nvram of=/data/local/tmp/nvram.img"
adb shell su -c "chmod 777 /data/local/tmp/nvram.img"
adb pull /data/local/tmp/nvram.img"
i couldn't find that folder
Just reflash your fw i u want the imei show up
but no prob when your imei null stats
Bennybtc said:
i couldn't find that folder
Click to expand...
Click to collapse
Hi
your device will be rooted
and copy this folder from root/data/nvram
please help me aim not find any solution for this one
farshad9500gy said:
Hi
your device will be rooted
and copy this folder from root/data/nvram
please help me aim not find any solution for this one
Click to expand...
Click to collapse
It tooks me quite a while to understand what are you saying:silly:
Anyway i'm not rooted, still in MM. Just reflash your fw or repair it via pc companion
meliacentrum said:
Just reflash your fw i u want the imei show up
but no prob when your imei null stats
Click to expand...
Click to collapse
i reflashed my phone and still imei is null
if you have rooted Xperia M5 running stock firmare (the firmware version/device variant doesn't matter, it can be from doul SIM devices too) could run the following commands from ADB and then upload the file that will be pulled from the phone here:
adb shell su -c "dd if=/dev/block/platform/mtk-msdc.0/by-name/nvram of=/data/local/tmp/nvram.img"
adb shell su -c "chmod 777 /data/local/tmp/nvram.img"
adb pull /data/local/tmp/nvram.img"
Follow this step:
http://www.androidrooting.org/how-to-recover-your-phone-when-you-have-lost-your-imei/
Or
http://www.wtfandroid.com/how-to-change-imei-number-easily-on-android-100-working/
Hope get it back

Remove Hands Free Activation (Android nougat)

Hi,
To Remove Hands Free Activation you should remove Spirint apps in system directory follow by commands below:
Code:
adb shell su -c mount -o rw,remount /system
adb shell
su
cd system
cd priv-app
rm -r SprintAndroidExtension2
rm -r SprintDM
rm -r SprintSetupWizard
rm -r SprintSyncMLPhoneIF
rm -r SprintSyncMLSvc
touch like button if this thread helps you.
Thank you for this!
why i am getting read only file error??
crixus190 said:
why i am getting read only file error??
Click to expand...
Click to collapse
becuase you need root permision
This worked. Thank you!

Categories

Resources