Installing an app to the System - G2 and Desire Z Q&A, Help & Troubleshooting

Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App

lainvalenajr said:
Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App
Click to expand...
Click to collapse
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]

cjward23 said:
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]
Click to expand...
Click to collapse
Set permission correctly.... Haven't installed it though. Will try
Sent from my T-Mobile G2 using XDA Premium App

In terminal
Su
mv /data/app/com.android.ADWEX.launcher-1.apk /system/app/ADWLauncher.apk
That's exmaple how to do it.. jus put the proper name for adw ex and from there should be good i, I do ths with LP all the time

Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.

KCRic said:
Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.
Click to expand...
Click to collapse
Sick...didn't realize how easy it is. Thanks!
Sent from my T-Mobile G2 using XDA Premium App

Related

Vanilla Lockscreen on Sense?

How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
buffnutz1 said:
How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
Click to expand...
Click to collapse
Just delete htclockscreen.apk
Sent from my ADR6300 using XDA App
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Careful if you're on the stock rom and delete the default lockscreen apk, I've heard it makes the lookscreen look really bad. But it works on other roms.
Sent from my HTC Incredible
It looks best on 2.2 but it works on 2.1 just it looks messed up
Sent from my ADR6300 using XDA App
buffnutz1 said:
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Click to expand...
Click to collapse
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
The only way you can delete a file in system, is if you've used unrevoked forever to unlock nand. Then in root explorer, change system to rw (read/write), then I'd rename the app instead of deleting just in case you need to put it back.
Sent from Incredible using Tapatalk.
i meant just to edit the rom.zip on the sd card and then just reflash the rom
Sent from my ADR6300 using XDA App
jdkoreclipse said:
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I don't think this is possible unless he has Forever installed cause what.he described happened to me like 2 weeks ago, I had to use adb
Sent from my HTC Incredible
Didn't see that, but yeah that will work too. Either way will work just fine.
Sent from my HTC Incredible
Please don't Delete files...
TheWhiteBandito said:
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
Click to expand...
Click to collapse
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
oldman_58 said:
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
Click to expand...
Click to collapse
Yes I aplogize for the poor suggestion, moving the file to an alternate folder is a much better solution.
Sent from my HTC Incredible
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
buffnutz1 said:
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
Click to expand...
Click to collapse
If you're in recovery, you have to mount system under the partions menu first.
Edit: or might be sd card & storage menu depending on version of clockworkmod you're running.
Sent from Incredible using Tapatalk.
I've used better terminal emulator to remove the lock screen.
Use this line:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
To mount system.
Then:
cd system/app
rm HtcLockScreen.*
(Case sensitive)
Worked great, had to reboot though and it stuck. Until then the old one stayed.
Thanks to adrynalyne for the mount line.
Sent from my ADR6300 using XDA App
Ok did exactly what you said, then like said it would it rebooted. Comes back up as the HTC one. Am I the only it's done this for? Why won't it just erase?
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
lgldrgdlr said:
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
Click to expand...
Click to collapse
Where did you find it? I usually use my alarm clock. :/
I can upload it at some point today. Not sure when I'll be home to do so though.
Sent from somewhere

[Q] Market still force-closing (CM 6.1.1+Pershoot)

