[Q] Question about /system/xbin - Nexus 4 Q&A, Help & Troubleshooting

hi guy, i have a question about directory system/xbin.
i buy a nexus4 2 or 3 weeks again, i use nexus4toolbox to unlock bootloaders ond other stuffs.
in this stock (brand new) condition i have a /system/xbin almost all files, except for su and busybox, weighing 1.11 mb.
i try to flash the factory system image directely from google servers, and in this case i have only one file in this directory (only dexdump).
why in my stock situation have i ll of this stuffs?
the folder / system / xbin originally weighed about 365 mb, now just a few kb, and i cannot explain this.
hepl me please!

Related

Is there an Update Version of "Froyo Optimum v3a", not Recovery or Fastboot

Hi All,
i would like to customize the "Froyo Optimum v3a for Optimus" ROM for my purposes.
more precisely i would like to throw most of system app out as i did it on "Pro Celestial v2" for my Vodafone 845 (Huawei 8120).
Therefore i nede a ROM with following structure:
META-INF (directory)
system (directory)
boot.img
like update-cm-7.0.3-GT540-MUR4IK-signed.zip
or "Pro Celestial v2"
but all i can find for "Froyo Optimum v3a for Optimus" is:
1. Fastboot
boot.img 5MB
system.img 129,5MB
or
2. Recovery
.android_secure.img ?
boot.img 5MB
cache.img 14.7MB
data.img 2.2MB
nandroid.md5 222 B
recovery.img 5M
system.img 129,5MB
Do i get something wrong? is there any update Version of " "Froyo Optimum v3a for Optimus""
No the dev only released versions for recovery as a backup but not as an update signed, but what you what you can do if you really need to unpack the system.img is the assembling tools which i made a how-to posted in my thread FAQ | LG GT540 Reference thread, the link is in my signature.
Veronica
thx a lot veronica 4 your hint and tut.
unfortunately i cannot post to dev thread as am new one.
do you think it would be to much to ask the devs to release the singed update file?
am i the only one who need it?
i have also tried to re-assemble the system.img with file from your thread with no luck.
then i googled (is it brave?) and found this one:
code.google.com/p/unyaffs/downloads/list (sry iam not allowed to post links)
i took the prebiuld file and it worked fine for me.
plz someone answer my questions:
i need a phone with gsm/umts and wlan with only one app (our product) running on it.
no calling, browsing, sms, mms etc.
so i took: [ROM][Gingerbread] 2.3.4 | CyanogenMod 7 | SwiftDroid (v2.0 M4)| Mur4ik
and removed a lot of apps i think we dont need.
here is the list of remaining apps:
CertInstaller.apk
GoogleBackupTransport.apk
GooglePartnerSetup.apk
LatinIME.apk
Launcher2.apk
MediaProvider.apk
NetworkLocation.apk
OneTimeInitializer.apk
Pacman.apk
Phone.apk
Settings.apk
SettingsProvider.apk
SystemUI.apk
TelephonyProvider.apk
UserDictionaryProvider.apk
VpnServices.apk
Click to expand...
Click to collapse
1.My first question is: can i remove more apps, without making the system unstable?
Here the the list of all apps, with my notes:
spreadsheets.google.com/pub?hl=en&hl=en&key=0Avd9U1HjwIbSdHRicHZ3cGJoZEhiU1ZLc2hpNnhZYlE&single=true&gid=0&output=html
2.how to deploy it on more then one phone easy?
now im singing the update, transfer it per usb and update it via recovery modus.
im planning to make a recovery with all changes that i make (from CyanogenMod recovery modus(it has to be installled first) ) and then to recover it on other phones.
is this the only one scenario? how to make it easier like fastboot?
i also tried to make (to assemble) system.img from my update/system folder with mkfs.yaffs2 but after i flashed it on the phone it doesn't boot to the os.
Hello if you want a froyo version then Mu4ik's little brother version might be your choice but im not sure if it has update signed format you need.
About what to remove safetly if you want a really light phone with only apps and services that you need, you should pm a dev like Mur4ik or any other because apart of that you see in system/app there are libs and other files that comes with some applications like email.apk that are heavy and you probably wont need, apart of that if you dont want anyone to install any other app then its a bit more complex you can unintall market or beven block it but there is another way to install apps too by copying to the sdcard and installing it so...
About to your second question the best you could deploy it to other phones is by recovery because its directly from the phone , with fastboot you need the phisical machine with fastboot working to flash the rom to the phones. So after you're done modifying the rom make a full backup by recovery and copy the backup folder to your pc, then copy it to sdcard/clockwork/backup/ in another phone, flash it and so and so
Veronica
if you want to make a fastboot version just take the system.img and boot.img from a recovery backup they work in fastboot mode
Hi, thx you all
i don't think devs would do this and i'm not pretending to make "breaksafe" phone.
all i want is that the employees cannot play with it during the work.
thx u both 4 your tips, i think ill go for fastboot "from recovery files" as it more comfortable to do it from pc, if all the setting will be recovered (icons on the desk).
@lavero.burgos
i don't see than much "leftovers", i think than if you do not install the app at all there will be no packages left.
[email protected]:~$ adb shell
# pm list packages
package:com.google.android.location
package:com.google.android.feedback
package:com.android.providers.telephony
package:com.android.launcher
package:android
package:com.android.settings
package:com.android.providers.userdictionary
package:com.teamdouche.pacman
package:com.sic.ourapp
package:com.android.inputmethod.latin
package:com.android.phone
package:com.google.android.onetimeinitializer
package:com.android.providers.settings
package:com.google.android.gsf
package:com.google.android.partnersetup
package:com.android.providers.media
package:com.android.systemui
package:com.android.certinstaller
package:com.cyanogenmod.cmparts
package:com.android.server.vpn
package:com.google.android.backup
package:com.android.packageinstaller
Click to expand...
Click to collapse
i actually don't care about the used space as we need only our app to be installed.
what i care is that the employees do not install the apps while they working.
i thing that is not possible with my minimal configuration.
the is no market and no file manager app, so i cannot access the sd card.
adb, recovery, fastboot etc. are still available but it is ok.
i have one more question:
if it try to reinstall our app then i get the error:
Code:
[email protected]: ~$ adb install ../apk/OurAppV1.11.apk
2414 KB/s (2036816 bytes in 0.823s)
pkg: /data/local/tmp/OurAppV1.11.apk
Failure [INSTALL_FAILED_INTERNAL_ERROR]
[email protected]:~$ adb push ../apk/OurAppV1.11.apk /system/app
2656 KB/s (2036816 bytes in 0.748s)
as you see i can push the app to system/app and this do pretty much the same.
the app is installed!
why? i don#t the difference between "install" and "push"
and why install doesn't work while push does?

