FORUMS
Remove All Ads from XDA

[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]

13,672 posts
Thanks Meter: 30,210
 
By osm0sis, Recognized Developer / Recognized Contributor on 18th April 2013, 12:37 AM
Post Reply Email Thread
6th February 2016, 10:08 PM |#531  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,210
 
Donate to Me
More
Quote:
Originally Posted by domicq

And another force close of maps and photos?
It's problem just with permissions?

No, like I said it was integrating GMail and GMS wrong.

Change:
Code:
  sysapk=`grep "updated-package name=\"$package" $xml | grep -o 'codePath=.*$' | cut -d\" -f2`;
To:
Code:
  sysapk=`grep "updated-package name=\"$package\"" $xml | grep -o 'codePath=.*$' | cut -d\" -f2`;
And try again. Let me know if it helps with any of what you were seeing and please post another log. Thanks in advance @domicq.
 
 
7th February 2016, 05:29 PM |#532  
Senior Member
Flag Gelnica
Thanks Meter: 345
 
More
Quote:
Originally Posted by osm0sis

No, like I said it was integrating GMail and GMS wrong.

Change:

Code:
  sysapk=`grep "updated-package name=\"$package" $xml | grep -o 'codePath=.*$' | cut -d\" -f2`;
To:
Code:
  sysapk=`grep "updated-package name=\"$package\"" $xml | grep -o 'codePath=.*$' | cut -d\" -f2`;
And try again. Let me know if it helps with any of what you were seeing and please post another log. Thanks in advance @domicq.

oh it messed up my phone again, systemUI force closes, restoring of system backup doesn't work

Code:
## GApps Auto-Integration Script Log

Sun Feb 7 08:32:58 CET 2016
/data/app/com.android.vending.billing.InAppBillingService.LACK-1
/data/app/com.google.android.apps.authenticator2-1
/data/app/com.google.android.apps.books-1
/data/app/com.google.android.apps.docs.editors.docs-1
/data/app/com.google.android.apps.docs.editors.sheets-1
/data/app/com.google.android.apps.docs.editors.slides-1
/data/app/com.google.android.apps.fitness-1
/data/app/com.google.android.apps.genie.geniewidget-1
/data/app/com.google.android.apps.inbox-1
/data/app/com.google.android.apps.maps-1 /system/app/Maps
/data/app/com.google.android.apps.plus-2
/data/app/com.google.android.apps.translate-1
/data/app/com.google.android.contacts-1 /system/priv-app/GoogleContacts
/data/app/com.google.android.contacts-2 /system/priv-app/GoogleContacts	 (10307 > 10200)
/data/app/com.google.android.gms-1 /system/priv-app/PrebuiltGmsCore
/data/app/com.google.android.gms-2 /system/priv-app/PrebuiltGmsCore	 (8489440 > 8186448)
/data/app/com.google.android.keep-1
/data/app/com.google.android.music-1 /system/app/Music2
/data/app/com.google.android.music-2 /system/app/Music2	 (2317 > 1985)
/data/app/com.google.android.talk-1 /system/app/Hangouts
/data/app/com.google.android.talk-2 /system/app/Hangouts	 (22901117 > 22582810)
/data/app/com.google.android.tts-1
/data/app/com.google.android.tts-2
/data/app/com.google.android.videos-1 /system/app/Videos
/data/app/com.google.android.videos-2 /system/app/Videos	 (31105001 > 38129)
/data/app/com.google.android.webview-1 /system/app/WebViewGoogle
/data/app/com.google.android.webview-2 /system/app/WebViewGoogle	 (262303450 > 246011750)
---