Opening the Market installed from update.zip here on the foum, it just force-closes immediately.
Running CM 6.1.1 + Pershoot's 1.5ghz kernel.
Might it be Pershoot? Or the .zip? Is .apk better?
What file manager are you using?
Sent from my T-Mobile G2 using XDA App
dynamikd said:
What file manager are you using?
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
The one pre-installed with CM. Just "File Manager".
Halp!
This makes mt G2 almost unusable...
adrienspawn said:
The one pre-installed with CM. Just "File Manager".
Click to expand...
Click to collapse
Use Root Explorer. It has a button on top that all you have to do is press to change the folder you are in to Read/Write and when you done modifying it, press the button to change it back to Read/Only
dynamikd said:
Use Root Explorer. It has a button on top that all you have to do is press to change the folder you are in to Read/Write and when you done modifying it, press the button to change it back to Read/Only
Click to expand...
Click to collapse
It won't let me change the permissions on /system (rest works).
Probably because I don't have the latest due to not having the market lol...
Can someone upload a newer Root Explorer?
"SU File Manager and Terminal". Best file manager you can buy, and it allows /system and /data to mount as rw in file explorer mode.
Sent from a Western Union telegram.
From adb shell or a term session on the phone, makes no difference:
Code:
su
mount -o rw,remount /system
If you still need the latest one let me know and I'll upload it to dropbox.
adrienspawn said:
It won't let me change the permissions on /system (rest works).
Probably because I don't have the latest due to not having the market lol...
Can someone upload a newer Root Explorer?
Click to expand...
Click to collapse
Sent from my T-Mobile G2 using XDA App
Alright, I removed it, but update.zip for the Market, once installed, still force-closes...
Does someone have a DEFINITE link to a working Market for 6.1.1?
I know there are at least 5 uploaded on this forum, and I'll start to try each one one by one since I can delete them now.
OK it failed again, but I installed the modded Gapps (was hoping to avoid having to install all Gapps, they waste resources) and the Market works.
Now to remove all the other crap...
edit: nevermind lol.....
Spoke too soon. It was working fine for a few minutes, then started force-closing constantly. Won't start now.
Clear dalvik cache?
dadewy said:
Clear dalvik cache?
Click to expand...
Click to collapse
Yeah, I do that every time I do anything in CWM now just because everyone's been recommending it.
Were on the same boat but mine's working on Cyanogen 6.1.1+pershoot what I idid is clear market then reboot the zip file that I download change it top update.zip boot to recovery clear dalvik then update the file.. BAM working
Sent from my HTC Vision using XDA App

[SOLVED] Remove ADW launcher and replace it with the Original Launcher in CM7 RC2

I Really love the original launcher way better than any other launcher out there.
I really don't like the ADW launcher.
So is there a way that I can use the original launcher instead of the ADW launcher on CM7 RC-2?
Sent from my HTC Vision using XDA App
You can use Titanium Backup to remove ADW, so if you can find an .apk of the original launcher, shouldn't be too big of a problem.
I installed ADW EX on CM 6.1 and used Titanium to remove the standard ADW...
gbarayah said:
You can use Titanium Backup to remove ADW, so if you can find an .apk of the original launcher, shouldn't be too big of a problem.
I installed ADW EX on CM 6.1 and used Titanium to remove the standard ADW...
Click to expand...
Click to collapse
Well I managed to remove it by using titanium backup. But then I had no launcher anymore
How would I install the original launcher?
Sent from my HTC Vision using XDA App
find a rom with stock launcher and push it in the phone via adb push
adb push /system/app/Launcher.apk
then after you push you can do adb shell or go in terminal and do
mount -o remount,rw /dev/block/mtd3block /system
rm /system/app/ADWLauncher.apk
ilostchild said:
find a rom with stock launcher and push it in the phone via adb push
adb push /system/app/Launcher.apk
then after you push you can do adb shell or go in terminal and do
mount -o remount,rw /dev/block/mtd3block /system
rm /system/app/ADWLauncher.apk
Click to expand...
Click to collapse
I have no idea how to do that
I have never used that in my life lol
Can someone just provide me with the launcher.apk?
I would be very apreciated
Sent from my HTC Vision using XDA App
I think your required to use adb, not simply open the apk like browser.apk or something.
I have a much simpler answer for you. I don't know HOW many times I need to post this information I feel like I've put it in 15 threads asking for stock launcher lol but here you go. No ADB required, etc.
You can find the mod here in the Nexus S forum: THREAD.
Download the first file and flash through recovery. You'll lose all your homescreen placements and widgets you have set up with ADW.
If you want to flash this over nightlies every day, you need to follow a specific order to not lose your placements again.
1) flash CM7 nightly via recovery (not ROM manager)
2) after install, stay in recovery (don't boot up into the ROM!), go to Advanced > Reboot recovery
3) after recovery reboots, flash the launcher mod
Just in case you're lazy, I've attached the file also.
XxFerociouS said:
I have no idea how to do that
I have never used that in my life lol
Can someone just provide me with the launcher.apk?
I would be very apreciated
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
ok you dont have to do it through adb you can do it all through terminal as well
jus put Launcher.apk on sdcard and do this in terminal
su
# mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/Launcher.apk /system/app
after you do that do
#ls
and look for Launcher.apk if its there then do
#rm /system/app/ADWLauncher.apk
and exit
and your launcher shouldbe there
ilostchild said:
ok you dont have to do it through adb you can do it all through terminal as well
jus put Launcher.apk on sdcard and do this in terminal
su
# mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/Launcher.apk /system/app
after you do that do
#ls
and look for Launcher.apk if its there then do
#rm /system/app/ADWLauncher.apk
and exit
and your launcher shouldbe there
Click to expand...
Click to collapse
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
martonikaj said:
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
Click to expand...
Click to collapse
Well I found a much easier way to do this
I went on Astro and installed the gingerbread launcher, then I deleted the ADW launcher by using titanium backup. And that was it lol
Sent from my HTC Vision using XDA App
XxFerociouS said:
Well I found a much easier way to do this
I went on Astro and installed the gingerbread launcher, then I deleted the ADW launcher by using titanium backup. And that was it lol
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Jesus...dude gave you a simple .zip you can flash through recovery...takes 7 seconds yet you still want to do it the hard way....amazing
Sent from my T-Mobile G2 using XDA App
its not the fact is hard..its the experience gain from doing it this way, and also have the sdk for future to come.. when need he has some experience... for himself
Nice talk
Why not dl a gb launcher from the market then delete adw. Seems like mountains being made out of molehills here...
Sent via my CM7 RC3 G2. PTFO
^^ Listening to a little too much Eminem, my friend? haha
Anyways, thanks for all the tips ya'll!
I installed the free version of ADW, uninstalled the EX version of CM7.1 and am trying to install the ADW EX I have paid and can not, incompatible version ... any tips?
-----------------------------------------------------------
Instalei a versão Free do ADW, desinstalei a versão EX do CM7.1 e estou tentando instalar a versão ADW EX paga que tenho e não consigo, da versão imcompatível...alguma dica?
martonikaj said:
There really is no reason for him to download the SDK and run ADB just to accomplish this or even use terminal emulator. There are .zip's like the one I posted above that will just do this for you.
Click to expand...
Click to collapse
It is worth learning how to use adb/fastboot anyway.