[Q] U8800 2.3 owerseas remove stock apk

Since I cant post in development section I will ask here if someone can help me. I have U8800 with 2.3 stock rom and I cant remove stock apps (swype in my case).I am rooted with DooMLoRD_v3_ROOT and SU is instaled. I did find apk file (/cust/hw/default/apk) but I am not able to remove it. I tried with titanium backup, root explorer, terminal emulator (cant find target) and with super manager.It seems like I am half rooted as root explorer cant mount rw in cust directory but works in system directory.Any idea is welcome,thank you!
You need to do it manually via adb shell. First to mount the partition as rw and then to remove it. I want to remove this file too, so I' ll try it asap.
EDIT:
I tried but this partition which is on /dev/block/loop0 cannot be mounted rw, I get a permission denied error.
.
In pinkscreen mode delete cust.image file,then delete apps with titanium backup.
We want to delete only some apps.
With your way we loose all huawei' s custom configuration, it' s like we don' t install step3.
This is not a solution.
I hope that we can find solution for this as I want to instal costum swype with my language enabled (slovenian) and can not do it untill I remove stock one. If any of you can post in development section maybe you can ask there if they know the solution for this, thank you!
I fixed it.
I deleted all unneeded apks (stock apps) that stored in cust.img
My method;
1. On Slitaz Linux 3.0
2. Open terminal
3. Copy cust.img from phone to /home folder
4. mkdir tmp
5. mount cust.img /home/tmp
6. cd /home/tmp/hw/default/app
7. Delete apk files what you don't want
8. unmount tmp
9. Copy cust.img from /home folder to phone
Ok, but I dont have linux or terminal on my computer. Is there any way to do this via terminal emulator on the phone? Or is there some step by step guide how to do it as I am not really familiar with terminal or its use.
http://www.multiupload.com/EKPGJ7EUGO
This is "cleared" cust.img. That contains only these apks;
BeyondTheSkyTheme.apk
Calendar.apk
CalendarProvider.apk
DeskClock.apk
ToolBox.apk
1. Download this rar archive and open it.
2. Start your phone in pink screen mode
3. Backup original cust.img to your computer
4. Copy "cleared" cust.img from rar to phone.
Thank you,I managed to install swype in my language and it works great. I was wondering if there is any chance to extract all factory .apk files and post them somewere so people could donload them and install them if they want. I am missing that weather clock widget but swype is far more important to me, so thank you again to make it possible.
This rar archive contains all apks that stored in cust.img -->> http://www.multiupload.com/8DWKNVTXML
Just copy apk file (which ones do you want) to "/system/app" folder and restart.
or
This is only TotemWeather.apk -->> http://www.multiupload.com/IWX7U3G5FU
Just copy to "/system/app" folder and restart.
Thank you, you are the best. Will this cust.img work with 2.3 beta which will be released this thursday according to Huawei? If not I wont update again as I just managed to adjust phone to my needs.
I hope, it will works with the new update. If not, i'll fix it when update released.
could you give us a cleared cust.img for the official 2.3.5???