Sun Feb 7 08:41:13 CET 2016
/data/app/com.android.vending.billing.InAppBillingService.LACK-1
/data/app/com.google.android.apps.authenticator2-1
/data/app/com.google.android.apps.books-1
/data/app/com.google.android.apps.docs.editors.docs-1
/data/app/com.google.android.apps.docs.editors.sheets-1
/data/app/com.google.android.apps.docs.editors.slides-1
/data/app/com.google.android.apps.fitness-1
/data/app/com.google.android.apps.genie.geniewidget-1
/data/app/com.google.android.apps.inbox-1
/data/app/com.google.android.apps.maps-1 /system/app/Maps
/data/app/com.google.android.apps.plus-2
/data/app/com.google.android.apps.translate-1
/data/app/com.google.android.contacts-1
/data/app/com.google.android.contacts-2
/data/app/com.google.android.gms-1
/data/app/com.google.android.gms-2
/data/app/com.google.android.keep-1
/data/app/com.google.android.music-1
/data/app/com.google.android.music-2
/data/app/com.google.android.talk-1
/data/app/com.google.android.talk-2
/data/app/com.google.android.tts-1
/data/app/com.google.android.tts-2
/data/app/com.google.android.videos-1
/data/app/com.google.android.videos-2
/data/app/com.google.android.webview-1
/data/app/com.google.android.webview-2
---
7th February 2016, 08:40 PM |#533  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,210
 
Donate to Me
More
Quote:
Originally Posted by domicq

oh it messed up my phone again, systemUI force closes, restoring of system backup doesn't work

Code:
## GApps Auto-Integration Script Log

Sun Feb 7 08:32:58 CET 2016
/data/app/com.android.vending.billing.InAppBillingService.LACK-1
/data/app/com.google.android.apps.authenticator2-1
/data/app/com.google.android.apps.books-1
/data/app/com.google.android.apps.docs.editors.docs-1
/data/app/com.google.android.apps.docs.editors.sheets-1
/data/app/com.google.android.apps.docs.editors.slides-1
/data/app/com.google.android.apps.fitness-1
/data/app/com.google.android.apps.genie.geniewidget-1
/data/app/com.google.android.apps.inbox-1
/data/app/com.google.android.apps.maps-1 /system/app/Maps
/data/app/com.google.android.apps.plus-2
/data/app/com.google.android.apps.translate-1
/data/app/com.google.android.contacts-1 /system/priv-app/GoogleContacts
/data/app/com.google.android.contacts-2 /system/priv-app/GoogleContacts	 (10307 > 10200)
/data/app/com.google.android.gms-1 /system/priv-app/PrebuiltGmsCore
/data/app/com.google.android.gms-2 /system/priv-app/PrebuiltGmsCore	 (8489440 > 8186448)
/data/app/com.google.android.keep-1
/data/app/com.google.android.music-1 /system/app/Music2
/data/app/com.google.android.music-2 /system/app/Music2	 (2317 > 1985)
/data/app/com.google.android.talk-1 /system/app/Hangouts
/data/app/com.google.android.talk-2 /system/app/Hangouts	 (22901117 > 22582810)
/data/app/com.google.android.tts-1
/data/app/com.google.android.tts-2
/data/app/com.google.android.videos-1 /system/app/Videos
/data/app/com.google.android.videos-2 /system/app/Videos	 (31105001 > 38129)
/data/app/com.google.android.webview-1 /system/app/WebViewGoogle
/data/app/com.google.android.webview-2 /system/app/WebViewGoogle	 (262303450 > 246011750)
---

Sun Feb 7 08:41:13 CET 2016
/data/app/com.android.vending.billing.InAppBillingService.LACK-1
/data/app/com.google.android.apps.authenticator2-1
/data/app/com.google.android.apps.books-1
/data/app/com.google.android.apps.docs.editors.docs-1
/data/app/com.google.android.apps.docs.editors.sheets-1
/data/app/com.google.android.apps.docs.editors.slides-1
/data/app/com.google.android.apps.fitness-1
/data/app/com.google.android.apps.genie.geniewidget-1
/data/app/com.google.android.apps.inbox-1
/data/app/com.google.android.apps.maps-1 /system/app/Maps
/data/app/com.google.android.apps.plus-2
/data/app/com.google.android.apps.translate-1
/data/app/com.google.android.contacts-1
/data/app/com.google.android.contacts-2
/data/app/com.google.android.gms-1
/data/app/com.google.android.gms-2
/data/app/com.google.android.keep-1
/data/app/com.google.android.music-1
/data/app/com.google.android.music-2
/data/app/com.google.android.talk-1
/data/app/com.google.android.talk-2
/data/app/com.google.android.tts-1
/data/app/com.google.android.tts-2
/data/app/com.google.android.videos-1
/data/app/com.google.android.videos-2
/data/app/com.google.android.webview-1
/data/app/com.google.android.webview-2
---

