[Q] apktool problem - General Questions and Answers

yesterday I Tried to modify my systemui.apk using apktool. Got everything to
work even got it to open but after I reboot the
app is gone. Any ideas? Any help would be
greatly appreciate

did u set permissions correctly ?
try to flash via recovery/ or use adb push command so that no need to set permissions at all
try without signing the file .

Related

HELP!Not Working- What is the ADB process to replace system files?

I want to know how to install all the apps from app.tgz located on my sdcard or pc into my /system/app folder.
I am trying to fix a problem in V20G by using the apps from V20D.
I am trying to fix my SMS/MMS problem.
Please be EXACT as to the steps.
adb install <appname.apk>
Your .tgz is probably going to be a few apps so you will have to extract them (unless theres another way that I dont know off)
Are you on windows? open up cmd.exe, run adb install /sdcard/app.apk
It looks like it starts to work but then
I get this error
see attachment

Problem Changing System Background Image

Hi all.. Having a problem changing the system background on my daughters x10.. (The background you get behind all the system menus and apps like calculator and calendar etc..)
I did this on my Arc recently and it was a doddle - once I'd got the images cropped to the right size..
So here's what I did on the X10.
Copied the framework-res.apk to the SD card
Opened it using 7zip
navigated to res\drawable-hdpi
replaced the semc_bg and semc_general_bg images with the new ones I'd created.
then navigated to res\drawable-land-hdpi and replaced the semc_bg image in there.
copied the file back into the system folder.
changed the permissions to rw-r--r--
copied it to framework folder...
phone reboots and then gets stuck at sony ericsson white logo screen...
reflashed using SEUS twice now!..
On the Arc I also had to amend the image files in another place.. SemcGenericUxpRes\res
but I don't seem to have that folder on the x10...
Thanks.
** BUMP ** Anyone?
What rom/firmware are you on?
How are you moving the framework-res?
Sent from my X10a using XDA App
stock 2.1 unbranded.. moving it using root explorer.. which is what I did on my arc..
Sent from The Arc!
Try moving it using adb push. Or use adb mask controller or x10 mod tool if you like/need a gui. You could also make a zip for xrecovery if you have it installed. Root explorer method never worked for me on x10 either...
Sent from my X10a using XDA App
Thanks Might try ADB pushing it.. although if I knacker her phone up again she'll not be happy.. so I might just let her decide if she wants me to take the risk... haven't bought titanium for her phone cos I don't want to register MY card on HER phone... recipe for disaster!
im_iceman said:
Thanks Might try ADB pushing it.. although if I knacker her phone up again she'll not be happy.. so I might just let her decide if she wants me to take the risk... haven't bought titanium for her phone cos I don't want to register MY card on HER phone... recipe for disaster!
Click to expand...
Click to collapse
adb should work just fine. Also have you installed recovery ? If no do it and take nandroid before doing it. It would go back to just like it was before.
Yea, xrecovery is super-easy to install & well worth it. Plus you (or one of us) could add the framework-res into a flashable zip we know will work.
BTW, there is a free version of titanium... &/or xrecovery will back up your entire phone as realunited said.
Thanks - Yeah - realised there was a free version after I posted - got it mixed up in my head with Root Explorer!.. yes - have xrecovery on there too.. is nandroid on the market? or is it part of xrecovery - not used it for a few months..
Cheers.
It just means using the backup option in xrecovery. There is a tut for making xrec zips in the dev section or post the framework-res here & I can look at it later when I get home.
Sent from my X10a using XDA App
Hi Aydee - Thanks for your help with this so far!!.. I've done a nandroid backup on the x10 and trying to ADB push the file - it won't let me - says "permission denied".. I tried ADB Remount and shell commands...
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
both not giving me r/w access...
X10 is rooted and busybox installed....
What am I doing wrong?!
[edit - got the su working in shell.. and tried mtdblock2 also.. still won't let me push!]
[edit2 - unsecured the shell and mounted as rw... still won't let me push!!.. saying permission denied!]
To be honest I havent used just straight up adb in a while other than zipaligning, I usually use x10 mod tool or xrecovery zips lately. They have been a reliable and quick. So my manual commands are rusty at best.. Would you want to try one of the other ways maybe? Or I'm sure someone else will know why push isnt working...
Sent from my X10a using XDA App
Thanks Aydee tried x10 mod tool last night - was getting the same error - seems the phone isn't properly unsecured... will try a few different things later.. if anyone else has other ideas.. I'd appreciate it!
Could you post a copy of the apk? You are on .435 right?
Sent from my X10a using XDA App
im_iceman said:
Hi Aydee - Thanks for your help with this so far!!.. I've done a nandroid backup on the x10 and trying to ADB push the file - it won't let me - says "permission denied".. I tried ADB Remount and shell commands...
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
both not giving me r/w access...
X10 is rooted and busybox installed....
What am I doing wrong?!
[edit - got the su working in shell.. and tried mtdblock2 also.. still won't let me push!]
[edit2 - unsecured the shell and mounted as rw... still won't let me push!!.. saying permission denied!]
Click to expand...
Click to collapse
It looks like it didn't get the su permission. Check your phone after typing su. If you want i can make a zip to flash.
Hi - Yeah it got the SU ok.. don't really know why it wasn't working - Think it may be to do with the way I was using ADB push - I was trying to push the file directly into the system or framework folders.. x10 mod tool pushed it to a "SD" folder first then ran another shell command to replace it in the framework folder.. don't really know enough about it !!.. anyway.. got it working via x10modtool.. just need to figure out how to do the same now for the phone and phonebook.. presume it's a PNG within those individual apps?
When making a ZIP.. does it need to be a complete system image or can you just zip the framework-res file on it's own and zip that via xrecovery?
Cheers!
im_iceman said:
Hi - Yeah it got the SU ok.. don't really know why it wasn't working - Think it may be to do with the way I was using ADB push - I was trying to push the file directly into the system or framework folders.. x10 mod tool pushed it to a "SD" folder first then ran another shell command to replace it in the framework folder.. don't really know enough about it !!.. anyway.. got it working via x10modtool.. just need to figure out how to do the same now for the phone and phonebook.. presume it's a PNG within those individual apps?
When making a ZIP.. does it need to be a complete system image or can you just zip the framework-res file on it's own and zip that via xrecovery?
Cheers!
Click to expand...
Click to collapse
Just drag the framework-res.apk into the framework folder without extracting it. After that just flash it.
so presumably I would need to either ADB pull the whole FRAMEWORK folder first? or take a copy using a file manager (AKA root explorer etc)..?
im_iceman said:
so presumably I would need to either ADB pull the whole FRAMEWORK folder first? or take a copy using a file manager (AKA root explorer etc)..?
Click to expand...
Click to collapse
Just the modified apk into the framework folder of the zip.
Sent from my X10project using XDA App
Nah m8 he said he got the framework-res working he needs to do the same for phone & phonebook. They are both in system/app.
Sent from my X10a using XDA App

[Q] Installing System Apps

Hi! I searched the forums, but didn't see any answers regarding to this.
I'm trying to install the moded versions of SMS and Phone/Contact apps found in Cyanogenmod ROM over stock 2.3.4.
What I did was to extract Contacts.apk, Mms.apk, and Phone.apk from one of CM releases and copied the APK files to /System/Apps/ via Root Explorer (set it from R/W to R/O) and rebooted the phone, but there was no change.
I then tried to install them (from the same /System/Apps/ location) through Root Explorer, but it doesn't let.
Any help would be much appreciated.
If you are trying this you need to check/change permission on each app...the phone.apk will not work though I've tried and got force closes. The dialer and mms apks will work though. The best way to do this is to push via adb. If you don't have sdk and knowledge of the basic adb and shell commands I would highly reccomend becoming familiar with them.
Sent from my Nexus S 4G using Tapatalk
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
umbrae said:
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
Click to expand...
Click to collapse
Just put the apps on your tool folder and enter the following commands....
adb push "your.apk" system/app
Sent from my Nexus S 4G using Tapatalk
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
umbrae said:
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
Click to expand...
Click to collapse
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Sent from my Nexus S 4G using Tapatalk
sunder74 said:
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Click to expand...
Click to collapse
I was using Nighties, but I'll try the latest stable 7. Downloading now.
Just to clarify what I did:
First, used the "adb push" method you suggested and the apk files were copied to system/app. I rebooted, but nothing had changed. I then tried to install the copied files via Root Explorer, but it wouldn't let me. I changed R/O and then Permissions, but still couldn't install.
Then I tried "adb install", but it said file already exists. I changed R/O then Permissions, but still couldn't.
After that, I deleted Mms.apk and Contacts.apk and tried all the methods described above again, but still nothing. The apps weren't installed and I kept getting FC.
Lastly, I manually copied the files again via Root Explorer (changed R/O then changed Permission), but still no change and couldn't install.
Hopefully CM 7 packages I'm downloading would work.

[Q] Chainfire 3D-Night Mode Black Screen? Help!

Hey all, I installed chainfire 3d to my rooted CM7 running Thunderbolt, and I was playing around with night mode and drug the sliders all the way down...
My screen is now black and I can't find a way to reset it!
Many thanks,
Logan
Tried to remove app through ADB shell, but to no avail, screen is still black after reset!!
Restore a backup? Screen should work in recovery right?
I was silly and didn't have a backup of CM7 to flash yet.
What I did was go through adb and went into system>lib> and ran the cf3d_uninstall.sh script. It rebooted the phone and fixed the issue, but every time I reinstall chainfire 3d driver through the application, the screen is black again! I tried going through manage applications>chainfire 3d>clear data, and then trying to install, but to no avail.
The color file for the nightmode are stored in /data/property/persist.cf3d.nightmode
I used that method to fix the problem
Code:
adb pull /data/property/persist.cf3d.nightmode
now edit that file and change [COLOR="Blue"]custom:0:0:0[/COLOR] to [COLOR="Blue"]custom:255:255:255[/COLOR]
adb push persist.cf3d.nightmode /data/property/
Reboot!
Done!
Sorry for bumping, but how do I access the filesystem without turning it on?
EDIT:
Have no idea how to do it on another way, but I did it. I guessed where all the buttons were (even my pin code!) and the dropdown menu and everything to be able to get access to my phone. From there on I used the post above for instructions. Thanks a LOT!
Fox-Warrior said:
The color file for the nightmode are stored in /data/property/persist.cf3d.nightmode
I used that method to fix the problem
Code:
adb pull /data/property/persist.cf3d.nightmode
now edit that file and change [COLOR="Blue"]custom:0:0:0[/COLOR] to [COLOR="Blue"]custom:255:255:255[/COLOR]
adb push persist.cf3d.nightmode /data/property/
Reboot!
Done!
Click to expand...
Click to collapse
Old post, but saved my day nevertheless. Thanks!!!
HELP
Fox-Warrior said:
The color file for the nightmode are stored in /data/property/persist.cf3d.nightmode
I used that method to fix the problem
Code:
adb pull /data/property/persist.cf3d.nightmode
now edit that file and change [COLOR="Blue"]custom:0:0:0[/COLOR] to [COLOR="Blue"]custom:255:255:255[/COLOR]
adb push persist.cf3d.nightmode /data/property/
Reboot!
Done!
Click to expand...
Click to collapse
I have the same problem, but this didn't seem to work!!! I wanna use my phone
Alternative
Cheechoy said:
I have the same problem, but this didn't seem to work!!! I wanna use my phone
Click to expand...
Click to collapse
*NOTE: USB Debugging must be enabled and your Android Device plugged in to your PC
1. Install QtADB for windows with the binary files (PC) ( please google it, this is my first post and xda won't allow new users to embed links )
2. Extract to desktop
3. Open QtADB ( it will ask for the binary files that you've downloaded)
4. After locating the folder, it will open the program. On the sidebar click Files ( it will show two columns )
5. On the right side click the data folder
6. open property and search for the persist.cf3d.nightmode
7. select that file and press F8 ( or right-click then delete it)
8. Reboot your phone and wait for it to load.
It should work without any problem. That's it! Hope that helps.
Help Me guys plz..
PLz help guys.....I got same problem...!!! plz help me guys...
Above method ADB pull & Push Doesn't seem to help me it says remote file does not exist..
I can do any thing...Can play music but the color of my screen is gone black...
plz help me bro...
Fox-Warrior said:
The color file for the nightmode are stored in /data/property/persist.cf3d.nightmode
I used that method to fix the problem
Code:
adb pull /data/property/persist.cf3d.nightmode
now edit that file and change [COLOR="Blue"]custom:0:0:0[/COLOR] to [COLOR="Blue"]custom:255:255:255[/COLOR]
adb push persist.cf3d.nightmode /data/property/
Reboot!
Done!
Click to expand...
Click to collapse
hi
I did the same as said but stuck at boot-screen please help me...
hello .....I have the same problem ..... I do if I have enabled debugging mode to activate it somehow or perform a hard reset
Chainfire created an automated uninstall script that is put in /system/lib when you install the driver(s)
Just use adb and execute
Code:
su
./system/lib/cf3d_uninstall.sh
Permissions are already set for execution!
Cheers.

[Q] Frustrated with theme install

Hello all,
I have a Rogers Xperia play, 2.3.3. (UK firmware, already rooted).
Locked bootloader, and sim lock, so I can't use the SE website to unlock. Hence I can't get to fastboot, and use any kind of clockwork mod recovery etc..
I made a theme in the UOT kitchen. I provided my framwork-res, and SystemUI files to the site.
How the F#$% do I install this theme? I've read some instructions on using ADB (http://forum.xda-developers.com/showthread.php?t=1065789), but last time I tried that (ADB itself works correctly and sees my phone) using a theme on the Xperia Play forum, my phone went in a reboot loop.
I'd like to avoid having to reinstall my apps again, yes I know I can get a backup application, but that's not the point of this thread
Any advice on how to install this would be appreciated.
Same here but with sim unlocked, Sony Ericsson Xperia Play Rooted 2.3.3 bootloader locked ,i tried 6 times ,3 times without changing permissions ,3 with changing permissions and no result i only managed to change the SystemUI.apk to work and not get in the bootloop and the framework-res.apk makes the phone get in the bootloop
same problem here.......Waiting for a newbie tutorial
Have to tried using root explorer to install your theme? It's really easy to do I had a hard time using adb to install my theme too I kept going into bootloop but once I used root explorer got it installed in a few minutes
Sent from my R800i using XDA App
just copy the .apk's to the platform-tools folder, fire up adb and type in
adb remount
adb push framework-res.apk /system/framework
adb push systemui.apk /system/app
adb reboot
Done
thatsupnow said:
Have to tried using root explorer to install your theme? It's really easy to do I had a hard time using adb to install my theme too I kept going into bootloop but once I used root explorer got it installed in a few minutes
Sent from my R800i using XDA App
Click to expand...
Click to collapse
I tried it aswell but I also got a boot loop.
I'm confused about these permissions :S
GetPatriotized said:
I tried it aswell but I also got a boot loop.
I'm confused about these permissions :S
Click to expand...
Click to collapse
You will get a bootloop, if the theme you are tying to install, has an incompatible framework.... You should always make sure the theme is made for your firmware version, as for the permissions, its only if you use root explorer, if you use adb the correct permissions will already be set
AndroHero said:
You will get a bootloop, if the theme you are tying to install, has an incompatible framework.... You should always make sure the theme is made for your firmware version, as for the permissions, its only if you use root explorer, if you use adb the correct permissions will already be set
Click to expand...
Click to collapse
I'm on 2.3.3 UK with Rogers Xperia Play.
I'm using root explorer because I'm lost with ADB
If that's the case the make sure you set permissions rw-r--r-- before you move them into the proper folders. Have fun dude
Sent from my R800i using XDA App
Just to ad to @thatsupnow's post, move them to /system first and then set permissions there and then move to the correct folder as he said. That should keep you out of bootloop as long as you use compatible themes or your own cooked framework/systemUI as @androhero also mentioned
Regards Dousan...
I JUST MANAGED TO INSTALL A THEME WOOhOO
now how to do it:
1.copy the SystemUi.apk,framework-res.apk etc. on you SD Card
2.Use a File Explorer that can change permissions (I used Root Explorer from market,pm me for a link if you don't have money to buy it)
3.Copy SystemUi.apk to /System not /system/app and there change the permissions to rw-r--r-- (Be carefull , i accidentaly left rw-r--r-x and it didn't work)
4.Now replace the SystemUi.apk from system/app/ with the one from /system/
5.You will need to restart the phone (i couldn't because many Force Closes so i removed the battery then placed back) and now you have the new Notification Bar
6.Now do the 2-3-4-5 steps with framework-res.apk and this time the phone will restart itself after you copy it.
Where SystemUi.apk and Framework-res.apk go:
SystemUi.apk => /system/app
Framework-res.apk => /system/framework
AndroHero said:
just copy the .apk's to the platform-tools folder, fire up adb and type in
adb remount
adb push framework-res.apk /system/framework
adb push systemui.apk /system/app
adb reboot
Done
Click to expand...
Click to collapse
On a side note to this I had a little fun with ninjamorph and changed colors on some .png's in both systemui and framework-res and ended up with nearly all my apps fc'ing. Couldn't get adb to remount and got a permissions denied error. Then did a adb shell instaed and that worked. Check link for command's:
http://forum.xda-developers.com/showpost.php?p=13984118&postcount=3
Regards Dousan...
How to I change it to rw-r--r-- ?
Like what format is that?
I'm in the pop op where it shows the 9 boxes.
Owner,group,others etc. do you have a picture or something?
GetPatriotized said:
How to I change it to rw-r--r-- ?
Like what format is that?
I'm in the pop op where it shows the 9 boxes.
Owner,group,others etc. do you have a picture or something?
Click to expand...
Click to collapse
User-Group-Others- rw-r--r--

Categories

Resources