[DEV Needed] Found way to write to local.prop, need help getting root

I found a way to write arbritary data to local.prop
Right now my local.prop (after reboot) looks like this
Code:
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_ih=0
ro.sys.atvc_allow_res_core=0
ro.sys.atvc_allow_res_panic=0
ro.sys.atvc_allow_all_adb=0
ro.sys.atvc_allow_all_core=0
ro.sys.atvc_allow_efem=0
ro.sys.atvc_allow_bp_log=0
ro.sys.atvc_allow_ap_mot_log=0
ro.sys.atvc_allow_gki_log=0
#: comparing /system/preinstall/md5/#.md5 and /data/preinstall_md5/#.md5
#: install skipped, file unchanged
#: comparing /system/preinstall/md5/#.md5 and /data/preinstall_md5/#.md5
#: install skipped, file unchanged
ro.sys.atvc_allow_all_adb=1#: comparing /system/preinstall/md5/ro.sys.atvc_allow_all_adb=1#.md5 and /data/preinstall_md5/ro.sys.atvc_allow_all_adb=1#.md5
ro.sys.atvc_allow_all_adb=1#: install attempt 1 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 2 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 3 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 4 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 5 of 5 failed
preinstall finished, setting preinstall.done to 1
preinstall exiting...
I've tried a few variants, but adb keeps droping its root privileges. "adb root" and "adb remount" don't work either.
I'm guessing that either the local.prop gets parsed before the script runs, or that the garbage at the end prevents it from loading.
My knowledge of android died there, so if someone has any idea what can be tried, i'll give it a go.
How did i get there (in case someone wants to do the same):
I found out that on boot a script is run by the root user (/system/bin/installpreloads.sh) that writes /data/preinstall_md5/log.txt
/data/preinstall is world-writable, so i just deleted log.txt, and replaced it with a (soft) symbolic link to /data/local.prop.
Rebooted the phone and checked local.prop, and there was the output of the script.
Now, what it was writing at that point was no good (it was checking whether adobe flash app was installed), but there was a sign of hope:
The lines started with the app name (com.adobe.flashplayer, or something like that)
I took a look at the script and it checks for the apps in /preload (which is only readable by system so no chance to change that) and writes to the log file the names of the files it finds there.
A couple of days later, i realized (toying with sbf_flash) that the preinstall partition, isn't signed.
So i can change whatever i want on it, flash it with sbf_flash, and get the data i want into local.prop.
So i downloaded the Personal GB sbf and extracted it with the motorola depacker.
Luckily the preinstall patition is ext3, so i just mounted it changed the adobe package for one called "ro.sys.atvc_allow_all_adb=1#", unmounted it, flashed it and on next boot, my local.prop looked like that.
Please, anyone?
I know most of milestones 2 around the world are running rootable ROM's, but here in Argentina and Brasil, we are stuck with an unrootable 2.3.6 ROM.
I'd just like a tip on what to try next, or at least know whether it's not posible.
I feel I'm just a tweak away of rooting this ROMs, but I don't know what to do next.
Anything, any idea is welcomed.
Please...
Try to PM the devs e.g. tezet, sfc3001, --UFO--, Endless7, r2beta0 etc. Or may be even someone from Defy Devs like Quarkx n Epsylon3
Has there been any more progress with this?
Error -bad way
ADB shell write: permission denied!!!!! = ro.sys.atvc_allow_netmon_usb=0
nicofff said:
I found a way to write arbritary data to local.prop
Right now my local.prop (after reboot) looks like this
Code:
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_ih=0
ro.sys.atvc_allow_res_core=0
ro.sys.atvc_allow_res_panic=0
ro.sys.atvc_allow_all_adb=0
ro.sys.atvc_allow_all_core=0
ro.sys.atvc_allow_efem=0
ro.sys.atvc_allow_bp_log=0
ro.sys.atvc_allow_ap_mot_log=0
ro.sys.atvc_allow_gki_log=0
#: comparing /system/preinstall/md5/#.md5 and /data/preinstall_md5/#.md5
#: install skipped, file unchanged
#: comparing /system/preinstall/md5/#.md5 and /data/preinstall_md5/#.md5
#: install skipped, file unchanged
ro.sys.atvc_allow_all_adb=1#: comparing /system/preinstall/md5/ro.sys.atvc_allow_all_adb=1#.md5 and /data/preinstall_md5/ro.sys.atvc_allow_all_adb=1#.md5
ro.sys.atvc_allow_all_adb=1#: install attempt 1 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 2 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 3 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 4 of 5 failed
ro.sys.atvc_allow_all_adb=1#: install attempt 5 of 5 failed
preinstall finished, setting preinstall.done to 1
preinstall exiting...
I've tried a few variants, but adb keeps droping its root privileges. "adb root" and "adb remount" don't work either.
I'm guessing that either the local.prop gets parsed before the script runs, or that the garbage at the end prevents it from loading.
My knowledge of android died there, so if someone has any idea what can be tried, i'll give it a go.
How did i get there (in case someone wants to do the same):
I found out that on boot a script is run by the root user (/system/bin/installpreloads.sh) that writes /data/preinstall_md5/log.txt
/data/preinstall is world-writable, so i just deleted log.txt, and replaced it with a (soft) symbolic link to /data/local.prop.
Rebooted the phone and checked local.prop, and there was the output of the script.
Now, what it was writing at that point was no good (it was checking whether adobe flash app was installed), but there was a sign of hope:
The lines started with the app name (com.adobe.flashplayer, or something like that)
I took a look at the script and it checks for the apps in /preload (which is only readable by system so no chance to change that) and writes to the log file the names of the files it finds there.
A couple of days later, i realized (toying with sbf_flash) that the preinstall partition, isn't signed.
So i can change whatever i want on it, flash it with sbf_flash, and get the data i want into local.prop.
So i downloaded the Personal GB sbf and extracted it with the motorola depacker.
Luckily the preinstall patition is ext3, so i just mounted it changed the adobe package for one called "ro.sys.atvc_allow_all_adb=1#", unmounted it, flashed it and on next boot, my local.prop looked like that.
Click to expand...
Click to collapse