Judging by all the duplicates in that log I'd say you hadn't properly cleaned up /data after the last time.. definitely not a clean test.
8th February 2016, 04:31 AM |#534  
Senior Member
Flag Gelnica
Thanks Meter: 345
 
More
Quote:
Originally Posted by osm0sis

Judging by all the duplicates in that log I'd say you hadn't properly cleaned up /data after the last time.. definitely not a clean test.

Sure it wasn't. 😀 I did fresh install and I'll try it again

Gesendet von meinem Nexus 5X mit Tapatalk
The Following User Says Thank You to domicq For This Useful Post: [ View ] Gift domicq Ad-Free
8th February 2016, 05:59 AM |#535  
Member
Thanks Meter: 7
 
More
Noticed a very strange issue with your busy box zip and titanium backup. Not sure if it's your zip or a problem with how tibu interacts with your zip.

So, after flashing your busybox zip, most of my app backups are not restorable, only the data is. I have forced system busy box in the tibu preferences. I couldn't figure out why I was unable to restore apps and data, so I ran stericsons busy box and installed, Rebooted, and then I could restore everything just fine. This was all after a clean flash of PureNexus on the 6p. To verify it was your zip I clean flashed again, installed stericsons and my restorable were apps there. Clean flash again but just flashed your zip, could only restore app data.

Hopefully this might help, if you need more info let me know!
8th February 2016, 02:02 PM |#536  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,210
 
Donate to Me
More
Quote:
Originally Posted by remedy1419

Noticed a very strange issue with your busy box zip and titanium backup. Not sure if it's your zip or a problem with how tibu interacts with your zip.

So, after flashing your busybox zip, most of my app backups are not restorable, only the data is. I have forced system busy box in the tibu preferences. I couldn't figure out why I was unable to restore apps and data, so I ran stericsons busy box and installed, Rebooted, and then I could restore everything just fine. This was all after a clean flash of PureNexus on the 6p. To verify it was your zip I clean flashed again, installed stericsons and my restorable were apps there. Clean flash again but just flashed your zip, could only restore app data.

Hopefully this might help, if you need more info let me know!

Hmm 6P so arm64. Can you verify that's what my zip installed? Install location from mine? Install location for Stericson?

I can't imagine it using more than mount (maybe), tar, cp and chown/chmod and all those applets definitely work fine on my N5.
8th February 2016, 06:00 PM |#537  
Surge1223's Avatar
Recognized Contributor
Flag Iowa
Thanks Meter: 7,360
 
Donate to Me
More
Quote:
Originally Posted by osm0sis

Hmm 6P so arm64. Can you verify that's what my zip installed? Install location from mine? Install location for Stericson?

I can't imagine it using more than mount (maybe), tar, cp and chown/chmod and all those applets definitely work fine on my N5.

I don't use your busybox (No offense I just compile my own)

But, just thinking out loud here, tibu probs has to use selinux commands, like restorecon, chcon, setcon, etc. Does your busybox include selinux support?
The Following User Says Thank You to Surge1223 For This Useful Post: [ View ] Gift Surge1223 Ad-Free
8th February 2016, 06:06 PM |#538  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,210
 
Donate to Me
More
Quote:
Originally Posted by Surge1223

I don't use your busybox (No offense I just compile my own)