[HOWTO] Speed up force closes in T989 ICS ROMs

I noticed that force closes would lock up my phone with ICS ROMs enough to make it completely unusable at times. I noticed that this is so because a system state dump is done every time it hangs by default. I don't know how to disable this internally, but found out how to prevent dumpstate from running when this occurs.
Code:
su
busybox chmod a-x /system/bin/dumpstate
Enjoy!
So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium
An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Update: It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it (change it by clicking on the "R/O", it will change to "R/W").
blchff04 said:
So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
or you could do it through adb shell.
autom8r said:
An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Click to expand...
Click to collapse
"Easier" is subjective, but yes, that is another way of doing it.
Sent from my SGH-T989 using xda premium
Thanks for this tip. I tried both methods, but no dice. I can't seem to change either directory to read/write.
Any thoughts? Thanks in advance.
Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.
Which ones should be checked?
Sent from my SGH-T989 using xda premium
Which ones should be checked?
Sent from my SGH-T989 using xda premium
Uncheck all the Execute permissions, that's all you need to do.
markusf21 said:
Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.
Click to expand...
Click to collapse
Hmmmm... tried both. I get the following error:
Permissions change was not successful.
Please note that some file systems (e.g. SD card) do not allow permission changes
Click to expand...
Click to collapse
Any other thoughts?
niice, works great...i did it through root explorer, i went into lockscreen weather settings which always vibrates, stalls out and fc's..now it instantly fc's no hanging black screen or nothin
---------- Post added at 11:26 PM ---------- Previous post was at 11:19 PM ----------
TheSeanTeam said:
Hmmmm... tried both. I get the following error:
Any other thoughts?
Click to expand...
Click to collapse
yea that happened to me what i did was flashed darkside cache wipe n booted then went into manage apps, root explorer then cleared data/cache for the app (i have a feeling i didnt even need to darkside cache wipe i probably just needed to clear app data but those are the 2 steps i did anyways)
Sorry for the late responses. It seems like others covered the spread, though. You can type those commands into a terminal or with adb using adb shell. I've never done it with Root Explorer (I use ES...it's free and can browse/remount as root), but make sure it has root permissions before continuing. Also make sure that the /system partition has been mounted as read-write; it won't work otherwise.
Can confirm it works with root explorer just make sure you switch to r/w
Sent from my SGH-T989 using xda premium
I posted about this working in Root Explorer, without trying it firsthand, I've tried it now, and it does work. The reason is this, the original post's command simply reads: for all (that's the "a" part) users remove execute (the "-x" part) permissions. You can mimic this functionality in any App with the ability to change file permissions. It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it.

[GUIDE] ODEX any 4.1.1 JB ROM from official OTA

This will essentially odex all files in your /system/framework and it will do it straight from the Android UI via my personal favorite app ... this is good because it frees up memory, makes UI transitions cleaner, and reduces DVM size.
NOTE: DO NOT TRY TO ODEX YOUR /SYSTEM/APP/ DIRECTORY THEN TRY TO ODEX USING THIS METHOD. YOU WILL HAVE A BAD DAY. 0_o framework must me odexed before system apps
1. download the odex.zip here --> PURPLE
2. extract all files with a file explorer, i prefer root explorer or fx file explorer
3. place the extracted folder and all of it's contents in /data/local/tmp ... so you should have /data/local/tmp/odex/+(misc files in new odex directory)
4. give the new directory and ALL contents FULL permissions - full read, write, and execute perms. You will need to set them all individually. the odex folder, and all contents. your file explorer, if it has taken you this far, should be able to accomplish this. Also, mount your system as writeable as well!
5. download this app TERMINAL EMULATOR dont worry it is free. open the app
Type the following commands - each new line should be executed with the enter key:
su (hit enter, it will ask for root)
/data/local/tmp/odex/odex (hit enter, you will see
you will see a bunch of outputs. there will be a message when it is done (honestly, like 10 seconds if that) saying something like "enjoy your hybrid ROM"
type "reboot recovery" (without the quotes)
device will boot into recovery immediately after you hit enter...
wipe cache and dalvik cache once more each, and reboot your device. PROFIT :good:
*Disclaimer - I don't take donations, just hit the thanks button, and the thanks button for anybody I mention in my thread.
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
deadpass said:
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
Click to expand...
Click to collapse
your super user app is probably set by default to allow access. also, i will update the OP to be a little more clear about setting the perms on the directory AND it's contents.
thanks
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
TarHeelTrigger said:
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Ah, yes. I need sleep. Lol
So... shouldn't I see "odex" files in /system/app?
So what's the difference between this and the app that does it automaticly?
Sent from my SGH-T999 using xda app-developers app
I'll wait for the app
Sent from my SGH-T999 using xda premium
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
I don't see the .odex files either...
Sent from my SGH-T999
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
Nabeel10 said:
I don't see the .odex files either...
Sent from my SGH-T999
Click to expand...
Click to collapse
This Odex's the files in your /system/framework
NOT /system/app
WarlockW said:
This Odex's the files in your /system/framework
NOT /system/app
Click to expand...
Click to collapse
Ok, that explains a few things... I'd expected the /system/app folder to also be odexed
Think I restored from Nandroid because I couldn't tell what changed....
Sent from my SGH-T999 using Tapatalk 2
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
cobraboy85 said:
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
Click to expand...
Click to collapse
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
__McB__ said:
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
Click to expand...
Click to collapse
Yes after you odex your framework you can odex system apps.
The main thing about odexing is your apps load faster and it frees up memory in your /data/ partition because you are removing a good chunk of dalvik cache.
Also does improve performance just a tick, by that I mean general UI responsiveness is improved.
Thanks!
just for the sgh3 or would any work like sgh2?
wondering if this would work for the s2 :fingers-crossed:
DAD12345 said:
wondering if this would work for the s2 :fingers-crossed:
Click to expand...
Click to collapse
No it won't.
Boot class path is different.
But if you change that part in the script it will work.
Will this work on all jb roms. Like 4.2 or is it just for s3 4.1?
sent via note 2 in boss mode @ quad core 1.9ghz
Didn't work for me and the dude was so rude that I asked really made me like unfollow him
Sent from my SGH-T989 using xda app-developers app
It didn't really work, and I gave full permissions as well, should I try again?
Sent from my SGH-T999

Categories

Resources