URGENT: Webtop thinks there is no free space left in /

So I have the webtop mod running on my sdcard, and I just tried to do a ubuntu dist-upgrade to natty. When I do so, it begins the process and then informs me that I need 10MB more free space on "/". This issue also happens when installing certain packages. The problem here (I think) is that Ubuntu considers the phone's / directory as its root, hence the symlinks created from the folders in /osh to the / directory. Usually, this works fine. But sometimes, a package checks to see if the / directory is free, and it reports back 0B to the system, canceling the install. Since this problem is obviously with ubuntu checking the wrong folder, how do I fix this? Is there any way to constrain Ubuntu to considering the /osh directory as its root? Please, help, I'm stuck in between an upgrade now and this is my main computer.

Soft-Bricked phone (SM-9005, OS: 4.4.2), problem with /system

So Hello everyone, i got interesting problem...
I bricked my phone
Phone: SM-9005
OS: Android 4.4.2
Firmware: N9005XXUGNG1
Recovery: TWRP 3.0 installed.
Root software installed which may be interesting "Xposed Additions, Lucky Patcher, SuperSu, Greenify"
Step by step.
// maybe helpful - cache / dalvik cache wiped and after reboot i started playing stuff
I used Root Browser (com.jrummy.root.browserfree) to copy 2 directories from my /downloads to /system.
There were /lib & /bin which contained unique libs and one executable so this would not affect system if everything went ok, but i didn't
After i started coping, root explorer asked me that "File already exist, overwrite or make a copy"? i pressed overwrite, in same second all apps in android started to generate "unexpected error", i tried to reboot and got boot into recovery
after i watched /system i found that what i tried to copy actually copied not to /system/lib & /system/app but to /system/system/lib & /system/system/app.
So i think there was some folder or file called system in /system directory which was overwritten. Or any kind of problem with dir / file permissions.
Any ideas of how to fix this / what was in /system/system / where to get bootlog to find after what "kernel panic" takes place or any other help?
Thanks.
// maybe somebody with same model version, same os version can upload zip file of own /system folder without /apps, /priv-apps and build.prop so i can compare whats lost compared to my data?
Fixed myself, root browser set wrong permissions to /system while was coping files... set back to 755 and it works

Categories

Resources