[Q] keep specific system files from deletion during CM ROM update? - myTouch 4G Q&A, Help & Troubleshooting

I was just wondering if there is some way to keep specific system files from being deleted while flashing a new ROM (at least when not doing a full wipe)?
For example, third party applications like "Theft Aware" or any other app that was manually converted to system app are deleted by the cyanogenmod update script (and of course, need to be re-installed from scratch)- Is there a way to add exclusion criteria or something like that, thus keeping these files between flashing updates of the same ROM?

Solution found
Found a solution for Cyanogenmod rom (I guess it should work in other variants and flavors too)- adding it just in case it is of interest to other users:
Got it from the old/inactive theft aware forum: http://tinyurl.com/d8vjkba
I tried it with other system applications that I have installed manually or converted from user apps- and it works great- saves all the hassle of reinstalling these applications (if you flash lots of nightly builds it's quite a pain in the... )

Related

[Q] I am a build addict.. what are my auto-install options ?

- - - Seeking the equivalent of Sashimi and SKTracker - - -
Hi,
I installed Froyo Sense 2.2 on my HD2 for the first time yesterday and expect I will be playing around with different builds for a long time until I find 'perfection'.
As a serial WinMo ROM addict, I used to use Sahsimi to back up and re-apply all of my application installs, customisations, skinning, license key input, WiFi and webmail settings etc.. etc.. . So literally after installing a ROM, I can have all of my apps and customisations re-applied within minutes...
But is there an equivalent for Android out there ?
- Is my google tie in aware of my installed applications and will it auto-install them again ?
- Where does Android store installs ?
- Can purchased installs be re-applied without any DRM restrictions ?
- Is there an equivalent of Sashimi (http://forum.xda-developers.com/showthread.php?t=538513). I know on WinMo there are quite a few apps that let you re-installs Cabs, registry edits and XML's
- Are there any application watcher tools that will allow me to find out where applications specific customisations are installed ? The equivalent I'm using on WinMo are SKTracker and MobileMon
Any advice would be appreciated.
- Is my google tie in aware of my installed applications and will it auto-install them again ?
-- Generally yes, every new build I've used recently (last 3 or 4 weeks or so, never checked before) will automatically try and redownload from the market whatever you had before.
- Where does Android store installs ?
-- Not 100% sure I understand but all Android data (sms, apps/games/saves etc) are stored in your /Android/data.img on the SD card.
- Can purchased installs be re-applied without any DRM restrictions ?
-- Theoretically yes, cannot guarantee 100% but it's tied to your google account so in theory it's a yes.
- Is there an equivalent of Sashimi (http://htcpedia.com/forum/showthread.php?t=260). I know on WinMo there are quite a few apps that let you re-installs Cabs, registry edits and XML's
-- Your best bet for that will be Titanium backup. Looks complex once you first open it, but read the wiki (google will help you there) and you'll realise it's actually very simple.
- Are there any application watcher tools that will allow me to find out where applications specific customisations are installed ? The equivalent I'm using on WinMo are SKTracker and MobileMon
-- Not entirely sure on that one afraid, it's not something I've really looked into.
Thanks for the details. I'll look up Titanium Backup.
One thing I have noticed, upon installing a Marketplace App if I clicking onSettings -> Applications -> Manage Applications -> [select the application]
... then there is the option of 'Move to SD Card'.
To me this suggests that all Marketplace installs default to the phone's internal memory.... correct me if I'm wrong.
But I'm not sure if this is the installer for the app or the application itself.
Ideally, I would like to have the installer on my SD card and application installed to the destination of my choice.
One thing I've noticed is that the Market downloads installers to \sdcard\download. They're not named with the original filename, but there's a manifest xml file inside where you can see what file it was.
This way, you can keep backups of all your installers from the Market.
Just copy the ones you want into the AndroidApps folder of the new build and it will automatically install them for you.
This should help make the process a little smoother

[Guide]List of apps safe to remove

This is a list of safe/unsafe apps to remove from stock roms.
Generally for other regions/carrier roms anything not included should be safe to remove.
Safe in this case is defined as "will not affect the stability of the rom" removing carrier apps is "safe" for the rom, but weither or not it's useful to keep is beyond the scope of this guide. An example is removing the carrier specific mms app. It can function correctly without it, but you lose any carrier specific enhancements.
General Guideline
NOT safe to remove:
com.android.*
com.dell.* (excluding com.dell.launcher, com.dell.stage.*)
com.google.android.* (that isnt available on market)
PreLoadNetworkSettings.apk [com.oem.prenetworksetting]
Safe to remove:
com.oem.engineeringmode.*
anything available on market
anything not listed here
Possibly Not safe to remove:
Package (OTA) util
PackageChecker.apk [com.oem.packagechecker]
PackageUpdate.apk [com.oem.packageupdate]
Safe to remove:
AMOLED.apk [com.oem.engineeringmode.amoled]
CableDetection.apk [com.oem.engineeringmode.cabledetection]
Calibrator.apk [com.oem.calibrator]
CellInfo.apk [com.oem.engineeringmode.cellinfo]
ConfidentialRunningTest.apk [com.oem.engineeringmode.runningtest]
DisplayVersionInfo.apk [com.oem.mode]
dtretriever.apk [com.oem.engineeringmode.dtretriever]
ECompass.apk [com.oem.engineeringmode.ecompass]
EMList and subapps
audioEM.apk [com.oem.engineeringmode.audioEM]
BluetoothEM.apk [com.oem.engineeringmode.BluetoothEM]
cameraEM.apk [com.oem.engineeringmode.cameraEM]
EMList.apk [com.oem.engineeringmode.emlist]
EMLoader.apk [com.oem.engineeringmode.EMLoader]
EMwifi.apk [com.oem.engineeringmode.wifi]
GpsEM.apk [com.oem.engineeringmode.gpsem]
FactorySuiteUtility.apk [com.oem.engineeringmode.suitutility]
FakeCB.apk [com.oem.engineeringmode.fakecb]
GPIO subapps
Gpio.apk [com.oem.engineeringmode.gpio]
GpioSleepMode.apk [com.oem.engineeringmode.gpiosleepmode]
GSensor.apk [com.oem.engineeringmode.gsensor]
Logging apps
LogMaster2.apk [com.oem.log]
LogService.apk [com.oem.logservice]
Lota.apk [com.oem.lota]
MaxPowerTest.apk [com.oem.engineeringmode.maxpowertest]
mccmnc.apk [com.oem.engineeringmode.mccmnc]
mminfo.apk [com.oem.engineeringmode.mminfo]
NetWorkSetting.apk [com.oem.engineeringmode.networksetting]
NVEngMode.apk [com.oem.engineeringmode.nv]
OOD_OOM.apk [com.oem.testkits.ood_oom]
PermissionToAccessLocApi.apk [com.qualcomm.permission.locapi]
PowerMonitor.apk [com.oem.engineeringmode.powermonitor]
security.apk [com.oem.engineeringmode.security]
SensorsInfo.apk [com.oem.engineeringmode.SensorsInfo]
SIMInfo.apk [com.oem.engineeringmode.siminfo]
TouchPanel.apk [com.oem.engineeringmode.touch]
Verification apps
FactoryTestSIMCard.apk [com.oem.engineeringmode.verificationsimcard]
Verification.apk [com.oem.engineeringmode.verification]
VerificationAudio.apk [com.oem.engineeringmode.VerificationAudio]
VerificationBluetooth.apk [com.oem.engineeringmode.verification.bluetooth]
VerificationCamEEPROM.apk [com.oem.engineeringmode.verificationcameeprom]
VerificationEcampass.apk [com.oem.engineeringmode.verification.ecampass]
VerificationGaugeIcTemp.apk [com.oem.engineeringmode.verification.gaugeictemp]
VerificationGaugeIcVoltage.apk [com.oem.engineeringmode.verification.gaugeicvoltage]
VerificationGSensorTest.apk [com.oem.engineeringmode.verificationGSensorTest]
VerificationHdmi.apk [com.oem.engineeringmode.verificationVerificationHdmi]
VerificationHeadset.apk [com.oem.engineeringmode.VerificationHeadset]
VerificationKey.apk [com.oem.engineeringmode.verificationkey]
VerificationLCD.apk [com.oem.engineeringmode.verificationlcd]
VerificationLPSensorTest.apk [com.oem.engineeringmode.verificationLPSensorTest]
VerificationLPSensorUtility.apk [com.oem.engineeringmode.verificationlpsensorutility]
VerificationSDCard.apk [com.oem.engineeringmode.verificationsdcard]
VerificationSingleTouch.apk [com.oem.engineeringmode.verification.singletouch]
VerificationUsbCharging.apk [com.oem.engineeringmode.verification.usbcharging]
VerificationVibratorAndLed.apk [com.oem.engineeringmode.crt]
VerificationWifi.apk [com.oem.engineeringmode.verificationwifi]
Bundleware (available in market):
ACCUWX.apk [com.accuweather.android.simpleweatherlite.dellstreak]
amazonmp3.apk [com.amazon.mp3]
com.adobe.air.apk [com.adobe.air]
com.facebook.katana [com.facebook.katana]
com.twitter.android.apk [com.twitter.android]
copilot.apk [com.alk.copilot.dell.trial]
evernote.apk [com.evernote]
Gallery3D.apk [com.cooliris.media]
KindleGold.apk [com.amazon.kindle]
KongregateArcade.apk [com.kongregate.android.kongarcade]
Napster-Tablet.apk [com.napster.bishop]
NeroDellSync.apk [com.nero.android.dellsync]
oovoo.apk [com.oovoo]
PageOnce.apk [com.netgate]
Quickoffice.apk [com.qo.android.oemec]
radiotime.apk [tunein.player]
RoxioNow.apk [com.roxio.rnow]
ZinioReader.apk [com.zinio.mobile.android]
ZinioSettingsProvider.apk [com.zinio.android.settings]
GApps (available in market):
Gmail.apk [com.google.android.gm]
GoogleQuickSearchBox.apk [com.google.android.googlequicksearchbox]
Maps.apk [com.google.android.apps.maps]
Street.apk [com.google.android.street]
VoiceSearch.apk [com.google.android.voicesearch]
Youtube.apk [com.google.android.youtube]
StageUI:
BooksStageWidget-release.apk [com.dell.stage.widget.books]
ContactsStageWidget-release.apk [com.dell.stage.widget.contacts]
EmailStageWidget-release.apk [com.dell.stage.widget.email]
HomeStageWidget-release.apk [com.dell.stage.widget.home]
MusicStageWidget-release.apk [com.dell.stage.widget.music]
NewsStageWidget-release.apk [com.dell.stage.widget.news]
PicturesStageWidget-release.apk [com.dell.stage.widget.pictures]
RadioStageWidget-release.apk [com.dell.stage.widget.radio]
SocialStageWidget-release.apk [com.dell.stage.widget.social]
StageLauncher-release.apk [com.dell.launcher]
VideoStageWidget-release.apk [com.dell.stage.widget.video]
WebStageWidget-release.apk [com.dell.stage.widget.web]
Non system apps:
CarDock.apk [com.google.android.carhome]
DRMPlayer.apk [com.arcsoft.drmplayer]
swype.apk [com.swype.android.inputmethod]
It's time consuming to go through and delete the unwanted stuff using Root Uninstaller, but I believe it to be time well spent if only to provide a bit more space on the internal MicroSD. Perhaps someone should write an automated script that will allow the user to delete the APKs in the "Safe To Remove" section of the post?
Removing things like Stage UI and the bundleware should be left out of such a script, since every user is different.
The bundleware is more or less safe to remove, just as much they're usually older versions of what's available on market, you'd still need to update and would end up with 2 copies on your system. The current version at /data/app and the original older version at /system/app
Root explorer has a mass select button btw if you use that, I believe it also works for deleting but I'm not 100% sure. Only thing to be careful of is uninstalling a system critical file, though you can just as easily manually uninstall one by accident.
There's actually more stuff that can safely be removed, only the rom is the only way to get it as you cant download it normally. (eg swype and drmplayer, though swype beta is available as a slightly different thing)
I wasn't questioning the safety of removing the bundleware, since I removed most of it along with all the engineering stuff and the Stage UI yesterday. All I was saying is that in a script those things shouldn't be included because of individual user preferences.
Nice work bruv!!:d
Added a couple more apps into list, turns out everything in com.oem.* is not required (if you ignore being able to use OTA updates, but as noone uses them to begin with)
Dont remove dellsettingsprovider.apk though, it's needed for dock mode with an official dock.
out of curiosity did you guys figure out what are all those com.engineeringmode.* apps? to be honest, removing something like gsensor.apk sounds scary
If you force them to run by making a custom activity shortcut, they mostly do exactly what they sound like.
Majority of them lets you test a single function (ie what they're named after). They're all essentinally debug utils. Dell might have them included because it makes fixing returned devices easier (ie warrentied devices)
Or just as likely they left them in because they're lazy, the entire build system for the s5 is a bit of a mess. They fixed it for building venue and streak 7 roms but they never bothered to go back and fix it.
Though all these apps are also included in stock venue and s7 roms
So before removing these apps do a nandroid backup. Will the nandroid save these files? Also can u do this with Gingerstreak?
Sent from the SuperStreak! ;-)
Of course nandroid saves it, unless you intentionally dont do a nandroid of system\, which defeats the point of nandroid.
SD2.3 doesnt include these nor does SD2.0
TheManii said:
Of course nandroid saves it, unless you intentionally dont do a nandroid of system\, which defeats the point of nandroid.
SD2.3 doesnt include these nor does SD2.0
Click to expand...
Click to collapse
SD 2.3 doesn't save which ones?
Sent from the SuperStreak! ;-)
I mean SD2.3 doesnt include anything that needs to be removed
TheManii said:
I mean SD2.3 doesnt include anything that needs to be removed
Click to expand...
Click to collapse
Oh ok
Sent from the SuperStreak! ;-)
so I decided to remove completely all those apps; so far so good and I'll surely like the slightly higher amount of available RAM
I have found something odd though (albeit almost irrelevant). after uninstalling (via titanium backup) all these apps I have lost one of the two wallpapers galllery (the one with a lot of pictures). Unfortunately I cannot tell which is the app responsible for this as I uninstalled them in bulk (I am not even 100% sure the two facts are related as more tweaking was going on and I discovered the issue only hours later).
well as I stated before it's not what you call a deal breaker, who uses stock wallpapers anyway but you'd better be advised than sorry!
you likely removed something in com.android.*
wallpapers are set with either:
gallery app
stageui's set
default android live wallpapers
whatever others you downloaded
mmh unlikely mate. I'm not betting my house on this but I'm quite confident I deleted only the apps that are in this very OP. the LWP and the 2-images-only galleries anyway are still there, i think it's something related to stage.
crashDebug said:
mmh unlikely mate. I'm not betting my house on this but I'm quite confident I deleted only the apps that are in this very OP. the LWP and the 2-images-only galleries anyway are still there, i think it's something related to stage.
Click to expand...
Click to collapse
It is the stage UI. I LOVE the "beach & sea" one and lost it after removing stage ui
Sent from my Dell Streak using Tapatalk
Updated list, there are a couple com.oem apps that are boarderline cases of being safe to remove, as they break functionality, but which depends on if that's a good or bad thing.
Case in point: the ota tools can be safely removed, but obviously break ota updates. If you're on a custom rom this wouldnt work anyway as custom roms dont support ota updates.
Experience uninstalling these apps, based on 2.2.2 351 00:
Deleted the package apps = could not uninstall using Settings - App. Tried restarting phone as possible solution but got stuck on boot image.
Does cabledetection have anything to do with attaching with usb to pc? Gone, cannot use Streak as USB storage device in pc.
Note that many other appd can be removed too. Check Cyanogen barebones for detailed descriptions.
Question: Why is it impossible to "restore" apps I remove? Titanium simply does not work. At least with such far out ventures as removing, by accident though, and I had made a backup of everything, so it shoulf have been possible, the Accounts and Sync Settings apk.
Analogously - copying and pasting in RootExplorer does nothing at all, as is the case with trying to reinstall removed apps.
Anyways, lots of stuff can be removed. I even removed Market, to save resources, since I never download any apps from there anway.
You would be better off doing a nandroid backup before you muck around with the files. That way if something DOES happen you can go back to the original configuration. As to Titanium Backup, various versions of the app have had problems with restoring apps, corrupting not only the app, but the app's data as well. For backup purposes, Titanium Backup is not recommended. Nandroid instead.

[Q] Rooted/Custom Rom'd AT&T S4, now for some very basic questions!

I recently rooted/installed CleanROM for my S4, but now I have some basic questions regarding what actually happened in the process and how I could improve it. (First smartphone, first Android).
1. Is flashing the exact equivalent of installing a kernel/ROM/app in a recovery like TeamWin that is zipped in an SD card? All I did was select my zipped file and install--the guide says to use GooManager but I never used it. Also, does updating TWRP, kernel, or ROM (same application/kernel/ROM, but newer version) require that you delete the old ZIP, copy over the new ZIP, then install it? Is there a cleaner method (I feel that since we have to wipe to prevent old files from interfering with new ROM that maybe parts of the old version of a ROM may be redundant or may interfere with the new ROM?
2. Is there a way I can save the phone settings when dealing with one ROM and transferring these settings to another ROM? I really don't want to spend 20 minutes to go through all the settings and change it to my liking every time I install a new ROM.
3. With TWRP I could backup the entire ROM and also be able to install that backup ROM if I don't like the new ROM installed? What does Titanium Backup offer in regards to this aside from backing up app data and the ability freeze/uninstall system apps?
4. Does Titanium Backup leave any residual files? I see other apps designed to uninstall system apps and Titanium Backup seems like an all-in-one jack of all trades.
5. I thought I wiped everything and to me, that sounds like reformatting the entire drive. I only wiped system, boot, and data though (good enough for ROMs, according to what I've read). I was surprised when I saw my videos that I had already backed up to my PC accessible on the phone. Should I just wipe literally everything (I assume it would be cleaner) like cache, preload, EFS, modem, recovery, etc.? Will wiping literally everything be like reformatting my phone (since my phone was not reformatted because my personal videos was still there when I installed my custom ROM? If I were to install completely different ROMs cleanly and wanted to keep my personal files, I would only need to wipe system, data, and boot?
4. Do I have to use CASUAL again to install an updated TWRP?
5. Does backing up a ROM also backup its root? I'm going to assume this is a dumb question and the answer is no. I'm also guessing I have to block OTA updates from AT&T to ensure I keep my root. How would I go about doing this? Also, would my phone be "safe" if I stick to my ROM (no updates or anything) for 4+ years? I'm asking this as an extreme case because I feel like I'm missing out on AT&T security updates that could protect my phone and also I don't think the developer my ROM (CleanROM) will do frequent updates).
6. I had problems with my computer not being able to recognize my phone and my SD card in the phone after I wiped everything and before I installed a ROM. I literally had to take the SD card from the phone and use an SD card reader to transfer my custom ROM/loki then put it back into the phone. Was I missing a driver?
7. What are some must-have apps a newly rooted user would want?
8. I read that you only need 1 EFS backup and you don't need to back it up every time you are going to install a custom ROM. Can I get a confirmation?
9. What does Goo Manager do and would I want it?
10. Is it essential that I keep up to date with news about my custom ROM/phone to ensure my phone is secured?
**Not Root/ROM related--Is swiping an app away from the Recent Apps List (long-press home button) the equivalent of killing an app? I use the Recent Apps List often but I don't want to go about swiping apps away if means it is killing it, since I read that killing apps are bad and actually drains battery life. Also, is there a mod that lets you access the Recent Apps List by long-pressing the menu one? I only see a mod that kills the app if you long-press it.
Also, any ROMs you guys can recommend me that is like CleanROM? It has to be TW-based because I use multi-windows. Basically, I want a stable, popular (popular ones tend to be more frequently updated, which is important because there are often bugs in custom ROMs), and optimized/debloated ROM (as debloated as possible, I rather use my own large list of apps than pre-installed ones). I was looking at GoldenEye but I'm not sure.
Thanks. I'm hoping for many responses as I have more questions to ask but not a lot of free time (I will check back on this thread every several hours until there are no more responses on the thread.
Hey there! Here is my take on at least some of your questions. I am not a super pro, but I will try not to give you any wrong info.
1. The zip files that are still out on your SD card are just the install files for whatever you are flashing. They won't be cleaned up automatically and you will need to delete them yourself if you want them gone. That being said I would recommend leaving the previous version's zip out there in case you need to back out of the new version.
2. If by phone settings you mean all of the settings in the various option menus baked into the ROM it is best to redo those when switching between ROMs. Many ROMs add and take away options and add whole new option sections so you will want to go through those and set things to your liking. Another option is to use a launcher like Nova Launcher that lets you back up its settings and restore them which is a big chunk of the things I change when going to a new ROM. Some people may have a different opinion on this one.
3. Yes if you make a backup in a recovery like TWRP and then restore from it it will be like you never flashed the other ROM. Titanium backup does what you say and also can backup individual Apps themselves and restore them.
4. Once you have a recovery installed you should not have to go through the hoops you went through to get it there to update it. Check the thread for the recovery for upgrade instructions.
5. Your SD card will not be wiped when you wipe system or data. There is also the internal "sdcard" that if I recall is not wiped when you do a standard wipe which will keep things like pics and videos between flashes.
6. So you were trying to access the phone storage/SD card while it was in recovery? I have never had much luck with that. I always just make sure I have all of the files I will need to install the new ROM moved over before I wipe it. That being said if you have the right driver it might be possible.
7. Titanium Backup, a file explorer that can leverage Root access like Root Explorer, maybe something like Greenify (I think it takes Root). Other than that check out the thread in the Apps/Themes subforum where people list their top 5 apps.
8. Pass (but I think what you heard/read is right)
9. Goo Manager can let you know if there is updated version of your ROM or what other ROMs are available for your device and download them. It can also be used to install a recovery. Personally I don't use it and just check ROM threads for updates if the ROM doesn't offer OTA updates.
10. I rarely see mention of security fixes/features in custom ROMs so I don't think you need to stay on top of threads for that reason. With that said, if security is crazy super important to you then a custom ROM might not be your best bet. Even though source code is available for most if not all of them that doesn't mean someone has gone through the code looking for security flaws (or even malicious code).
11. You can test this yourself. Go into the "Apps" section of the options and look at what Apps are running then swipe one away and check again. Personally I would go ahead and swipe away Apps as needed since that is a core Android feature. I haven't seen a mod for what you are asking.
12. The other two TW-based ROMs I have used are Goldeneye and Alpha. Both are good, but I am using Alpha now due to its higher degree of customization. Goldeneye hasn't been updated in a month or so, Alpha is being updated regularly at the moment.
---------- Post added at 08:15 PM ---------- Previous post was at 08:09 PM ----------
Here is the link to the thread where people list out their top 5 apps!
Nice post, very good help...serious...
Incredibly helpful, thanks. I will post more questions if I have here, kind of busy at the moment.
Question:
What is the best way to detect whether a third-party app has a keylogger? I read from an article that it is incredibly easy for someone to put a keylogger on an app. Is Avast Mobile Security and Antivirus capable/overkill for this job? Also, I was worried that Avast may actually be bad because it would deteriorate (wear and tear on the SSD of the phone) through all the scannings? Or am I completely wrong? If I am wrong, I'm guessing it's because an antivirus only reads your files and therefore does not wear down a SSD (I'm not even sure if this is right).
mindstormer said:
Question:
What is the best way to detect whether a third-party app has a keylogger? I read from an article that it is incredibly easy for someone to put a keylogger on an app. Is Avast Mobile Security and Antivirus capable/overkill for this job? Also, I was worried that Avast may actually be bad because it would deteriorate (wear and tear on the SSD of the phone) through all the scannings? Or am I completely wrong? If I am wrong, I'm guessing it's because an antivirus only reads your files and therefore does not wear down a SSD (I'm not even sure if this is right).
Click to expand...
Click to collapse
You can read a SSD all day long, that doesn't wear it out. Writing to a SSD will cause wear, not reading. I'm thinking that most antivirus apps can find that kind of stuff, but don't download from unknown sources or those you don't trust. Even Google Play has some shady stuff. I would recommend researching an app on Google if you have any doubts about it. I'm sure it can be done, but I really doubt any of your friends know how to reprogram one of your apps to have a keylogger, plus I wouldn't let them use my phone in the first place.
To answer your questions:
1. Antivirus doesn't wear anything out, it just puts load on your system.
2. Most antivirus apps should detect apps like the ones your talking about.
agent929 said:
You can read a SSD all day long, that doesn't wear it out. Writing to a SSD will cause wear, not reading. I'm thinking that most antivirus apps can find that kind of stuff, but don't download from unknown sources or those you don't trust. Even Google Play has some shady stuff. I would recommend researching an app on Google if you have any doubts about it. I'm sure it can be done, but I really doubt any of your friends know how to reprogram one of your apps to have a keylogger, plus I wouldn't let them use my phone in the first place.
To answer your questions:
1. Antivirus doesn't wear anything out, it just puts load on your system.
2. Most antivirus apps should detect apps like the ones your talking about.
Click to expand...
Click to collapse
Thanks for the confirmation.
Another question for anyone:
Clean Master found the folder of an app that I installed on a precious ROM, so I not wipe the device cleanly. I though wiping system, boot, and data was enough--what was I missing, or should I have checked everything to be wiped on TeamWin Recovery?
Are you sure its not coming from your SD card?
Sent from miPhone using XDA Premium HD app

My kindle fire HDX 7" setup, for newbies!

First of all, thanks a lot to Cpasjuste for making the working gapps flashble zip, here's a link to that. I take no responsibility for doing this, all credit goes to Cpasjuste. Also I do not know a lot about deving myself but i've had two android devices before this and have been avid in modding them, just thought i'd put that out there.
So, first thing I did was get root, factory reset and get safestrap recovery. then I made a backup of my stock ROM, kept it on my kindle, and moved it to a safe spot in my computer (I recommend everyone does this, no matter if they choose to follow this setup or not.) I created a new ROM slot with default partitions, and restored my stock ROM to it (you do this in case any thing happens you have your stock ROM to fall back on). I tried flashing Cpasjuste's gapps rom, but for some reason there were multiple issues with it so instead, i restored to stock, on ROM slot 1, and flashed his gapps zip mentioned earlier. Rebooted and everything (well almost everything) worked perfectly. playstore works and only app that I have discovered to be incompatible is instagram for some reason, but i found a apk download online that installed perfectly to replace it. I installed a app from play store called recent apps quick button, which basically activates android's recent apps, then I installed a app from play store called Home2 shortcut. this lets me assign the resent apps quick button to double tapping the home button so now when i double tap the home button it brings me to recent apps. It's really nice since kindles default Rom doesn't have a recent apps button! Right now I am working on blocking updates from amazon to prevent losing root or bricking, using the tutorial found at the end of the root link. Let me know what you guys have done to make your kindle fire HDX experince better, or any questions you have.
Also, I forgot to mention that using the gapps flashable zip broke my amazon appstore and most amazon services, except video it seams like, but since we have safestrap recovery this isn't a big deal to me because i can always get it back, and im sure it will be fixed in future. Have fun and be safe while experimenting with your kindle.
I TAKE NO RESPONSIBILITY FOR DAMAGE DONE TO YOUR DEVICE, KNOW WHAT YOUR DOING BEFORE YOU DO IT!!!!!!!
Ah! Thats what I missed, I didnt realise I could use restore on a different ROM slot! Thanks for that, going to try it later!:good:
OurFriendIrony said:
Ah! Thats what I missed, I didnt realise I could use restore on a different ROM slot! Thanks for that, going to try it later!:good:
Click to expand...
Click to collapse
No problem! Also if I were you I would delete most of the user apps on your stock ROM, Idk if you did what I said and factory reset before you got safestrap (I would not try it if you already safestrap since you will lose safestrap and possible break you device!) but if you didnt I would just go back and delete most user apps and data off stock ROM and then redo the backup and restore with that. because you most likely wont be using the stock ROM (you don't want to alter it since you want to have a safe spot to restore to) you want it to take up as little storage as possible. My advice, pretend that you don't have root and don't do anything with it, like editing parts of system, or flashing mod packages, etc... (only exception is having super user and safe strap app installed.) Let me know if any part of this was to confusing. Hope this helped!
Haha, I saw your reply about 2 minutes after starting up the factory rest. I can, however, confirm that safestrap is still installed between the boot and IS load, so I'm actually in a perfect position. Have taken a new backup of pure stock rom!
Happy days!
I got a copy of my Stock ROM installed into ROM slot 1 and then added the gapps package, it worked beautifully!
I now have a tablet with all the google features on and have no issues so far.
except...
when I boot to ROM slot 1, I get a message saying "Kindle is Updating/Upgrading". It doesn't do anything and it only takes a few seconds before it gives up. I was just wondering if there was a way of getting rid of this??
As someone who hasn't had any prior experience with Android (although a fair share of experience with GNU/Linux), I appreciate a thread like this.
I also rooted the device (works well from GNU/Linux), installed SuperSU and some essential apps to make the stock OS usable (busybox and a terminal emulator, of course; and also a lightweight file browser that doesn't take much space and does exactly that, lets me browse local files). Then installed SafeStrap and backed everything up to both the Kindle and the PC (the backup is accessible via MTP, in the internal storage, so you can just connect the USB cable and copy the TWRP directory – at least in KDE).
Now I'm going to try the new AOSP ROM. Though since I'm new to the whole Android business, the partition sizes have me a bit confused. I'd want to have three slots – the stock ROM (obviously), the stock FireOS (one that I can modify) and AOSP. What partition sizes for the two slots would be the best, if it's the 16GB HDX? Also, say I download a PDF file; would both FireOS and AOSP see the file if I put it in internal storage, or would I have to manually copy it over to the other slot through my PC?
@GreatEmerald, whats AOSP? I'm thinking of playing around a bit more. I want to try out some more ROMs.
I put my first ROM slot (Stock with gapps added and amazon crap removed) on Flight Mode and now when I try and put it on wireless it restarts....
OurFriendIrony said:
@GreatEmerald, whats AOSP? I'm thinking of playing around a bit more. I want to try out some more ROMs.
I put my first ROM slot (Stock with gapps added and amazon crap removed) on Flight Mode and now when I try and put it on wireless it restarts....
Click to expand...
Click to collapse
AOSP = Android Open Source Project
Many other devices have an AOSP build and is typically a very nice build to flash if you like the core android feel with some extra very nice features.
OurFriendIrony said:
@GreatEmerald, whats AOSP? I'm thinking of playing around a bit more. I want to try out some more ROMs.
I put my first ROM slot (Stock with gapps added and amazon crap removed) on Flight Mode and now when I try and put it on wireless it restarts....
Click to expand...
Click to collapse
Yea, as mentioned, AOSP is a ROM for stock Android 4.2.2, pretty much the only big ROM available for the HDX7 right now: http://forum.xda-developers.com/showthread.php?t=2607185
It works pretty well as it is, I'm impressed it's as good already given how new the project is. Though it still has some issues for normal use. Aside from the bugs mentioned in the post, Chrome crashes as soon as it's launched (but you can use Firefox instead), as does the Kindle app (which is mainly what is stopping me from using it, because the point of a Kindle is the integration with Amazon services...). Also, the Facebook app fails to install for some reason.
Everything else I tried works fine. I installed F-Droid, a file manager, Busybox and a terminal, then the Amazon app and some of the Amazon cloud apps, and finally Skype. All of them work very nicely on AOSP. Even tested a video call on Skype and it worked without any problems (including the camera working correctly).
As someone new to Android and from a GNU/Linux background, I'm really happy that F-Droid exists. It's an app store/package manager that offers only free and open source software. For regular users that might sound as not a big deal, but actually filtering software by license is more powerful than one would think. You're guaranteed to have only apps that have no spyware and adware, because you can't hide them in open code. And those who make apps without publishing their code obviously have something to hide. So much like in GNU/Linux, the first place to check for new apps for me is F-Droid, and after that the main store of the OS (be it Google Play or Amazon Store), and only then 1Mobile market.
I still would like to know more about that partitioning, though. I figured out that the emulated SD card is shared between ROMs (I uploaded F-Droid to the Downloads directory on FireOS, and could see it on AOSP just as well), but I still don't know what exactly the two partitions you have to make to set up a ROM slot are and how much space should be allocated to them.
GreatEmerald said:
Yea, as mentioned, AOSP is a ROM for stock Android 4.2.2, pretty much the only big ROM available for the HDX7 right now: http://forum.xda-developers.com/showthread.php?t=2607185
It works pretty well as it is, I'm impressed it's as good already given how new the project is. Though it still has some issues for normal use. Aside from the bugs mentioned in the post, Chrome crashes as soon as it's launched (but you can use Firefox instead), as does the Kindle app (which is mainly what is stopping me from using it, because the point of a Kindle is the integration with Amazon services...). Also, the Facebook app fails to install for some reason.
Everything else I tried works fine. I installed F-Droid, a file manager, Busybox and a terminal, then the Amazon app and some of the Amazon cloud apps, and finally Skype. All of them work very nicely on AOSP. Even tested a video call on Skype and it worked without any problems (including the camera working correctly).
As someone new to Android and from a GNU/Linux background, I'm really happy that F-Droid exists. It's an app store/package manager that offers only free and open source software. For regular users that might sound as not a big deal, but actually filtering software by license is more powerful than one would think. You're guaranteed to have only apps that have no spyware and adware, because you can't hide them in open code. And those who make apps without publishing their code obviously have something to hide. So much like in GNU/Linux, the first place to check for new apps for me is F-Droid, and after that the main store of the OS (be it Google Play or Amazon Store), and only then 1Mobile market.
I still would like to know more about that partitioning, though. I figured out that the emulated SD card is shared between ROMs (I uploaded F-Droid to the Downloads directory on FireOS, and could see it on AOSP just as well), but I still don't know what exactly the two partitions you have to make to set up a ROM slot are and how much space should be allocated to them.
Click to expand...
Click to collapse
The system partition only needs to be as big as the Rom or backup you flash is, the data partition I typically make as big as possible (4000 mb) since this is what your Rom will consider internal storage. This is where apps and app data will be downloaded onto, where the rest of the data on your ad card is shared and is used for music, videos and lots of other custom stuff you can add. As for the cache I leave it at the default, this is where temporary data for apps is stored ( for example when you play a youtube video, it is temporarily stored on this partition.
spaghettiknight said:
The system partition only needs to be as big as the Rom or backup you flash is, the data partition I typically make as big as possible (4000 mb) since this is what your Rom will consider internal storage. This is where apps and app data will be downloaded onto, where the rest of the data on your ad card is shared and is used for music, videos and lots of other custom stuff you can add. As for the cache I leave it at the default, this is where temporary data for apps is stored ( for example when you play a youtube video, it is temporarily stored on this partition.
Click to expand...
Click to collapse
Ah, that's good to know. It makes me wonder, though – can I resize partitions in some way? Say, I created a smallish partition setup for ROM slot 1, then another one for ROM slot 2, and then have a bit spare; can I allocate the whole space to ROM slot 1 if I no longer need ROM slot 2? Or to do a backup, clear the partition setup, then restore the backup into newly sized partitions?
GreatEmerald said:
Ah, that's good to know. It makes me wonder, though – can I resize partitions in some way? Say, I created a smallish partition setup for ROM slot 1, then another one for ROM slot 2, and then have a bit spare; can I allocate the whole space to ROM slot 1 if I no longer need ROM slot 2? Or to do a backup, clear the partition setup, then restore the backup into newly sized partitions?
Click to expand...
Click to collapse
yes, what i would do is backup my current setup, delete the rom slot your using, then remake it with your newly picked partitions
Nevermind. Got it working now. Thanks for the guide!
safestrap not working on my kindle hdx 7"
Hi my kindle is already rooted and I used towelroot. I have supersu installed too. I'm currently on the step of where I should install safestrap, but it seems safestrap is not working on my tablet. I tried 3.65, 3.72, 3.75 version of safestrap but it does not work. It always restart normally. Not in recovery. Pls help. 13.3.2.8 version. Thank u in advance.
pinksummer17 said:
Hi my kindle is already rooted and I used towelroot. I have supersu installed too. I'm currently on the step of where I should install safestrap, but it seems safestrap is not working on my tablet. I tried 3.65, 3.72, 3.75 version of safestrap but it does not work. It always restart normally. Not in recovery. Pls help. 13.3.2.8 version. Thank u in advance.
Click to expand...
Click to collapse
Have you blocked OTA with HDX Toolkit? If not your device will likely brick if Amazon attempts to push an update. At present the blocker in HDX toolkit is the only one that works on 3.2.8.
Your attention should be focused on this task; can deal with safestrap once OTA block is in place.
ya I had to learn about that the hard way

[Discuss] Modularize /data to prevent clean flash all the time

While Primary idea behind Project Treble allowing the OS layer to be updated independently - without relying on /vendor things (For starters/newbies https://www.xda-developers.com/project-treble-custom-rom-development/ )
Here at XDA we tinker around ROMs all the times. Irrespectively of ROM's stability, causal users always get stuck due to necessity to clean flash every time they want to try new ROM/new version of android
Dirty flash often creates conflicts with framework-res, System-Ui, etc etc such system apps data after a new ROM/Update and create unnecessary issues. Thus mostly considered as taboo. Whereas running Stock does not need to data wipe throughout device update lifecycle.
So, I would want discuss about the possibility of having /data modular to ROM as User App data is not going to change (Based on which root backup solutions like Titanium backup,etc work). This should enable the possibility of flashing any ROM, and User apps working smoothly on new ROM (just like device-specific blobs, etc in vender) unless major android version change is detected.
@ XDA Devs, Is this technically feasible?
Obviously its possible, i use this trick since last year.
In this trick, the app wont deleted, but, the app-data will erase.
Also everything inside/data (excluding media) erase.
But, the large sized /data/app will be intact.
Btw, it wont work, if u rollback to previous android version.
Only works within same version of multiple roms/ upgrading Android version
afridi.shahriar said:
Obviously its possible, i use this trick since last year.
In this trick, the app wont deleted, but, the app-data will erase.
Also everything inside/data (excluding media) erase.
But, the large sized /data/app will be intact.
Btw, it wont work, if u rollback to previous android version.
Only works within same version of multiple roms/ upgrading Android version
Click to expand...
Click to collapse
People are ok to lose app data if they want to roll back to previous versions of android. My context is reg. Project Treble which is only supported from Oreo..
Btw., Senior developers/tweakers pls think about this. Lets discuss if implementation of this is possible down our ROMs lane!!
arvindgr said:
People are ok to lose app data if they want to roll back to previous versions of android. My context is reg. Project Treble which is only supported from Oreo..
Btw., Senior developers/tweakers pls think about this. Lets discuss if implementation of this is possible down our ROMs lane!!
Click to expand...
Click to collapse
Hey. U don't need trebel/oreo to change ROM without deleting apps.apk, even i used this trick since......mmmm marshmallow 6.0.x
Is this referencing deleting /data/data/?
It works... But can have issues based on ART optimization...
Which is why the full wipe is recommended... Not for stability... But for troubleshooting
Sent from my PH-1 using Tapatalk
Maybe even just deleting /data/data for just the system apps, keeping the user app data in tact. Its definitely possible with a basic recovery script. Maybe we can look into that
rignfool said:
Is this referencing deleting /data/data/?
It works... But can have issues based on ART optimization...
Which is why the full wipe is recommended... Not for stability... But for troubleshooting
Click to expand...
Click to collapse
Thread is related to not deleting /data/data/ on ROM changes. Won't such ART Optimisation issues go off when cache is cleared?
This same is done on stock ROMs and even official Lineage OS updates don't require clean flash
tytydraco said:
Maybe even just deleting /data/data for just the system apps, keeping the user app data in tact. Its definitely possible with a basic recovery script. Maybe we can look into that
Click to expand...
Click to collapse
Yeah, when treble overcomes some major system partition shortfalls, /data shouldn't that hard.
Basically, this should ideally allow us switch between ROMs seemlessly...
I was able to do this about 3 years ago when I had an s3 mini, I had a custom rom available called Vibrant os but I wanted some apps to be pre-setup it included a data folder with data/app and data/data included along with data/system for wallpaper
took me a while and I had to find the folder permissions for each folder and do the set permissions command in the updater script but I was able to somewhat do this
I've taken the same code applied it but with set metadata changed to set perm
and I've reverted back to stock EMUI from resurrection remix project treble and all my apps have come across ( the data/data folder is next but atleast it is possible )
some google apps don't work if downgrading though
right now i'm copying data/app to my sdcard manually, wiping system, moving it back then doing my script
My goal is for the script to move data/app and data/data to the sd card, format data partition as f2fs, move data/app and data/data back then set the permissions
So basically, split /data/data into...
/data/data_system
/data/data_user
...?
I guess it's possible, but it would require changes at the ROM level. Maybe only framework, but possibly also in native code (e.g. zygote, not sure).
But... I don't think this really has anything to do with Treble.
CosmicDan said:
So basically, split /data/data into...
/data/data_system
/data/data_user
...?
I guess it's possible, but it would require changes at the ROM level. Maybe only framework, but possibly also in native code (e.g. zygote, not sure).
But... I don't think this really has anything to do with Treble.
Click to expand...
Click to collapse
i've managed to downgrade back from pixel experiece 8.1.0 to EMUI 8.0.0 and keep my apps ( data for the apps is tricky finding out the right read, write, execute permissions )
Livi-Tech said:
i've managed to downgrade back from pixel experiece 8.1.0 to EMUI 8.0.0 and keep my apps ( data for the apps is tricky finding out the right read, write, execute permissions )
Click to expand...
Click to collapse
It's not really, you just run restorecon command recursively on the tree - as long as file_contexts is intact then it will set permissions (and, more importantly, contexts) as they should be.

Categories

Resources