hi everybody
i want to create bach file for move settings.apk to system/app and my adb commands is below :
Code:
adb kill-server
adb start-server
[COLOR="Blue"]adb shell su[/COLOR]
adb shell mount -o remount,rw /system
adb devices
adb root
adb remount
adb push Settings.apk /system/app/
pause
but when i run my bat file in the blue line above ، cycling of coding is stopped !
how to create a bach file to run the above commands respectively ?
If you are on sense lollipop then you also need to specify the settings folder /system/app/ is not enough !
It's in /system/app/Settings/
thank u
but , my android device is KK 4.4.2 and my device is not Htc M8 !!
i want to create a bach file to move settings.apk to /system/apps/ (path is correct) but Unfortunately in the blue line above my commands is stopped !and not going to next line ==> (adb shell mount -o remount,rw /system)
do you know any command to fix this problem ?
gandolf007 said:
thank u
but , my android device is KK 4.4.2 and my device is not Htc M8 !!
i want to create a bach file to move settings.apk to /system/apps/ (path is correct) but Unfortunately in the blue line above my commands is stopped !and not going to next line ==> (adb shell mount -o remount,rw /system)
do you know any command to fix this problem ?
Click to expand...
Click to collapse
Why not push it manually via es file explorer ? And i would suggest to keep your questions in your device specific forum.
gandolf007 said:
my device is not Htc M8 !!
Click to expand...
Click to collapse
Then you should not be posting in this (HTC M8) forum section.
Related
i want to create an update.zip i can install via the recovery console.
i have the apk which is
com.lookout.apk
i have created folders system/app
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to install the app to system/app
If you have the apk, why not just install it via a file manager (Astro), adb install (adb install <path:\package.apk>), or adb push (adb shell -> mount /system -> exit -> adb push <path:\package.apk> /system/app) in recovery?
Plenty of ways to install without needing a flashable zip if it's just for you.
If you really need a zip, I'd find somebody else's who is doing the same thing and just replace the APKs and resign it.
Just thoughts.
Hi,
I´m kind of in the same situation. I want to install Sim Checker Pro as a system App.
It is currently installed.
The author told me to copy the simchecker15.apk from /data/app/ to the sd card. Then delete the original. Then copy it over to /system/app/ and finally delete the apk on the sdcard.
Code:
adb remount
adb shell cp /data/app/org.ajeje.locservice15.apk /sdcard
adb shell rm /data/app/org.ajeje.locservice15.apk
adb shell cp /sdcard/org.ajeje.locservice15.apk /system/app
adb shell rm /sdcard/org.ajeje.locservice15.apk
Since I´m not able to write to /system unless I mount it in (pauls) recovery mode can anyone tell me how to do this on the Desire exactly.
I get adb working in recovery and can also mount /system but how do I push the files from /data/app/ to sd and from there to /system/app?
Edit: I got it sorted out
it was
Code:
adb shell mount /system
adb shell cp /data/app/org.ajeje.simchecker15.apk /sdcard
adb shell rm /data/app/org.ajeje.simchecker15.apk
adb shell cp /sdcard/org.ajeje.simchecker15.apk /system/app
adb shell rm /sdcard/org.ajeje.lsimchecker15.apk
Hello folks,
I have a Wildfire, running CM7 #36, Jacob's 4.1 Kernel flashed.
Now I wanted to edit the /system/build.prop to get access to further apps (rom manager pro, e.g.).
After remounting system via
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
I wanted to copy/remove or whatever the /system/build.prop, but I only get
# rm /system/build.prop
rm: can't remove '/system/build.prop': Directory not empty
What does this mean? /system/build.prop is surely not a directory (ls -al).
Any help would be appreciated - can't post in the development-forums because of unsufficient number of posts - thanks,
Guntram
Don't remove it...
Pull build.prop using adb, edit and push it back to /system
Sent from my HTC Wildfire using XDA App
Hello Kevin1625,
unfortunately, this gives the same message (which I don't understand anyways?):
Code:
$ adb push build.prop /system
failed to copy 'build.prop' to '/system/build.prop': Directory not empty
Any ideas?
Are you doing this via terminal??
Adb is used on your computer.
Sent from my HTC Wildfire using XDA App
Mount system via recovery.
Open a cmd
cd into your tools folder
adb pull /system/build.prop
Edit it.
adb push build.prop /system/build.prop
adb reboot
I think youre trying to adb shell, there is no need.
Sent from my HTC Wildfire using XDA App
Thanks kevin2516 (what are these numbers for?)!
Seems, that build.prop is somehow blocked, when trying to access it on the running phone.
When I adb push on the mounted /system in recovery, everything seems to work fine.
Except, that I don't get the wanted result (Rom Manager Premium in the market) :-(.
Did you got it running, using SympMarket (which only once gave me >4000 video results - but I'm not able to reproduce ;( )?
If so, do you remember how?
Thanks a lot,
Guntram
thank you so much man! saved my phone after i accidently set PPI to 280 :L
and you should also adb shell chmod 644 /system/build.prop
Device says that system directory can not be accessed when pushing the file
hello everyone
I have a t-mobile note 2 rooted and i was having problems with my play store and deleted my hosts file by mistake i tried making a new one with root explorer but it fails is there anything els that i can do to get it back when i reset my phone the play store is gone and i don't know what to do any help would be great.
Bdvs said:
hello everyone
I have a t-mobile note 2 rooted and i was having problems with my play store and deleted my hosts file by mistake i tried making a new one with root explorer but it fails is there anything els that i can do to get it back when i reset my phone the play store is gone and i don't know what to do any help would be great.
Click to expand...
Click to collapse
Do you have access to a system with adb or heimdall ?
If not
You can create a new file(text) named hosts under /etc/system/ with the following line
127.0.0.0 localhost
You can set the permissions of this file to 0644 via root explorer or using Terminal Emulator:
----
cd /system/etc
chmod 644 hosts
---
Never used root explorer but there has to be a GUI option somewhere in it.
You will have to mount the /system to read-write mode in root explorer in order to make any changes.
Once you have created the file, reboot the phone and see if it works, if not then manually delete all files under /system/data/dalvick-cache.
Be careful before deleting any file, make sure you browse to /system/data/-dalvick-cache directory and select all files and then delete them.
ciphercodes said:
Do you have access to a system with adb or heimdall ?
If not
You can create a new file(text) named hosts under /etc/system/ with the following line
127.0.0.0 localhost
You can set the permissions of this file to 0644 via root explorer or using Terminal Emulator:
----
cd /system/etc
chmod 644 hosts
---
Never used root explorer but there has to be a GUI option somewhere in it.
You will have to mount the /system to read-write mode in root explorer in order to make any changes.
Once you have created the file, reboot the phone and see if it works, if not then manually delete all files under /system/data/dalvick-cache.
Be careful before deleting any file, make sure you browse to /system/data/-dalvick-cache directory and select all files and then delete them.
Click to expand...
Click to collapse
I have adb access how would i do it with adb
root explorer wont let me make a text file
Bdvs said:
I have adb access how would i do it with adb
root explorer wont let me make a text file
Click to expand...
Click to collapse
1) Using text editor create a text file named "hosts" with the following contents:
---
127.0.0.1 localhost
---
If you are on windows make sure you remove the file extension.
2) Connect phone via USB and open command prompt or shell. Make sure USB Debugging is checked under developers options.
3) Check if adb detects your device by typing: adb devices , you should see your device listed, if not please check if your phone has correct USB drivers.
4) Now push the file you created to your phone with this command : adb push /path/to/file/hosts /sdcard/hosts
example: adb push C:\tmp\hosts /sdcard/hosts
5) Now log in to your phone by typing adb shell
6) Switch to super user by typing: su , grant permissions when asked by SuperSU.
7) Mount system in read-write mode by typing: mount -o remount,rw -t yaffsw /dev/block/mtdblk3 /system
8) Move the hosts file to /system/etc by typing: mv /sdcard/hosts /system/etc
9) Browse to /system/etc by typing: cd /system/etc
10) Change file owner and group by typing: chown root:root hosts
11) Change file permissions by typing: chmod 644 hosts
12) Mount system back to read only by typing: mount -o remount,ro -t yaffsw /dev/block/mtdblk3 /system
13) Delete dalvik cache by browsing to cd /data/dalvik-cache and then type rm -f *.dex
14) type exit two times to exit.
15) Reboot phone and it should work.
I believe there might be an easy way or an apk which does this but I haven't tried it.
play store
ciphercodes said:
1) Using text editor create a text file named "hosts" with the following contents:
---
127.0.0.1 localhost
---
If you are on windows make sure you remove the file extension.
2) Connect phone via USB and open command prompt or shell. Make sure USB Debugging is checked under developers options.
3) Check if adb detects your device by typing: adb devices , you should see your device listed, if not please check if your phone has correct USB drivers.
4) Now push the file you created to your phone with this command : adb push /path/to/file/hosts /sdcard/hosts
example: adb push C:\tmp\hosts /sdcard/hosts
5) Now log in to your phone by typing adb shell
6) Switch to super user by typing: su , grant permissions when asked by SuperSU.
7) Mount system in read-write mode by typing: mount -o remount,rw -t yaffsw /dev/block/mtdblk3 /system
8) Move the hosts file to /system/etc by typing: mv /sdcard/hosts /system/etc
9) Browse to /system/etc by typing: cd /system/etc
10) Change file owner and group by typing: chown root:root hosts
11) Change file permissions by typing: chmod 644 hosts
12) Mount system back to read only by typing: mount -o remount,ro -t yaffsw /dev/block/mtdblk3 /system
13) Delete dalvik cache by browsing to cd /data/dalvik-cache and then type rm -f *.dex
14) type exit two times to exit.
15) Reboot phone and it should work.
I believe there might be an easy way or an apk which does this but I haven't tried it.
Click to expand...
Click to collapse
Thanks for all your help i got the hosts file in to system/etc folder but my play store is still not working i get a pop up that play store has stop working so i cleared cache for play store, play services and google framework and its still not working
any ideas thanks again
Did you delete dalvik cache ?
Sent from my SGH-T889 using xda app-developers app
I found no thread about this topic, so here is my guide.
I wanted to disable the navbar in order to use LMT. This is usually pretty simple by modifying build.prop and adding 'qemu.hw.mainkeys=1'.
However, this did not help on my L01 single. I found some hints which i compiled together to this guide:
needed:
a rooted GX8 running Android 5.1 (6.0 is untested, but could also work, please report me) with permissive SELinux (or any other Huawei device)
a working ADB connection
a computer with a text editor of your choice
this is what you do:
Install the TouchPlus app (attached). This apk is taken from a Honor 7, but should be identical on all devices.
Code:
adb install HwTouchplus.apk
grab your build.prop and save a backup copy (on your computer or phone)
Code:
adb pull /system/build.prop
edit the build.prop on your computer adding the following line:
Code:
ro.config.hw_touchplus_enabled=true
write back the build.prop and make sure permissions are 0644
Code:
adb push build.prop /storage/emulated/0/
adb shell
su
mount -o rw,remount /system
mv /storage/emulated/0/build.prop /system/
chmod 0644 /system/build.prop
exit
exit
Code:
reboot the device
Code:
adb reboot
now it's a good idea to enable LMT!
go to settings, there should be a new menu entry called TouchPlus (in the 'intelligent' sector)
activate TouchPlus and the nav buttons. The navbar should be gone.
hit the 'thanks' below this post if it worked.
Thanks to
@IkeaKast for his/her relevant parts of build.prop
@Rashad83 for giving me the idea and his guide
Honor-Info.de for the part about enabling TouchPlus
Unable to chmod /system/build.prop: Read-only file system
why ?
an0s5 said:
Unable to chmod /system/build.prop: Read-only file system
why ?
Click to expand...
Click to collapse
/system is mounted ro by default. If you experience this you have to remount it writeable first.
What did
Code:
mount -o rw,remount /system
return?
did
Code:
su
run successfully?
I just updated these steps, so please try again.
Hi there,
here comes my collection of bootanimations for Suzuran. Maybe they are useful for other devices?
Klick
bootanimation_Berni.zip: My used one
bootanimation_google.zip: From Google inspired, minimal and playful one
bootanimation_lineage.zip: The one from LineageOS team
bootanimation_stock.zip: The original one from Stock ROM 7.x
How to change the current bootanimation?
Enter these commands line by line:
Code:
adb root
adb shell
mount -o remount,rw /
exit
adb push <name_of_bootanimation_file> /system/media/bootanimation.zip
exit
Reboot.
If you want to save your current bootanimation file, you should perform this command FIRST:
Code:
adb pull /system/media/bootanimation.zip
Berni-0815 said:
Hi there,
here comes my collection of bootanimations for Suzuran. Maybe they are useful for other devices?
Klick
bootanimation_Berni.zip: My used one
bootanimation_google.zip: From Google inspired, minimal and playful one
bootanimation_lineage.zip: The one from LineageOS team
bootanimation_stock.zip: The original one from Stock ROM 7.x
How to change the current bootanimation?
Enter these commands line by line:
Code:
adb root
adb shell
mount -o remount,rw /
exit
adb push <name_of_bootanimation_file> /system/media/bootanimation.zip
exit
Reboot.
If you want to save your current bootanimation file, you should perform this command FIRST:
Code:
adb pull /system/media/bootanimation.zip
Click to expand...
Click to collapse
bootanimation.zip: 1 file pushed, 0 skipped. 436.3 MB/s (1496312 bytes in 0.003s)
but it still the same animation as before. renamed it to bootanimation
tarukanav said:
1496312 bytes
Click to expand...
Click to collapse
That's the file size of the bootanimation file from LineageOS team (see attached picture). I've tested every one of those four files and everytime after reboot I've gotten the wanted result.
You're doing something wrong!
Berni-0815 said:
That's the file size of the bootanimation file from LineageOS team (see attached picture). I've tested every one of those four files and everytime after reboot I've gotten the wanted result.
You're doing something wrong!
Click to expand...
Click to collapse
yea that am doing something wrong is the thing i cant figure out
Is every command executed successfully?
Code:
adb root
adb shell
mount -o remount,rw /
exit
adb push bootanimation_google.zip /system/media/bootanimation.zip
exit
There should be not one single error message:
Code:
[email protected]:~/Tmp$ adb root
restarting adbd as root
[email protected]:~/Tmp$ adb shell
suzuran:/ # mount -o remount,rw /
suzuran:/ # exit
[email protected]:~/Tmp$ adb push bootanimation_google.zip /system/media/bootanimation.zip
bootanimation_google.zip: 1 file pushed. 18.4 MB/s (1858574 bytes in 0.097s)
[email protected]:~/Tmp$
And after a reboot I can see this Google inspired animation.
Edit: Have you executed the "exit" command after the "mount" command?
Berni-0815 said:
Is every command executed successfully?
Code:
adb root
adb shell
mount -o remount,rw /
exit
adb push bootanimation_google.zip /system/media/bootanimation.zip
exit
There should be not one single error message:
Code:
[email protected]:~/Tmp$ adb root
restarting adbd as root
[email protected]:~/Tmp$ adb shell
suzuran:/ # mount -o remount,rw /
suzuran:/ # exit
[email protected]:~/Tmp$ adb push bootanimation_google.zip /system/media/bootanimation.zip
bootanimation_google.zip: 1 file pushed. 18.4 MB/s (1858574 bytes in 0.097s)
[email protected]:~/Tmp$
And after a reboot I can see this Google inspired animation.
Edit: Have you executed the "exit" command after the "mount" command?
Click to expand...
Click to collapse
yes , had no error messages, had same thing once before cant rememeber how i fixxed it .Also tried to just copy it with rootexplorer and same thing copies fine , but animation stays same
Which OS are you using at your device?
Berni-0815 said:
Which OS are you using at your device?
Click to expand...
Click to collapse
win10 ,but i know there was something else am doing wrong, had same situation a while ago but cant remember how i fixed it , tried to use different apps to change bootanimation and nothing worked , at the end it was something simple just cant remember what it was
No. Not the OS of your computer, the OS of your z5c.
I'm using los18. Maybe with other OS's this is not working?
hhe android is also 10, so los 17
I've flashed los17.1 yesterday and the changing of the bootanimation works flawlessly; as expected.
ook soo am just stupid as hell ,copied bootanimation.zip to just bootanimation.