But, just thinking out loud here, tibu probs has to use selinux commands, like restorecon, chcon, setcon, etc. Does your busybox include selinux support?

Good thinking, but Stericson doesn't have those either. Titanium appears to have finally updated their included busybox to v1.19.4-Titanium judging from my N5, but they've got very few applets indeed:
Code:
	[, [[, basename, blkid, blockdev, bunzip2, bzcat, bzip2, cat, chgrp,
	chmod, chown, chrt, cksum, cmp, cp, dd, dirname, du, echo, fdisk, find,
	findfs, flock, fsync, fuser, gunzip, gzip, id, kill, killall, killall5,
	ln, losetup, ls, lzop, lzopcat, md5sum, mkdir, mkdosfs, mke2fs, mkfifo,
	mkfs.ext2, mkfs.vfat, mknod, mkswap, mktemp, mount, mountpoint, mv,
	nice, pidof, ps, pwd, readlink, realpath, renice, rm, rmdir, sha1sum,
	sha256sum, sha512sum, sort, stat, sync, tar, tee, test, timeout, touch,
	umount, unlzop, wc, which, whoami, xargs, zcat
Edit: Of those I'm missing only sync.. but Stericson doesn't have that one either. Once we rule out user error here (installing Stericson to /su/bin or /system/bin would override ROM binaries, whereas mine only installs to the safer /su/xbin and /system/xbin but TiBU could fail due to /system/bin binaries still having precedence in that case), I guess I might have to sit down and test the other 76 applets in common..

Also, I'm pretty sure Stericson doesn't even support Android x64 yet, so his working means it's using the compatibility layer and a regular arm binary, in which case TiBU's included busybox should also work just fine. There's a lot that doesn't make sense in these TiBU+system busybox error reports.

I was going to release an updated busybox zip with the latest official patches (fixes truncate.. no biggie, and I had the other 2 already), since I compiled them for today's AIK-mobile release, but I'm going to hold off until we figure this out better.
The Following 2 Users Say Thank You to osm0sis For This Useful Post: [ View ]
8th February 2016, 08:49 PM |#539  
Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by osm0sis

Hmm 6P so arm64. Can you verify that's what my zip installed? Install location from mine? Install location for Stericson?

I can't imagine it using more than mount (maybe), tar, cp and chown/chmod and all those applets definitely work fine on my N5.

Both yours and stericsons install to /system/xbin arm64. The included tibu busybox works. If forcing system, meefiks and stericsonsboth work. If I flash yours, back to just data and a select few apps are restorable.

I tested it 4 times last night with clean flashes each with different busy boxes. Meefiks and stericsons were fine.

Edit: spoke too soon! A bunch of apps are missing in tibu after flashing your script. Reinstalled stericsons, and everything is back.
9th February 2016, 01:39 AM |#540  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,210
 
Donate to Me
More
Quote:
Originally Posted by remedy1419

Both yours and stericsons install to /system/xbin arm64. The included tibu busybox works. If forcing system, meefiks and stericsonsboth work. If I flash yours, back to just data and a select few apps are restorable.

I tested it 4 times last night with clean flashes each with different busy boxes. Meefiks and stericsons were fine.

Edit: spoke too soon! A bunch of apps are missing in tibu after flashing your script. Reinstalled stericsons, and everything is back.

Okay. Install mine, then manually extract the arm (not 64) binary from my zip, rename it to just busybox and then put it in /system/xbin, overwriting the arm64 binary. Let me know if that works better.
9th February 2016, 01:59 AM |#541  
Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by osm0sis

Okay. Install mine, then manually extract the arm (not 64) binary from my zip, rename it to just busybox and then put it in /system/xbin, overwriting the arm64 binary. Let me know if that works better.

Done, but TiBu just errors out saying it can't acquire root privileges now. Other root apps work, was I supposed to do anything with the permissions for the busybox file?
Post Reply Subscribe to Thread

Tags
automation, batch, flashable zip, script, tool

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes